/*
Theme Name: IAS Vision
Theme URI: https://iasvision.com
Author: Sudip Palodhi
Author URI: sudippalodhi.online
Description: Custom WordPress theme for IAS Vision - Best IAS Coaching in Kolkata. A classic PHP template theme converted from the approved static HTML/CSS/JS site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iasvision
Tags: education, custom-logo, custom-menu, featured-images
*/

/*
 * NOTE: Add a 1200x900 screenshot.png in this theme directory
 * for the WordPress theme preview thumbnail in Appearance > Themes.
 */

/* ========== RESET CSS ========== */
/* Modern CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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


/* ========== MAIN STYLES ========== */
/*
  Responsiveness audit fixes:
  - Added root clamp() type scale and global media sizing to reduce layout shift.
  - Hardened mobile tap targets, focus states, fixed action spacing, and horizontal overflow guards.
  - Kept batch table stacked on mobile and comparison table horizontally scrollable as originally specified.
*/
/* mobile: default, tablet: min-width 768px, desktop: min-width 1024px */

:root {
  --color-navy: #0b1f3a;
  --color-red: #d72638;
  --color-white: #ffffff;
  --color-bg-light: #f4f5fb;
  --color-text-dark: #1d2433;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --text-xs: clamp(0.78rem, 0.74rem + 0.18vw, 0.84rem);
  --text-sm: clamp(0.86rem, 0.82rem + 0.2vw, 0.94rem);
  --text-md: clamp(0.95rem, 0.9rem + 0.24vw, 1rem);
  --text-lg: clamp(1.08rem, 1rem + 0.38vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 2vw, 3rem);
  --text-hero: clamp(2rem, 1.35rem + 3.5vw, 3.35rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 3.5rem;
  --space-8: 4rem;
}

body {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: var(--text-md);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-navy);
  font-family: var(--font-heading);
  line-height: 1.2;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgb(215 38 56 / 0.18);
}

.container {
  width: min(100% - var(--space-4), var(--container-width));
  margin-inline: auto;
}

.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 14px rgb(11 31 58 / 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
  min-height: 76px;
}

.site-logo,
.footer-logo {
  color: var(--color-navy);
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  text-transform: uppercase;
}

.logo-mark {
  border-bottom: 2px solid var(--color-red);
  font-size: var(--text-lg);
}

.logo-mark::first-letter {
  color: var(--color-red);
}

.logo-phone {
  color: var(--color-navy);
  font-size: 0.9rem;
  margin-top: 0.28rem;
  text-align: center;
}

.desktop-nav {
  display: none;
}

.nav-link {
  align-items: center;
  color: var(--color-white);
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: 700;
  min-height: 44px;
  position: relative;
}

.nav-link.active {
  color: var(--color-red);
}

.nav-link.active::after {
  background-color: var(--color-red);
  bottom: -0.55rem;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 24px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: var(--space-1);
}

.phone-action,
.admission-action {
  align-items: center;
  border-radius: var(--radius-sm);
  display: none;
  font-size: var(--text-sm);
  font-weight: 800;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
}

.phone-action {
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.admission-action {
  background-color: var(--color-red);
  color: var(--color-white);
}

.phone-action svg,
.admission-action svg,
.drawer-close svg,
.footer-contact svg,
.whatsapp-float svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.phone-action svg,
.admission-action svg {
  height: 1rem;
  width: 1rem;
}

.menu-toggle {
  align-items: center;
  background-color: var(--color-navy);
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.menu-toggle span {
  background-color: var(--color-white);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 20px;
}

.drawer-overlay {
  background-color: rgb(0 0 0 / 0.45);
  inset: 0;
  position: fixed;
  z-index: 80;
}

.mobile-drawer {
  background-color: #273274;
  color: var(--color-white);
  height: 100vh;
  left: 0;
  max-width: 320px;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transform: translateX(-100%);
  transition: transform 200ms ease;
  width: min(82vw, 320px);
  z-index: 90;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-brand {
  align-items: center;
  background-color: var(--color-white);
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: var(--space-2);
}

.drawer-close {
  color: var(--color-navy);
  display: inline-grid;
  height: 44px;
  place-items: center;
  width: 44px;
}

.drawer-close svg {
  height: 1.7rem;
  width: 1.7rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-link,
.drawer-accordion {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: var(--color-white);
  display: flex;
  font-size: var(--text-sm);
  font-weight: 800;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.85rem var(--space-2);
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.drawer-accordion {
  background-color: rgb(0 0 0 / 0.04);
}

.drawer-accordion[aria-expanded="true"] {
  background-color: rgb(255 255 255 / 0.08);
}

.drawer-caret {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  display: inline-block;
  height: 0.5rem;
  margin-left: var(--space-1);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 0.5rem;
}

.drawer-accordion[aria-expanded="true"] .drawer-caret {
  transform: rotate(225deg);
}

.edge-tab {
  background-color: var(--color-red);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  position: fixed;
  right: -2.25rem;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center;
  z-index: 45;
}

.whatsapp-float {
  align-items: center;
  background-color: #20b455;
  border-radius: 50%;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  box-shadow: 0 10px 22px rgb(0 0 0 / 0.18);
  color: var(--color-white);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  position: fixed;
  right: var(--space-3);
  width: 48px;
  z-index: 45;
}

.whatsapp-float svg {
  fill: currentColor;
  stroke: none;
  height: 1.65rem;
  width: 1.65rem;
}

main {
  min-height: 35vh;
}

.btn {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
}

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

.btn-small {
  font-size: var(--text-xs);
  min-height: 44px;
  padding: 0.55rem 0.85rem;
}

.hero-section {
  background:
    radial-gradient(circle at 18% 28%, rgb(255 255 255 / 0.1) 0 2px, transparent 3px 100%),
    radial-gradient(circle at 72% 24%, rgb(255 255 255 / 0.08) 0 22px, transparent 23px 100%),
    linear-gradient(135deg, rgb(11 31 58 / 0.96), rgb(39 50 116 / 0.9)),
    var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  color: rgb(255 255 255 / 0.07);
  content: "ABC 123 % +";
  font-family: var(--font-heading);
  font-size: clamp(3rem, 20vw, 10rem);
  font-weight: 800;
  inset: 10% -5% auto auto;
  line-height: 1;
  position: absolute;
  transform: rotate(-8deg);
  white-space: nowrap;
}

.hero-content {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5);
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
}

.hero-pill {
  background-color: rgb(215 38 56 / 0.9);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  padding: 0.45rem 0.75rem;
}

.hero-copy h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 10vw, 3.35rem);
  margin-bottom: var(--space-2);
}

.hero-intro,
.hero-note {
  color: rgb(255 255 255 / 0.82);
  font-size: 1rem;
  font-weight: 600;
}

.hero-intro a,
.hero-note a {
  color: var(--color-red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-list {
  display: grid;
  gap: 0.75rem;
  margin-block: var(--space-3);
}

.hero-list li {
  align-items: flex-start;
  color: rgb(255 255 255 / 0.78);
  display: flex;
  font-weight: 700;
  gap: 0.65rem;
}

.hero-list li::before {
  background-color: var(--color-red);
  border-radius: 50%;
  color: var(--color-white);
  content: "✓";
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0.75rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  place-items: center;
  width: 1.2rem;
}

.hero-note {
  margin-bottom: var(--space-3);
}

.hero-media {
  align-items: end;
  display: flex;
  justify-content: center;
  min-height: 280px;
}

.hero-media img {
  aspect-ratio: 12 / 13;
  max-height: 380px;
  object-fit: contain;
  width: min(100%, 420px);
}

.hero-strip {
  background-color: #202a68;
  position: relative;
  z-index: 1;
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-strip a {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: var(--color-white);
  display: flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.75rem;
  min-height: 58px;
  padding-block: 0.9rem;
}

.hero-strip svg,
.course-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-strip svg {
  color: rgb(255 255 255 / 0.78);
  flex: 0 0 auto;
  height: 1.6rem;
  width: 1.6rem;
}

.priority-section {
  background-color: var(--color-bg-light);
  padding-block: var(--space-5);
}

.section-title {
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  margin-bottom: var(--space-4);
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.section-title::after {
  background-color: var(--color-red);
  bottom: -0.65rem;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 48px;
}

.course-grid {
  display: grid;
  gap: var(--space-2);
}

.course-card {
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.16);
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 210px;
}

.course-icon {
  align-items: center;
  background-color: #273274;
  color: var(--color-white);
  display: flex;
  justify-content: center;
  padding: var(--space-2);
}

.course-icon svg {
  height: 2.7rem;
  width: 2.7rem;
}

.course-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
}

.course-body h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.course-body p {
  color: #4f5b73;
  font-size: 0.86rem;
  line-height: 1.55;
}

.course-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.batches-section {
  background: linear-gradient(145deg, #172664, #4858da);
  color: var(--color-white);
  padding-block: var(--space-5);
}

.batches-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.batches-section h2 {
  color: var(--color-white);
  font-size: clamp(1.3rem, 6vw, 1.95rem);
  margin-bottom: var(--space-3);
  max-width: 720px;
  text-align: center;
  text-transform: uppercase;
}

.batch-table-card {
  width: min(100%, 760px);
}

.batch-table {
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  width: 100%;
}

.batch-table thead {
  display: none;
}

.batch-table tbody,
.batch-table tr,
.batch-table td {
  display: block;
  width: 100%;
}

.batch-table tr {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
  color: var(--color-text-dark);
  padding: var(--space-2);
}

.batch-table td {
  align-items: flex-start;
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
  padding-block: 0.45rem;
  text-align: right;
}

.batch-table td::before {
  color: var(--color-navy);
  content: attr(data-label);
  font-weight: 800;
  text-align: left;
}

.batches-section .btn {
  margin-top: var(--space-3);
}

.highlights-section {
  background-color: var(--color-white);
  padding-block: var(--space-5);
}

.section-subtitle {
  color: #5a6478;
  font-size: 0.95rem;
  margin: calc(var(--space-3) * -0.6) auto var(--space-4);
  max-width: 720px;
  text-align: center;
}

.highlights-grid {
  display: grid;
  gap: var(--space-2);
}

.highlight-card {
  align-items: flex-start;
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.16);
  border-radius: var(--radius-sm);
  display: grid;
  gap: var(--space-2);
  grid-template-columns: auto 1fr;
  min-height: 132px;
  padding: var(--space-2);
}

.highlight-badge {
  align-items: center;
  border: 2px solid rgb(11 31 58 / 0.18);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  position: relative;
  width: 54px;
}

.highlight-badge::after {
  background-color: var(--color-red);
  bottom: -2px;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  color: #5a6478;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.highlight-card a {
  align-items: center;
  color: var(--color-red);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 44px;
}

.difference-section {
  background-color: var(--color-white);
  padding-block: 0 var(--space-5);
}

.difference-heading {
  background-color: var(--color-red);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  display: table;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 auto var(--space-3);
  padding: 0.65rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.comparison-scroll {
  border: 1px solid rgb(11 31 58 / 0.16);
  border-radius: var(--radius-sm);
  box-shadow: inset -18px 0 18px -18px rgb(11 31 58 / 0.45);
  overflow-x: auto;
}

.comparison-table {
  background-color: var(--color-white);
  min-width: 720px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgb(11 31 58 / 0.12);
  padding: 0.9rem var(--space-2);
}

.comparison-table th {
  background-color: #1d2661;
  color: var(--color-white);
  font-size: 0.9rem;
  text-align: center;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  color: var(--color-text-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  width: 58%;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #eef1ff;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: var(--color-white);
}

.status {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.35rem;
  justify-content: center;
}

.status::before {
  border-radius: 50%;
  color: var(--color-white);
  display: inline-grid;
  font-size: 0.72rem;
  height: 1.1rem;
  place-items: center;
  width: 1.1rem;
}

.status-yes {
  color: #11833a;
}

.status-yes::before {
  background-color: #11833a;
  content: "\2713";
}

.status-no {
  color: var(--color-red);
}

.status-no::before {
  background-color: var(--color-red);
  content: "x";
}

.videos-section,
.reviews-section {
  background-color: var(--color-bg-light);
  padding-block: var(--space-5);
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.video-card {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgb(11 31 58 / 0.18), rgb(11 31 58 / 0.18)),
    #d9deee;
  border: 8px solid var(--color-white);
  box-shadow: 0 12px 30px rgb(11 31 58 / 0.16);
  display: block;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  width: min(100%, 520px);
}

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

.play-button {
  align-items: center;
  background-color: rgb(215 38 56 / 0.92);
  border-radius: 50%;
  color: var(--color-white);
  display: inline-flex;
  height: 58px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
}

.play-button svg {
  fill: currentColor;
  height: 2rem;
  margin-left: 0.2rem;
  width: 2rem;
}

.profile-section {
  background-color: var(--color-white);
  padding-block: var(--space-5);
}

.faculty-section {
  padding-top: 0;
}

.profile-grid,
.reviews-grid {
  display: grid;
  gap: var(--space-3);
}

.profile-card {
  align-items: center;
  border: 1px solid rgb(11 31 58 / 0.16);
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: var(--space-3);
  text-align: center;
}

.profile-card img,
.review-card img {
  background-color: #d9deee;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card img {
  border: 4px solid #273274;
  height: 96px;
  margin-bottom: var(--space-2);
  width: 96px;
}

.profile-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.review-card {
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgb(11 31 58 / 0.08);
  padding: var(--space-3);
  text-align: center;
}

.quote-icon {
  color: rgb(11 31 58 / 0.14);
  display: block;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.8;
}

.review-card p {
  color: #5a6478;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.stars {
  color: #f2b705;
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.review-card img {
  height: 68px;
  margin: 0 auto var(--space-1);
  width: 68px;
}

.review-card h3 {
  font-size: 0.95rem;
}

.review-card span:last-child {
  color: #7b8497;
  font-size: 0.78rem;
}

.about-snippet-section {
  background-color: var(--color-white);
  padding-block: var(--space-5);
}

.about-snippet-card {
  background-color: #f0f2ff;
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-4);
  overflow: hidden;
  padding: var(--space-3);
}

.about-snippet-copy h2 {
  color: var(--color-navy);
  font-size: 1.45rem;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.about-snippet-copy p {
  color: #4f5b73;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: var(--space-2);
}

.about-snippet-media {
  min-height: 240px;
  position: relative;
}

.about-snippet-media::before {
  background-color: #f5c7a7;
  border-radius: 50%;
  content: "";
  height: 220px;
  position: absolute;
  right: 4%;
  top: 0;
  width: 220px;
}

.about-image-main,
.about-image-small {
  background-color: #d9deee;
  border: 6px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgb(11 31 58 / 0.14);
  object-fit: cover;
  position: absolute;
}

.about-image-main {
  height: 190px;
  right: 0;
  top: 28px;
  width: 190px;
}

.about-image-small {
  bottom: 0;
  height: 110px;
  left: 5%;
  width: 110px;
}

.stats-row {
  display: grid;
  gap: var(--space-2);
}

.stats-row div {
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-align: center;
}

.stats-row strong {
  color: var(--color-navy);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
}

.stats-row span {
  color: #6a7386;
  font-size: 0.82rem;
  font-weight: 700;
}

.faq-section {
  background-color: var(--color-white);
  padding-block: var(--space-5) var(--space-7);
}

.faq-container {
  max-width: 840px;
}

.faq-list {
  border-top: 1px solid rgb(11 31 58 / 0.16);
}

.faq-item {
  border-bottom: 1px solid rgb(11 31 58 / 0.16);
}

.faq-question {
  align-items: center;
  color: var(--color-navy);
  display: flex;
  font-weight: 800;
  gap: var(--space-2);
  justify-content: space-between;
  padding: 1rem 0;
  text-align: left;
  width: 100%;
}

.faq-icon {
  border: 1px solid var(--color-red);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 24px;
  position: relative;
  width: 24px;
}

.faq-icon::before,
.faq-icon::after {
  background-color: var(--color-red);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  height: 2px;
  width: 10px;
}

.faq-icon::after {
  height: 10px;
  width: 2px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  display: none;
}

.faq-answer {
  color: #5a6478;
  font-size: 0.92rem;
  line-height: 1.65;
  padding: 0 0 var(--space-2);
}

.mobile-enroll {
  align-items: center;
  background-color: var(--color-red);
  border-radius: var(--radius-sm);
  bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  box-shadow: 0 10px 22px rgb(0 0 0 / 0.2);
  color: var(--color-white);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  left: var(--space-2);
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  position: fixed;
  z-index: 46;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  }

  .edge-tab {
    right: -2.45rem;
  }
}

.page-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 28%, rgb(255 255 255 / 0.1) 0 2px, transparent 3px 100%),
    radial-gradient(circle at 72% 24%, rgb(255 255 255 / 0.08) 0 22px, transparent 23px 100%),
    linear-gradient(135deg, rgb(11 31 58 / 0.96), rgb(39 50 116 / 0.9)),
    var(--color-navy);
  color: var(--color-white);
  display: flex;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.page-hero::before {
  color: rgb(255 255 255 / 0.06);
  content: "IAS VISION";
  font-family: var(--font-heading);
  font-size: clamp(3rem, 18vw, 9rem);
  font-weight: 800;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  white-space: nowrap;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 9vw, 3rem);
  position: relative;
}

.page-hero h1::after {
  background-color: var(--color-red);
  bottom: -0.75rem;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 52px;
}

.about-content-section {
  background-color: var(--color-white);
  padding-block: var(--space-5);
}

.about-content {
  max-width: 900px;
}

.about-kicker {
  color: var(--color-red);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.about-content h2 {
  color: var(--color-navy);
  font-size: clamp(1.35rem, 7vw, 2rem);
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: 0.65rem;
  position: relative;
  text-align: left;
  text-transform: uppercase;
}

.about-content h2:first-of-type {
  margin-top: 0;
}

.about-content h2::after {
  background-color: var(--color-red);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 48px;
}

.about-content p {
  color: #4f5b73;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

.text-link {
  color: var(--color-red);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-enroll {
  margin-top: var(--space-4);
}

.contact-section {
  background-color: var(--color-bg-light);
  padding-block: var(--space-5);
}

.contact-layout {
  display: grid;
  gap: var(--space-4);
}

.contact-info h2,
.contact-form-card h3 {
  color: var(--color-navy);
  font-size: clamp(1.45rem, 7vw, 2rem);
  margin-bottom: var(--space-3);
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contact-list li {
  align-items: flex-start;
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
}

.contact-icon {
  align-items: center;
  background-color: rgb(215 38 56 / 0.1);
  border-radius: 50%;
  color: var(--color-red);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.contact-icon svg {
  fill: none;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.25rem;
}

.contact-list strong {
  color: var(--color-navy);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.contact-list span,
.contact-list a {
  color: #4f5b73;
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-list a:hover {
  color: var(--color-red);
}

.map-card,
.contact-form-card {
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgb(11 31 58 / 0.08);
}

.map-card {
  overflow: hidden;
}

.map-card iframe {
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
  min-height: 260px;
  width: 100%;
}

.contact-form-card {
  padding: var(--space-3);
}

.contact-form {
  display: grid;
  gap: var(--space-2);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  background-color: var(--color-white);
  border: 1px solid rgb(11 31 58 / 0.18);
  border-radius: var(--radius-sm);
  color: var(--color-text-dark);
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-red);
  outline: 2px solid rgb(215 38 56 / 0.16);
  outline-offset: 0;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--color-red);
}

.form-message {
  color: var(--color-red);
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.35rem;
}

.form-message.is-success {
  color: #11833a;
}

.contact-submit {
  width: 100%;
}

.site-footer {
  background-color: #0d1427;
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.footer-brand p {
  color: rgb(255 255 255 / 0.78);
  font-size: 0.92rem;
  margin-top: var(--space-2);
}

.footer-logo .logo-mark,
.footer-logo .logo-phone {
  color: var(--color-white);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.footer-links,
.footer-contact {
  color: rgb(255 255 255 / 0.78);
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.footer-contact li {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.footer-contact svg {
  color: var(--color-red);
  flex: 0 0 auto;
  height: 1.05rem;
  margin-top: 0.2rem;
  width: 1.05rem;
}

.footer-links a,
.footer-contact a,
.contact-list a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.78);
  font-size: 0.9rem;
  padding: var(--space-2);
  text-align: center;
}

.is-drawer-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-header {
    background-color: var(--color-navy);
  }

  .header-container {
    min-height: 90px;
  }

  .site-header .site-logo {
    background-color: var(--color-white);
    margin-block: -0.6rem;
    min-width: 160px;
    padding: 0.7rem 0.8rem;
  }

  .desktop-nav {
    align-items: center;
    display: flex;
    gap: clamp(1.1rem, 2.4vw, 2.4rem);
    margin-left: auto;
  }

  .phone-action,
  .admission-action {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-content {
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    min-height: 520px;
    padding-block: var(--space-6);
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-media img {
    max-height: 500px;
    width: min(100%, 480px);
  }

  .hero-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-strip a {
    border-bottom: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
    justify-content: center;
    padding-inline: var(--space-2);
  }

  .hero-strip a:last-child {
    border-right: 1px solid rgb(255 255 255 / 0.14);
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-table-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 28px rgb(0 0 0 / 0.12);
    overflow: hidden;
  }

  .batch-table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  .batch-table thead {
    display: table-header-group;
  }

  .batch-table tbody {
    display: table-row-group;
  }

  .batch-table tr {
    box-shadow: none;
    display: table-row;
    padding: 0;
  }

  .batch-table tr:nth-child(even) {
    background-color: #ececff;
  }

  .batch-table tr:nth-child(odd) {
    background-color: var(--color-white);
  }

  .batch-table th,
  .batch-table td {
    display: table-cell;
    padding: 1rem var(--space-3);
    text-align: center;
    width: auto;
  }

  .batch-table th {
    background-color: #f4f5fb;
    color: var(--color-navy);
    font-size: 0.86rem;
  }

  .batch-table td {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .batch-table td::before {
    content: none;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-snippet-card {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    padding: var(--space-4);
  }

  .stats-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-enroll {
    display: none;
  }

  .page-hero {
    min-height: 220px;
  }

  .about-content-section {
    padding-block: var(--space-6);
  }

  .about-content p {
    font-size: 1rem;
  }

  .contact-section {
    padding-block: var(--space-6);
  }

  .contact-layout {
    align-items: start;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  }

  .contact-submit {
    justify-self: start;
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 1fr 1.3fr;
  }
}

@media (min-width: 1024px) {
  .header-container {
    gap: var(--space-4);
  }

  .hero-copy h1 {
    max-width: 680px;
  }

  .priority-section,
  .batches-section,
  .highlights-section {
    padding-block: var(--space-6);
  }

  .course-card {
    grid-template-columns: 150px 1fr;
  }

  .course-icon svg {
    height: 3.7rem;
    width: 3.7rem;
  }

  .course-body {
    padding: var(--space-3);
  }

  .highlights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-grid,
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .videos-section,
  .reviews-section,
  .profile-section,
  .about-snippet-section,
  .faq-section {
    padding-block: var(--space-6);
  }

  .about-snippet-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    padding: var(--space-5);
  }

  .about-image-main {
    height: 240px;
    width: 240px;
  }

  .about-image-small {
    height: 130px;
    width: 130px;
  }

  .page-hero {
    min-height: 240px;
  }

  .about-content h2 {
    margin-top: var(--space-5);
  }

  .contact-layout {
    gap: var(--space-6);
  }

  .contact-form-card {
    padding: var(--space-4);
  }

  .difference-section {
    padding-bottom: var(--space-6);
  }
}

/* --- drawer submenu (nested nav) --- */
.drawer-submenu {
  list-style: none;
  padding-left: var(--space-3);
  margin-bottom: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-left: var(--space-3);
}

.drawer-submenu li {
  margin-block: 0.25rem;
}

.drawer-submenu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xs);
  font-weight: 500;
  display: block;
  padding: 0.35rem 0.5rem;
  transition: color 150ms ease, padding-left 150ms ease;
  text-transform: uppercase;
}

.drawer-submenu a:hover {
  color: var(--color-white);
  padding-left: 0.75rem;
}

