/* =========================================================================
   GAON SE IAS BANEN — Design System
   Palette   : White #FFFFFF (body) · Navy #0B2545 (ink) · Gold #B8912F (accent)
               Saffron #E86A1C & Emerald #14663D (tricolour grace notes, used sparingly)
               Stone #6B7280 (secondary text) · Mist #F6F5F1 (panel backgrounds)
   Display   : "Cormorant Garamond" — literary, government-seal gravitas
   Body      : "Source Sans 3" — clean, legible on small screens / low bandwidth
   Utility   : letter-spaced small caps in body face, for eyebrows/labels
   Signature : the "Milestone Path" — a stepped horizontal route motif used
               in the hero and the exam-journey section, standing in for the
               literal road from village to Rajpath.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root{
  --white:#ffffff;
  --mist:#f6f5f0;
  --navy:#0b2545;
  --navy-deep:#071a33;
  --gold:#b8912f;
  --gold-light:#e4c877;
  --saffron:#e86a1c;
  --emerald:#14663d;
  --stone:#6b7280;
  --ink:#1f2430;
  --line:#e6e2d8;

  --display:'Cormorant Garamond', Georgia, serif;
  --body:'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --container:1180px;
  --radius:2px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{font-family:var(--display);font-weight:600;color:var(--navy);margin:0 0 .5em;letter-spacing:.01em;}
p{margin:0 0 1em;color:var(--ink);}
.container{max-width:var(--container);margin:0 auto;padding:0 28px;}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--gold); outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

/* ---------- Eyebrow / small-caps utility label ---------- */
.eyebrow{
  font-family:var(--body);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:.6em;
}
.eyebrow::before{
  content:"";
  width:26px;height:1px;background:var(--gold);
  display:inline-block;
}

/* ---------- Tricolour hairline (signature grace note) ---------- */
.tricolour-rule{
  height:3px;
  width:64px;
  background:linear-gradient(90deg, var(--saffron) 0 33.3%, var(--white) 33.3% 66.6%, var(--emerald) 66.6% 100%);
  border:1px solid var(--line);
  margin:18px 0;
}

/* =========================== HEADER / NAV =========================== */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.topbar{
  background:var(--navy);
  color:#dfe6f0;
  font-size:.8rem;
}
.topbar .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:7px; padding-bottom:7px;
  flex-wrap:wrap; gap:6px;
}
.topbar a{color:#f1d98a; margin-left:16px;}
.topbar a:first-child{margin-left:0;}

.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:var(--container); margin:0 auto;
}
.brand{display:flex; align-items:center; gap:14px;}
.brand-emblem{width:46px;height:46px;flex:none;}
.brand-text .en{
  font-family:var(--display); font-weight:700; font-size:1.5rem; color:var(--navy); line-height:1.1;
}
.brand-text .tag{
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--stone);
}

.main-nav{display:flex; align-items:center; gap:2px;}
.main-nav a{
  padding:10px 14px; font-size:.92rem; font-weight:600; color:var(--navy);
  border-bottom:2px solid transparent;
}
.main-nav a:hover, .main-nav a.active{border-color:var(--gold); color:var(--gold);}
.nav-toggle{display:none;}

@media (max-width:960px){
  .main-nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--white); flex-direction:column; border-top:1px solid var(--line);
    box-shadow:0 12px 24px rgba(11,37,69,.08);
  }
  .main-nav.open{display:flex;}
  .main-nav a{padding:14px 28px; border-bottom:1px solid var(--line); border-left:2px solid transparent;}
  .main-nav a:hover,.main-nav a.active{border-bottom-color:var(--line); border-left-color:var(--gold);}
  .nav-toggle{
    display:inline-flex; background:none; border:1px solid var(--navy); color:var(--navy);
    padding:8px 12px; font-size:1rem; cursor:pointer; border-radius:var(--radius);
  }
}

/* =========================== HERO =========================== */
.hero{
  position:relative;
  background:var(--white);
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero .container{
  padding-top:72px; padding-bottom:72px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;
}
.hero h1{
  font-size:clamp(2.2rem, 4vw, 3.4rem);
  line-height:1.12;
}
.hero .lede{font-size:1.12rem; color:var(--stone); max-width:46ch;}
.hero-ctas{display:flex; gap:14px; margin-top:28px; flex-wrap:wrap;}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; font-weight:700; font-size:.92rem;
  border-radius:var(--radius); border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{background:var(--navy); color:var(--white);}
.btn-primary:hover{background:var(--navy-deep); transform:translateY(-1px);}
.btn-ghost{border-color:var(--navy); color:var(--navy);}
.btn-ghost:hover{background:var(--navy); color:var(--white);}
.btn-gold{background:var(--gold); color:var(--navy-deep);}
.btn-gold:hover{background:var(--gold-light);}

/* Milestone path — signature SVG element */
.milestone-path{width:100%; height:auto;}
.milestone-path .route{fill:none; stroke:var(--line); stroke-width:2; stroke-dasharray:1 8; stroke-linecap:round;}
.milestone-path .node-ring{fill:var(--white); stroke:var(--gold); stroke-width:2;}
.milestone-path .node-dot{fill:var(--gold);}
.milestone-path .node-final{fill:var(--navy);}
.milestone-path text{font-family:var(--body); font-size:11px; fill:var(--stone); font-weight:600;}
.milestone-path .final-label{fill:var(--navy); font-weight:700;}

/* =========================== SECTION SHELLS =========================== */
.section{padding:76px 0;}
.section-tight{padding:52px 0;}
.section-alt{background:var(--mist);}
.section-navy{background:var(--navy); color:#dfe6f0;}
.section-navy h2, .section-navy h3{color:var(--white);}
.section-head{max-width:640px; margin-bottom:40px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem); margin-top:.35em;}
.section-head p{color:var(--stone);}

/* ---------- Cards / grids ---------- */
.grid{display:grid; gap:24px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:860px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} .grid-2{grid-template-columns:1fr;}}
@media (max-width:560px){.grid-3,.grid-4,.grid-2{grid-template-columns:1fr;}}

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{box-shadow:0 16px 32px rgba(11,37,69,.08); transform:translateY(-2px);}
.card h3{font-size:1.2rem; margin-bottom:.3em;}
.card .meta{font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:.6em; display:block;}
.card p{color:var(--stone); font-size:.95rem; margin-bottom:.6em;}
.card a.card-link{font-weight:700; color:var(--navy); border-bottom:1px solid var(--gold);}

/* ---------- Numbered / lettered index for syllabus etc. ---------- */
.index-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border:1px solid var(--gold); color:var(--gold);
  font-family:var(--display); font-weight:700; border-radius:50%; flex:none; font-size:.95rem;
}
.topic-row{display:flex; gap:14px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--line);}
.topic-row:last-child{border-bottom:none;}
.topic-row p{margin:0; padding-top:4px;}

/* ---------- Tabs (stage switch: Prelims / Mains / Interview) ---------- */
.tabs{display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; border-bottom:1px solid var(--line);}
.tab-btn{
  background:none; border:none; padding:12px 4px; margin-right:22px; font-weight:700; color:var(--stone);
  cursor:pointer; border-bottom:2px solid transparent; font-family:var(--body); font-size:.95rem;
}
.tab-btn.active, .tab-btn:hover{color:var(--navy); border-color:var(--gold);}
.tab-panel{display:none;}
.tab-panel.active{display:block;}

/* ---------- Paper accordion card ---------- */
.paper-card{border:1px solid var(--line); border-radius:var(--radius); margin-bottom:16px; background:var(--white);}
.paper-card summary{
  list-style:none; cursor:pointer; padding:18px 22px; display:flex; align-items:center; gap:16px;
  font-family:var(--display); font-weight:600; font-size:1.15rem; color:var(--navy);
}
.paper-card summary::-webkit-details-marker{display:none;}
.paper-card summary::after{
  content:"+"; margin-left:auto; font-size:1.4rem; color:var(--gold); font-family:var(--body); font-weight:400;
}
.paper-card[open] summary::after{content:"–";}
.paper-card .paper-body{padding:0 22px 20px 22px;}

/* ---------- Language toggle chip (kept for future bilingual use) ---------- */
.chip-row{display:flex; gap:10px; margin-bottom:22px;}
.chip{border:1px solid var(--navy); color:var(--navy); font-size:.82rem; font-weight:700; padding:6px 14px; border-radius:20px;}
.chip.active{background:var(--navy); color:var(--white);}

/* ---------- Book / resource list rows ---------- */
.book-row{
  display:flex; align-items:center; gap:16px; padding:16px 20px; border:1px solid var(--line);
  border-radius:var(--radius); margin-bottom:12px; background:var(--white);
}
.book-row .class-tag{
  font-family:var(--display); font-weight:700; color:var(--gold); font-size:1rem; width:78px; flex:none;
}
.book-row .subject{font-weight:600; color:var(--navy);}
.book-row .lang{font-size:.78rem; color:var(--stone);}
.book-row .dl{margin-left:auto; font-weight:700; color:var(--navy); border:1px solid var(--gold); padding:8px 16px; white-space:nowrap;}
.book-row .dl:hover{background:var(--gold); color:var(--white);}
@media (max-width:640px){.book-row{flex-wrap:wrap;} .book-row .dl{margin-left:0;}}

/* ---------- Video embeds ---------- */
.video-frame{position:relative; padding-top:56.25%; background:var(--navy); border-radius:var(--radius); overflow:hidden;}
.video-frame iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}

/* ---------- Testimonials ---------- */
.testimonial-card{background:var(--white); border-left:3px solid var(--gold); padding:26px 28px; border:1px solid var(--line); border-left-width:3px;}
.testimonial-card q{font-family:var(--display); font-style:italic; font-size:1.15rem; color:var(--navy); display:block; margin-bottom:14px;}
.testimonial-card .who{font-weight:700; color:var(--navy);}
.testimonial-card .where{color:var(--stone); font-size:.85rem;}

/* ---------- Forms ---------- */
.form-field{margin-bottom:18px;}
.form-field label{display:block; font-weight:600; font-size:.88rem; color:var(--navy); margin-bottom:6px;}
.form-field input, .form-field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius);
  font-family:var(--body); font-size:.96rem; background:var(--white); color:var(--ink);
}
.form-field input:focus, .form-field textarea:focus{border-color:var(--gold);}
.form-msg{padding:14px 18px; border-radius:var(--radius); margin-bottom:20px; font-weight:600;}
.form-msg.success{background:#eaf5ee; color:var(--emerald); border:1px solid #bfe3cc;}
.form-msg.error{background:#fdecec; color:#a33; border:1px solid #f3c6c6;}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-deep); color:#b8c4d6; padding:56px 0 24px;}
.site-footer h4{color:var(--white); font-family:var(--body); font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:16px;}
.site-footer a{color:#b8c4d6;}
.site-footer a:hover{color:var(--gold-light);}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px;}
@media (max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:20px; font-size:.82rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}
.footer-brand .en{font-family:var(--display); color:var(--white); font-size:1.3rem; font-weight:700;}
.footer-li{margin-bottom:10px; font-size:.92rem;}

/* ---------- Breadcrumb / page header ---------- */
.page-hero{background:var(--mist); border-bottom:1px solid var(--line); padding:44px 0;}
.page-hero .eyebrow{margin-bottom:10px;}
.page-hero h1{font-size:clamp(1.8rem,3vw,2.6rem);}
.page-hero p{color:var(--stone); max-width:60ch;}

/* ---------- Admin (shared minimal look) ---------- */
.admin-body{background:var(--mist); font-family:var(--body); color:var(--ink);}
.admin-shell{display:flex; min-height:100vh;}
.admin-sidebar{width:230px; background:var(--navy-deep); color:#cfd9e6; padding:24px 0; flex:none;}
.admin-sidebar .brand{color:var(--white); padding:0 20px 20px; font-family:var(--display); font-size:1.2rem; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:12px;}
.admin-sidebar a{display:block; padding:11px 20px; font-size:.9rem; font-weight:600; color:#cfd9e6;}
.admin-sidebar a:hover, .admin-sidebar a.active{background:rgba(255,255,255,.06); color:var(--gold-light); border-left:3px solid var(--gold);}
.admin-main{flex:1; padding:32px;}
.admin-card{background:var(--white); border:1px solid var(--line); padding:24px; border-radius:var(--radius); margin-bottom:24px;}
.admin-table{width:100%; border-collapse:collapse;}
.admin-table th, .admin-table td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; font-size:.9rem;}
.admin-table th{color:var(--stone); font-weight:700; text-transform:uppercase; font-size:.72rem; letter-spacing:.08em;}
.btn-small{padding:6px 12px; font-size:.8rem; border-radius:var(--radius); font-weight:700; cursor:pointer; border:1px solid var(--line); background:var(--white);}
.btn-danger{color:#a33; border-color:#f0c3c3;}
.login-shell{min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--mist);}
.login-box{background:var(--white); border:1px solid var(--line); padding:40px; width:100%; max-width:380px;}
