/* ==========================================================================
   NIFM Pitampura Centre — Landing Page Styles
   ========================================================================== */

:root {
  --navy: #0B1B33;
  --navy-mid: #14284A;
  --saffron: #FF9933;
  --saffron-light: #FFA64D;
  --saffron-deep: #B35900;
  --green: #128807;
  --cream: #F8F9FC;
  --slate: #4A5568;
  --white: #FFFFFF;
  --border: #E6E9F2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11, 27, 51, 0.08);
  --shadow-md: 0 12px 30px rgba(11, 27, 51, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 27, 51, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
  font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  background: rgba(255, 153, 51, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--slate);
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(255, 153, 51, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-lg { padding: 11px 22px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33%, #FFFFFF 33%, #FFFFFF 66%, var(--green) 66%, var(--green) 100%);
}

.tricolor-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33%, #FFFFFF 33%, #FFFFFF 66%, var(--green) 66%, var(--green) 100%);
}

.logo-flag {
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 2px;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--navy);
  cursor: pointer;
}

.btn-mobile-enquire { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, var(--navy-mid), var(--navy) 65%);
  color: var(--white);
  overflow: hidden;
  padding: 70px 0 90px;
}

.hero-bg-shape {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.28), transparent 70%);
  border-radius: 50%;
}

.hero-bg-shape-green {
  position: absolute;
  bottom: -140px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(18, 136, 7, 0.22), transparent 70%);
  border-radius: 50%;
}

.hero-chart-img {
  position: absolute;
  top: 40px;
  right: -40px;
  width: 340px;
  opacity: 0.22;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: rgba(255, 166, 77, 0.16);
  color: var(--saffron-light);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 18px 0 16px;
}

.hero h1 span { color: var(--saffron-light); }

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 30px;
}

.hero-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-feature-list i { color: var(--green); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero form card */
.hero-form-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-form-card > p {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ---------- Shared form styles (hero + modal) ---------- */
.apply-form-group { margin-bottom: 11px; }

.apply-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.apply-form-group input,
.apply-form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.apply-form-group input:focus,
.apply-form-group select:focus {
  outline: none;
  border-color: var(--saffron);
}

.apply-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.apply-submit-btn:hover { transform: translateY(-2px); }

.apply-modal-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.af-server-msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.af-server-msg.success {
  background: rgba(30, 158, 90, 0.12);
  color: var(--green);
}

.af-server-msg.error {
  background: rgba(255, 153, 51, 0.1);
  color: #C81E24;
}

.hf-server-msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.alert-danger {
  background: rgba(200, 30, 36, 0.1);
  border-color: rgba(200, 30, 36, 0.25);
  color: #C81E24;
}

/* ---------- Visual band / quick facts ---------- */
.visual-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}

.visual-band-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.visual-band-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.visual-band-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 2px;
}

.fact-item:nth-child(4n+1) .fact-icon { background: var(--saffron); color: var(--white); }
.fact-item:nth-child(4n+2) .fact-icon { background: var(--green); color: var(--white); }
.fact-item:nth-child(4n+3) .fact-icon { background: var(--navy); color: var(--saffron-light); }
.fact-item:nth-child(4n+4) .fact-icon { background: var(--saffron); color: var(--white); }

.fact-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.fact-label {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.35;
}

/* ---------- Courses section ---------- */
.course-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.course-group-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-group-card ul {
  flex: 1;
}

.course-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-card-actions .btn {
  flex: 1;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.course-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-group-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.course-group-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate);
  padding: 7px 0;
}

.course-group-card ul li i {
  color: var(--saffron-deep);
  margin-top: 3px;
  font-size: 0.8rem;
}

/* ---------- Why choose us ---------- */
.why-section { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.why-card:nth-child(3n+1) .why-icon { background: var(--saffron); color: var(--white); }
.why-card:nth-child(3n+2) .why-icon { background: var(--white); color: var(--navy); border: 2px solid var(--border); }
.why-card:nth-child(3n+3) .why-icon { background: var(--green); color: var(--white); }

.why-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--slate);
  font-size: 0.92rem;
}

/* ---------- Areas we serve ---------- */
.areas-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 28px;
  align-items: start;
}

.centre-address-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
}

.centre-address-img {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.centre-address-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.centre-address-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.areas-chip-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.area-chip:hover {
  background: var(--navy);
  color: var(--saffron-light);
}

.areas-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--slate);
  text-align: center;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(255, 153, 51, 0.22), transparent 55%),
              linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 28px;
}

.final-cta-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08142A;
  color: rgba(255, 255, 255, 0.7);
  padding: 26px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 166, 77, 0.25);
}

.footer-contact {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-contact a { color: var(--saffron-light); font-weight: 600; }
.footer-sep { margin: 0 10px; color: rgba(255,255,255,0.3); }

.footer-copy { font-size: 0.8rem; }
.footer-copy a { color: var(--saffron-light); font-weight: 600; }

/* ---------- Sticky bottom bar (mobile only) ---------- */
.sticky-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  gap: 12px;
  box-shadow: 0 -6px 20px rgba(11, 27, 51, 0.12);
}

.sticky-btn { flex: 1; }

/* ---------- Apply Modal ---------- */
.apply-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.apply-modal-overlay.active { display: flex; }

.apply-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.apply-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--cream);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--slate);
  cursor: pointer;
  font-size: 0.9rem;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #142850, #0B1B33);
  border-radius: var(--radius-md);
  margin: 2px 0 16px;
  box-shadow: 0 8px 18px rgba(11, 27, 51, 0.25);
}

.promo-stripe {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%);
}

.promo-banner-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.promo-flag {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.promo-text { display: flex; flex-direction: column; gap: 3px; color: var(--white); }

.promo-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron-light);
}

.promo-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.promo-text strong em {
  font-style: normal;
  color: #2ED573;
}

.promo-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

.apply-modal-header { text-align: center; margin-bottom: 14px; }

.modal-badge {
  display: inline-block;
  background: rgba(255, 153, 51, 0.14);
  color: var(--saffron-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.apply-modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.apply-modal-header h3 span { color: var(--saffron-deep); }

.apply-modal-header p {
  color: var(--slate);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .areas-layout { grid-template-columns: 1fr; }
  .visual-band-inner { grid-template-columns: 1fr; text-align: center; }
  .fact-item { align-items: center; text-align: center; }
  .fact-icon { margin-left: auto; margin-right: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .hero-chart-img { display: none; }
  .header-actions .btn-call span,
  .header-actions .btn-primary { display: none; }
  .header-actions .btn-outline.btn-call { display: none; }
  .nav-toggle { display: none; }
  .header-actions .btn-mobile-enquire { display: inline-flex; }
  .hero h1 { font-size: 1.9rem; }
  .hero-inner { margin-top: -52px; }
  .hero-feature-list { grid-template-columns: 1fr; }
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; font-size: 0.78rem; padding: 10px 8px; white-space: normal; text-align: center; }
  .section { padding: 56px 0; }
  .sticky-bottom-bar { display: flex; }
  body { padding-bottom: 70px; }
}
