/**
 * Fluency Hub Online - Shared Language Pages CSS
 * Used by: index_pt-BR.php, index_es.php, courses_pt-BR.php, courses_es.php
 * Version: 1.0
 */

/* ===== ROOT VARIABLES ===== */
:root {
  --fh-navy: #023373;
  --fh-navy-deep: #011d49;
  --fh-blue: #0071bc;
  --fh-blue-light: #3b9fe0;
  --fh-green: #8dbf21;
  --fh-green-deep: #6fa019;
  --fh-light: #f6f8fb;
  --fh-text: #12304f;
  --fh-muted: #5f748a;
  --fh-whatsapp: #25d366;
  --shadow: 0 14px 40px rgba(2,51,115,0.10);
  --shadow-lg: 0 20px 60px rgba(2,51,115,0.18);
  --max: 1200px;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--fh-text);
  line-height: 1.4;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
  border: 1px solid transparent;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.lang-switcher a.active {
  background: var(--fh-blue);
  color: #fff;
  border-color: var(--fh-navy);
}

.lang-switcher .flag {
  font-size: 16px;
  line-height: 1;
}

/* Mobile language switcher */
.mobile-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

.mobile-lang-switcher a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.mobile-lang-switcher a:hover {
  background: rgba(255,255,255,0.2);
}

.mobile-lang-switcher a.active {
  background: var(--fh-blue);
  border-color: #fff;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f2f2f2;
  padding: 14px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-size: 32px;
  font-weight: 900;
  color: var(--fh-navy);
  text-decoration: none;
  letter-spacing: -.5px;
}

.wordmark .hub {
  color: var(--fh-green);
  background: var(--fh-green);
  color: #fff;
  padding: 2px 14px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 900;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta {
  background: var(--fh-green);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(141,191,33,0.35);
  transition: transform .2s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.cta-navy {
  background: var(--fh-navy);
  box-shadow: 0 6px 18px rgba(2,51,115,0.3);
}

.hamburger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fh-navy);
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

/* ===== HERO (Index Pages) ===== */
.hero-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 733px;
  overflow: hidden;
  padding-bottom: 40px;
  background: #fff url(/images/fhbanner_1.png) center center no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: left;
  margin-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ===== METHOD INTRO ===== */
.method-intro {
  padding: 60px 0 40px;
  text-align: center;
}

.method-intro h1 {
  font-size: clamp(28px,3.5vw,40px);
  color: var(--fh-navy);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.method-intro p {
  font-size: 15px;
  color: var(--fh-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.intro-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== METHOD CARDS ===== */
.method-cards {
  padding: 20px 0 60px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.method-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.method-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ddd;
  position: relative;
}

.method-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.method-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.method-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.method-card-body {
  padding: 18px 20px;
  color: #fff;
  text-align: center;
}

.method-card-body h3 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 800;
}

.method-card-body p {
  font-size: 13px;
  margin: 0;
  opacity: .95;
  line-height: 1.4;
}

.method-card.visual .method-card-img {
  background: linear-gradient(135deg, var(--fh-blue) 0%, var(--fh-blue-light) 100%);
}

.method-card.visual .method-card-body {
  background: var(--fh-green);
}

.method-card.repetition .method-card-img {
  background: linear-gradient(135deg, var(--fh-green) 0%, var(--fh-green-deep) 100%);
}

.method-card.repetition .method-card-body {
  background: var(--fh-blue);
}

.method-card.interaction .method-card-img {
  background: linear-gradient(135deg, var(--fh-navy) 0%, var(--fh-navy-deep) 100%);
}

.method-card.interaction .method-card-body {
  background: var(--fh-navy);
}

/* ===== FEATURES + CERTIFICATE ===== */
.features-certificate {
  padding: 20px 0 60px;
}

.fc-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}

.fc-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.fc-feature {
  background: #f2f2f2;
  border: 1px solid rgba(2,51,115,.12);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(2,51,115,0.06);
  text-align: center;
}

.fc-feature strong {
  display: block;
  color: var(--fh-navy);
  font-size: 16px;
  margin-bottom: 4px;
}

.fc-feature span {
  color: var(--fh-muted);
  font-size: 13px;
}

.fc-certificate {
  background: var(--fh-green);
  background-image: url('/images/04.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ===== APPROACH ===== */
.approach {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.approach-head {
  text-align: center;
  margin-bottom: 40px;
}

.approach-head h2 {
  font-size: clamp(26px,3.5vw,36px);
  color: #001e3a;
  margin: 0 0 8px;
  font-weight: 700;
}

.approach-head p {
  color: var(--fh-muted);
  font-size: 15px;
  margin: 0;
}

.approach-layout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.approach-center {
  position: relative;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.approach-brain {
  width: 220px;
  height: auto;
  margin: 0 auto 0;
  position: relative;
  z-index: 3;
}

.approach-brain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.approach-node {
  position: relative;
  max-width: 450px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.approach-node .badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0cc0df;
  color: #0cc0df;
  display: grid;
  place-items: center;
  font-size: 16px;
  z-index: 2;
  margin-bottom: 20px;
}

.approach-node .content {
  max-width: 280px;
  text-align: left;
  font-size: 10px;
}

.approach-node .badge img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.approach-node h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0cc0df;
  font-weight: 700;
  text-align: center;
}

.approach-node p {
  margin: 0;
  font-size: 12px;
  color: var(--fh-text);
  line-height: 1.5;
  max-width: 280px;
}

/* Approach node positioning */
@media (min-width: 769px) {
  .approach-center::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 120px;
    bottom: 0;
    width: 3px;
    background: #0cc0df;
    transform: translateX(-50%);
    z-index: 1;
  }

  .approach-node:nth-child(2) .content {
    max-width: 280px;
    text-align: left;
    margin-left: -328px;
    position: absolute;
  }

  .approach-node:nth-child(3) .content {
    text-align: right;
    margin-left: 352px;
    width: 100%;
    margin-top: -90px;
  }

  .approach-node:nth-child(4) .content {
    max-width: 280px;
    text-align: left;
    margin-left: -328px;
    position: absolute;
  }
}

/* ===== ZOOM BANNER ===== */
.zoom-banner {
  background: #000;
}

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

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 72px 0 60px;
}

.hiw-head {
  text-align: center;
  margin-bottom: 40px;
}

.hiw-icon-top {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fh-blue);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 28px;
  color: var(--fh-blue);
}

.hiw-icon-top img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hiw-head h2 {
  font-size: clamp(26px,3.5vw,36px);
  color: var(--fh-navy);
  margin: 0 0 8px;
  font-weight: 700;
}

.hiw-head p {
  color: var(--fh-muted);
  font-size: 15px;
  margin: 0;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  position: relative;
}

.hiw-grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 0;
  border-top: 2px dashed var(--fh-blue-light);
  z-index: 0;
}

.hiw-card {
  background: #f2f2f2;
  border: 1px solid rgba(2,51,115,.1);
  border-radius: 14px;
  padding: 48px 18px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(2,51,115,.06);
}

.hiw-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fh-blue);
  color: var(--fh-blue);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.hiw-card:nth-child(1) .hiw-badge { border-color: #0cc0df; background: #0cc0df; color: #fff; }
.hiw-card:nth-child(2) .hiw-badge { border-color: #0071bc; background: #0071bc; color: #fff; }
.hiw-card:nth-child(3) .hiw-badge { border-color: #023373; background: #023373; color: #fff; }
.hiw-card:nth-child(4) .hiw-badge { border-color: #001e3a; background: #001e3a; color: #fff; }

.hiw-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hiw-num {
  color: var(--fh-blue);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1;
}

.hiw-card:nth-child(1) .hiw-num { color: #0cc0df; }
.hiw-card:nth-child(2) .hiw-num { color: #0071bc; }
.hiw-card:nth-child(3) .hiw-num { color: #023373; }
.hiw-card:nth-child(4) .hiw-num { color: #001e3a; }

.hiw-card h3 {
  font-size: 16px;
  color: var(--fh-navy);
  margin: 0 0 8px;
}

.hiw-card:nth-child(1) h3 { color: #0cc0df; }
.hiw-card:nth-child(2) h3 { color: #0071bc; }
.hiw-card:nth-child(3) h3 { color: #023373; }
.hiw-card:nth-child(4) h3 { color: #001e3a; }

.hiw-card p {
  font-size: 13px;
  color: var(--fh-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== STUDENT GALLERY ===== */
.student-gallery {
  padding: 20px 0 60px;
  background: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
}

.student-gallery .sg-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.student-gallery .sg-head {
  text-align: center;
  margin-bottom: 40px;
}

.student-gallery .sg-eyebrow {
  display: inline-block;
  color: #00b7d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin: 0 0 12px;
}

.student-gallery .sg-title {
  color: #023373;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.1;
}

.student-gallery .sg-title span {
  color: #0071bc;
}

.student-gallery .sg-sub {
  color: #5f748a;
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

.student-gallery .sg-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}

.student-gallery .sg-tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: #f0f4f8;
  box-shadow: 0 8px 24px rgba(2, 51, 115, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  grid-column: span 1;
  grid-row: span 2;
}

.student-gallery .sg-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.student-gallery .sg-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 51, 115, 0.18);
}

.student-gallery .sg-tile:hover img {
  transform: scale(1.06);
}

.student-gallery .sg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 51, 115, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.student-gallery .sg-tile:hover .sg-overlay {
  opacity: 1;
}

.student-gallery .sg-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(2, 51, 115, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.student-gallery .sg-tile--hero {
  grid-column: span 2;
  grid-row: span 4;
}

.student-gallery .sg-tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #001e3a;
  color: #fff;
  padding: 72px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: clamp(26px,3.5vw,36px);
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
}

.testimonials .sub {
  text-align: center;
  color: #8dbf21;
  margin: 0 auto 40px;
  font-size: 15px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.testimonial {
  background: #fff;
  color: var(--fh-text);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 18px;
  color: var(--fh-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(2,51,115,.1);
  background: linear-gradient(135deg, #0071bc 0%, #0cc0df 100%);
  border-radius: 0 0 30px 30px;
  margin: -24px -24px -24px -24px;
  margin-top: 14px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fh-blue);
  display: grid;
  place-items: center;
  color: var(--fh-blue);
  font-weight: 800;
  font-size: 14px;
}

.testimonial:nth-child(1) .testimonial-avatar { border-color: #0cc0df; color: #0cc0df; }
.testimonial:nth-child(2) .testimonial-avatar { border-color: #8dbf21; color: #8dbf21; }
.testimonial:nth-child(3) .testimonial-avatar { border-color: #023373; color: #023373; }

.testimonial-meta strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.testimonial-meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

/* ===== FAQ ===== */
.faq-section {
  padding: 72px 0;
}

.faq-head {
  text-align: center;
  margin-bottom: 36px;
}

.faq-head h2 {
  font-size: clamp(26px,3.5vw,36px);
  color: #001e3a;
  margin: 0 0 8px;
  font-weight: 700;
}

.faq-head p {
  color: var(--fh-muted);
  font-size: 15px;
  margin: 0;
}

.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq {
  background: #fff;
  border: 2px solid #0cc0df;
  border-radius: 999px;
  overflow: hidden;
  transition: border-radius .2s ease;
}

.faq[open] {
  border-radius: 22px;
}

.faq summary {
  cursor: pointer;
  padding: 20px 28px;
  font-weight: 700;
  font-size: 15px;
  color: #001e3a;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: #001e3a;
  font-weight: 400;
  position: absolute;
  right: 28px;
}

.faq[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 28px 18px;
  color: var(--fh-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: #001e3a;
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(26px,3.5vw,38px);
  margin: 0 0 14px;
  font-weight: 700;
}

.final-cta h2 .journey {
  font-style: italic;
  font-weight: 900;
}

.final-cta h2 .starts {
  color: #0072bc;
  font-weight: 900;
}

.final-cta h2 .today {
  color: #0ebbdc;
  font-weight: 900;
}

.final-cta p {
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 26px;
  color: rgba(255,255,255,0.8);
}

.final-cta .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--fh-whatsapp);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ===== TIMETABLE SECTION ===== */
.timetable-section {
  padding: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e5e5e5;
}

.timetable-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.timezone-selector {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timezone-selector label {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.timezone-selector select {
  padding: 8px 12px;
  border: 2px solid #0071bc;
  border-radius: 20px;
  background: white;
  color: #023373;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 200px;
  outline: none;
  transition: all 0.2s ease;
}

.timezone-selector select:hover {
  background: #f8f9fa;
  border-color: #023373;
}

.timezone-selector select:focus {
  border-color: #023373;
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.1);
}

.timetable-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #0071bc;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

.timetable-subtitle {
  font-size: 0.8rem;
  color: red;
  text-align: center;
  margin: 0;
  font-weight: normal;
}

.timetable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.timetable-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-header {
  background: #023373;
  color: white;
  padding: 25px 20px;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(2, 51, 115, 0.3);
}

.course-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
  font-weight: 600;
}

.course-header span {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 1;
}

.business-club .course-header {
  background: #011d49;
}

.pronunciation .course-header {
  background: #0071bc;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.time-slot {
  background: white;
  border: 3px solid #023373;
  border-radius: 50px;
  padding: 18px 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #023373;
  cursor: default;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(2, 51, 115, 0.1);
}

.business-club .time-slot {
  border-color: #011d49;
  color: #011d49;
}

.pronunciation .time-slot {
  border-color: #0071bc;
  color: #0071bc;
}

.timezone-note {
  text-align: center;
  font-size: 0.5rem;
  color: red;
  font-style: italic;
  margin-top: 0;
}

/* ===== TEST ENGLISH BUTTON ===== */
.test-english-section {
  text-align: left;
  margin-bottom: 5px;
  padding: 0;
  z-index: 9999;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 20px;
  padding-left: 10px;
}

.test-english-btn {
  display: inline-block;
  background: #fff;
  color: #0071bc;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 113, 188, 0.3);
}

.test-english-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 113, 188, 0.4);
  background: #0093d1;
}

.hero-1 {
  margin-top: -175px;
}

.course-selection {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  padding-top: 0;
}

.test-english-banner {
  margin-top: -130px;
  z-index: 997;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
}

.test-english-banner .container {
  width: 280px;
  margin: 0;
}

.test-english-banner img {
  width: 280px;
}

.hero-enrol-cta {
  text-align: center;
  padding: 15px;
  position: relative;
  z-index: 25;
}

.hero-enrol-cta .cta {
  font-size: 18px;
  padding: 16px 40px;
}

/* ===== ENROLLMENT MODAL ===== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #1e3a5c;
  font-size: 24px;
}

.close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #000;
}

.modal-body {
  padding: 24px;
}

.modal-subtitle {
  margin-bottom: 24px;
  color: #666;
  text-align: center;
}

.enrollment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.option-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.option-icon {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 1px;
  display: inline-block;
}

.option-card h3 {
  margin: 0 0 12px;
  color: #1e3a5c;
  font-size: 18px;
}

.option-card p {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.option-button {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.option-card:hover .option-button {
  background: #0056b3;
}

#newUserForm {
  border-top: 1px solid #eee;
  padding-top: 24px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: #495057;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
  transform: translateY(-1px);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group select:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.form-group select option {
  padding: 12px;
  font-size: 15px;
  color: #495057;
  background: white;
}

.form-group select option[value=""] {
  color: #6c757d;
  font-style: italic;
}

.form-group small {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
  display: block;
  opacity: 0.8;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #218838;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large screens */
@media (min-width: 1441px) {
  .zoom-banner img {
    max-width: 80%;
    margin: 0 auto;
    border: 3px solid #333;
    border-radius: 12px;
  }
}

/* 13-inch screens */
@media (min-width: 1200px) and (max-width: 1440px) {
  .method-card-img {
    height: 200px;
  }

  .method-card-img > img {
    object-fit: contain;
    padding: 10px;
  }

  .hero {
    min-height: 490px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  .approach-brain {
    width: 200px;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    padding: 10px;
  }

  .zoom-banner img {
    border: 3px solid #333;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 90%;
  }

  .hero {
    border: none;
    border-radius: 6rem;
    overflow: hidden;
  }
}

/* Medium-large screens */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero {
    min-height: 490px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }
}

@media (min-width: 1025px) {
  .test-english-banner {
    margin-top: -130px;
    z-index: 999;
    position: relative;
    margin-left: 36%;
    margin-right: auto;
    text-align: center;
    display: flex;
  }

  .test-english-banner img {
    width: 280px;
  }
}

/* Tablet screens */
@media (max-width: 1024px) {
  .timetable-grid {
    gap: 30px;
    padding: 0 15px;
  }

  .timetable-title {
    font-size: 2.8rem;
    text-align: center;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .test-english-banner {
    margin-top: -120px;
    margin-left: 28%;
  }

  .test-english-banner img {
    width: 240px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 300px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

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

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

  .fc-certificate {
    min-height: 260px;
  }

  .approach-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .approach-brain {
    width: 150px;
  }

  .approach-node .content {
    position: relative;
    margin-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .approach-node:nth-child(2) .content {
    position: relative;
    margin-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .approach-node:nth-child(3) {
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .approach-node:nth-child(3) .content {
    margin-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .approach-node:nth-child(4) {
    margin-top: 0;
    margin-bottom: 0;
  }

  .approach-node:nth-child(4) .content {
    margin-left: 0;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 80px;
    position: relative;
  }

  .approach-node:nth-child(5) .content {
    margin-left: 0;
    margin-top: 84px;
  }

  .hiw-grid {
    grid-template-columns: repeat(2,1fr);
    row-gap: 48px;
  }

  .hiw-grid::before {
    display: none;
  }

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

  .student-gallery {
    padding: 60px 0 40px;
  }

  .student-gallery .sg-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 250px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .timetable-section {
    padding: 0;
  }

  .timetable-header {
    margin-bottom: 40px;
  }

  .timezone-selector {
    flex-direction: column;
    gap: 8px;
  }

  .timezone-selector select {
    min-width: 180px;
    font-size: 0.9rem;
  }

  .timetable-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .timetable-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }

  .course-header {
    padding: 20px 15px;
  }

  .time-slot {
    padding: 16px 18px;
    font-size: 1.2rem;
  }

  .test-english-section {
    text-align: center;
  }

  .test-english-banner {
    margin-right: auto;
    margin-top: -120px;
    margin-left: 28%;
  }

  .test-english-banner img {
    width: 200px;
  }

  .enrollment-options {
    grid-template-columns: 1fr;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group select {
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .student-gallery .sg-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }

  .student-gallery .sg-tile,
  .student-gallery .sg-tile--hero,
  .student-gallery .sg-tile--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .student-gallery .sg-tile--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .wordmark {
    font-size: 26px;
  }

  .wordmark .hub {
    padding: 2px 10px;
  }

  .cta {
    padding: 12px 22px;
    font-size: 15px;
  }

  .hiw-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .hero {
    min-height: 200px;
    padding-bottom: 0;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .hero-content {
    padding: 24px 16px;
  }

  .approach-brain {
    width: 120px;
  }

  .approach {
    padding: 40px 0 30px;
  }

  .approach-node {
    margin: 20px auto;
  }

  .approach-node:nth-child(3) {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .approach-node:nth-child(4) {
    margin-top: 0;
    margin-bottom: 0;
  }

  .approach-node:nth-child(5) {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .approach-node .content {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .method-intro {
    padding: 40px 0 20px;
  }

  .method-cards {
    padding: 20px 0 40px;
  }

  .features-certificate {
    padding: 20px 0 40px;
  }

  .how-it-works {
    padding: 50px 0 40px;
  }

  .testimonials {
    padding: 50px 0;
  }

  .faq-section {
    padding: 50px 0;
  }

  .final-cta {
    padding: 44px 20px;
  }

  .test-english-banner {
    margin-top: -120px;
    margin-left: 20%;
  }

  .test-english-banner img {
    width: 180px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 160px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .hero-1 {
    margin-top: -100px;
  }

  .timetable-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .course-header h3 {
    font-size: 1.1rem;
  }

  .course-header span {
    font-size: 1rem;
  }

  .time-slot {
    padding: 14px 16px;
    font-size: 1.1rem;
  }

  .test-english-banner {
    margin-top: -170px;
    margin-left: 12%;
  }

  .test-english-banner img {
    width: 220px !important;
  }
}

@media (max-width: 375px) {
  .hero {
    min-height: 140px;
    margin-top: 80px;
    background-size: contain;
    background-position: top center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }
}
