/*
Theme Name: Mandarin Simple Kids
Theme URI: http://mandarinsimple.com
Author: Antigravity AI
Description: A highly vibrant, interactive, and playful theme for learning Mandarin. Replicated from the Premium HTML version.
Version: 2.0
Text Domain: mandarinsimple-kids
*/

/* -------------------- CSS Variables -------------------- */
:root {
  /* Primary Colors - Chinese Theme */
  --primary-red: #E53935;
  --primary-red-dark: #C62828;
  --primary-red-light: #EF5350;
  
  /* Accent Colors */
  --gold: #FFB300;
  --gold-dark: #FF8F00;
  --gold-light: #FFCA28;
  
  /* Neutral Colors */
  --navy: #3949AB; /* More vibrant blue */
  --navy-light: #5C6BC0;
  --sky-blue: #4FC3F7;
  --dark: #212121;
  --gray-900: #424242;
  --gray-700: #616161;
  --gray-500: #9E9E9E;
  --gray-300: #E0E0E0;
  --gray-100: #F5F5F5;
  --white: #FAFAFA;
  --pure-white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #0D1117 0%, #1A237E 50%, #E53935 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05); /* Slightly more subtle for darker theme */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(15px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Nunito', 'Inter', sans-serif; /* Added Nunito as primary body font */
  --font-chinese: 'Noto Sans SC', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(229, 57, 53, 0.3);
  --shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Prevent any element from creating horizontal scroll on mobile */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  /* Containment: no element may bleed past the body edge */
  position: relative;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--spacing-md);
}

/* Fix visibility on dark backgrounds */
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.hero h1, .hero h2, .hero h3, .hero h4,
.cta h1, .cta h2, .cta h3, .cta h4,
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4,
main[style*="background: var(--dark)"] h1,
main[style*="background: var(--dark)"] h2,
main[style*="background: var(--dark)"] h3,
main[style*="background: var(--dark)"] h4 {
  color: var(--pure-white) !important;
}

.section--dark p, .hero p, .cta p, .glass-card p,
main[style*="background: var(--dark)"] p {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark th, .glass-card th {
  color: var(--gold) !important;
}

.section--dark td, .glass-card td {
  color: rgba(255, 255, 255, 0.9) !important;
}

.section--dark .subtitle, .hero .subtitle, .cta .subtitle {
  color: var(--gold-light);
}

/* -------------------- Utilities -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
  /* Containment: children may not bleed outside */
  overflow-x: clip;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------- Animations -------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 179, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}
.animate-fade { animation: fadeIn 0.8s ease-out forwards; }
.animate-pulse-gold { animation: pulseGold 2s infinite; }

/* Section Utilities */
.section--dark { background: var(--dark); color: #fff; }
.section--light { background: var(--white); color: var(--dark); }
.section-header--center { text-align: center; margin-bottom: 60px; }
.subtitle--gold { color: var(--gold-light); }

/* Card Utilities */
.glass-card--subtle { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.05); }
.glass-card--featured { border-color: var(--gold); background: rgba(255, 179, 0, 0.05); }

/* Feature Card Enhancements */
.feature-card__icon--lg { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card__text--subtle { color: inherit; opacity: 0.85; font-size: 0.95rem; }

/* Hero Enhancements */
.hero__image-container { padding: 15px; border-radius: 30px; }
.hero__decoration { padding: 10px 20px; border-radius: 12px; font-family: var(--font-chinese); font-size: 1.5rem; position: absolute; }

/* Lead Magnet Enhancements */
.lead-magnet__card { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; padding: 50px; border-radius: 40px; background: rgba(0, 0, 0, 0.3); }
.lead-magnet__img { border-radius: 20px; width: 100%; }
.lead-magnet__floating-badge { position: absolute; top: -15px; right: -15px; background: var(--gold); color: var(--dark); padding: 8px 20px; border-radius: 25px; font-weight: 800; font-size: 0.85rem; }
.lead-magnet__form { display: flex; gap: 15px; flex-wrap: wrap; }

/* Course Card Enhancements */
.course-card__image { height: 180px; position: relative; }
.course-card__content { padding: 30px; }
.course-card__footer { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 15px; }

/* Testimonial Card Enhancements */
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }

/* -------------------- Components -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn--gold {
  background: var(--gradient-gold);
  color: var(--dark);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 179, 0, 0.3);
}
.btn--secondary {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}
.btn--secondary:hover {
  background: var(--primary-red);
  color: #fff;
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.section--dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.section--dark .btn--outline:hover {
  background: #fff !important;
  color: var(--dark) !important;
  border-color: #fff !important;
}
.btn--lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }

/* -------------------- Header -------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 80px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}
.nav__logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-family: var(--font-chinese);
}
.nav__menu { display: flex; gap: 30px; }
.nav__link { font-weight: 500; color: var(--gray-700); }
.nav__link:hover, .nav__link.active { color: var(--primary-red); }

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Overlay — clean white panel */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.nav__drawer.open { transform: translateX(0); }

/* Drawer header strip */
.nav__drawer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold));
  flex-shrink: 0;
}

/* Close button override in white drawer */
.nav__drawer #close-drawer {
  color: var(--dark) !important;
}

/* Drawer section divider */
.drawer__divider {
  height: 1px;
  background: #f0f0f0;
  border-radius: 0;
  margin: 6px 20px;
  width: auto;
}

/* Group label */
.drawer__group-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
  margin: 14px 20px 4px;
  text-align: left;
}

/* Main nav links — large tap targets, dark text */
.nav__drawer-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 20px;
  border-radius: 0;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
}
.nav__drawer-link:hover,
.nav__drawer-link:active {
  color: var(--primary-red);
  background: #fff5f5;
}

/* Section anchor links — smaller, grey tinted */
.nav__drawer-anchor {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 11px 20px;
  border-radius: 0;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  border: none;
}
.nav__drawer-anchor:hover,
.nav__drawer-anchor:active {
  color: var(--primary-red);
  background: #fff0f0;
}

/* CTA buttons inside drawer */
.drawer__actions {
  padding: 16px 20px !important;
  background: #fff;
}
.drawer__actions .btn {
  font-size: 0.95rem !important;
}

.nav__actions { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex; gap: 5px; padding: 5px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
}
.lang-switch__btn { 
  padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; cursor: pointer;
}
.lang-switch__btn.active { background: var(--primary-red); color: #fff; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='30' y='35' font-size='20' fill='white' text-anchor='middle'%3E中%3C/text%3E%3C/svg%3E");
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  /* Prevent the grid from exceeding viewport width */
  width: 100%; min-width: 0;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; background: rgba(255,255,255,0.1);
  border-radius: 40px; margin-bottom: 20px; font-size: 0.9rem;
}
.hero__badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.hero__title {
  color: #fff;
  font-size: clamp(1.6rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 25px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* Never exceed the column width */
  max-width: 100%;
  min-width: 0;
}
.hero__chinese { display: block; font-size: 1.5rem; opacity: 0.6; margin-top: 10px; }
.hero__description { font-size: 1.25rem; opacity: 0.8; margin-bottom: 40px; max-width: 500px; }
.hero__buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero__image-wrapper { position: relative; }
.hero__image-main { 
  border-radius: var(--radius-xl); 
  box-shadow: var(--shadow-xl); 
  width: 100%;
}
.hero__decoration {
  position: absolute; width: 80px; height: 80px;
  background: var(--gradient-gold); border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--dark); font-family: var(--font-chinese);
}
.hero__decoration--1 { top: -20px; right: -20px; }
.hero__decoration--2 { bottom: 30px; left: -30px; }

/* -------------------- Sections -------------------- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.subtitle { 
  color: var(--primary-red); font-weight: 600; text-transform: uppercase; 
  letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px;
}

.feature-card {
  padding: 40px; border-radius: var(--radius-lg); 
  background: rgba(0, 0, 0, 0.2); /* Dark glass for contrast */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-premium); }
.feature-card__icon { font-size: 2.5rem; margin-bottom: 20px; }

/* -------------------- Tutor LMS Overrides (Premium Dark) -------------------- */
.tutor-single-course-sidebar { 
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--radius-lg) !important;
  color: #fff !important;
}
.tutor-course-header h1 { color: #fff !important; }
.tutor-course-metadata { color: rgba(255,255,255,0.6) !important; }
.tutor-btn-enroll {
  background: var(--gradient-gold) !important;
  color: var(--dark) !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
}
.tutor-course-topic-title { color: #fff !important; }
.tutor-course-lesson { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; }
.tutor-course-lesson:hover { background: rgba(255,179,0,0.05) !important; }

/* Dashboard Overrides */
.tutor-dashboard-main { color: #fff !important; }
.tutor-dashboard-menu-item a { color: rgba(255,255,255,0.7) !important; }
.tutor-dashboard-menu-item.active a { color: var(--gold) !important; border-left-color: var(--gold) !important; }

/* -------------------- Footer -------------------- */
.footer { background: var(--dark); color: #fff; padding: 80px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__description { opacity: 0.6; margin: 20px 0; font-size: 0.9rem; }
.footer__title { color: #fff; margin-bottom: 25px; }
.footer__links a { color: #fff; opacity: 0.6; display: block; margin-bottom: 12px; }
.footer__links a:hover { opacity: 1; color: var(--gold); }
.footer__nav-col h4 { color: #fff; margin-bottom: 25px; }
.footer__nav-col ul { list-style: none; padding: 0; }
.footer__nav-col li { margin-bottom: 12px; }
.footer__nav-col a { color: rgba(255, 255, 255, 0.6); transition: var(--transition-normal); }
.footer__nav-col a:hover { color: var(--gold); }

.footer__bottom { 
  margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; 
  color: rgba(255, 255, 255, 0.4); font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: inherit; transition: var(--transition-fast); }
.footer__legal a:hover { color: #fff; }

@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 30px;
  }
  .hero__title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .hero__buttons { justify-content: center; flex-wrap: wrap; }
  .hero__description { max-width: 100%; }
  .hero__image-wrapper { max-width: 460px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Mobile Nav Logic */
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  /* Lead magnet stacks on tablet */
  .lead-magnet__card { grid-template-columns: 1fr !important; padding: 35px 25px; gap: 25px; }
  .lead-magnet__form { flex-direction: column; }
  .lead-magnet__form input,
  .lead-magnet__form button { width: 100%; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 100px 0 56px; overflow: hidden; }

  /* Force single column — belt & suspenders */
  .hero__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  /* text-gradient spans must not exceed parent width */
  .hero__title .text-gradient {
    display: inline;
    white-space: normal;
  }
  .hero__description { font-size: 1rem; }
  .hero__chinese { font-size: 1.1rem; }
  .hero__buttons { flex-direction: column; width: 100%; }
  .hero__buttons .btn { width: 100%; justify-content: center; }

  /* Hide decorative image to prevent layout blowout */
  .hero__image-wrapper { display: none; }
  .hero__decoration--1,
  .hero__decoration--2 { display: none; }

  .container { padding: 0 16px; overflow-x: clip; }
  .nav__actions { display: none; }
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .pricing-card { padding: 35px 20px; }
  .feature-card { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 15px; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  /* Hard containment — nothing may cause horizontal scroll */
  *, *::before, *::after { max-width: 100%; }
  .section, .hero, .footer, .container, main { max-width: 100vw; overflow-x: hidden; }

  /* Drawer: tighter on small screens */
  .nav__drawer { padding: 64px 16px 28px; }
  .nav__drawer-link { font-size: 1.05rem; padding: 7px 12px; }
  .nav__drawer-anchor { font-size: 0.85rem; padding: 6px 12px; }
  .drawer__group-label { font-size: 0.6rem; margin: 8px 0 3px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(1.4rem, 8.5vw, 1.85rem) !important; }
  .hero__buttons .btn--lg { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .hero__badge { font-size: 0.78rem; padding: 5px 12px; }
  .testimonial-card { padding: 25px 18px; }
  .section-header--center { margin-bottom: 35px; }
  .footer { padding: 60px 0 30px; }
  .lead-magnet__card { border-radius: 20px; padding: 25px 18px; }
}
/* -------------------- Subpages Components -------------------- */

/* Pricing Tables */
.pricing-card {
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.pricing-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
}
.pricing-card--featured {
  border-color: var(--gold);
  background: rgba(255, 179, 0, 0.05);
}
.pricing-card__badge {
  position: absolute;
  top: 20px; right: -30px;
  background: var(--gold);
  color: var(--dark);
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
}
.pricing-card__name { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.pricing-card__price { font-size: 3.5rem; font-weight: 800; color: var(--gold); margin-bottom: 30px; }
.pricing-card__price span { font-size: 1rem; opacity: 0.6; }
.pricing-card__features { text-align: left; margin-bottom: 40px; }
.pricing-card__feature { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.pricing-card__feature::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* Contact Form Premium */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; opacity: 0.8; }
.form-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
select.form-input option { background: var(--dark); color: #fff; }

/* Page Header */
.page-header {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  color: #fff;
}
.page-header h1 { color: #fff; font-size: 3.5rem; }
/* Testimonials (Premium Dark) */
.testimonial-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition-normal);
  color: #fff;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
}
.testimonial-card__quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testimonial-card__avatar {
  width: 50px; height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.testimonial-card__name { font-weight: 700; font-size: 1rem; }
.testimonial-card__role { font-size: 0.8rem; opacity: 0.6; }

/* Course Filters */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* Footer Bottom Polish */
.footer__social-links { display: flex; gap: 15px; margin-top: 20px; }
.footer__social-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}
.footer__social-icon:hover { background: var(--gold); transform: scale(1.1); }

/* -------------------- Blog Article Content Styles -------------------- */
.post-content p { margin-bottom: 20px; line-height: 1.8; }
.post-content h3 { color: var(--gold); margin: 40px 0 20px; }

.hsk-tip {
  background: rgba(92, 107, 192, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0;
  border-left: 4px solid #5C6BC0;
  color: rgba(255,255,255,0.9);
}
.hsk-tip h3 { color: #fff; margin-top: 0; font-size: 1.2rem; }


.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.post-content th {
  background: rgba(255, 179, 0, 0.1);
  color: var(--gold);
  padding: 15px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 179, 0, 0.2);
}
.post-content td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.post-content tr:hover { background: rgba(255, 255, 255, 0.02); }

/* -------------------- Language Visibility Utilities -------------------- */
body.lang-en .lang-es-only { display: none !important; }
body.lang-es .lang-en-only { display: none !important; }
body:not(.lang-en) .lang-en-only { display: none !important; }
body:not(.lang-es) .lang-es-only { display: none !important; }

/* Grid Utilities */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2.5rem; }
}
