/* =========================================================
   THANH THANH - TRUNG TÂM LUYỆN THI & DẠY HỌC CẦN THƠ
   Modern Glassmorphic Design System & Premium UI Components
   Responsive: Mobile (<600px) | Tablet (<1024px) | Desktop (>1024px)
   ========================================================= */

:root {
  /* Color Palette Tokens */
  --navy-950: #040e24;
  --navy-900: #081a3e;
  --navy-800: #0e2a60;
  --blue-700: #0b5ed7;
  --blue-600: #1685ef;
  --blue-500: #3b82f6;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;

  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --rose-500: #ef4444;
  --purple-500: #8b5cf6;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.2);

  --shadow-sm: 0 4px 12px rgba(8, 26, 62, 0.04);
  --shadow-md: 0 10px 30px rgba(8, 26, 62, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 26, 62, 0.14);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* TYPOGRAPHY HELPERS */
h1, h2, h3, h4 {
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue-700);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-tag.gold-tag {
  color: var(--gold-400);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
}

.section-heading.text-center {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-block: 8px 12px;
  letter-spacing: -0.5px;
}

.section-heading.light-heading h2 {
  color: #ffffff;
}

.section-heading.light-heading p {
  color: #cbd5e1;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.025rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

/* ---------------------------------------------------------
   TOPBAR & HEADER
   --------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: #e2e8f0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.topbar-info, .topbar-contact {
  display: flex;
  gap: 20px;
}

.topbar strong {
  color: var(--gold-400);
}

/* HEADER NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 42, 96, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-400), var(--blue-600));
  box-shadow: 0 4px 15px rgba(11, 94, 215, 0.2);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy-900);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.logo-placeholder.small {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.brand-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue-700);
}

.brand-text strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--navy-900);
  line-height: 1;
}

.brand-text small {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--navy-900);
}

.nav a:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.menu-toggle, .menu-button {
  display: none;
}

/* ---------------------------------------------------------
   HERO BANNER
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: #ffffff;
  padding-block: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(22, 133, 239, 0.15), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-400);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-feature-box {
  border-color: rgba(245, 158, 11, 0.3);
}

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

.feature-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-list {
  list-style: none;
  margin-bottom: 25px;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.hero-list span {
  color: var(--emerald-500);
  font-weight: 900;
}

/* ---------------------------------------------------------
   QUICK STATS RIBBON
   --------------------------------------------------------- */
.quick-stats {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 15px;
  border-right: 1px solid var(--border-light);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  font-size: 2.2rem;
}

.stat-text strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat-text span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   GENERAL SECTIONS
   --------------------------------------------------------- */
.section {
  padding-block: 85px;
}

/* ---------------------------------------------------------
   COURSES SECTION (LỚP 1 - LỚP 12)
   --------------------------------------------------------- */
.courses-section {
  background-color: var(--bg-main);
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.tab-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.course-card {
  position: relative;
  background: var(--bg-card);
  border: 1fr solid var(--border-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.course-card.featured {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.course-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 800;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 12px;
}

.course-badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.course-badge.purple {
  background: #f3e8ff;
  color: #6b21a8;
}

.course-badge.gold {
  background: var(--gold-500);
  color: var(--navy-950);
}

.course-grade-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #f1f5f9;
  z-index: 1;
}

.course-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.course-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-features {
  list-style: none;
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
  margin-bottom: 20px;
}

.course-features li {
  font-size: 0.825rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-features li::before {
  content: "✓";
  color: var(--emerald-500);
  font-weight: 900;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.course-fee {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
}

.course-fee.highlight {
  color: var(--rose-500);
}

.course-fee span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   TUITION CALCULATOR & FLEXIBILITY SECTION
   --------------------------------------------------------- */
.calculator-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.calc-header h2 {
  font-size: 1.8rem;
  margin-block: 6px 10px;
}

.calc-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-select, .form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-control:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(22, 133, 239, 0.15);
}

.subject-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.checkbox-btn:hover {
  border-color: var(--blue-500);
}

.checkbox-btn.group-bonus {
  background: var(--gold-100);
  border-color: var(--gold-400);
  color: #92400e;
  margin-top: 5px;
}

.calc-result-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 25px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.925rem;
  margin-bottom: 10px;
}

.result-row.total {
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.1rem;
}

.result-row.total strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: var(--rose-500);
}

.green-text {
  color: var(--emerald-500);
}

.calc-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-block: 10px 18px;
  text-align: center;
}

/* FLEXIBILITY CARD */
.flexibility-card {
  padding-top: 10px;
}

.flex-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.flexibility-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.flexibility-card > p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 30px;
}

.flex-features {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.flex-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.flex-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.flex-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.flex-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.promo-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.promo-box h4 {
  color: #b45309;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.promo-box ul {
  list-style: none;
}

.promo-box li {
  font-size: 0.85rem;
  color: #78350f;
  margin-bottom: 6px;
}

.promo-box li::before {
  content: "🎁 ";
}

/* ---------------------------------------------------------
   REAL CLASSROOM GALLERY SECTION
   --------------------------------------------------------- */
.gallery-section {
  background: var(--bg-main);
}

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

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-500);
}

.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-card figcaption {
  padding: 20px;
  background: #ffffff;
}

.gallery-card figcaption strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.gallery-card figcaption span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   TEACHER SECTION
   --------------------------------------------------------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.teacher-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.teacher-img-box {
  position: relative;
  height: 240px;
  background: var(--blue-50);
  overflow: hidden;
}

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

.teacher-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
}

.teacher-placeholder.blue-bg {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.teacher-placeholder.purple-bg {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.teacher-placeholder small {
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.85;
}

.teacher-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(8, 26, 62, 0.85);
  color: var(--gold-400);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.725rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.teacher-content {
  padding: 22px;
}

.teacher-content h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.teacher-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-700);
  display: block;
  margin-bottom: 10px;
}

.teacher-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.teacher-highlights {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--navy-900);
  font-weight: 700;
}

/* ---------------------------------------------------------
   TESTIMONIALS & FAQ
   --------------------------------------------------------- */
.testimonials-section {
  background: var(--blue-50);
}

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

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.stars {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.reviewer span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* FAQ ACCORDION */
.faq-section {
  background: #ffffff;
}

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

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: #ffffff;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--navy-900);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue-600);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: var(--bg-main);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 22px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   LOCATION MAP & CONTACT SECTION
   --------------------------------------------------------- */
.contact-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.contact-info-card h2 {
  font-size: 1.8rem;
  margin-block: 6px 10px;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.contact-detail-list {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.detail-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.detail-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.google-map-wrapper {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-inline: 4px;
}

.map-link-btn {
  color: var(--blue-700);
}

.map-link-btn:hover {
  text-decoration: underline;
}

/* CONTACT FORM CARD */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.form-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.required {
  color: var(--rose-500);
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  color: #94a3b8;
  font-size: 0.875rem;
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo strong {
  display: block;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
}

.footer-logo small {
  display: block;
  font-size: 0.725rem;
  color: var(--gold-400);
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--gold-400);
  font-weight: 700;
}

.footer-bottom {
  padding-block: 20px;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scroll-top-btn {
  color: var(--gold-400);
  font-weight: 700;
}

/* ---------------------------------------------------------
   FLOATING ACTION BUTTONS
   --------------------------------------------------------- */
.floating-contact-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.phone-btn {
  background: var(--navy-900);
  border: 1px solid var(--gold-400);
}

.zalo-btn {
  background: #0084ff;
}

.reg-btn {
  background: linear-gradient(135deg, var(--gold-500), #d97706);
  color: var(--navy-950);
}

/* ---------------------------------------------------------
   MODAL POPUP & QUIZ MODAL
   --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 14, 36, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  position: relative;
  width: min(540px, 100%);
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: var(--transition);
}

.modal.active .glass-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

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

.modal-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.modal-badge.gold {
  background: var(--gold-100);
  color: #b45309;
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* QUIZ MODAL SPECIAL STYLES */
.quiz-modal-content {
  width: min(640px, 100%);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}

.quiz-opt {
  cursor: pointer;
}

.quiz-opt input {
  display: none;
}

.opt-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  transition: var(--transition);
}

.quiz-opt input:checked + .opt-box {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px var(--blue-600);
}

.opt-icon {
  font-size: 1.6rem;
}

.opt-box strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.opt-box small {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESULT CARD */
.result-card {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 25px;
  text-align: center;
}

.result-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.result-card p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.result-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border-left: 5px solid var(--emerald-500);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast-warning {
  border-left-color: var(--gold-500);
}

.toast-content {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    border-bottom: 1px solid var(--border-light);
  }
  
  .calc-layout, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid, .teacher-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid .gallery-card:last-child {
    grid-column: span 2;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding-block: 6px;
  }
  
  .topbar-info, .topbar-contact {
    gap: 10px;
    font-size: 0.75rem;
  }
  
  .nav-wrap {
    min-height: 70px;
  }
  
  .menu-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 1.4rem;
    cursor: pointer;
  }
  
  .nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  
  .menu-toggle:checked ~ .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 10px 14px;
  }

  .hero {
    padding-block: 40px;
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid, .teacher-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid .gallery-card:last-child {
    grid-column: span 1;
  }

  .gallery-img {
    height: 250px;
  }

  .subject-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .floating-contact-bar {
    left: 10px;
    bottom: 10px;
  }
  
  .float-text {
    display: none;
  }
  
  .float-btn {
    padding: 12px;
    border-radius: 50%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* OFFICIAL PROMO & FEE DETAIL STYLES */
.official-promo {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.official-promo h4 {
  color: #b45309;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.official-list {
  list-style: none;
}

.official-list li {
  font-size: 0.9rem;
  color: #78350f;
  margin-bottom: 12px;
  line-height: 1.5;
}

.fee-detail {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 6px;
  border: 1px dashed var(--gold-400);
}

.fee-detail p {
  font-size: 0.875rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.fee-detail p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   INLINE ADVISOR QUIZ SECTION STYLES
   --------------------------------------------------------- */
.quiz-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.quiz-container-box {
  max-width: 860px;
  margin: 0 auto;
}

.quiz-intro h2 {
  color: #ffffff;
}

.quiz-intro p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 30px;
}

.quiz-card-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
}

/* PROGRESS BAR */
.quiz-progress-bar-wrap {
  margin-bottom: 30px;
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* INLINE QUIZ STEPS */
.inline-quiz-step {
  display: none;
}

.inline-quiz-step.active {
  display: block;
}

.inline-quiz-step h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.inline-quiz-options {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.inline-opt {
  cursor: pointer;
}

.inline-opt input[type="radio"] {
  display: none;
}

.inline-opt-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.inline-opt-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--blue-500);
}

.inline-opt input[type="radio"]:checked + .inline-opt-box {
  background: rgba(14, 42, 96, 0.9);
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.opt-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.inline-opt-box strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.inline-opt-box small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
}

.inline-quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESULT CARD STYLES */
.inline-result-wrapper {
  animation: fadeInUp 0.4s ease-out;
}

.inline-result-card {
  background: rgba(8, 26, 62, 0.9);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.result-header-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.inline-result-card h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.result-summary-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto 24px;
}

.result-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.info-tag-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
}

.info-tag-box span {
  display: block;
  font-size: 0.775rem;
  color: #94a3b8;
}

.info-tag-box strong {
  display: block;
  font-size: 0.925rem;
  color: #ffffff;
}

.green-price {
  color: var(--gold-400) !important;
}

.result-promo-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 25px;
}

.result-promo-banner strong {
  display: block;
  color: var(--emerald-500);
  font-size: 1rem;
}

.result-promo-banner span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* LIGHTBOX MODAL STYLES */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(4, 14, 36, 0.92);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lightbox-content p {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 14px;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}


.result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
