/* ============================================
   Your Coaching Institute — Demo Website
   Design tokens
   ============================================ */
:root {
  --navy: #1E3A5F;
  --navy-deep: #142940;
  --amber: #D98E36;
  --amber-light: #F0B968;
  --cream: #F7F4ED;
  --slate: #E8EBF0;
  --charcoal: #2B2B2B;
  --ink-soft: #5A6472;
  --green: #3F7A52;
  --white: #FFFFFF;
  --border: #DBD5C7;

  --serif: "Lora", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 16px rgba(20, 41, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 41, 64, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy-deep); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-deep); }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--navy-deep);
  color: var(--slate);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--amber-light); }
.topbar .topbar-links { display: flex; gap: 18px; }

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo .logo-mark {
  background: var(--navy);
  color: var(--amber-light);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-right: 6px;
}
.logo .logo-sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}
nav.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--amber);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-deep);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,142,54,0.18), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: 2.7rem; color: var(--white); margin: 14px 0 18px; }
.hero h1 em { color: var(--amber-light); font-style: normal; }
.hero p.lede { font-size: 1.08rem; color: #C9D3DE; max-width: 480px; margin-bottom: 30px; }
.hero .eyebrow { color: var(--amber-light); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Rank-card signature element */
.rank-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  color: var(--charcoal);
  transform: rotate(-1.2deg);
  position: relative;
}
.rank-card::before {
  content: "RESULT CARD";
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
}
.rank-card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1.5px dashed var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.rank-card-header .name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.rank-card-header .roll { font-size: 0.78rem; color: var(--ink-soft); }
.rank-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--slate);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .label { color: var(--ink-soft); }
.rank-row .value { font-weight: 700; color: var(--navy); }
.rank-row .value.green { color: var(--green); }

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-num span { color: var(--amber); }
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Section generic ===== */
section { padding: 76px 0; }
.section-alt { background: var(--slate); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 2rem; margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.02rem; }

/* ===== Cards grid (programs) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.prog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.prog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prog-card .tag {
  display: inline-block;
  background: var(--slate);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.prog-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.prog-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; }
.prog-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--slate);
  padding-top: 14px;
  margin-top: auto;
}
.prog-card .price { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.prog-card .price small { font-size: 0.75rem; color: var(--ink-soft); font-weight: 400; }
.prog-card ul { list-style: none; margin: 14px 0; padding: 0; }
.prog-card ul li { font-size: 0.88rem; color: var(--charcoal); padding: 4px 0; padding-left: 20px; position: relative; }
.prog-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ===== Faculty ===== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
}
.faculty-photo {
  height: 180px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
}
.faculty-info { padding: 18px; }
.faculty-info h4 { font-size: 1.02rem; margin-bottom: 4px; }
.faculty-info .role { color: var(--amber); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.faculty-info .desc { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Timeline / why-us ===== */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-item { text-align: left; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.feature-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Testimonials ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.testi-card p.quote { font-size: 0.95rem; color: var(--charcoal); margin-bottom: 18px; font-style: italic; }
.testi-who { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.testi-who .tname { font-weight: 700; font-size: 0.9rem; }
.testi-who .trole { font-size: 0.78rem; color: var(--ink-soft); }

/* ===== Results table ===== */
.results-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.results-table { width: 100%; border-collapse: collapse; }
table.results-table th {
  background: var(--navy-deep);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
table.results-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate);
  font-size: 0.93rem;
}
table.results-table tr:last-child td { border-bottom: none; }
table.results-table tr:nth-child(even) { background: var(--cream); }
.score-pill {
  display: inline-block;
  background: rgba(63,122,82,0.12);
  color: var(--green);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: #C9D3DE; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Page header (sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 50px 0 56px;
  text-align: center;
}
.page-header .eyebrow { color: var(--amber-light); }
.page-header h1 { color: var(--white); font-size: 2.2rem; margin-top: 10px; }
.breadcrumb { font-size: 0.85rem; color: #B7C2CE; margin-top: 12px; }
.breadcrumb a { color: var(--amber-light); }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 0;
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 26px;
  border-bottom: 1px solid var(--slate);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--slate);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-row h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-row p, .contact-row a { font-size: 0.9rem; color: var(--ink-soft); }
.map-embed {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 220px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-deep);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--cream);
  transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy-deep);
}
.faq-q .plus { color: var(--amber); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 300px; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy-deep);
  color: #C9D3DE;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: #A9B6C4; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--amber-light); }
.footer-logo { font-family: var(--serif); color: var(--white); font-size: 1.3rem; margin-bottom: 14px; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #8093A3;
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  font-size: 1.7rem;
  color: white;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rank-card { transform: none; max-width: 360px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav.open ul { flex-direction: column; gap: 4px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
