/*
Theme Name: MandarinSimple Vanguard
Theme URI: http://mandarinsimple.com
Author: Antigravity AI
Description: MandarinSimple Vanguard - Ink Stone design system with motion (2026-09-30).
Version: 3.0
Text Domain: mandarinsimple-kids
*/

/* -------------------- CSS Variables -------------------- */
:root {
  /* Primary Colors - Chinese Theme */
  --primary-red: #E3342F;
  --primary-red-dark: #B91C1C;
  --primary-red-light: #F87171;
  
  /* Accent Colors */
  --gold: #FFB300;
  --gold-dark: #FF8F00;
  --gold-light: #FFCA28;
  
  /* Neutral Colors */
  --navy: #1E293B; /* Slate dark blue */
  --navy-light: #475569;
  --sky-blue: #E2E8F0;
  --dark: #0F172A; /* Deep slate */
  --gray-900: #1E293B;
  --gray-700: #475569;
  --gray-500: #64748B;
  --gray-300: #CBD5E1;
  --gray-100: #F1F5F9;
  --white: #FCFAF7; /* Ivory cream background */
  --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, #FFF5F5 0%, #FCFAF7 50%, #FFFFFF 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  
  /* Glassmorphism */
  --glass-bg: #FFFFFF;
  --glass-border: rgba(227, 52, 47, 0.08);
  --glass-blur: none;
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Nunito', 'Inter', sans-serif;
  --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: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 15px 35px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 25px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(227, 52, 47, 0.2);
  --shadow-premium: 0 35px 70px -15px rgba(15, 23, 42, 0.08);
  
  /* 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(227, 52, 47, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(227, 52, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 52, 47, 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; }

/* -------------------- 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.16);
  border-radius: 40px; margin-bottom: 20px; font-size: 0.9rem;
  color: rgba(255,255,255,0.94);
}
.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.82; margin-top: 10px; }
.hero__description { font-size: 1.25rem; opacity: 0.94; margin-bottom: 40px; max-width: 500px; }
.hero__buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero__image-wrapper { position: relative; }
.hero__focus-card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(10,18,38,0.92), rgba(17,37,68,0.78)) !important;
}
.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; }

  .hero__image-wrapper {
    display: block;
    width: min(100%, 440px);
    max-width: 100%;
    margin: 4px auto 0;
  }
  .hero__image-main { border-radius: 18px; }
  .hero__focus-card {
    position: static !important;
    margin: 12px 0 0 !important;
    width: 100%;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
  }
  .hero__decoration {
    width: 64px;
    height: 64px;
    font-size: 1.1rem;
  }
  .hero__decoration--1 {
    display: flex;
    top: -10px;
    right: 10px;
  }
  .hero__decoration--2 {
    display: flex;
    left: 10px;
    bottom: 18px;
  }

  .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; }
  .hero__image-wrapper { width: 100%; }
  .hero__focus-card {
    margin-top: 10px !important;
    padding: 10px 12px !important;
  }
  .hero__decoration {
    width: 56px;
    height: 56px;
    font-size: 0.95rem;
  }
  .hero__decoration--1 { right: 6px; }
  .hero__decoration--2 {
    left: 6px;
    bottom: 14px;
  }
}
/* -------------------- 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);
}

/* -------------------- 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); }

/* -------------------- Spanish-only Visibility Utilities -------------------- */
.lang-en-only { display: none !important; }
.lang-es-only { display: revert; }

/* 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; }
}

/* ---- Btn small util ---- */
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* When inside a pricing section, block ALL injected inline elements */
.pc-card .plan-cta-wrap > *:not(.plan-cta) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Make sure plan-cta children are left alone */
.plan-cta > span { pointer-events: none; }

/* -------------------- 2026 Public Redesign -------------------- */
:root {
  --ms-ink: #172033;
  --ms-muted: #5f6b7a;
  --ms-cream: #fff8ec;
  --ms-paper: #fffdf8;
  --ms-mint: #e9f6f3;
  --ms-jade: #1f7a68;
  --ms-red: #d9342f;
  --ms-red-dark: #aa2724;
  --ms-gold: #f4b21a;
  --ms-line: rgba(23, 32, 51, 0.1);
  --ms-shadow-soft: 0 20px 50px rgba(23, 32, 51, 0.1);
}

body {
  color: var(--ms-ink);
  background: var(--ms-cream);
}

.site-header {
  height: 72px;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--ms-line);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.05);
}

.nav__logo {
  color: var(--ms-ink);
  letter-spacing: 0;
}

.nav__logo-icon {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ms-red), var(--ms-red-dark));
  box-shadow: 0 10px 22px rgba(217, 52, 47, 0.22);
}

.nav__menu {
  gap: 22px;
}

.nav__link {
  color: rgba(23, 32, 51, 0.72);
  font-weight: 700;
}

.nav__link:hover,
.nav__link.active {
  color: var(--ms-red);
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.btn--primary,
.btn--gold {
  background: linear-gradient(135deg, var(--ms-red), var(--ms-red-dark));
  color: #fff;
}

.btn--gold:hover,
.btn--primary:hover,
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(217, 52, 47, 0.22);
}

.btn--secondary,
.btn--outline {
  background: #fff;
  border: 1px solid var(--ms-line);
  color: var(--ms-ink);
}

.btn--secondary:hover,
.btn--outline:hover {
  background: var(--ms-ink);
  border-color: var(--ms-ink);
  color: #fff;
}

.cta.section--dark .btn--outline,
.page-header .btn--outline,
.ms-advisor-card .btn--outline {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
}

.cta.section--dark .btn--outline:hover,
.page-header .btn--outline:hover,
.ms-advisor-card .btn--outline:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--ms-ink) !important;
}

.hero .btn--gold,
.lead-magnet .btn--gold,
.ms-home-page .courses .btn--gold,
.ms-courses-page .btn--gold,
.auth-page .btn-submit.gold-btn {
  background: linear-gradient(135deg, var(--ms-gold), #ffcc45);
  color: var(--ms-ink);
  box-shadow: 0 12px 26px rgba(244, 178, 26, 0.22);
}

.hero .btn--gold:hover,
.lead-magnet .btn--gold:hover,
.ms-home-page .courses .btn--gold:hover,
.ms-courses-page .btn--gold:hover,
.auth-page .btn-submit.gold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(244, 178, 26, 0.34);
  filter: saturate(1.06);
}

.hero .btn--outline {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  color: var(--ms-ink) !important;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.06);
}

.hero .btn--outline:hover {
  background: var(--ms-ink) !important;
  border-color: var(--ms-ink) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.16);
}

.btn:focus-visible,
.btn-submit:focus-visible,
.ms-filter-btn:focus-visible,
.nav__toggle:focus-visible {
  outline: 3px solid rgba(244, 178, 26, 0.42);
  outline-offset: 3px;
}

.btn--lg {
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

.nav__toggle {
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ms-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__drawer {
  background: var(--ms-paper);
  z-index: 1200;
}

.nav__drawer::before {
  background: linear-gradient(90deg, var(--ms-red), var(--ms-gold), var(--ms-jade));
}

.drawer__group-label {
  color: rgba(23, 32, 51, 0.46);
}

.nav__drawer-link,
.nav__drawer-anchor {
  background: transparent;
  color: var(--ms-ink);
  border-bottom: 1px solid var(--ms-line);
}

.nav__drawer-link::after,
.nav__drawer-anchor::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid rgba(23, 32, 51, 0.28);
  border-right: 2px solid rgba(23, 32, 51, 0.28);
  transform: rotate(45deg);
}

.nav__drawer-link:hover,
.nav__drawer-anchor:hover {
  color: var(--ms-red);
  background: rgba(217, 52, 47, 0.06);
}

.drawer__actions {
  border-top: 1px solid var(--ms-line) !important;
  background: #fff !important;
}

.ms-home-page {
  background: var(--ms-cream);
  color: var(--ms-ink);
}

.hero {
  min-height: auto;
  padding: 132px 0 78px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.98) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(233, 246, 243, 0.98) 100%) !important;
  color: var(--ms-ink) !important;
  border-bottom: 1px solid var(--ms-line);
}

.hero__bg {
  opacity: 0.18;
  background-image:
    radial-gradient(circle at center, rgba(217, 52, 47, 0.14) 1px, transparent 1.4px);
  background-size: 28px 28px;
}

.hero__grid {
  gap: 46px !important;
}

.hero__badge {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  box-shadow: none;
  backdrop-filter: blur(12px);
  color: rgba(23, 32, 51, 0.72) !important;
}

.hero__title {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
  color: var(--ms-ink) !important;
}

.hero .hero__title,
.hero .hero__chinese {
  color: var(--ms-ink) !important;
}

.hero__title .text-gradient {
  display: block;
  background: linear-gradient(135deg, var(--ms-red) 0%, #8a5800 46%, var(--ms-jade) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__description {
  max-width: 640px;
  color: rgba(23, 32, 51, 0.72) !important;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero__text > div[style*="display:flex"][style*="margin: 24px"] span {
  background: #fff !important;
  border: 1px solid var(--ms-line);
  color: rgba(23, 32, 51, 0.78) !important;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.hero .grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero .glass-card--subtle {
  background: #fff !important;
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-soft);
}

.hero .glass-card--subtle strong {
  color: var(--ms-ink) !important;
}

.hero .glass-card--subtle p {
  color: rgba(23, 32, 51, 0.68) !important;
}

.hero__image-container {
  background: #fff !important;
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-soft);
}

.hero__image-main {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__decoration {
  border-radius: 8px;
  background: #fff;
  color: var(--ms-red);
  box-shadow: var(--ms-shadow-soft);
}

.hero__focus-card {
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid var(--ms-line);
  box-shadow: 0 24px 48px rgba(23, 32, 51, 0.12);
}

.hero__focus-card p {
  color: rgba(23, 32, 51, 0.72) !important;
}

.hero__focus-card div {
  color: var(--ms-red) !important;
}

.ms-home-page > .section,
.ms-home-page .features,
.ms-home-page .courses,
.ms-home-page .testimonials {
  background: var(--ms-cream) !important;
  color: var(--ms-ink);
}

.section-header h2,
.ms-home-page h2,
.ms-home-page h3,
.ms-home-page h4 {
  color: var(--ms-ink) !important;
}

.subtitle,
.subtitle--gold,
.ms-home-page .subtitle {
  color: var(--ms-red) !important;
  letter-spacing: 0.12em;
}

.feature-card,
.testimonial-card,
.ms-home-page .glass-card--subtle,
.contact-card {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  box-shadow: var(--ms-shadow-soft);
  color: var(--ms-ink);
}

.feature-card:hover,
.testimonial-card:hover,
.ms-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 58px rgba(23, 32, 51, 0.14);
}

.feature-card p,
.testimonial-card p,
.ms-home-page .feature-card__text--subtle {
  color: rgba(23, 32, 51, 0.7) !important;
  opacity: 1;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(217, 52, 47, 0.08);
  color: var(--ms-red);
  font-size: 0.82rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lead-magnet {
  background: linear-gradient(180deg, var(--ms-cream), var(--ms-mint));
}

.lead-magnet__card {
  background: #fff !important;
  border: 1px solid var(--ms-line);
  border-radius: 8px !important;
  box-shadow: var(--ms-shadow-soft);
}

.lead-magnet__text h2 {
  color: var(--ms-ink) !important;
}

.lead-magnet__text p,
.lead-magnet__text li,
.lead-magnet__text div {
  color: rgba(23, 32, 51, 0.72) !important;
}

.lead-magnet__form input {
  background: #f8fafc !important;
  color: var(--ms-ink) !important;
  border: 1px solid var(--ms-line) !important;
  border-radius: 8px !important;
}

.lead-magnet__floating-badge {
  background: var(--ms-red);
  color: #fff;
  border-radius: 8px;
}

.courses .grid--3 > .glass-card {
  border-radius: 8px !important;
}

.courses .grid--3 > .glass-card h3 {
  color: var(--ms-ink) !important;
}

.courses .grid--3 > .glass-card p,
.courses .grid--3 > .glass-card li {
  color: rgba(23, 32, 51, 0.72) !important;
}

.courses .grid--3 > .glass-card div[style*="background:rgba(255,255,255,.04)"] {
  background: #f8fafc !important;
  border-color: var(--ms-line) !important;
}

.testimonials {
  background: #fff !important;
}

.cta.section--dark {
  background: linear-gradient(135deg, #fff8ec 0%, #ffffff 48%, #e9f6f3 100%) !important;
  color: var(--ms-ink);
  border-top: 1px solid var(--ms-line);
}

.cta h2 {
  color: var(--ms-ink) !important;
}

.cta p {
  color: rgba(23, 32, 51, 0.7) !important;
}

.cta.section--dark .btn--outline {
  background: #fff !important;
  border-color: var(--ms-line) !important;
  color: var(--ms-ink) !important;
}

.cta.section--dark .btn--outline:hover {
  background: var(--ms-ink) !important;
  border-color: var(--ms-ink) !important;
  color: #fff !important;
}

.footer {
  background: #111827 !important;
}

.page-header {
  padding: 124px 0 64px;
  background: linear-gradient(135deg, var(--ms-cream) 0%, #fff 48%, var(--ms-mint) 100%);
  color: var(--ms-ink);
  border-bottom: 1px solid var(--ms-line);
}

.page-header h1 {
  color: var(--ms-ink) !important;
}

.page-header p {
  color: rgba(23, 32, 51, 0.72) !important;
}

.contact-page .section {
  background: var(--ms-cream);
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 8px;
  background: rgba(217, 52, 47, 0.08);
  color: var(--ms-red);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-card h3 {
  color: var(--ms-ink) !important;
}

.contact-card p,
.contact-card div {
  color: rgba(23, 32, 51, 0.72) !important;
}

.auth-page .btn-submit,
.btn-submit {
  border-radius: 8px;
  background: var(--ms-red);
}

.btn-submit.gold-btn {
  background: var(--ms-gold);
  color: var(--ms-ink);
}

.ms-courses-page .btn--outline {
  background: #fff;
  border-color: var(--ms-line);
  color: var(--ms-ink);
}

.ms-courses-page .ms-advisor-card .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 992px) {
  .site-header {
    height: 66px;
  }

  .hero {
    padding: 112px 0 58px;
  }

  .hero__grid {
    text-align: left;
  }

  .hero__title {
    font-size: clamp(2.35rem, 9vw, 4rem) !important;
  }

  .hero .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero__image-wrapper {
    max-width: 520px;
  }

  .auth-shell {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero__title {
    font-size: clamp(2.1rem, 10vw, 3rem) !important;
    line-height: 1.02;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn,
  .lead-magnet__form .btn,
  .ms-catalog-card__actions .btn,
  .ms-advisor-card .btn {
    width: 100%;
  }

  .hero__focus-card {
    position: static !important;
    max-width: none !important;
    margin-top: 14px;
  }

  .hero__decoration {
    display: none;
  }

  .lead-magnet__card {
    padding: 24px !important;
  }

  .section {
    padding: 62px 0;
  }

  .ms-catalog-hero {
    padding: 100px 0 42px;
  }

  .ms-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .ms-filter-btn {
    flex: 0 0 auto;
  }

  .ms-catalog-card__body,
  .ms-catalog-card__media {
    padding: 16px;
  }

  .auth-page {
    padding: 86px 14px 48px;
  }

  .auth-story h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.04;
  }

  .auth-story-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav__drawer-link {
    min-height: 54px;
  }
}

@media (max-width: 480px) {
  .nav__logo {
    font-size: 1.18rem;
  }

  .nav__logo-icon {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 98px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 11vw, 2.55rem) !important;
  }

  .hero__badge {
    max-width: 100%;
    white-space: normal;
  }

  .page-header h1,
  .ms-catalog-hero h1 {
    font-size: clamp(2rem, 11vw, 2.7rem) !important;
  }
}

/* -------------------- 2026 Light System For Public Subpages -------------------- */
.about-page,
.ms-blog-page,
.ms-article-page,
.ms-generic-page,
.legal-wrap,
.rec-page,
.trabaja-page,
.partners-page {
  background: var(--ms-cream) !important;
  color: var(--ms-ink) !important;
}

.about-page > section:first-child,
.ms-blog-page .page-header,
.ms-article-page .article-header,
.rec-hero,
.trabaja-hero,
.partners-hero {
  background: linear-gradient(135deg, var(--ms-cream) 0%, #fff 48%, var(--ms-mint) 100%) !important;
  color: var(--ms-ink) !important;
  border-bottom: 1px solid var(--ms-line);
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4,
.ms-blog-page h1,
.ms-blog-page h2,
.ms-blog-page h3,
.ms-article-page h1,
.ms-article-page h2,
.ms-article-page h3,
.ms-article-page h4,
.legal-wrap h1,
.legal-wrap h2,
.legal-wrap h3,
.rec-page h1,
.rec-page h2,
.rec-page h3,
.trabaja-page h1,
.trabaja-page h2,
.trabaja-page h3,
.partners-page h1,
.partners-page h2,
.partners-page h3 {
  color: var(--ms-ink) !important;
}

.about-page p,
.about-page li,
.ms-blog-page p,
.ms-article-page p,
.ms-article-page li,
.legal-body,
.legal-body p,
.legal-body li,
.rec-page p,
.rec-page li,
.trabaja-page p,
.partners-page p,
.ptype-desc,
.job-desc,
.value-desc,
.rec-card-desc {
  color: rgba(23, 32, 51, 0.72) !important;
}

.about-page .subtitle,
.ms-blog-page .subtitle,
.rec-badge,
.trabaja-hero > p:first-child,
.partners-hero > p:first-child {
  color: var(--ms-red) !important;
}

.about-page .glass-card,
.ms-blog-page .blog-card,
.ms-article-page .glass-card,
.ms-article-cta,
.legal-container,
.rec-card,
.job-card,
.value-card,
.ptype-card,
.contact-form-box {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  box-shadow: var(--ms-shadow-soft) !important;
  color: var(--ms-ink) !important;
}

.about-page .glass-card:hover,
.ms-blog-page .blog-card:hover,
.rec-card:hover,
.job-card:hover,
.value-card:hover,
.ptype-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 58px rgba(23, 32, 51, 0.14) !important;
}

.about-page img,
.ms-blog-page .blog-card__image,
.ms-article-page article img,
.rec-card,
.job-card,
.ptype-card,
.value-card {
  border-radius: 8px !important;
}

.about-page section,
.ms-blog-page .section,
.ms-article-page .section,
.rec-section,
.trabaja-page .section,
.partners-page .psection,
.rec-section--alt,
.trabaja-page .section--alt,
.partners-page .psection--alt {
  background: transparent !important;
}

.about-page .glass-card[style*="linear-gradient"],
.ms-article-cta,
.ms-advisor-card,
.contact-form-box {
  background: linear-gradient(135deg, #fff 0%, var(--ms-mint) 100%) !important;
}

.about-page .glass-card[style*="linear-gradient"] .btn--outline,
.ms-article-cta .btn--outline {
  background: #fff !important;
  border-color: var(--ms-line) !important;
  color: var(--ms-ink) !important;
}

.about-page .glass-card[style*="linear-gradient"] .btn--outline:hover,
.ms-article-cta .btn--outline:hover {
  background: var(--ms-ink) !important;
  border-color: var(--ms-ink) !important;
  color: #fff !important;
}

.filter-btn,
.ms-blog-page .filter-btn {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  color: rgba(23, 32, 51, 0.78) !important;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.04);
}

.filter-btn:hover,
.filter-btn.active,
.ms-blog-page .filter-btn:hover,
.ms-blog-page .filter-btn.active {
  background: rgba(244, 178, 26, 0.2) !important;
  border-color: rgba(244, 178, 26, 0.55) !important;
  color: #7a4f00 !important;
}

.blog-card__category,
.rec-card-tag,
.job-tag,
.btn-gold {
  background: linear-gradient(135deg, var(--ms-gold), #ffcc45) !important;
  color: var(--ms-ink) !important;
}

.blog-card__content a,
.legal-body a,
.ms-article-prose a,
.rec-page a,
.trabaja-page a,
.partners-page a {
  color: var(--ms-red) !important;
}

.blog-card__content div[style*="border-top"],
.legal-header,
.ms-article-page div[style*="border-top"] {
  border-color: var(--ms-line) !important;
}

.ms-article-prose {
  color: rgba(23, 32, 51, 0.78) !important;
}

.ms-article-prose > p:first-of-type,
.ms-article-prose strong,
.legal-body strong {
  color: var(--ms-ink) !important;
}

.ms-article-prose table,
.legal-body table,
.rec-page table {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  border-radius: 8px !important;
}

.ms-article-prose th,
.ms-article-prose td,
.legal-body th,
.legal-body td,
.rec-page th,
.rec-page td {
  color: rgba(23, 32, 51, 0.76) !important;
  border-color: var(--ms-line) !important;
}

.ms-article-prose th,
.legal-body th,
.rec-page th {
  color: var(--ms-ink) !important;
  background: #f8fafc !important;
}

.ms-article-prose blockquote,
.ms-article-prose .hsk-tip,
.benefits-list li {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  border-left: 4px solid var(--ms-gold) !important;
  color: rgba(23, 32, 51, 0.76) !important;
}

.ms-article-page .article-header a,
.ms-article-page .article-header span[style*="background"],
.ms-blog-page .blog-card__content a[style*="color: var(--gold)"] {
  color: var(--ms-red) !important;
}

.ms-article-page .article-header span[style*="background"] {
  background: rgba(244, 178, 26, 0.2) !important;
  color: #7a4f00 !important;
}

.ms-article-page div[style*="background: var(--gradient-primary)"] {
  background: linear-gradient(135deg, var(--ms-red), var(--ms-red-dark)) !important;
  color: #fff !important;
}

.legal-wrap {
  padding-top: 122px !important;
}

.legal-container {
  padding: 42px;
  border-radius: 8px;
}

.rec-card-icon,
.ptype-icon,
.value-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(217, 52, 47, 0.08);
  color: var(--ms-red);
  font-size: 1rem !important;
}

.btn-apply,
.btn-gold {
  border-radius: 8px !important;
  box-shadow: 0 12px 26px rgba(244, 178, 26, 0.2);
}

.btn-apply:hover,
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(244, 178, 26, 0.32);
}

.ms-generic-page {
  padding: 120px 18px 70px;
}

.ms-generic-page .content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  padding: 42px;
  box-shadow: var(--ms-shadow-soft);
}

.ms-generic-page .entry-title {
  color: var(--ms-ink);
}

.ms-generic-page .entry-content {
  color: rgba(23, 32, 51, 0.74);
}

.about-visual {
  padding: 24px;
}

.about-visual__board {
  min-height: 300px;
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255,248,236,.98) 0%, rgba(255,255,255,.96) 48%, rgba(233,246,243,.98) 100%);
  border: 1px solid var(--ms-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.about-visual__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(23, 32, 51, .64);
  font-weight: 800;
}

.about-visual__top strong {
  color: var(--ms-red);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-visual__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-visual__grid span {
  min-height: 78px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ms-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-ink);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(23, 32, 51, .06);
}

.about-visual__grid span:nth-child(1) {
  color: var(--ms-red);
}

.about-visual__grid span:nth-child(2) {
  color: #7a4f00;
}

.about-visual__grid span:nth-child(3) {
  color: var(--ms-jade);
}

.about-visual__note {
  background: #fff;
  border: 1px solid var(--ms-line);
  border-left: 4px solid var(--ms-gold);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(23, 32, 51, .06);
}

.about-visual__note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ms-ink);
}

.about-visual__note p {
  margin: 0;
  color: rgba(23, 32, 51, .68) !important;
}

@media (max-width: 768px) {
  .about-page > section:first-child,
  .ms-blog-page .page-header,
  .ms-article-page .article-header,
  .rec-hero,
  .trabaja-hero,
  .partners-hero {
    padding-top: 98px !important;
  }

  .legal-container,
  .ms-generic-page .content-wrapper,
  .contact-form-box {
    padding: 24px !important;
  }

  .ms-article-page .article-header div[style*="display: flex"] {
    gap: 10px !important;
    flex-wrap: wrap;
  }

  .about-visual__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav__logo-icon {
  overflow: hidden;
  flex: 0 0 auto;
}

.nav__logo-svg,
.nav__drawer-logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav__drawer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}


/* Footer light refresh */
.footer.section--dark,
.footer {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%) !important;
  color: var(--ms-ink) !important;
  padding: 72px 0 34px;
  border-top: 1px solid var(--ms-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.footer__grid {
  align-items: start;
}

.footer__brand {
  max-width: 470px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ms-ink) !important;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-decoration: none;
}

.footer__logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(227, 52, 47, 0.16);
  flex: 0 0 auto;
}

.footer__logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__description {
  color: rgba(23, 32, 51, 0.68) !important;
  opacity: 1 !important;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
}

.footer__title,
.footer__nav-col h4 {
  color: var(--ms-ink) !important;
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 18px;
}

.footer__links,
.footer__nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a,
.footer__nav-col a {
  color: rgba(23, 32, 51, 0.62) !important;
  opacity: 1 !important;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer__links a:hover,
.footer__nav-col a:hover,
.footer__legal a:hover {
  color: var(--ms-red) !important;
}

.footer__bottom {
  border-top: 1px solid rgba(23, 32, 51, 0.10) !important;
  color: rgba(23, 32, 51, 0.58) !important;
  margin-top: 54px;
  padding-top: 24px;
}

.footer__legal a {
  color: rgba(23, 32, 51, 0.58) !important;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer.section--dark,
  .footer {
    padding: 54px 0 28px;
  }

  .footer__logo {
    font-size: 1.22rem;
  }

  .footer__logo-icon {
    width: 38px;
    height: 38px;
  }

  .footer__bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer__legal {
    justify-content: flex-start;
  }
}

/* Hero chip nested-span fix */
.hero__text > div[style*="display:flex"][style*="margin: 24px"] > span {
  background: #fff !important;
  border: 1px solid var(--ms-line) !important;
  color: rgba(23, 32, 51, 0.78) !important;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06) !important;
}

.hero__text > div[style*="display:flex"][style*="margin: 24px"] > span > span {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Product pricing layout refresh */
.ms-inline-price {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 7px !important;
}

.ms-inline-price__value {
  display: block !important;
  line-height: 1.05 !important;
}

.ms-inline-price__suffix {
  display: block !important;
  color: rgba(23, 32, 51, 0.58) !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}


/* Pricing option buttons */
.ms-catalog-card__actions {
  align-items: stretch;
}

.ms-catalog-card__actions .ms-buy-button {
  flex: 1 1 180px;
  min-height: 44px;
  white-space: normal;
  line-height: 1.25;
}

.ms-catalog-card__actions > a.btn {
  flex: 1 1 100%;
}

/* ============================================================
 * Mobile nav fix · 2026-05-12
 * Bug: at viewports <= 360px the nav__logo (236px fixed) + toggle (62px)
 * overflowed the container and the toggle was clipped off-screen.
 * Fix: scale logo + icon down on small screens, ensure toggle never
 * shrinks, and tighten container padding on the tiniest devices.
 * ============================================================ */
@media (max-width: 768px) {
  .site-header .nav { gap: 8px; }
  .nav__logo { font-size: 1.1rem; gap: 8px; min-width: 0; }
  .nav__logo-icon { width: 34px !important; height: 34px !important; }
  .nav__logo-icon img,
  .nav__logo-svg { width: 100%; height: 100%; }
  .nav__toggle { flex-shrink: 0; padding: 8px 12px; font-size: 0.72rem; }
}
@media (max-width: 380px) {
  .nav__logo { font-size: 0.92rem; }
  .nav__logo-icon { width: 28px !important; height: 28px !important; }
  .nav__toggle { padding: 6px 10px; font-size: 0.68rem; min-width: 0 !important; min-height: 38px; }
  .site-header .container { width: calc(100% - 16px) !important; }
  .site-header .nav { gap: 6px; }
}
@media (max-width: 340px) {
  .nav__logo { font-size: 0.82rem; }
  .nav__logo-icon { width: 26px !important; height: 26px !important; }
  .nav__toggle { padding: 5px 8px; font-size: 0.62rem; }
}

/* ============================================================
 * Bento Cream Theme Overrides · 2026-05-20
 * Overrides the dark mode defaults to implement a bright,
 * warm ivory cream bento-style design.
 * ============================================================ */

/* Force bright cream hero and page elements */
.hero {
  background: var(--gradient-hero) !important;
  color: var(--dark) !important;
}

.hero__bg {
  opacity: 0.02 !important;
  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='%23E3342F' text-anchor='middle'%3E中%3C/text%3E%3C/svg%3E") !important;
}

.section--dark {
  background: var(--white) !important;
  color: var(--dark) !important;
}

/* Redefine titles on lightened sections to be dark */
.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 {
  color: var(--navy) !important;
}

.section--dark p, .hero p, .cta p, .hero__description {
  color: var(--gray-700) !important;
}

.section--dark .subtitle, .hero .subtitle, .cta .subtitle {
  color: var(--primary-red) !important;
}

/* Force light styled Bento cards for all glass-cards */
.glass-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03) !important;
  border-radius: 24px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card strong {
  color: var(--navy) !important;
}

.glass-card p, .glass-card li, .glass-card span {
  color: var(--gray-700) !important;
}

.glass-card--subtle {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
}

/* Feature Cards (Bento style) */
.feature-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
  color: var(--dark) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
}

.feature-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 20px 40px rgba(227, 52, 47, 0.06) !important;
}

.feature-card__icon {
  color: var(--primary-red) !important;
}

/* Lead Magnet Card (Warm Peach Bento) */
.lead-magnet__card {
  background: #FFF1F0 !important;
  border: 1px solid rgba(227, 52, 47, 0.12) !important;
  border-radius: 36px !important;
  box-shadow: 0 15px 35px rgba(227, 52, 47, 0.03) !important;
  color: var(--navy) !important;
}

.lead-magnet__card h2, .lead-magnet__card h3, .lead-magnet__card h4 {
  color: var(--navy) !important;
}

.lead-magnet__card p, .lead-magnet__card ul, .lead-magnet__card li {
  color: var(--gray-700) !important;
}

.lead-magnet__form input {
  background: #FFFFFF !important;
  color: var(--dark) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
}

.lead-magnet__form input::placeholder {
  color: var(--gray-500) !important;
}

.lead-magnet__floating-badge {
  background: var(--primary-red) !important;
  color: #FFFFFF !important;
}

.lead-magnet__floating-badge span {
  color: #FFFFFF !important;
  background: transparent !important;
}

/* Course cards inside the grid */
.courses article.glass-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
}

.courses article.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red) !important;
  box-shadow: 0 20px 40px rgba(227, 52, 47, 0.06) !important;
}

.courses article.glass-card h3 {
  color: var(--navy) !important;
}

/* Target only metadata badges (span) inside course cards, not button spans */
.courses article.glass-card > div:nth-child(2) > div:first-child > span {
  background: rgba(227, 52, 47, 0.06) !important;
  color: var(--primary-red) !important;
}

.courses article.glass-card > div:nth-child(2) > div:first-child > span:nth-child(2),
.courses article.glass-card > div:nth-child(2) > div:first-child > span:nth-child(3) {
  background: rgba(15, 23, 42, 0.05) !important;
  color: var(--navy) !important;
}

/* Ensure button text spans inherit color and remain clean */
.btn span {
  background: transparent !important;
  color: inherit !important;
}

/* Testimonial cards */
.testimonials .testimonial-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
  color: var(--dark) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
}

.testimonials .testimonial-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 20px 40px rgba(227, 52, 47, 0.06) !important;
}

/* Buttons */
.btn--primary,
.btn--gold,
.btn-submit {
  background: var(--primary-red) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(227, 52, 47, 0.1) !important;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn--primary:hover,
.btn--primary:focus,
.btn--gold:hover,
.btn--gold:focus,
.btn-submit:hover,
.btn-submit:focus {
  background: var(--primary-red-dark) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 20px rgba(227, 52, 47, 0.2) !important;
  transform: translateY(-2px) !important;
}

.btn--primary span,
.btn--gold span,
.btn-submit span {
  color: #FFFFFF !important;
  background: transparent !important;
}

.btn--secondary,
.btn--outline,
.nav__drawer .btn--secondary {
  background: transparent !important;
  border: 2px solid var(--primary-red) !important;
  color: var(--primary-red) !important;
  box-shadow: none !important;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn--secondary:hover,
.btn--secondary:focus,
.btn--outline:hover,
.btn--outline:focus {
  background: var(--primary-red) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 10px 20px rgba(227, 52, 47, 0.15) !important;
  transform: translateY(-2px) !important;
}

.btn--secondary:hover span,
.btn--outline:hover span {
  color: #FFFFFF !important;
  background: transparent !important;
}

.btn--secondary span,
.btn--outline span {
  color: inherit !important;
  background: transparent !important;
}

.section--dark .btn--outline,
.footer .btn--outline {
  border-color: rgba(227, 52, 47, 0.4) !important;
  color: var(--primary-red) !important;
}

.section--dark .btn--outline:hover,
.footer .btn--outline:hover {
  background: var(--primary-red) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-red) !important;
}

/* Text Gradient on light backgrounds */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--gold-dark) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero Badge */
.hero__badge {
  background: rgba(227, 52, 47, 0.06) !important;
  border-color: rgba(227, 52, 47, 0.15) !important;
  color: var(--primary-red) !important;
}

.hero__badge-dot {
  background: var(--primary-red) !important;
}

/* Hero Focus Card Overlay */
.hero__focus-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.12) !important;
}

/* Sidebar LMS styling compatibility */
.tutor-single-course-sidebar {
  background: #FFFFFF !important;
  border: 1px solid rgba(227, 52, 47, 0.08) !important;
  color: var(--dark) !important;
}

.tutor-course-header h1 {
  color: var(--navy) !important;
}

.tutor-course-metadata {
  color: var(--gray-500) !important;
}

.tutor-course-topic-title {
  color: var(--navy) !important;
}

/* Footer anchors keep clean slate theme colors */
.footer {
  background: #0F172A !important;
}

.footer h1, .footer h2, .footer h3, .footer h4 {
  color: #FFFFFF !important;
}

.footer__links a, .footer__nav-col a {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer__links a:hover, .footer__nav-col a:hover {
  color: var(--primary-red) !important;
}

/* Pricing Toggle & Premium Cards Refactoring */
.ms-pricing-card {
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), border-color 280ms ease !important;
}

.ms-price-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
  padding: 16px 0;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.ms-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-price-original {
  font-size: 1.15rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 2px;
}

.ms-price-current {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
}

.ms-price-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748B;
  margin-left: 2px;
}

.ms-savings-badge-inline {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.08);
  border: 1px solid #FDE68A;
}

.ms-savings-hint-monthly {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms-savings-hint-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  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 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.ms-card-badge-one-time {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

/* Orientation / Free Class Banner styling */
.orientation-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, #F0FAF9 0%, #E6F7F5 100%);
  border: 1.5px solid #CCEFEA;
  border-radius: 24px;
  padding: 40px;
  text-align: left;
  box-shadow: 0 10px 25px -5px rgba(20, 110, 100, 0.05), 0 8px 10px -6px rgba(20, 110, 100, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.orientation-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(20, 110, 100, 0.08), 0 12px 20px -8px rgba(20, 110, 100, 0.08);
}

@media (max-width: 768px) {
  .orientation-banner {
    padding: 28px 20px;
    margin-top: 40px;
    text-align: center;
  }
  .orientation-banner div[style*="display: flex"] {
    justify-content: center;
  }
}


