/* ===========================================================
   Vidyanta Classes — Design System
   Palette: academic navy / achievement gold / paper off-white
   Type: slab-serif headings, sans body, mono for scores & stats
   =========================================================== */

:root {
  --navy: #1B2A4A;
  --navy-dark: #121d33;
  --navy-light: #2b3f68;
  --gold: #D9A441;
  --gold-dark: #b5842e;
  --paper: #F7F5F0;
  --paper-dark: #eeeadf;
  --ink: #2B2B2B;
  --green: #3D7A5C;
  --teal: #2f6f6b;

  --badge-cuet: var(--gold-dark);
  --badge-jee-main: var(--navy);
  --badge-jee-advanced: #0f1a30;
  --badge-isi: var(--teal);
  --badge-neet: var(--green);

  --font-heading: Georgia, 'Zilla Slab', 'Merriweather', 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', Inter, Arial, sans-serif;
  --font-mono: 'Courier New', ui-monospace, Consolas, monospace;

  --radius: 6px;
  --shadow-soft: 0 2px 10px rgba(27, 42, 74, 0.10);
  --shadow-lift: 0 8px 24px rgba(27, 42, 74, 0.16);
  --container-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.nums, .stat, .fee, .score, .rank {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title p {
  color: #565656;
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* Grid-paper texture — used sparingly, once per page area */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(27, 42, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 74, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-light); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand span { color: var(--gold); }
.brand:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: #e7e9f0;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta .btn { display: none; }
  .nav-cta .btn.nav-cta-mobile { display: inline-block; }
}
@media (min-width: 861px) {
  .nav-cta .btn.nav-cta-mobile { display: none; }
}

/* ---------------- Hero Slider ---------------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
  min-height: 420px;
}
.hero-slide {
  display: none;
  min-height: 420px;
  align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 70%);
}
.hero-slide.active { display: flex; }
.hero-slide-content { max-width: 640px; padding: 3rem 0; }
.hero-slide-content .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.hero-slide-content h1 { color: #fff; }
.hero-slide-content p { color: #d7dcea; font-size: 1.1rem; }

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: var(--gold); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,0.24); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
@media (max-width: 600px) {
  .hero-arrow { display: none; }
}

/* ---------------- Search bar ---------------- */
.search-strip {
  background: var(--paper-dark);
  border-bottom: 1px solid rgba(27,42,74,0.08);
}
.search-form {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0;
  max-width: 640px;
  margin: 0 auto;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
}

/* ---------------- Form elements (shared) ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid #c9c4b6;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field.full { grid-column: 1 / -1; }

.form-note { font-size: 0.85rem; color: #6b6b6b; }

.field-invalid { border-color: #a4392b !important; }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.alert-success { background: #e4f2ea; color: var(--green); border: 1px solid var(--green); }
.alert-error { background: #fbe9e7; color: #a4392b; border: 1px solid #a4392b; }

/* ---------------- Badges (exam types) ---------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.badge-cuet-ug { background: var(--badge-cuet); }
.badge-jee-main { background: var(--badge-jee-main); }
.badge-jee-advanced { background: var(--badge-jee-advanced); }
.badge-isi-bstat { background: var(--badge-isi); }
.badge-neet { background: var(--badge-neet); }

/* ---------------- Filter tabs ---------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------------- Course cards (standard grid) ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.course-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.course-card .card-media {
  height: 150px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  overflow: hidden;
  padding: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card .card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.course-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.course-card .card-desc { color: #4c4c4c; font-size: 0.92rem; flex: 1; }
.course-card .card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #565656;
  border-top: 1px dashed #d8d3c5;
  padding-top: 0.6rem;
}

/* ---------------- Pricing / limited-time discount ---------------- */
.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.price-block .price-original {
  text-decoration: line-through;
  color: #8a8a8a;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.price-block .price-discounted {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}
.discount-badge {
  background: #a4392b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.discount-timer {
  font-size: 0.78rem;
  color: #a4392b;
  font-weight: 600;
}
.discount-timer.expired { color: #6b6b6b; }

/* ---------------- Admit-card / scorecard motif (signature element) ---------------- */
.admit-card {
  position: relative;
  background: #fffdf8;
  border: 1px solid #d8d3c5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.admit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27,42,74,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,42,74,0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.admit-card-media {
  height: 140px;
  overflow: hidden;
}
.admit-card-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admit-card-strip .roll-no::before { content: "Roll No. "; opacity: 0.7; }
.admit-card-seal {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  color: var(--navy);
  background: #fff8e8;
  margin: 1rem auto 0.5rem;
  transform: rotate(-8deg);
}
.admit-card-body {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1.25rem 1.5rem;
  text-align: center;
}
.admit-card-body h3 { margin-bottom: 0.3rem; }
.admit-card-body .card-desc { color: #4c4c4c; font-size: 0.92rem; }
.admit-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px dashed #d8d3c5;
  font-size: 0.85rem;
}
.admit-card-footer .price-block { order: 1; }
.admit-card-footer > a.btn { order: 2; }
.admit-card-footer .discount-timer { order: 3; flex-basis: 100%; }

/* Toppers / results strip — scorecard tiles */
.scorecard-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.scorecard {
  background: #fffdf8;
  border: 1px solid #d8d3c5;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.scorecard .scorecard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #d8d3c5;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.scorecard .rank {
  font-weight: 700;
  color: var(--green);
  font-size: 1.4rem;
}
.scorecard .rank::before { content: "AIR "; font-size: 0.7rem; color: #6b6b6b; font-family: var(--font-body); font-weight: 600; }
.scorecard .exam-tag { font-size: 0.7rem; text-transform: uppercase; color: #6b6b6b; font-weight: 700; }
.scorecard .student-name { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 0.2rem; }
.scorecard .score { color: var(--navy); font-weight: 700; }

/* ---------------- Test series tabs/cards ---------------- */
.test-series-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.test-series-card .card-media {
  height: 130px;
  overflow: hidden;
}
.test-series-card .test-series-body {
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.test-series-card .portal-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  font-weight: 700;
}
.test-series-card .price { font-weight: 700; color: var(--navy); }

/* ---------------- Blog cards ---------------- */
.blog-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.blog-card .card-media {
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.blog-card .card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card .meta { font-size: 0.8rem; color: #6b6b6b; }
.blog-card .category-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.03em;
}

/* ---------------- USP / Why Us ---------------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.usp-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.usp-item .usp-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------------- Subscribe + Enquiry (bottom of home) ---------------- */
.cta-block {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.cta-block h3 { color: #fff; }
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 1.25rem auto 0;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
}

.enquiry-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  border-top: 4px solid var(--gold);
}
.google-form-embed {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27,42,74,0.08);
}
.google-form-embed iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfd4e2;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a { color: #cfd4e2; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: #97a0bd;
}

/* ---------------- Misc utility ---------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.muted { color: #6b6b6b; }
.pagination { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

.breadcrumb { font-size: 0.85rem; color: #6b6b6b; margin-bottom: 1rem; }
.breadcrumb a { color: var(--navy); font-weight: 600; }

.sidebar-block {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-block + .sidebar-block { margin-top: 1.25rem; }

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .two-col-layout { grid-template-columns: 2fr 1fr; }
}

.highlight-list { padding-left: 1.2rem; }
.highlight-list li { margin-bottom: 0.5rem; }

.no-results { text-align: center; padding: 3rem 1rem; color: #6b6b6b; }
