/* ================= RESET & GLOBAL ================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
} 

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #1f2937;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= NAVBAR ================= */
.navbar {
  background: #0b2a5b;
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 80%;
}

.logo img {
  height: 60px;
  flex-shrink: 0;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #e5e7eb; /* ⭐ Highlighted heading color */
  white-space: nowrap;
}

/* Desktop menu */
#nav-menu {
  display: flex;
  gap: 26px;
}

#nav-menu a {
  font-weight: 500;
  transition: opacity 0.2s ease;
}

#nav-menu a:hover {
  opacity: 0.85;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  padding: 90px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  color: #f8fafc;
}

.hero p {
  font-size: 18px;
  max-width: 850px;
  margin: auto;
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: auto;
}

.section.gray {
  background: #f1f5f9;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 18px;
  color: #1e3a8a; /* distinct heading color */
}

.section p {
  font-size: 18px;
  margin-top: 14px;
}

.section ul {
  margin-top: 16px;
  padding-left: 20px;
}

.section li {
  margin-bottom: 10px;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  background: #facc15;
  color: #020617;
  font-weight: 700;
  border-radius: 8px;
}

/* ================= FOOTER ================= */
.footer {
  background: #020617;
  color: white;
  padding: 26px;
  text-align: center;
  font-size: 15px;
}

.map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================= WHATSAPP ================= */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25d366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  z-index: 999;
}

/* ================= CONTACT PAGE BIG LOGO (FINAL FIX) ================= */
.contact-logo {
  display: block;
  width: 260px;          /* desktop size */
  max-width: 90%;
  height: auto; 
  margin: 0 auto 30px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* Navbar */
  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #020617;
    flex-direction: column;
    text-align: center;
  }

  #nav-menu a {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  #nav-menu.active {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 60px 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Sections */
  .section {
    padding: 50px 16px;
  }

  .section h2 {
    font-size: 26px;
  }

  /* Logo */
  .logo img {
    height: 50px;
  }

  .logo span {
    font-size: 16px;
    white-space: normal; /* ✅ wraps cleanly */
  }

  /* WhatsApp */
  .whatsapp-float {
    padding: 8px 12px;
    font-size: 13px;
    bottom: 12px;
    right: 12px;
  }

  .contact-logo {
    width: 180px;
  }

.map-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 10px;
}

/* ================= MAP ================= */
.map-container {
  width: 100%;
  max-width: 1100px;     /* aligns with section width */
  margin: 30px auto 0;
}

.map-container iframe {
  width: 100%;
  height: 450px;         /* DESKTOP HEIGHT */
  border: 0;
  border-radius: 10px;
}

/* Tablet */
@media (max-width: 1024px) {
  .map-container iframe {
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

/* ===== FULL WIDTH MAP (DESKTOP ONLY) ===== */
@media (min-width: 1024px) {
  .section-full {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .section-full .map-container {
    max-width: 100%;
    padding: 0 40px;
  }

  .section-full iframe {
    width: 100%;
    height: 500px;
  }
}

/* =========================
   APPLICATION FORM STYLES
   ========================= */

form#examForm {
  max-width: 700px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

form#examForm label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

form#examForm input,
form#examForm button {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  font-size: 15px;
}

form#examForm input[type="file"] {
  padding: 6px;
}

form#examForm button {
  margin-top: 25px;
  background: #2e6cf6; /* adjust to your theme */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

form#examForm button:hover {
  opacity: 0.9;
}

/* =====================================
   APPLY PAGE – PROFESSIONAL UI
   ===================================== */

/* Header */
.apply-header {
  background: linear-gradient(135deg, #2e6cf6, #1f4ed8);
  color: #fff;
  padding: 30px 20px;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.institute-logo {
  width: 80px;
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}

.apply-header h1 {
  font-size: 30px;
  margin: 0;
}

.tagline {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}

/* Intro */
.apply-intro {
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.apply-intro h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.apply-intro p {
  color: #555;
  font-size: 15px;
}

/* Form container */
.apply-section {
  padding: 20px;
  background: #f4f6fb;
}

/* Section titles inside form */
.form-section-title {
  margin-top: 40px;
  font-size: 20px;
  color: #1f2d3d;
  border-left: 5px solid #2e6cf6;
  padding-left: 10px;
}

/* Footer */
.apply-footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #e5e5e5;
}

.footer-note {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .institute-logo {
    width: 70px;
  }
}
}
/* ================= APPLY BUTTON ================= */

.apply-cta {
  display: flex;
  justify-content: center;
  margin: 32px 0 40px;
}

.btn-apply {
  all: unset;
  cursor: pointer;
  background: linear-gradient(135deg, #f6b100, #ff9800);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 34px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.btn-apply:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-subtext {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .btn-apply {
    width: 92%;
    font-size: 16px;
    padding: 14px 20px;
  }

  .btn-subtext {
    font-size: 13px;
  }
}