/* ═══════════════════════════════════════════════
   GITA Education — edu-shared.css
   Colors: Deep Navy + Gold accent (distinct from main site's near-black)
   ═══════════════════════════════════════════════ */

:root {
  --edu-primary:    #1A2A4A;   /* deep navy */
  --edu-primary2:   #243558;
  --edu-primary3:   #2E4170;
  --edu-gold:       #F0A500;
  --edu-gold-light: #F5C842;
  --edu-gold-pale:  #FEF8E7;
  --edu-accent:     #E65C00;   /* exam urgency orange */
  --edu-green:      #27AE60;
  --edu-text:       #1e1e2e;
  --edu-muted:      #6B7280;
  --edu-border:     rgba(240,165,0,0.2);
  --edu-white:      #ffffff;
  --edu-bg-soft:    #F4F6FB;
  --radius:         6px;
  --transition:     0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Inter', sans-serif; color: var(--edu-text); background: #fff; overflow-x: clip; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── TOPBAR ─── */
.topbar { background: #0d1a2e; border-bottom: 1px solid rgba(240,165,0,0.25); padding: 6px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.topbar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; }
.topbar-left span { font-size: .73rem; color: rgba(240,200,100,0.75); }
.topbar-divider { color: rgba(255,255,255,0.15) !important; }
.topbar-right { display: flex; gap: 10px; flex-shrink: 0; }
.topbar-social { color: rgba(240,180,60,0.6); font-size: .88rem; transition: color var(--transition); }
.topbar-social:hover { color: var(--edu-gold-light); }

/* ─── NAVBAR ─── */
.main-navbar { background: var(--edu-primary); border-bottom: 2px solid rgba(240,165,0,0.25); padding: 0; position: sticky; top: 0; z-index: 9000; transition: box-shadow .3s; }
.main-navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.navbar-brand img { height: 48px; object-fit: contain; max-width: 130px; }
.navbar-brand .edu-brand-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #fff; font-weight: 600; margin-left: 8px; }
.navbar-brand .edu-brand-text span { color: var(--edu-gold); }
.nav-link { color: rgba(255,255,255,0.8) !important; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; padding: 1.35rem .95rem !important; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--edu-gold-light) !important; }
.dropdown-menu { background: var(--edu-primary2); border: 1px solid var(--edu-border); border-radius: 4px; padding: .4rem 0; margin-top: 0 !important; }
.dropdown-item { color: rgba(255,255,255,0.75); font-size: .8rem; padding: .55rem 1.25rem; transition: all var(--transition); }
.dropdown-item i { color: var(--edu-gold); }
.dropdown-item:hover { background: rgba(240,165,0,0.1); color: var(--edu-gold-light); }
.btn-nav-gold { background: var(--edu-gold); color: #000 !important; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .5rem 1.3rem; border-radius: 3px; transition: all var(--transition); white-space: nowrap; }
.btn-nav-gold:hover { background: var(--edu-gold-light); transform: translateY(-1px); }

/* hamburger */
.sidebar-toggle-btn { display: none; background: transparent; border: 1px solid rgba(240,165,0,0.4); border-radius: 4px; width: 42px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.sidebar-toggle-btn span { display: block; width: 20px; height: 2px; background: var(--edu-gold); border-radius: 2px; transition: all var(--transition); }

/* ─── MOBILE SIDEBAR ─── */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9990; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sidebar-overlay.active { opacity: 1; pointer-events: all; }
.mobile-sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100dvh; background: #fff; z-index: 9999; display: flex; flex-direction: column; transition: left .35s cubic-bezier(.22,.61,.36,1); box-shadow: 4px 0 32px rgba(0,0,0,0.2); }
.mobile-sidebar.open { left: 0; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--edu-primary); border-bottom: 1px solid rgba(240,165,0,0.2); }
.sidebar-logo { height: 40px; object-fit: contain; }
.sidebar-close { background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; width: 34px; height: 34px; color: rgba(255,255,255,0.7); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.sidebar-close:hover { background: rgba(240,165,0,0.15); color: var(--edu-gold-light); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-link { display: flex; align-items: center; gap: 14px; padding: 14px 20px; font-size: .9rem; font-weight: 500; color: #222; border-bottom: 1px solid #f0f0f0; width: 100%; background: transparent; border-left: none; border-right: none; border-top: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.sidebar-link i:first-child { font-size: 1.1rem; color: var(--edu-gold); width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-link span { flex: 1; }
.sidebar-arrow { font-size: .75rem; color: #aaa; transition: transform var(--transition); margin-left: auto; }
.sidebar-link:hover, .sidebar-link.active { background: var(--edu-gold-pale); color: var(--edu-gold); }
.sidebar-link.active { border-left: 3px solid var(--edu-gold); }
.sidebar-subnav { display: none; background: #f5f5f5; }
.sidebar-subnav.open { display: block; }
.sidebar-sublink { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: .83rem; color: #555; border-bottom: 1px solid #f0f0f0; transition: all var(--transition); text-decoration: none; }
.sidebar-sublink i { color: var(--edu-gold); font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-sublink:hover { background: var(--edu-gold-pale); color: var(--edu-gold); }
.sidebar-footer { padding: 14px 14px 20px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 8px; }
.sidebar-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; background: var(--edu-gold); color: #000; font-weight: 700; font-size: .85rem; border-radius: 4px; text-decoration: none; transition: all var(--transition); }
.sidebar-cta-btn:hover { background: var(--edu-gold-light); }
.sidebar-call-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; background: var(--edu-primary); color: #fff; font-weight: 600; font-size: .85rem; border-radius: 4px; text-decoration: none; transition: all var(--transition); }
.sidebar-call-btn:hover { background: var(--edu-primary2); }

/* ─── PAGE LOADER ─── */
#pageLoader { position: fixed; inset: 0; background: var(--edu-primary); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; transition: opacity .4s, visibility .4s; }
#pageLoader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 80px; filter: brightness(10); }
.loader-bar-wrap { width: 160px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.loader-bar { height: 100%; background: linear-gradient(90deg, var(--edu-gold), var(--edu-gold-light)); border-radius: 3px; animation: loadBar 1.2s ease-in-out forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
.loader-text { font-size: .72rem; color: rgba(255,255,255,0.45); letter-spacing: .12em; text-transform: uppercase; }

/* ─── PAGE WRAPPER ─── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ─── SECTION SHARED ─── */
.sec-eyebrow { display: inline-flex; align-items: center; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--edu-gold); font-weight: 700; margin-bottom: .8rem; }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--edu-primary); line-height: 1.2; margin-bottom: .9rem; }
.sec-title span { color: var(--edu-gold); }
.sec-body { color: #555; line-height: 1.82; font-size: .97rem; }
.gold-rule { width: 50px; height: 2px; background: linear-gradient(90deg, var(--edu-gold), var(--edu-gold-light)); margin: 1.1rem 0 1.8rem; }
.sec-header { margin-bottom: 3rem; }

/* shared buttons */
.btn-gold-solid { display: inline-flex; align-items: center; background: var(--edu-gold); color: #000; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .78rem 2rem; border-radius: 3px; border: none; transition: all var(--transition); cursor: pointer; }
.btn-gold-solid:hover { background: var(--edu-gold-light); color: #000; transform: translateY(-2px); }
.btn-outline-navy { display: inline-flex; align-items: center; background: transparent; color: var(--edu-primary); border: 1.5px solid rgba(26,42,74,0.3); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .78rem 2rem; border-radius: 3px; transition: all var(--transition); }
.btn-outline-navy:hover { border-color: var(--edu-gold); color: var(--edu-gold); }
.btn-white-outline { display: inline-flex; align-items: center; background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.3); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .78rem 2rem; border-radius: 3px; transition: all var(--transition); }
.btn-white-outline:hover { border-color: var(--edu-gold-light); color: var(--edu-gold-light); }

/* ─── CTA BAND ─── */
.sec-cta { background: var(--edu-gold); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.cta-title { font-size: clamp(1.4rem,3vw,2rem); color: #000; margin-bottom: .4rem; }
.cta-sub { font-size: .92rem; color: rgba(0,0,0,0.65); margin: 0; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.btn-dark { background: var(--edu-primary); color: #fff; }
.btn-dark:hover { background: var(--edu-primary2); color: #fff !important; }

/* ─── FOOTER ─── */
.main-footer { background: #080e1a; border-top: 1px solid rgba(240,165,0,0.1); padding: 72px 0 0; margin-top: auto; }
.footer-logo { height: 48px; object-fit: contain; margin-bottom: 1.2rem; }
.footer-desc { font-size: .83rem; color: rgba(255,255,255,0.35); line-height: 1.8; max-width: 280px; margin-bottom: 1.4rem; }
.footer-socials { display: flex; gap: 10px; }
.fs-link { width: 36px; height: 36px; border: 1px solid rgba(240,165,0,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: .95rem; transition: all var(--transition); }
.fs-link:hover { border-color: var(--edu-gold); color: var(--edu-gold-light); }
.footer-heading { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.1rem; font-family: 'Inter',sans-serif; font-weight: 700; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: .83rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--edu-gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.footer-contact-item i { color: var(--edu-gold); font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .82rem; color: rgba(255,255,255,0.42); line-height: 1.55; }
.footer-bottom { border-top: 1px solid rgba(240,165,0,0.1); margin-top: 2rem; padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,0.22); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .74rem; color: rgba(255,255,255,0.22); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--edu-gold); }

/* ─── BACK TO TOP ─── */
.back-to-top { position: fixed; bottom: 28px; right: 24px; width: 44px; height: 44px; background: var(--edu-gold); color: #000; border: none; border-radius: 50%; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 9000; box-shadow: 0 4px 16px rgba(240,165,0,0.35); }
.back-to-top.visible { opacity: 1; pointer-events: all; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero { background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary3) 100%); padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(240,165,0,0.08) 0%, transparent 70%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero .sec-eyebrow { color: var(--edu-gold); }
.page-hero .sec-title { color: #fff; }
.page-hero .sec-body { color: rgba(255,255,255,0.6); max-width: 560px; }
.breadcrumb-edu { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,0.45); margin-bottom: 1.5rem; }
.breadcrumb-edu a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb-edu a:hover { color: var(--edu-gold); }
.breadcrumb-edu i { font-size: .55rem; color: rgba(255,255,255,0.25); }

/* ─── EXAM CARDS ─── */
.exam-card { background: #fff; border: 1px solid rgba(26,42,74,0.1); border-radius: 8px; padding: 2rem 1.8rem; height: 100%; transition: all .3s; position: relative; overflow: hidden; }
.exam-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: linear-gradient(180deg, var(--edu-gold), var(--edu-gold-light)); transition: height .35s; }
.exam-card:hover::before { height: 100%; }
.exam-card:hover { border-color: rgba(240,165,0,0.35); box-shadow: 0 10px 36px rgba(240,165,0,0.09); transform: translateY(-4px); }
.exam-icon-wrap { width: 54px; height: 54px; background: var(--edu-gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--edu-gold); margin-bottom: 1.3rem; border: 1px solid rgba(240,165,0,0.2); }
.exam-card h4 { font-family: 'Playfair Display',serif; font-size: 1.1rem; color: var(--edu-primary); margin-bottom: .5rem; font-weight: 600; }
.exam-card p { font-size: .86rem; color: #666; line-height: 1.72; margin-bottom: 1.1rem; }
.exam-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.exam-tags span { font-size: .68rem; padding: .25rem .65rem; background: var(--edu-gold-pale); color: var(--edu-gold); border-radius: 2px; font-weight: 600; letter-spacing: .04em; }
.exam-link { font-size: .76rem; color: var(--edu-gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; transition: gap var(--transition); }
.exam-link:hover { color: var(--edu-primary); gap: .7rem; }

/* ─── MODE CARDS ─── */
.mode-card { background: var(--edu-bg-soft); border: 1px solid rgba(26,42,74,0.08); border-radius: 10px; padding: 2.2rem 2rem; text-align: center; height: 100%; transition: all .3s; }
.mode-card:hover { border-color: rgba(240,165,0,0.35); box-shadow: 0 10px 36px rgba(240,165,0,0.09); transform: translateY(-4px); }
.mode-card.featured { background: var(--edu-primary); border-color: rgba(240,165,0,0.3); }
.mode-card.featured h4, .mode-card.featured p { color: rgba(255,255,255,0.85) !important; }
.mode-card.featured .mode-icon { background: rgba(240,165,0,0.15); border-color: rgba(240,165,0,0.3); color: var(--edu-gold-light); }
.mode-icon { width: 68px; height: 68px; background: var(--edu-gold-pale); border: 1px solid rgba(240,165,0,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--edu-gold); margin: 0 auto 1.4rem; }
.mode-card h4 { font-family: 'Inter',sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--edu-primary); margin-bottom: .5rem; }
.mode-card p { font-size: .85rem; color: #666; line-height: 1.7; margin-bottom: 1.1rem; }
.mode-price { font-family: 'Playfair Display',serif; font-size: 1.5rem; color: var(--edu-gold); font-weight: 700; margin-bottom: .3rem; }
.mode-price-note { font-size: .72rem; color: #888; }
.mode-card.featured .mode-price-note { color: rgba(255,255,255,0.4); }

/* ─── WHY SECTION ─── */
.why-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(240,165,0,0.12); border-radius: var(--radius); padding: 2rem 1.75rem; height: 100%; transition: all .3s; }
.why-card:hover { border-color: rgba(240,165,0,0.3); background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.why-icon { font-size: 1.8rem; color: var(--edu-gold-light); margin-bottom: 1.1rem; }
.why-card h5 { font-family: 'Inter',sans-serif; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.why-card p { font-size: .83rem; color: rgba(255,255,255,0.48); line-height: 1.7; margin: 0; }

/* ─── STATS STRIP ─── */
.stats-strip { background: #fff; border-top: 3px solid var(--edu-gold); border-bottom: 1px solid rgba(240,165,0,0.15); padding: 0; }
.stats-row { display: flex; align-items: stretch; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 0; padding: 1.8rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-icon { font-size: 1.5rem; color: var(--edu-gold); margin-bottom: 6px; }
.stat-num { font-family: 'Playfair Display',serif; font-size: 2.1rem; color: var(--edu-gold); font-weight: 700; line-height: 1; }
.stat-lbl { font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.stat-divider { width: 1px; background: rgba(240,165,0,0.2); margin: 1.2rem 0; align-self: stretch; }

/* ─── MOCK TEST SECTION ─── */
.mock-test-card { background: #fff; border: 1px solid rgba(26,42,74,0.1); border-radius: 8px; padding: 1.5rem; transition: all .3s; }
.mock-test-card:hover { border-color: rgba(240,165,0,0.4); box-shadow: 0 6px 24px rgba(240,165,0,0.08); }
.mtc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 2px; margin-bottom: .85rem; }
.mtc-badge.free { background: rgba(39,174,96,0.12); color: var(--edu-green); }
.mtc-badge.paid { background: rgba(240,165,0,0.12); color: var(--edu-gold); }
.mtc-title { font-family: 'Inter',sans-serif; font-size: .95rem; font-weight: 700; color: var(--edu-primary); margin-bottom: .35rem; }
.mtc-meta { font-size: .78rem; color: var(--edu-muted); display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.mtc-meta i { color: var(--edu-gold); }
.mtc-btn { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .45rem 1.1rem; border-radius: 3px; border: none; cursor: pointer; transition: all var(--transition); }
.mtc-btn.primary { background: var(--edu-gold); color: #000; }
.mtc-btn.primary:hover { background: var(--edu-gold-light); }
.mtc-btn.outline { background: transparent; border: 1.5px solid rgba(26,42,74,0.2); color: var(--edu-primary); }
.mtc-btn.outline:hover { border-color: var(--edu-gold); color: var(--edu-gold); }

/* ─── NOTICE BADGE ─── */
.notice-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(230,92,0,0.1); border: 1px solid rgba(230,92,0,0.3); color: var(--edu-accent); font-size: .72rem; font-weight: 700; padding: .3rem .85rem; border-radius: 3px; letter-spacing: .05em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .collapse.navbar-collapse { display: none !important; }
  .sidebar-toggle-btn { display: flex; }
}
@media (max-width: 576px) {
  .stats-row { flex-wrap: wrap; }
  .stat-box { min-width: 50%; }
  .stat-divider { display: none; }
}
