:root {
  --bg: #07070c;
  --bg-2: #0e0e16;
  --cream: #f6f0e6;
  --cream-soft: #d8d0c4;
  --muted: #9a9286;
  --gold: #e4c17a;
  --gold-2: #c9a25a;
  --line: rgba(228, 193, 122, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Outfit", sans-serif;
  --font-display: "Cinzel", "Outfit", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(228, 193, 122, 0.16), transparent 60%),
    linear-gradient(180deg, #0a0a12 0%, var(--bg) 30%, #09090f 100%);
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
header.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em; display: block; }
.brand span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; }
nav a { color: var(--cream-soft); text-decoration: none; }
nav a:hover { color: var(--gold); }
.hero { padding: 32px 0 20px; text-align: center; }
.kicker { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; margin: 0 0 12px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 16px; line-height: 1.15; }
.hero p { max-width: 680px; margin: 0 auto 28px; color: var(--cream-soft); font-size: 1.08rem; line-height: 1.55; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--gold);
}
.btn.gold { background: var(--gold); color: #16120a; }
.btn.gold:hover { background: #f0d399; text-decoration: none; }
.btn.ghost { color: var(--cream); background: transparent; }
.btn.ghost:hover { background: rgba(228, 193, 122, 0.1); text-decoration: none; }
.btn[aria-disabled="true"], .btn.disabled { opacity: 0.55; pointer-events: none; }
h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 10px; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }
section { padding: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: 1fr; }
.card {
  background: rgba(20, 20, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.price { font-size: 1.45rem; color: var(--gold); font-weight: 700; margin: 10px 0 6px; }
.price small { display: block; font-size: 0.85rem; color: var(--cream-soft); font-weight: 500; margin-top: 4px; }
.card ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--cream-soft); line-height: 1.5; }
.steps { grid-template-columns: 1fr; }
.num { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; font-size: 0.8rem; }
.samples { grid-template-columns: 1fr; }
.sample {
  background: rgba(20, 20, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sample img { width: 100%; aspect-ratio: 1 / 1.35; object-fit: cover; object-position: top; background: #fff; }
.sample figcaption { padding: 12px 14px 16px; color: var(--cream-soft); font-size: 0.9rem; }
.sample strong { display: block; color: var(--cream); margin-bottom: 4px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--cream-soft); }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #12121a; color: var(--cream);
  font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--cream-soft); }
.check input { width: auto; margin-top: 4px; }
.note { font-size: 0.85rem; color: var(--muted); margin: 0; }
#order-form .note { margin: 0 0 14px; max-width: 46rem; }
.paybox {
  border: 1px dashed var(--gold-2);
  border-radius: 16px;
  padding: 16px;
  color: var(--cream-soft);
  text-align: center;
}
.paybox strong { color: var(--gold); }
.ml { font-family: var(--font-ml); line-height: 1.7; color: var(--cream-soft); }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
footer p { margin: 0 0 8px; }
.draft-banner {
  background: #3a2a10; color: var(--gold); text-align: center;
  font-size: 0.82rem; padding: 8px 12px; letter-spacing: 0.04em;
}
.badge {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #16120a;
  background: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-wrap { white-space: nowrap; }
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-left: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.info-btn:hover { color: var(--gold); text-decoration: none; }
.info-btn:focus-visible {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.price-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 42rem;
}
.price-note summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.price-note summary::-webkit-details-marker { display: none; }
.price-note summary::before { content: "ⓘ"; color: var(--muted); }
.price-note summary:hover,
.price-note summary:focus-visible { color: var(--gold); }
.price-note summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.price-note .note-body { margin: 8px 0 0; line-height: 1.6; color: var(--cream-soft); }
.price-note .note-body p { margin: 0 0 8px; }
.price-note .note-body p:last-child { margin: 0; }
table.rate { width: 100%; border-collapse: collapse; color: var(--cream-soft); font-size: 0.95rem; }
table.rate th, table.rate td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rate th { color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.process { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.process li {
  background: rgba(20, 20, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--cream-soft);
  line-height: 1.55;
}
.process strong { color: var(--gold); display: block; margin-bottom: 4px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* Base (mobile-first) form rows and table type are single-column / readable */
.row { grid-template-columns: 1fr; }
table.rate { font-size: 0.9rem; }



/* Language switcher and multilingual layout */
.top-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch { margin-inline-start: 0; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: #12121a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e4c17a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font: inherit;
  font-size: 0.88rem;
  max-width: min(48vw, 220px);
  cursor: pointer;
}
html[dir="rtl"] .lang-switch select {
  background-position: left 12px center;
  padding: 8px 14px 8px 32px;
}
.lang-switch select:hover,
.lang-switch select:focus {
  border-color: var(--gold-2);
  outline: none;
}
.lang-switch select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card ul { padding-inline-start: 18px; padding-inline-end: 0; }
table.rate th, table.rate td { text-align: start; }
.terms-brief { margin-top: 8px; }
.terms-brief .card { color: var(--cream-soft); line-height: 1.6; }
.terms-brief .card h3 { color: var(--cream); margin-top: 16px; }
.terms-brief .card h3:first-child { margin-top: 0; }
.terms-brief .card p, .terms-brief .card li { margin: 0 0 8px; }
html[lang="ml"] body { font-family: "Noto Sans Malayalam", var(--font); }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", var(--font); }
html[lang="ta"] body { font-family: "Noto Sans Tamil", var(--font); }
html[lang="ar"] body { font-family: "Noto Sans Arabic", var(--font); }
html[lang="zh"] body { font-family: "Noto Sans SC", var(--font); }
html[lang="ml"] h1, html[lang="ml"] h2,
html[lang="hi"] h1, html[lang="hi"] h2,
html[lang="ta"] h1, html[lang="ta"] h2,
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="zh"] h1, html[lang="zh"] h2 {
  font-family: inherit;
  letter-spacing: 0;
}

/* --- Responsive, mobile-first additions --- */
img, svg { max-width: 100%; height: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.table-card { padding: 16px; }
.study-heading { margin: 28px 0 12px; }
.study-note { margin-top: 14px; }
.enquiry-price { margin-top: 0; }
.paybox { margin-top: 22px; }
.terms-links { margin-top: 14px; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #12121a;
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-toggle-bars,
.nav-toggle span,
.nav-toggle-bars::before,
.nav-toggle span::before,
.nav-toggle-bars::after,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  position: relative;
  content: "";
}
.nav-toggle-bars::before,
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle-bars::after,
.nav-toggle span::after { position: absolute; top: 6px; }
.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: min(80vw, 260px);
  flex-direction: column;
  gap: 0;
  padding: 8px;
  background: rgba(14, 14, 22, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.main-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--cream);
}
.main-nav a:hover, .main-nav a:focus { background: rgba(228, 193, 122, 0.1); text-decoration: none; color: var(--gold); }

.main-nav a.nav-contact,
.footer-contact .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #16120a;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a.nav-contact:hover,
.main-nav a.nav-contact:focus,
.footer-contact .nav-contact:hover,
.footer-contact .nav-contact:focus {
  background: #f0d399;
  color: #16120a;
  text-decoration: none;
}
.footer-contact { margin-top: 14px; }
header.top { position: sticky; }
.top-inner { position: relative; flex-wrap: nowrap; gap: 10px; }
.top-tools { margin-inline-start: auto; }
body.nav-open .main-nav { display: flex; }
.badge-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; vertical-align: middle; white-space: normal; }
.info-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-left: 0;
  font-size: 1rem;
}
html[dir="rtl"] .info-btn { margin-right: 0; }
h3 .badge-wrap, h2 .badge-wrap { display: inline-flex; }
.price small { white-space: normal; }
input, select, textarea, .btn, .lang-switch select {
  min-height: 44px;
  font-size: 16px; /* avoid iOS zoom */
}
.btn { width: 100%; max-width: 100%; }
.btns { flex-direction: column; align-items: stretch; }
.check { align-items: flex-start; }
.check input { width: 22px; height: 22px; min-width: 22px; margin-top: 10px; flex-shrink: 0; }
.lang-switch select { max-width: min(58vw, 200px); }

@media (min-width: 768px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .hero { padding: 48px 0 24px; }
  .btns { flex-direction: row; justify-content: center; align-items: center; }
  .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .samples { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .table-card { padding: 22px; }
  input, select, textarea, .btn, .lang-switch select { font-size: inherit; }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .top-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .main-nav a { padding: 8px 0; }
  .main-nav a.nav-contact { padding: 8px 16px; }
  body.nav-open .main-nav { display: flex; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .samples { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 56px 0 28px; }
  .lang-switch select { max-width: 220px; }
}

@media (min-width: 1280px) {
  .wrap { width: min(1200px, calc(100% - 48px)); }
}

@media (max-width: 379px) {
  .brand strong { font-size: 1rem; }
  .tagline { letter-spacing: 0.06em; font-size: 0.58rem; }
  .lang-switch select { max-width: 44vw; padding-inline: 10px 28px; }
}

/* Service tabs — mobile-first, scrollable on small screens */
.tabs-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
  padding: 4px 0;
}
.tabs button {
  appearance: none;
  border: 1px solid var(--line);
  background: #12121a;
  color: var(--cream-soft);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}
.tabs button:hover, .tabs button:focus-visible {
  border-color: var(--gold-2);
  color: var(--gold);
  outline: none;
}
.tabs button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.tabs button[aria-selected="true"] {
  background: var(--gold);
  color: #16120a;
  border-color: var(--gold);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-intro { color: var(--muted); margin: 0 0 18px; max-width: 46rem; }
.optgroup-label { font-weight: 600; }
@media (min-width: 1100px) {
  .tabs-wrap { overflow: visible; }
  .tabs { flex-wrap: wrap; min-width: 0; }
}

/* Admission tiers + GST */
.gst-note { font-size: 0.92rem; color: var(--muted); margin: 0 0 18px; max-width: 46rem; }
.admit-box {
  border: 1px solid var(--line);
  background: #14141c;
  border-radius: 14px;
  padding: 18px 20px 8px;
  margin: 0 0 22px;
}
.admit-box h3 {
  font-family: var(--font);
  font-size: 1.08rem;
  margin: 0 0 10px;
  color: var(--gold);
}
.admit-box p { margin: 0 0 12px; }
.admit-box ol, .admit-box ul { margin: 0 12px 14px; padding-inline-start: 1.15em; }
.admit-box li { margin: 0 0 8px; }
.admit-cols {
  display: grid;
  gap: 14px;
  margin: 0 0 8px;
}
@media (min-width: 768px) {
  .admit-cols { grid-template-columns: 1fr 1fr; }
}
.admit-tier {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #101018;
}
.admit-tier h4 {
  font-family: var(--font);
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--cream);
}
.card .tier-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
#order-form optgroup { font-weight: 600; color: var(--cream); }

/* Admission benefits + Akshaya comparison */
.admit-sub {
  font-family: var(--font);
  font-size: 1.02rem;
  margin: 16px 0 10px;
  color: var(--gold);
}
.admit-benefits { margin: 0 0 16px; padding-inline-start: 1.2em; }
.admit-benefits li { margin: 0 0 8px; color: var(--cream-soft); }
.admit-compare { margin: 0 0 12px; }
.admit-compare table.rate th[scope="row"] {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  color: var(--cream);
  min-width: 8rem;
}
.admit-cols-3 { margin-top: 18px; }
.admit-tier .price { margin: 0 0 8px; }
@media (min-width: 1100px) {
  .admit-cols.admit-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid.steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .admit-compare table.rate th, .admit-compare table.rate td { min-width: 10rem; }
  .admit-compare table.rate th[scope="row"] { min-width: 7rem; }
}

/* samples + universities extras */
.see-sample { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; }
.see-sample a { display: inline-block; }
.sample-badge {
  display: inline-block; margin: 0 0 6px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2);
}
.sample-actions { display: block; margin-top: 8px; font-size: 0.88rem; }
.sample-actions a { margin-right: 4px; }
.jump-nav {
  margin: 8px auto 0; max-width: 800px;
  color: var(--cream-soft); font-size: 0.95rem; line-height: 1.8;
}
.jump-nav a { margin: 0 4px; }
nav a.is-active { color: var(--gold); }
.univ-disclaimer {
  max-width: 800px; margin: 8px auto 0;
  padding: 16px 18px; border: 1px solid var(--gold);
  border-radius: 16px; background: rgba(20, 20, 30, 0.72);
  text-align: left;
}
.hero .univ-disclaimer { margin-left: auto; margin-right: auto; }
.univ-disclaimer p { margin: 0 0 8px; color: var(--cream); }
.univ-disclaimer p:last-child { margin-bottom: 0; }
.univ-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0 0 36px; }
.univ-table th, .univ-table td {
  border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: top; text-align: left;
}
.univ-table th { color: var(--gold); font-weight: 600; }
.univ-table td .note, p.note, .note { color: var(--muted); font-size: 0.88rem; }
.table-scroll { overflow-x: auto; }
@media (max-width: 700px) {
  .univ-table th:nth-child(2), .univ-table td:nth-child(2) { white-space: nowrap; }
}
