/* ==========================================================================
   MAESTRA KATHERINE - SPANISH EDUCATOR & CURRICULUM SPECIALIST
   Modern, Warm Mediterranean & Accessible Styling
   ========================================================================== */

:root {
  /* Warm Earth & Spanish Palette */
  --primary: #C2410C;         /* Terracotta / Teja */
  --primary-hover: #9A3412;
  --primary-light: #FFEDD5;
  --primary-focus: rgba(194, 65, 12, 0.25);

  --accent-gold: #D97706;     /* Honey / Azafrán */
  --accent-gold-light: #FEF3C7;
  
  --sage-green: #065F46;      /* Olive / Laurel */
  --sage-light: #D1FAE5;
  --sage-text: #047857;

  --yt-red: #E11D48;
  --yt-red-hover: #BE123C;

  /* Neutrals & Surfaces */
  --bg-page: #FAF8F5;         /* Warm cream parchment */
  --bg-surface: #FFFFFF;
  --bg-muted: #F3EFEA;
  --border-light: #E7E0D6;
  --border-hover: #D1C7BA;

  /* Text & Ink */
  --text-main: #1E293B;       /* Deep slate ink */
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.05), 0 1px 2px rgba(30, 41, 59, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.07), 0 2px 4px -2px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.08), 0 4px 6px -4px rgba(30, 41, 59, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 8px 10px -6px rgba(30, 41, 59, 0.04);
  --shadow-hover: 0 16px 30px -4px rgba(194, 65, 12, 0.12), 0 6px 12px -2px rgba(30, 41, 59, 0.06);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-page);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #9A3412 0%, #C2410C 50%, #D97706 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 8px 0;
  font-weight: 500;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex-wrap: wrap;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.announcement-link {
  color: #FEF3C7;
  font-weight: 700;
  text-decoration: underline;
}

.announcement-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.25);
}

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

.logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  border-color: var(--primary);
  background: #FFF;
  color: var(--primary);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-gold);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: #B45309;
}

.btn-yt {
  background-color: #FFF;
  color: var(--yt-red);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.btn-yt:hover {
  background-color: var(--yt-red);
  color: #FFF;
}

.btn-icon, .icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 80px 0;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.7) 0%, rgba(255, 237, 213, 0.4) 50%, rgba(250, 248, 245, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

.hero-tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.tag-secondary {
  background-color: var(--sage-light);
  color: var(--sage-text);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.15;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 20px;
}

.highlight-text {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 10px;
  background: rgba(217, 119, 6, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-credentials-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cred-icon {
  font-size: 1.8rem;
}

.cred-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.25;
}

.cred-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Avatar Card & Visual Column */
.hero-visual-col {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-card {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.card-glow {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.2), rgba(217, 119, 6, 0.2));
  filter: blur(25px);
  border-radius: var(--radius-xl);
  z-index: 1;
}

.avatar-frame {
  position: relative;
  z-index: 2;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.educator-portrait {
  width: 250px;
  height: 250px;
  margin: 15px auto 25px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 40%, #FEF3C7 85%, #FFEDD5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid #FFFFFF;
  box-shadow: 0 16px 32px -4px rgba(194, 65, 12, 0.2), 0 6px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.educator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-card:hover .educator-photo {
  transform: scale(1.08);
}

.floating-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: floatBounce 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 15px;
  right: -20px;
}

.badge-bottom-left {
  bottom: 25px;
  left: -25px;
  animation-delay: 1.5s;
}

.badge-bottom-right {
  bottom: -15px;
  right: 15px;
  animation-delay: 2.5s;
}

@keyframes floatBounce {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-number {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1;
}

.badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Stats Ribbon
   ========================================================================== */
.stats-ribbon {
  background: #FFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

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

.stat-card {
  text-align: center;
  padding: 12px;
  border-right: 1px solid var(--border-light);
}

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

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section {
  padding: 90px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px auto;
  line-height: 1.65;
}

/* ==========================================================================
   About & Credentials Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.about-story h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

.about-story p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.philosophy-quote {
  position: relative;
  background: var(--bg-muted);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 24px 28px 24px 34px;
  margin: 28px 0;
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent-gold);
  line-height: 0;
  position: absolute;
  top: 24px;
  left: 8px;
  opacity: 0.4;
}

.philosophy-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0;
}

.action-buttons-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Credentials Stack */
.credentials-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credential-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.credential-card.highlight-card {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDFB 100%);
}

.cred-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.badge-icon-lg {
  font-size: 2.2rem;
  line-height: 1;
}

.credential-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cred-institution {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.cred-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   YouTube Video Hub Section
   ========================================================================== */
.video-section {
  background-color: #FFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.yt-subscriber-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: #FFF;
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
}

.search-box {
  position: relative;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: var(--transition);
}

.search-box input:focus {
  background: #FFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.video-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.video-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.9;
}

.video-card:hover .video-thumbnail-img {
  transform: scale(1.05);
  opacity: 0.98;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  transition: var(--transition);
}

.play-button-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yt-red);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.5);
  transition: var(--transition);
}

.play-button-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 3px;
}

.video-thumbnail-wrap:hover .play-button-icon {
  transform: scale(1.15);
  background: #BE123C;
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.video-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}

.video-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.video-views {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* YouTube Callout Banner */
.yt-banner {
  background: linear-gradient(135deg, #1E1B18 0%, #2A2421 100%);
  color: #FFF;
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-xl);
}

.yt-banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.yt-banner-icon {
  width: 64px;
  height: 64px;
  background: var(--yt-red);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  flex-shrink: 0;
}

.yt-banner-icon svg {
  width: 36px;
  height: 36px;
}

.yt-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.yt-banner p {
  color: #D1D5DB;
  font-size: 0.95rem;
  max-width: 580px;
}

.btn-yt-action {
  background-color: var(--yt-red);
  color: #FFF;
  border: none;
  font-size: 0.95rem;
  padding: 12px 26px;
}

.btn-yt-action:hover {
  background-color: var(--yt-red-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Resources Section
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.resource-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.res-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.resource-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.res-downloads-count {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Interactive Practice Studio
   ========================================================================== */
.practice-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.practice-card-wrapper {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.practice-tabs {
  display: flex;
  background: #FFF;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.practice-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.practice-tab-btn:hover {
  color: var(--primary);
  background: var(--bg-muted);
}

.practice-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-page);
}

.practice-tab-panel {
  display: none;
  padding: 36px;
}

.practice-tab-panel.active {
  display: block;
}

/* Quiz Styling */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quiz-level-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.quiz-story-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-top: 4px;
}

.quiz-score-badge {
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}

.story-passage {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 28px;
}

.quiz-question-item {
  margin-bottom: 24px;
}

.quiz-question-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option-btn {
  text-align: left;
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.quiz-option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quiz-option-btn.correct {
  background: #DCFCE7 !important;
  border-color: #22C55E !important;
  color: #166534 !important;
  font-weight: 700;
}

.quiz-option-btn.wrong {
  background: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}

/* Verb Trainer */
.verb-trainer-box {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.verb-card-display {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.verb-tense-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.verb-infinitive {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.verb-pronoun {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.verb-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 16px auto;
}

.verb-input-wrap input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.verb-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.verb-feedback {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 24px;
}

.verb-feedback.success {
  color: #166534;
}

.verb-feedback.error {
  color: #991B1B;
}

/* Idiom Card */
.idiom-card-display {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.idiom-badge {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.idiom-phrase {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--primary);
  margin: 18px 0 14px 0;
}

.idiom-literal, .idiom-meaning {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.idiom-example {
  background: var(--bg-muted);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0 24px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Teaching Philosophy & Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.pillar-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-page);
}

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

.testimonial-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.test-quote {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.test-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.test-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background: #FFF;
  border-top: 1px solid var(--border-light);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.method-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  background: var(--bg-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.contact-method-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFF;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFF;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  min-height: 24px;
}

.form-feedback.success {
  color: #166534;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-card {
  background: #FFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-main);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--text-main);
  color: #FFF;
}

.modal-video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-info {
  padding: 26px 30px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.modal-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-action-row {
  display: flex;
  gap: 12px;
}

/* Resource Modal Specifics */
.resource-modal-card {
  max-width: 600px;
  padding: 36px;
}

.res-preview-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.res-preview-content {
  background: var(--bg-muted);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.res-modal-footer {
  text-align: right;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0F172A;
  color: #FFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #181412;
  color: #FFF;
  padding: 60px 0 30px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-motto {
  color: #A8A29E;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.footer-nav a {
  color: #D6D3D1;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #78716C;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tag-wrapper, .hero-cta-group {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-credentials-bar {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }

  .about-grid, .contact-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-child(3) {
    border-top: 1px solid var(--border-light);
  }

  .stat-card:nth-child(4) {
    border-top: 1px solid var(--border-light);
    border-right: none;
  }

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

  .yt-banner {
    flex-direction: column;
    text-align: center;
  }

  .yt-banner-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #FFF;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

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

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

  .search-box {
    width: 100%;
  }

  .video-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
