/* ==========================================================================
   NationwideMaster.com - Premier Test Prep & Academic Excellence
   Design System & Master Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette derived from business card & flyers */
  --primary-deep: #0B1936;
  --primary-navy: #0F2552;
  --primary-blue: #1E3A8A;
  --primary-light: #2563EB;

  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-cyan: #0284C7;
  --accent-cyan-light: #E0F2FE;

  /* Neutral Spectrum */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #070F22;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-color: #E2E8F0;
  --border-gold: rgba(245, 158, 11, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 37, 82, 0.08), 0 2px 4px -1px rgba(15, 37, 82, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 37, 82, 0.12), 0 8px 10px -6px rgba(15, 37, 82, 0.06);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);
  --shadow-blue-glow: 0 0 25px rgba(37, 99, 235, 0.25);

  /* Typography & Radius */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", "Noto Sans SC", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Title Styling */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--accent-amber-light);
  color: var(--accent-gold-hover);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border: 1px solid var(--border-gold);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. Top Announcement Bar & Sticky Header
   -------------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-navy));
  color: var(--text-white);
  padding: 0.6rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.notice-badge {
  background-color: var(--accent-gold);
  color: var(--primary-deep);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;

  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-white);
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact-pill:hover {
  color: var(--accent-gold);
}

/* Language Switcher Buttons */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0.8;
}

.lang-btn.active, .lang-btn:hover {
  background-color: var(--text-white);
  color: var(--primary-deep);
  opacity: 1;
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-navy));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.logo-icon-wrap svg {
  width: 30px;
  height: 30px;
  fill: var(--accent-gold);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-cn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
  letter-spacing: 0.08em;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

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

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-deep);
  cursor: pointer;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.btn-navy {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-deep));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-navy));
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-white);
}

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--primary-deep);
  border-color: var(--text-white);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #070F22 0%, #0F2552 60%, #1E3A8A 100%);
  color: var(--text-white);
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-title span.gold-gradient {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-badge-item svg {
  color: var(--accent-gold);
  width: 20px;
  height: 20px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Hero Interactive Card / Card Mockup */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.hero-card-live-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
}

.hero-card-live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
}

.stat-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-preview-box {
  background: rgba(15, 37, 82, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.3rem;
  font-weight: 600;
}

.countdown-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  min-width: 44px;
}

.timer-unit {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. Track Record & Stats Counter Section
   -------------------------------------------------------------------------- */
.track-record {
  padding: 5rem 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold));
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-amber-light);
  color: var(--accent-gold-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.stat-card-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stat-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Detailed Achievements Highlight Box */
.achievements-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-navy));
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.achievements-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.achievements-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.achievements-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-item svg {
  color: var(--accent-gold);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.achievement-text strong {
  color: var(--accent-gold);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Featured Courses Section
   -------------------------------------------------------------------------- */
.courses-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.course-card.featured {
  border: 2px solid var(--accent-gold);
  position: relative;
}

.course-card.featured::after {
  content: attr(data-badge);
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.course-header {
  padding: 2.25rem 2.25rem 1.5rem 2.25rem;
  background: linear-gradient(135deg, #0F2552, #1E3A8A);
  color: var(--text-white);
}

.course-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.course-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.course-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.course-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-info-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.course-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.course-highlights-box {
  background-color: var(--accent-amber-light);
  border: 1px dashed var(--accent-gold);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.course-highlights-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold-hover);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-highlights-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.course-highlights-list li::before {
  content: '✓ ';
  color: var(--accent-gold-hover);
  font-weight: 900;
}

.course-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discounted {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-deep);
}

/* Pricing Matrix Table for Fall 2026 */
.pricing-matrix-wrap {
  margin-top: 4rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.table-responsive {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.pricing-table th, .pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: var(--primary-deep);
  color: var(--text-white);
  font-weight: 700;
}

.pricing-table th:first-child {
  border-top-left-radius: var(--radius-md);
}

.pricing-table th:last-child {
  border-top-right-radius: var(--radius-md);
}

.pricing-table tr:hover td {
  background-color: var(--bg-main);
}

.price-tag-gold {
  color: var(--accent-gold-hover);
  font-weight: 800;
  background: var(--accent-amber-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. Interactive Scholarship & Early Bird Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #070F22 0%, #0F2552 100%);
  color: var(--text-white);
  position: relative;
}

.calculator-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(15, 37, 82, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.calc-select option {
  background-color: var(--primary-deep);
  color: var(--text-white);
}

/* Result Box */
.calc-result-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.02));
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.calc-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-deep);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.calc-final-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-savings-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.calc-savings-text strong {
  color: #10B981;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. Class Schedule & Calendar View
   -------------------------------------------------------------------------- */
.schedule-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.85rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.schedule-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-date {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 0.3rem;
}

.timeline-session {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Testimonials & FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 6rem 0;
  background-color: var(--bg-card);
}

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

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: var(--bg-main);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-gold-hover);
  font-weight: 700;
  transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background-color: var(--bg-card);
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.35rem 1.75rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   11. Contact & Location Info
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-cyan-light);
  color: var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.25rem;
}

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

.map-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: #E2E8F0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.transit-info-box {
  padding: 1.75rem 2rem;
  background-color: var(--primary-deep);
  color: var(--text-white);
}

.transit-info-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   12. Registration Modal Dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 15, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-navy));
  color: var(--text-white);
  padding: 2.25rem 2.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.modal-body {
  padding: 2.25rem 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Success state */
.form-success-message {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success-message.active {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #D1FAE5;
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 2rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-title {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   14. Responsive Layouts & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

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

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

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

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

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

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

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .calc-final-price {
    font-size: 2.75rem;
  }
}
