:root {
  color-scheme: dark;
  --bg-gradient: radial-gradient(circle at top, rgba(251, 191, 36, 0.12), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0b1222 100%);
  --surface: #111827;
  --surface-soft: #1f2937;
  --surface-muted: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #fbbf24;
  --accent-strong: #f59e0b;
  --border: rgba(148, 163, 184, 0.15);
  --header-bg: rgba(8, 15, 29, 0.82);
  --header-border: rgba(148, 163, 184, 0.08);
  --shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

body.theme-light {
  color-scheme: light;
  --bg-gradient: radial-gradient(circle at top, rgba(251, 191, 36, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-muted: #94a3b8;
  --text: #111827;
  --text-muted: #475569;
  --accent: #f97316;
  --accent-strong: #fb923c;
  --border: rgba(15, 23, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.65;
}

.updates-ticker {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--accent));
  color: #111827;
  padding: 0.6rem 0;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.updates-ticker-content {
  display: flex;
  animation: scroll-left 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 2rem;
  min-width: max-content;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.updates-ticker-content:hover {
  animation-play-state: paused;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: static;
  z-index: 100;
  background: transparent;
  width: 100%;
}

.header-top {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 1.5rem) 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.header-brand {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-title {
  color: red !important;
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1rem, 2.4vw, 2.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
  padding: 0 0.5rem;
  line-height: 1.1;
  min-width: 0;
}

@media (max-width: 700px) {
  .header-logo {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .brand-title {
    font-size: clamp(0.9rem, 4vw, 1.2rem) !important;
    padding: 0 0.2rem;
  }
}

@media (max-width: 430px) {
  .brand-title {
    white-space: normal;
    word-break: break-word;
    font-size: clamp(0.75rem, 4.4vw, 1rem) !important;
    line-height: 1.15;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 1.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(18px);
  background: var(--header-bg, rgba(8, 15, 29, 0.92));
  border-bottom: 1px solid var(--header-border, rgba(148, 163, 184, 0.12));
}

.site-title {
  justify-self: start;
}

.nav-links {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.coach-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0 0.75rem;
  margin-left: 0.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.coach-whatsapp-btn:hover {
  transform: translateY(-1px);
}

.page-banner {
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.page-banner-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  overflow: hidden;
}

.page-banner-panel img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-banner-copy {
  text-align: center;
}

.page-banner-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.page-banner-subtitle {
  margin: 0.75rem auto 0;
  max-width: 54rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .page-banner {
    width: 100%;
    grid-template-columns: 100px 1fr 100px;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .page-banner-panel {
    height: 100px;
  }

  .page-banner-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .page-banner-subtitle {
    font-size: 0.8rem;
    max-width: 100%;
  }
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 24%);
  pointer-events: none;
}

.hero-grid,
.section,
.affiliation-hero-grid,
.cards-row,
.feature-grid,
.contact-grid,
.affiliation-grid,
.exam-form-container {
  max-width: min(1320px, 100%);
  width: 100%;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy p {
  max-width: 42rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}

.hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111827;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.hero-image {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2)),
    url('assets/hero-karate.svg') center/cover no-repeat;
}

.section {
  max-width: min(1320px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.affiliation-hero {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.16));
}

.affiliation-hero .section-header {
  align-items: center;
}

.affiliation-hero-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 28px;
}

.affiliation-hero-banner img {
  width: 100%;
  display: block;
}

.affiliation-hero-btn {
  position: absolute;
  right: 28rem;
  bottom: 3rem;
  left: auto;
  transform: none;
  z-index: 2;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
  padding: 1rem 2.2rem;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .affiliation-hero-btn {
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }
}


.affiliation-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0.03));
  border-radius: 28px;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-visual-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 2rem;
  max-width: 100%;
}

.hero-visual-label {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.affiliation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.affiliation-logo {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.affiliation-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.affiliation-card p {
  margin: 0;
  color: var(--text-muted);
}

.affiliation-commitment {
  padding-top: 0;
}

.affiliation-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.affiliation-panel h3 {
  margin: 0 0 0.5rem;
}

.panel-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--accent);
  font-size: 1.7rem;
}

.feature-grid,
.services-grid,
.gallery-grid,
.resources-list,
.branches-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.service-card,
.resource-card,
.branch-card,
.profile-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255,255,255,0.06));
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card h3,
.service-card h3,
.resource-card h3,
.branch-card h3,
.profile-card h3 {
  margin-top: 0;
}

.feature-card p,
.service-card p,
.resource-card p,
.branch-card p,
.profile-card p {
  color: var(--text-muted);
}

.feature-card::before,
.service-card::before,
.resource-card::before,
.branch-card::before,
.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 26%);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0px
}

.service-card img {
  border-radius: 18px;
  min-height: 180px;
  object-fit: cover;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.list-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.list-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.18);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
}

.list-card-content h3 {
  margin: 0 0 0.5rem;
}

.list-card-content p {
  margin: 0;
}

.text-grid {
  display: grid;
  gap: 1rem;
}

.section-quote {
  margin: 2rem 0;
  padding: 1.8rem 1.6rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.section-quote p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.section-quote span {
  display: block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid.representative-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.members-grid {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.4rem;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay h3,
.overlay p {
  margin: 0;
}

@media (max-width: 900px) {
  .gallery-grid.representative-grid,
  .gallery-grid.members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .gallery-card {
    min-height: 270px;
  }

  .gallery-card img {
    object-position: center top;
  }

  .overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.84));
    align-items: flex-end;
    padding: 0.9rem;
  }

  .overlay h3 {
    font-size: 0.72rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 640px) {
  .gallery-grid.representative-grid,
  .gallery-grid.members-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 320px;
  }

  .overlay {
    padding: 1rem;
  }

  .overlay h3 {
    font-size: 0.82rem;
  }
}

.footer {
  margin-top: auto;
  padding: 1.4rem clamp(1rem, 4vw, 1.5rem);
  background: rgba(8, 15, 29, 0.96);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section iframe,
.branch-map {
  width: 100%;
  border: 0;
  min-height: 300px;
  border-radius: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
}

.contact-card,
.map-card {
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1.8rem;
}

.contact-card h3,
.map-card h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.contact-list li strong {
  color: var(--text);
  min-width: 120px;
  display: inline-block;
}

.form-field {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

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

.submit-btn {
  margin-top: 0.5rem;
}

.submit-btn button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  color: #111827;
  cursor: pointer;
}

.contact-status {
  margin-top: 0.9rem;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: var(--text);
  display: none;
}

.contact-status.visible {
  display: block;
}

footer small {
  display: block;
}

.exam-form-container {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-field select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.95rem;
}

.form-field select option {
  background: var(--surface);
  color: var(--text);
}

.fee-summary {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
  padding: 1.4rem;
  margin: 1.5rem 0;
  grid-column: 1 / -1;
}

.fee-summary h4 {
  margin: 0 0 0.8rem;
  color: var(--accent);
}

.fee-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.fee-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.payment-section {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  font-size: 0.95rem;
}

.payment-status.pending {
  color: #fbbf24;
}

.payment-status.completed {
  color: #10b981;
}

.payment-icon {
  font-size: 1.2rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.payment-btn {
  padding: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.payment-btn:hover,
.payment-btn.active {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.submit-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-disabled:hover {
  transform: none !important;
}

.hero-badges,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.badge-card,
.testimonial-card,
.cta-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.badge-card:hover,
.feature-card:hover,
.service-card:hover,
.branch-card:hover,
.profile-card:hover,
.resource-card:hover,
.testimonial-card:hover,
.cta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.32);
}

.badge-card {
  display: grid;
  gap: 0.6rem;
}

.badge-card strong {
  color: var(--accent);
  font-size: 1.65rem;
  display: block;
}

.badge-card span {
  color: var(--text-muted);
}

.testimonial-card {
  display: grid;
  gap: 1rem;
}

.testimonial-card p {
  margin: 0;
  color: var(--text);
}

.testimonial-card small {
  color: var(--text-muted);
}

.cta-banner {
  padding: 0 1.5rem 3rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(255,255,255,0.04));
}

.cta-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.cta-card p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.08);
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 0.14rem;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle span::before {
  top: -0.35rem;
}

.menu-toggle span::after {
  top: 0.35rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.theme-toggle span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.nav-links {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-links[data-menu] {
  overflow: visible;
  max-height: none;
  opacity: 1;
}

.nav-links a {
  padding: 0.35rem 0.3rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 0;
    overflow: visible;
  }
  .brand-title {
    font-size: clamp(1rem, 4vw, 1.7rem);
    font-weight: 600;
    text-align: center;
  }

  .navbar-right {
    order: 3;
    width: 100%;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .whatsapp-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1rem 1rem;
    background: rgba(8, 15, 29, 0.96);
    border-radius: 20px;
    margin-top: 0.75rem;
  }

  .nav-links[data-menu] {
    /* make the mobile menu float below the navbar and sit above content */
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    z-index: 9999;
    padding: 0.75rem 1rem 1rem;
    background: rgba(8, 15, 29, 0.98);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }

  .nav-links[data-menu].open {
    overflow: visible;
    max-height: 80vh;
    opacity: 1;
  }

  .nav-links a {
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  body.theme-light .nav-links[data-menu] a {
    color: white;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exam-form-container {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .whatsapp-btn {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .updates-ticker-content {
    animation: scroll-left 40s linear infinite;
  }

  .ticker-item {
    padding: 0 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
