/* ==========================================================================
   Kautilya Computer Center, Sikar — Modern CSS Design System
   Target: Vanilla CSS, Plain PHP 8.1, Lighthouse Mobile >= 95
   ========================================================================== */

:root {
  /* Brand Palettes */
  --brand-900: #14215C;
  --brand-700: #1E3A8A;
  --brand-500: #2F56C8;
  --brand-50:  #EEF2FF;

  /* Accent (Rajasthan Saffron) */
  --accent-600: #E07A00;
  --accent-500: #F59E0B;
  --accent-50:  #FFF7E6;

  /* Neutral Surface & Inks */
  --ink:     #0F172A;
  --body:    #334155;
  --muted:   #64748B;
  --line:    #E2E8F0;
  --surface: #F8FAFC;
  --white:   #FFFFFF;

  /* State / Semantic */
  --ok:     #15803D;
  --wa:     #25D366;
  --danger: #B91C1C;

  /* Radii & Shadows */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-full: 9999px;

  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  --sh-2: 0 10px 25px -5px rgba(20, 33, 92, 0.1), 0 8px 10px -6px rgba(20, 33, 92, 0.1);
  --sh-glow: 0 0 20px rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --tr-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 74px; /* Ensure sticky action bar never obscures content */
  }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--brand-500);
  text-decoration: none;
  transition: color var(--tr-fast);
}

a:hover {
  color: var(--brand-700);
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--tr-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-500);
}

/* Focus styles */
:focus-visible {
  outline: 2.5px solid var(--accent-500);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4vw + 1rem, 3.2rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.55rem);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}

.section {
  padding-block: clamp(40px, 6vw, 80px);
}

.section--alt {
  background-color: var(--surface);
}

.section--accent-soft {
  background-color: var(--accent-50);
}

.section-header {
  text-align: left;
  max-width: 780px;
  margin-inline: 0;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-header--center,
.text-center .section-header {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 8px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header .lead {
  color: var(--muted);
}

/* Flex / Grid Utilities */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 {
  grid-template-columns: 1fr;
}

.grid-cols-3 {
  grid-template-columns: 1fr;
}

.grid-cols-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Components: Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}

.btn-primary:hover {
  background-color: var(--brand-900);
  border-color: var(--brand-900);
  color: var(--white);
  box-shadow: var(--sh-1);
}

.btn-accent {
  background-color: var(--accent-600);
  color: var(--white);
  border-color: var(--accent-600);
}

.btn-accent:hover {
  background-color: #c96d00;
  border-color: #c96d00;
  color: var(--white);
  box-shadow: var(--sh-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-900);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--brand-500);
  background-color: var(--brand-50);
  color: var(--brand-900);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: var(--white);
  border-color: #128C7E;
}

.btn-whatsapp:hover {
  background-color: #075E54;
  border-color: #075E54;
  color: var(--white);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.05rem;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Components: Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.775rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.badge-free {
  background-color: #DCFCE7;
  color: var(--ok);
  border: 1px solid #86EFAC;
}

.badge-govt {
  background-color: #DBEAFE;
  color: var(--brand-700);
  border: 1px solid #93C5FD;
}

.badge-new {
  background-color: var(--accent-50);
  color: var(--accent-600);
  border: 1px solid #FDE68A;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
}

/* Nav Menu: Desktop */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: all var(--tr-fast);
}

.nav-link:hover {
  color: var(--brand-500);
  background-color: var(--brand-50);
}

.nav-link[aria-current="page"] {
  color: var(--brand-700);
  background-color: var(--brand-50);
  border-bottom: 2px solid var(--accent-500);
}

.header-action {
  display: none;
}

@media (min-width: 900px) {
  .header-action {
    display: inline-flex;
  }
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer (Without JS / Checkbox & Target Fallback support) */
@media (max-width: 899px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--brand-500);
    box-shadow: var(--sh-2);
    gap: 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  /* No-JS fallback via :target */
  #primary-nav:target {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(36px, 5vw, 68px);
  background: radial-gradient(circle at 80% 20%, #EEF2FF 0%, #FFFFFF 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 599px) {
  .hero-cta-cluster {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-cluster .btn {
    width: 100%;
  }
}

.hero-hindi-note {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--brand-900);
}

.hero-media {
  position: relative;
}

.hero-picture {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--white);
  padding: 10px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-lg) - 4px);
  display: block;
}

@media (max-width: 899px) {
  .hero-picture {
    padding: 8px;
    border-radius: var(--r);
  }
  .hero-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 35%;
    border-radius: var(--r-sm);
  }
}

/* --------------------------------------------------------------------------
   Cards: Course, Batch & Feature
   -------------------------------------------------------------------------- */
.card-course {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--sh-1);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}

.card-course:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-500);
}

.card-course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-course-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-course-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-course-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-course-title a:hover {
  color: var(--brand-500);
}

.card-course-summary {
  font-size: 0.95rem;
  color: var(--body);
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-course-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Batch Row */
.batch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-1);
  transition: border-color var(--tr-fast);
}

@media (min-width: 640px) {
  .batch-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.batch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.batch-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--muted);
}

/* Feature Item ("Why Kautilya") */
.feature-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-1);
}

.feature-box-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-50);
  color: var(--accent-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-box h3 {
  font-size: 1.15rem;
}

.feature-box p {
  color: var(--body);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Women Scheme Banner
   -------------------------------------------------------------------------- */
.women-scheme-card {
  background: linear-gradient(135deg, #FFF7E6 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--sh-1);
}

.women-scheme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .women-scheme-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   FAQ Accordion (<details>)
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 840px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}

.faq-item[open] {
  border-color: var(--brand-500);
  box-shadow: var(--sh-1);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-500);
  transition: transform var(--tr-fast);
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 22px 20px 22px;
  color: var(--body);
  line-height: 1.75;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-700);
}

.breadcrumb-separator {
  color: var(--line);
}

/* --------------------------------------------------------------------------
   Prose (Article / Page Content)
   -------------------------------------------------------------------------- */
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body);
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(47, 86, 200, 0.15);
  outline: none;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--brand-900);
  color: #CBD5E1;
  padding-top: clamp(40px, 6vw, 68px);
  padding-bottom: 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-nap {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #94A3B8;
}

.footer-nap strong {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748B;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Mobile Sticky Action Bar (< 768px)
   -------------------------------------------------------------------------- */
.mobile-action-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    z-index: 999;
  }

  .mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.775rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--ink);
    text-decoration: none;
    border-right: 1px solid var(--line);
  }

  .mobile-action-btn:last-child {
    border-right: none;
  }

  .mobile-action-btn--wa {
    color: #128C7E;
    background: #F0FDF4;
  }

  .mobile-action-btn--primary {
    color: var(--accent-600);
    background: var(--accent-50);
  }
}

/* --------------------------------------------------------------------------
   Additional Polish Utilities (Replacing inline styles)
   -------------------------------------------------------------------------- */
.batches-stack {
  max-width: 920px;
  margin-inline: auto;
}

.batch-timing {
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 599px) {
  .batch-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .batch-note-sep {
    display: none;
  }
}

.card-course-icon svg,
.feature-box-icon svg {
  width: 24px;
  height: 24px;
}

.card-course-badges {
  gap: 6px;
}

.course-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.section-action {
  text-align: center;
  margin-top: 40px;
}

.women-scheme-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.women-scheme-subtitle {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.women-scheme-eligibility {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.women-scheme-docs {
  font-size: 0.925rem;
  color: var(--body);
  margin-bottom: 14px;
}

.women-scheme-note {
  font-size: 0.9rem;
  color: var(--accent-600);
  font-weight: 600;
  margin-bottom: 0;
}

.women-scheme-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.women-scheme-cta .btn {
  width: 100%;
}

.visit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--sh-1);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.visit-content h2 {
  margin-bottom: 14px;
}

.visit-content .lead {
  margin-bottom: 16px;
}

.visit-nap {
  gap: 8px;
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 24px;
}

.visit-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  text-align: center;
}

.visit-aside-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.visit-aside-icon svg {
  width: 28px;
  height: 28px;
}

.visit-aside h3 {
  margin-bottom: 8px;
}

.visit-aside-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.visit-aside-note {
  font-size: 0.9rem;
  color: var(--body);
}

.footer-directions-btn {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.footer-social-list {
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   Preview Ribbon (Staging Switch)
   -------------------------------------------------------------------------- */
.preview-ribbon {
  background-color: #FEF3C7;
  color: #92400E;
  border-bottom: 1px solid #FCD34D;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.preview-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-ribbon-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #92400E;
  cursor: pointer;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   Section Background Utilities & Helpers
   -------------------------------------------------------------------------- */
.section-surface {
  background-color: var(--surface);
}

.section-white {
  background-color: var(--white);
}

.section-header-split {
  margin-bottom: 24px;
}

.section-header-split .section-header {
  margin-bottom: 0;
}

.text-ok {
  color: var(--ok);
}

.icon-sm {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Breadcrumbs Component
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  padding: 12px 0;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-700);
}

.breadcrumb-separator {
  color: #CBD5E1;
  user-select: none;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero Section & Photo Collage
   -------------------------------------------------------------------------- */
.hero-section {
  padding-block: clamp(40px, 6vw, 72px);
  background-color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-title {
  font-size: clamp(2rem, 3.8vw + 1rem, 3.2rem);
  line-height: 1.18;
  color: var(--ink);
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  color: var(--body);
}

.hero-hindi-note {
  display: block;
  margin-top: 6px;
  color: var(--brand-700);
  font-weight: 500;
}

.hero-trust-row {
  margin-top: 24px;
  gap: 12px 20px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-collage {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}

.hero-main-photo-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--surface);
}

@media (max-width: 899px) {
  .hero-main-photo-wrap {
    aspect-ratio: 4 / 3;
  }
}

.hero-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-sub-photo {
  position: absolute;
  border-radius: 16px;
  border: 4px solid var(--white);
  box-shadow: var(--sh-2);
  overflow: hidden;
  z-index: 2;
  background: var(--surface);
}

.hero-sub-photo-left {
  bottom: 12%;
  left: -20px;
  width: 210px;
  height: 155px;
}

.hero-sub-photo-bottom {
  bottom: -16px;
  right: 6%;
  width: 175px;
  height: 130px;
}

@media (max-width: 899px) {
  .hero-sub-photo {
    display: none;
  }
}

.hero-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Notices Scroll Strip (Home Section 2)
   -------------------------------------------------------------------------- */
.notices-scroll-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.notices-strip-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (max-width: 639px) {
  .notices-strip-item {
    flex: 0 0 220px;
  }
}

/* --------------------------------------------------------------------------
   Result Band (Home Section 3)
   -------------------------------------------------------------------------- */
.section-result-band {
  background-color: var(--brand-900);
  color: var(--white);
  padding: clamp(40px, 6vw, 64px) 0;
}

.result-eyebrow {
  display: inline-block;
  color: var(--accent-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.result-band-title {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.result-stats-grid {
  gap: 24px;
  margin-bottom: 28px;
}

.result-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent-500);
  line-height: 1;
  font-family: var(--font-heading);
}

.result-stat-label {
  font-size: 1rem;
  color: #CBD5E1;
  margin-top: 6px;
  font-weight: 500;
}

.result-band-footer {
  gap: 16px;
  flex-wrap: wrap;
}

.result-running-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   Batches Timetable (Home Section 4)
   -------------------------------------------------------------------------- */
.batches-timetable {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.timetable-head {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.timetable-row {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 16px;
  transition: background var(--tr-fast);
}

.timetable-row:last-child {
  border-bottom: none;
}

.timetable-row:hover {
  background: var(--surface);
}

.timing-bold {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-900);
  font-family: var(--font-heading);
}

.batch-name {
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
}

.batch-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .timetable-head {
    display: none;
  }
  .timetable-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Courses Section with Photos (Home Section 5)
   -------------------------------------------------------------------------- */
.card-course-photo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.card-course-photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.course-photo-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.course-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.course-photo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.course-card-title a {
  color: inherit;
  text-decoration: none;
}

.course-card-title a:hover {
  color: var(--brand-700);
}

.course-card-summary {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Why Kautilya: 3 Alternating Rows (Home Section 6)
   -------------------------------------------------------------------------- */
.why-rows {
  gap: clamp(32px, 5vw, 64px);
}

.why-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .why-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .why-row.why-row-reverse .why-photo-col {
    order: 2;
  }
  .why-row.why-row-reverse .why-text-col {
    order: 1;
  }
}

.why-photo-col {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.why-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-row-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--brand-900);
}

.why-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.why-desc {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Free Women Scheme with Photo (Home Section 7)
   -------------------------------------------------------------------------- */
.women-scheme-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .women-scheme-flex {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }
}

.women-scheme-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--brand-900);
  font-weight: 700;
}

.women-scheme-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-600);
}

.women-scheme-facts {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
}

.women-scheme-photo-wrap {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  aspect-ratio: 4 / 3;
  background: var(--white);
}

.women-scheme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Lab Life Photo Grid (Home Section 9)
   -------------------------------------------------------------------------- */
.lab-life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .lab-life-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.lab-life-item {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  aspect-ratio: 4 / 3;
  background: var(--surface);
  transition: transform var(--tr-fast);
}

.lab-life-item:hover {
  transform: scale(1.02);
}

.lab-life-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Poster Card Component (.poster-card)
   -------------------------------------------------------------------------- */
.poster-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.poster-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
  color: inherit;
}

.poster-card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-card-media.fit-cover .poster-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card-media.fit-contain .poster-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poster-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  flex-grow: 1;
}

.poster-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.poster-card-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Poster Grid Component (.poster-grid)
   -------------------------------------------------------------------------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .poster-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Blog Index & Tag Controls
   -------------------------------------------------------------------------- */
.blog-controls {
  margin-top: 24px;
  max-width: 780px;
}

.search-form {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 6px 4px 14px;
  box-shadow: var(--sh-1);
  transition: border-color var(--tr-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--brand-500);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.search-submit-btn {
  flex-shrink: 0;
}

.topic-chips-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.topic-chips-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  display: block;
}

.featured-post-section {
  margin-bottom: 32px;
}

.topic-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .topic-chips-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all var(--tr-fast);
}

.category-chip:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.chip-count {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Featured Card (Page 1 Only) */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--tr-smooth);
}

@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 4fr 6fr;
    align-items: center;
    gap: 32px;
  }
}

.featured-card:hover {
  box-shadow: var(--sh-2);
  color: inherit;
}

.featured-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0F172A;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 24px;
}

.featured-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1.3;
}

.featured-excerpt {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.65;
}

/* Pagination (44px tap targets) */
.pagination-nav {
  margin-top: 36px;
  gap: 8px;
}

.page-btn,
.page-num {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brand-900);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--tr-fast);
}

.page-btn:hover,
.page-num:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
}

.page-num.active {
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Blog Post Detail Page Layout (/blog/{slug})
   -------------------------------------------------------------------------- */
.post-detail-container {
  max-width: 1200px;
  padding-top: 16px;
  padding-bottom: 64px;
}

.post-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .post-grid-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 48px;
    align-items: start;
  }
}

.post-header-area {
  order: 1;
}

@media (min-width: 1024px) {
  .post-header-area {
    grid-column: 2;
    grid-row: 1;
    order: unset;
  }
}

.post-poster-col {
  order: 2;
}

@media (min-width: 1024px) {
  .post-poster-col {
    grid-column: 1;
    grid-row: 1 / 3;
    position: sticky;
    top: 96px;
    order: unset;
  }
}

.post-poster {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  background: var(--surface);
  margin: 0;
}

@media (max-width: 1023px) {
  .post-poster {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.post-poster-img {
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  .post-poster-img {
    max-height: 72vh;
    object-fit: contain;
  }
}

.post-poster-caption {
  padding: 10px 14px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.poster-full-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-500);
}

.poster-full-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.post-body-col {
  order: 3;
}

@media (min-width: 1024px) {
  .post-body-col {
    grid-column: 2;
    grid-row: 2;
    order: unset;
  }
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink);
  margin-block: 8px 12px;
}

.post-meta-line {
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  color: #CBD5E1;
}

/* Readable Body (.prose) */
.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(15, 23, 42, 0.9);
  max-width: 68ch;
}

@media (min-width: 768px) {
  .prose {
    font-size: 1.125rem;
  }
}

.prose p {
  margin-bottom: 1em;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.2em 0 0.6em;
  border-left: 4px solid var(--accent-600);
  padding-left: 12px;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--brand-500);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--brand-700);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.prose figure {
  width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  overflow: hidden;
}

.prose figure.embed {
  aspect-ratio: 16 / 9;
  position: relative;
}

.prose figure.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.prose .post-contact {
  background: var(--brand-50);
  border-left: 4px solid var(--brand-500);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 24px 0;
}

.prose .post-contact p {
  margin-bottom: 4px;
  font-weight: 500;
}

.prose .post-contact .post-contact-title,
.prose .post-contact p:first-child strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.prose .post-contact p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.prose th {
  background: var(--surface);
}

/* Post FAQs Section (Brief §3) */
.post-faqs-section {
  width: 100%;
  max-width: 68ch;
  margin-top: 48px;
}

/* The home .faq-list centres itself; in the post column it must fill the width. */
.post-faqs-section .faq-list {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.post-faqs-section + .post-cta-card {
  margin-top: 32px;
}

.post-faqs-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 20px;
}

/* FAQ Accordion Details Cards */
.faq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}

.faq-card[open] {
  background: var(--brand-50);
  border-color: #C7D2FE;
}

.faq-card-summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.faq-card-summary::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-500);
}

details[open] .faq-toggle-icon::after {
  content: "−";
}

.faq-card-content {
  margin-top: 12px;
  color: var(--body);
  line-height: 1.7;
}

/* Post CTA Card */
.post-cta-card {
  background: var(--brand-900);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
}

.post-tags-container {
  margin-top: 24px;
}

.cta-card-title {
  color: var(--white);
  font-size: 1.35rem;
}

.cta-card-lead {
  color: #CBD5E1;
  font-size: 1rem;
}

/* Post Navigation Cards (Prev / Next) */
.post-nav-cards {
  gap: 16px;
}

.nav-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--tr-fast);
}

.nav-card:hover {
  border-color: var(--brand-500);
  color: inherit;
}

.nav-card-thumb {
  width: 72px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0F172A;
}

.nav-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-card-dir {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.nav-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-posts-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Task 004: Course Catalog, Course Detail, Batches & Schemes, Gallery & Contact
   -------------------------------------------------------------------------- */

/* Category Chips Horizontal Scroll-Snap (Courses & Blog) */
.category-chips-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.category-chips-scroll .category-chip {
  scroll-snap-align: start;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Course Detail: Two-Column Hero */
.course-hero-header {
  background: var(--surface);
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--line);
}

.course-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .course-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.course-hero-title {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  line-height: 1.25;
  color: var(--ink);
}

.course-hero-photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--sh-2);
  background: var(--line);
}

.course-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Course Layout: Main & Sticky Sidebar */
.course-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .course-layout-grid {
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
  }

  .course-sidebar-col .sticky-card {
    position: sticky;
    top: 96px;
  }
}

.sticky-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh-1);
}

.sticky-card-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.fee-highlight {
  color: var(--accent-600);
}

.sidebar-address-hint {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.poster-grid-course {
  margin-top: 16px;
}

/* Course Section Spacing and Curriculum Lists (Brief §4) */
.course-section {
  margin-top: 48px;
}

.course-main-col > .course-section:first-child {
  margin-top: 0;
}

.course-section .section-header {
  margin-bottom: 16px;
}

.course-section .section-header h2 {
  margin-bottom: 0;
}

.course-section#enquiry {
  margin-top: 48px;
}

.checklist-grid,
.highlights-list {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: grid;
  gap: 12px;
}

.checklist-item,
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  list-style: none !important;
  list-style-type: none !important;
}

.checklist-item .check-icon {
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
}

.highlight-item .bullet-star {
  color: var(--accent-600);
  flex-shrink: 0;
}

/* Batches: Timetable with Poster Thumbnails */
.batches-timetable-full .td-batch {
  flex: 1;
}

.batch-detail-flex {
  gap: 16px;
}

.batch-poster-thumb-link {
  flex-shrink: 0;
  display: block;
  width: 52px;
  height: 65px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform var(--tr-fast);
}

.batch-poster-thumb-link:hover {
  transform: scale(1.04);
}

.batch-poster-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-chip-xs {
  font-size: 0.75rem;
  padding: 2px 8px;
}

.batch-timing-notice {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--r-sm);
  border-left: 4px solid var(--accent-600);
  font-size: 0.95rem;
}

/* Women Scheme Landing Page */
.page-hero-two-col {
  background: var(--surface);
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--line);
}

.women-hero-photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.women-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preference-highlight-card {
  background: var(--white);
  border: 2px solid var(--brand-500);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh-1);
}

.pref-center-title {
  font-weight: 600;
  color: var(--ink);
}

.pref-mono-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-900);
}

.help-box-card {
  background: var(--brand-50);
  border: 1px solid var(--brand-500);
  border-radius: var(--r);
  padding: 28px 24px;
  margin-top: 28px;
}

.scheme-poster-wrap {
  max-width: 300px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.eligibility-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  text-align: left;
}

.eligibility-table th,
.eligibility-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.eligibility-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}

.docs-checklist-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
}

/* Gallery Section Tabs & Masonry Columns */
.gallery-tabs-wrap {
  gap: 12px;
  margin-top: 24px;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--tr-fast);
}

.gallery-tab:hover {
  border-color: var(--brand-500);
  color: var(--brand-900);
}

.gallery-tab.is-active {
  background: var(--brand-900);
  color: var(--white);
  border-color: var(--brand-900);
}

.gallery-tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
}

.gallery-tab.is-active .gallery-tab-count {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-masonry {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 640px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
}

/* About Page Photo-Led Hero */
.about-hero-section {
  padding: 36px 0 20px;
}

.about-hero-image-wrap {
  margin-top: 24px;
}

.about-hero-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  position: relative;
}

.about-hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-hero-caption {
  padding: 10px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Contact NAP Combo Card with Classroom Photo */
.contact-nap-combo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh-1);
}

.contact-nap-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .contact-nap-flex {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 24px;
  }
}

.contact-nap-photo-wrap {
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
  background: var(--surface);
}

.contact-nap-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.contact-photo-caption {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 10px;
  background: var(--surface);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Screen Reader Only / Honeypot Hidden
   -------------------------------------------------------------------------- */
.sr-only,
.sr-only-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Contact Page Layout Grid
   -------------------------------------------------------------------------- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form-col {
  position: relative;
}

/* --------------------------------------------------------------------------
   Enquiry Form Card & Form Controls
   -------------------------------------------------------------------------- */
.enquiry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--sh-1);
}

.enquiry-header {
  margin-bottom: 20px;
}

.enquiry-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 6px;
}

.enquiry-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-label .required {
  color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(47, 86, 200, 0.15);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
  background: #FFFBFB;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin: 2px 0 0;
}

/* --------------------------------------------------------------------------
   Alerts (Success & Danger)
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.alert-success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-left: 4px solid var(--ok);
  color: #14532D;
}

.alert-success .alert-icon {
  color: var(--ok);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
}

.alert-success h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532D;
  margin: 0 0 6px;
}

.alert-success p {
  margin: 0 0 12px;
  color: #166534;
}

.alert-action {
  margin-top: 10px;
}

.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--danger);
  color: #7F1D1D;
}

.alert-danger p {
  margin: 0;
  color: #991B1B;
}

/* Callout Card (Women Scheme & Highlights) */
.callout-card {
  background: var(--accent-50);
  border-left: 4px solid var(--accent-600);
  border-radius: 0 16px 16px 0;
  padding: 24px;
  margin-bottom: 48px;
}

.callout-card .callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.callout-card .callout-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.callout-card .callout-header svg {
  width: 22px;
  height: 22px;
  color: var(--accent-600);
  flex-shrink: 0;
}

.callout-card .callout-main-text {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.callout-card .callout-sub {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Contact Map */
.map-container {
  width: 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

.map-iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px 16px 0 0;
  display: block;
  background: var(--surface);
}

.map-link-wrap {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.map-directions-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-directions-link:hover {
  color: var(--brand-900);
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
