/* ===== 1. GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Baloo+2:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== 2. CSS VARIABLES (DESIGN SYSTEM TOKENS) ===== */
:root {
  /* Playful Base Colors (for backgrounds, fills, and large elements) */
  --color-primary:         #2D2685; /* Vibrant Deep Violet - Contrast 9.8:1 */
  --color-primary-light:   #4B44B3;
  --color-primary-dark:    #1F1A5E;
  
  --color-secondary:       #0EA5E9; /* Sky Blue - High visibility */
  --color-secondary-light: #F0F9FF;
  
  --color-accent:          #EC4899; /* Playful Pink */
  --color-accent-light:    #FDF2F8;

  --color-success:         #22C55E; /* Friendly Green */
  --color-success-light:   #F0FDF4;

  --color-warning:         #F59E0B; /* Amber/Orange */
  --color-warning-light:   #FEF3C7;

  --color-danger:          #EF4444; /* Coral Red */
  --color-danger-light:    #FEF2F2;

  /* Accessible Text/Border Colors (WCAG AA Compliant >= 4.5:1 on light background) */
  --color-primary-text:    #2D2685;
  --color-secondary-text:  #0369A1; /* Dark sky blue */
  --color-accent-text:     #BE185D; /* Dark pink */
  --color-success-text:    #15803D; /* Dark green */
  --color-warning-text:    #92400E; /* Dark amber */
  --color-danger-text:     #B91C1C; /* Dark red */
  
  /* Extra Playful Category Colors */
  --color-purple:          #6366F1;
  --color-purple-dark:     #4338CA;
  --color-orange:          #F97316;
  --color-orange-dark:     #C2410C;
  --color-yellow:          #EAB308;
  --color-yellow-dark:     #A16207;
  --color-teal:            #0D9488;
  --color-teal-dark:       #0F766E;

  /* Neutrals System */
  --color-white:           #FFFFFF;
  --color-bg:              #F8FAFC; /* Slate 50 clean background */
  --color-card:            #FFFFFF;
  --color-border:          #E2E8F0; /* Slate 200 standard border */
  --color-border-hover:    #CBD5E1;

  /* Standardized Text Neutral Contrast (WCAG AA Compliant) */
  --color-text-primary:    #0F172A; /* Slate 900 - Contrast 15.8:1 */
  --color-text-secondary:  #475569; /* Slate 600 - Contrast 6.3:1 */
  --color-text-muted:      #64748B; /* Slate 500 - Contrast 4.6:1 */

  /* Spacing Scale (Expanded for clean SaaS whitespace) */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
  --space-3xl: 88px;

  /* Border Radius Scale (Kid-friendly Round System) */
  --radius-xs:   8px;
  --radius-sm:   14px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   36px;
  --radius-full: 9999px;

  /* Elevation (Slate-based premium soft SaaS shadows) */
  --shadow-sm:    0 2px 4px rgba(15, 23, 42, 0.02);
  --shadow-md:    0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-lg:    0 12px 36px rgba(15, 23, 42, 0.05);
  --shadow-xl:    0 24px 60px rgba(15, 23, 42, 0.06);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

  /* Fluid Font Scale (Oversized display typography) */
  --font-size-h1:      clamp(3.2rem, 8vw, 5.5rem);
  --font-size-h2:      clamp(2.2rem, 5vw, 3.8rem);
  --font-size-h3:      clamp(1.4rem, 3vw, 2.2rem);
  --font-size-h4:      1.25rem;
  --font-size-body:    1.05rem;
  --font-size-small:   0.92rem;
  --font-size-caption: 0.82rem;

  /* Typography Weights & Heights (Restored from previous version) */
  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-black:     800;

  --line-height-tight:     1.1;
  --line-height-snug:      1.35;
  --line-height-normal:    1.55;
  --line-height-relaxed:   1.75;

  /* Font Families (Restored from previous version) */
  --font-logo:     'Fredoka', sans-serif;
  --font-heading:  'Baloo 2', sans-serif;
  --font-body:     'Poppins', sans-serif;
  --font-title:    'Fredoka', sans-serif;

  /* Old variables mapping for backwards compatibility */
  --primary:       var(--color-primary);
  --primary-light: var(--color-primary-light);
  --primary-dark:  var(--color-primary-dark);
  --secondary:     var(--color-secondary);
  --yellow:        var(--color-yellow);
  --blue:          var(--color-secondary);
  --green:         var(--color-success);
  --pink:          var(--color-accent);
  --orange:        var(--color-orange);
  --red:           var(--color-danger);
  --accent:        var(--color-accent);
  --white:         var(--color-white);
  --light-bg:      var(--color-bg);
  --border:        var(--color-border);
  --text-primary:   var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted:     var(--color-text-muted);
  --radius-sm:     var(--radius-sm);
  --radius-md:     var(--radius-md);
  --radius-lg:     var(--radius-lg);
  --shadow-sm:     var(--shadow-sm);
  --shadow-md:     var(--shadow-md);
  --shadow-lg:     var(--shadow-lg);
  --shadow-xl:     var(--shadow-xl);

  /* Gradients mapped to system colors */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  --gradient-accent:  linear-gradient(135deg, var(--color-warning), var(--color-orange));
  --gradient-pink:    linear-gradient(135deg, var(--color-accent), #EC4899);
  --gradient-blue:    linear-gradient(135deg, var(--color-secondary), #0284C7);
  --gradient-green:   linear-gradient(135deg, var(--color-success), #16A34A);

  /* Transition & Settings */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 96px;
}

/* ===== 3. RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
}

input,
textarea,
select {
  font-family: var(--font-body);
}

/* ===== 4. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--font-size-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--font-size-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); line-height: var(--line-height-snug); }
h5 { font-size: var(--font-size-body); font-weight: var(--font-weight-semibold); }
h6 { font-size: var(--font-size-small); font-weight: var(--font-weight-semibold); }

p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  text-align: justify;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-teal {
  background: linear-gradient(135deg, var(--color-secondary), #88EFEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--color-purple), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 5. LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-wrapper {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.main-content {
  width: 100%; /* Default to full width if sidebar is not present */
  flex-shrink: 0;
  min-width: 0;
}

.site-wrapper:has(.sidebar) .main-content {
  width: 80%; /* Shrink to 80% only when sidebar is present */
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ===== 6. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px; /* WCAG AA Touch Target Compliance */
  outline: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
  pointer-events: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.35);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.4), var(--shadow-md);
}

.btn:active {
  box-shadow: var(--shadow-sm);
}

.btn:active::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(45, 38, 133, 0.08);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08);
}

.btn-purple {
  background: linear-gradient(135deg, var(--color-primary-light), #6B62D9);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 20px; /* Enhanced touch target size */
  font-size: var(--font-size-caption);
  min-height: 44px;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-body);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== 7. CARDS ===== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.card:focus-within {
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.15), var(--shadow-xl);
}

.card-body {
  padding: var(--space-lg);
}

.card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.card-footer {
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* ===== 8. NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-bottom: calc(-1 * var(--nav-height));
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  top: 0;
}

.nav-container {
  max-width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 64px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

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

.nav-link {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(45, 38, 133, 0.05);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(45, 38, 133, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  background: var(--yellow);
  color: var(--primary);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.hamburger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.4);
  background: rgba(45, 38, 133, 0.05);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  left: 24px;
  right: 24px;
  background: var(--color-white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.25s ease;
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--color-text-primary);
}

.mobile-menu .nav-link:hover {
  background: rgba(45, 38, 133, 0.05);
  color: var(--color-primary);
}

.mobile-menu .nav-link.active {
  background: rgba(45, 38, 133, 0.08);
  color: var(--color-primary);
}

.mobile-lang-row {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

/* ===== 9. HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #2D2685 0%, #4B44B3 100%);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(248, 196, 15, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(61, 183, 233, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(217, 74, 166, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
  user-select: none;
}

.floating-element:nth-child(1) {
  top: 15%;
  left: 8%;
  font-size: 3rem;
  color: var(--primary);
  animation-delay: 0s;
  animation-duration: 7s;
}

.floating-element:nth-child(2) {
  top: 25%;
  right: 12%;
  font-size: 2.5rem;
  color: var(--secondary);
  animation-delay: 1s;
  animation-duration: 8s;
}

.floating-element:nth-child(3) {
  top: 65%;
  left: 5%;
  font-size: 4rem;
  color: var(--accent);
  animation-delay: 2s;
  animation-duration: 6s;
}

.floating-element:nth-child(4) {
  top: 70%;
  right: 8%;
  font-size: 2rem;
  color: var(--purple);
  animation-delay: 0.5s;
  animation-duration: 9s;
}

.floating-element:nth-child(5) {
  top: 45%;
  left: 15%;
  font-size: 1.8rem;
  color: var(--green);
  animation-delay: 1.5s;
  animation-duration: 7.5s;
}

.floating-element:nth-child(6) {
  top: 30%;
  right: 25%;
  font-size: 3.5rem;
  color: var(--pink);
  animation-delay: 3s;
  animation-duration: 8.5s;
}

.floating-element:nth-child(7) {
  bottom: 20%;
  left: 30%;
  font-size: 2.5rem;
  color: var(--primary);
  animation-delay: 2.5s;
  animation-duration: 6.5s;
}

.floating-element:nth-child(8) {
  bottom: 30%;
  right: 20%;
  font-size: 1.5rem;
  color: var(--accent);
  animation-delay: 4s;
  animation-duration: 7s;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 110px 24px;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-family: var(--font-logo);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background: var(--yellow);
  color: var(--primary);
}

.hero-buttons .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
  flex: 0 0 400px;
  position: relative;
  animation: fadeInLeft 1s ease 0.3s both;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 5s ease-in-out infinite;
}

.hero-stat-card:nth-child(2) {
  animation-delay: 1.5s;
  margin-left: 30px;
}

.hero-stat-card:nth-child(3) {
  animation-delay: 3s;
}

.hero-stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== 10. VIDEO SECTION ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

.video-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.4), var(--shadow-xl);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-border);
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.06);
}

.video-thumbnail .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
}

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

.video-card:hover .play-btn-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-white);
  transform: scale(0.8);
  transition: transform 0.3s;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.video-card:hover .play-btn-circle {
  transform: scale(1);
}

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

.video-category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  background: rgba(236, 72, 153, 0.15);
  color: #FFFFFF !important;
  margin-bottom: 10px;
  width: max-content;
}

.video-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--color-border);
}

/* ===== 11. CATEGORY CARDS ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-color, var(--color-primary)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--cat-color, var(--color-primary));
}

.category-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.4), var(--shadow-xl);
  border-color: var(--cat-color, var(--color-primary));
}

.category-card:hover::before {
  opacity: 0.04;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--cat-color, var(--color-primary));
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.category-icon svg {
  width: 30px;
  height: 30px;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 12px;
  z-index: 1;
}

.category-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 24px;
  flex-grow: 1;
  z-index: 1;
}

.explore-btn {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  color: var(--cat-color, var(--color-primary));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  z-index: 1;
}

.category-card:hover .explore-btn {
  gap: 10px;
}

.category-name-hi {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.category-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* ===== 12. ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .card-body .badge {
  align-self: flex-start;
}

.article-card .card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.article-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.4), var(--shadow-xl);
}

.article-thumbnail {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.06);
}

.article-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-category-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.article-date {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.read-more-btn {
  color: var(--color-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: auto;
}

.article-card:hover .read-more-btn {
  gap: 10px;
}

/* ===== 13. NEWS CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary);
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

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

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

.news-date {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(78, 205, 196, 0.12);
  color: var(--secondary);
  text-transform: uppercase;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  color: var(--text-primary);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.news-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.news-source-link:hover {
  gap: 8px;
}

.news-source-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== 14. WORKSHEET SECTION ===== */
/* ===== 14. WORKSHEET SECTION & FILTER TABS ===== */
.filter-tabs-wrap {
  overflow-x: auto !important;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 38, 133, 0.25) transparent;
}

.filter-tabs-wrap::-webkit-scrollbar {
  display: block !important;
  height: 6px !important;
}

.filter-tabs-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.filter-tabs-wrap::-webkit-scrollbar-thumb {
  background-color: rgba(45, 38, 133, 0.25);
  border-radius: 10px;
}

.filter-tabs-wrap::-webkit-scrollbar-thumb:hover {
  background-color: rgba(45, 38, 133, 0.45);
}

/* Auto hide scrollbar on desktop mode */
@media (min-width: 1025px) {
  .filter-tabs-wrap {
    scrollbar-color: transparent transparent;
  }
  
  .filter-tabs-wrap::-webkit-scrollbar-thumb {
    background-color: transparent;
  }
  
  .filter-tabs-wrap:hover {
    scrollbar-color: rgba(45, 38, 133, 0.25) transparent;
  }
  
  .filter-tabs-wrap:hover::-webkit-scrollbar-thumb {
    background-color: rgba(45, 38, 133, 0.25);
  }
}


.filter-tabs {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-body);
}

.tab-btn:hover {
  background: rgba(45, 38, 133, 0.05);
  color: var(--primary);
  border-color: var(--border);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.worksheet-panel {
  display: none;
}

.worksheet-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.featured-worksheet-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {
  .featured-worksheet-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .featured-worksheet-grid {
    grid-template-columns: 1fr !important;
  }
}

.worksheet-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.worksheet-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.worksheet-card .card-body .badge {
  align-self: flex-start;
}

.worksheet-card .card-body .ws-download-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

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

.worksheet-card:focus-within {
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.15), var(--shadow-xl);
}

.worksheet-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--color-bg);
}

.worksheet-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.worksheet-card:hover .worksheet-thumb-img {
  transform: scale(1.06);
}

.worksheet-preview.pdf-preview {
  background: linear-gradient(135deg, rgba(45, 38, 133, 0.08), rgba(75, 68, 179, 0.03));
}

.worksheet-preview.coloring-preview {
  background: linear-gradient(135deg, rgba(217, 74, 166, 0.08), rgba(217, 74, 166, 0.03));
}

.worksheet-preview.tracing-preview {
  background: linear-gradient(135deg, rgba(77, 183, 72, 0.08), rgba(77, 183, 72, 0.03));
}

.worksheet-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.worksheet-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: max-content;
}

.badge-pdf {
  background: rgba(45, 38, 133, 0.1);
  color: var(--color-primary);
}

.badge-coloring {
  background: rgba(217, 74, 166, 0.1);
  color: var(--color-accent-text);
}

.badge-tracing {
  background: rgba(77, 183, 72, 0.1);
  color: var(--color-success-text);
}

.worksheet-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  flex-grow: 1;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px; /* Touch target size */
}

.download-btn:hover {
  box-shadow: 0 8px 20px rgba(45, 38, 133, 0.25);
  transform: translateY(-2px);
}

/* ===== 15. HEALTH SECTION ===== */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.health-column {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.health-column:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.health-column-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.health-column-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.health-column:nth-child(1) .health-column-title { color: var(--primary); }
.health-column:nth-child(2) .health-column-title { color: var(--secondary); }
.health-column:nth-child(3) .health-column-title { color: var(--purple); }

.health-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.health-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.health-list-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  transform: translateX(4px);
}

.health-list-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* ===== 16. COMMUNITY SECTION ===== */
.community-section {
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(45, 38, 133, 0.04), transparent);
  pointer-events: none;
}

.community-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.community-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.social-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  width: auto;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.social-card.youtube::before {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), transparent);
}

.social-card.youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.1);
}

.social-card.instagram::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(251, 146, 60, 0.03));
}

.social-card.instagram:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.1);
}

.social-card.facebook::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}

.social-card.facebook:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.social-card.telegram::before {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.05), transparent);
}

.social-card.telegram:hover {
  border-color: rgba(0, 136, 204, 0.4);
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.1);
}

.social-card.linkedin::before {
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.05), transparent);
}

.social-card.linkedin:hover {
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.1);
}

.social-card:hover::before {
  opacity: 1;
}

.social-card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-card-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Base and hover colors for icons */
.social-card.youtube .social-card-icon {
  color: #FF0000;
  background: rgba(255, 0, 0, 0.08);
}
.social-card.youtube:hover .social-card-icon {
  background: #FF0000;
  color: #FFFFFF;
}

.social-card.instagram .social-card-icon {
  color: #E1306C;
  background: rgba(225, 48, 108, 0.08);
}
.social-card.instagram:hover .social-card-icon {
  background: linear-gradient(135deg, #E1306C, #C13584);
  color: #FFFFFF;
}

.social-card.facebook .social-card-icon {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.08);
}
.social-card.facebook:hover .social-card-icon {
  background: #1877F2;
  color: #FFFFFF;
}

.social-card.telegram .social-card-icon {
  color: #0088CC;
  background: rgba(0, 136, 204, 0.08);
}
.social-card.telegram:hover .social-card-icon {
  background: #0088CC;
  color: #FFFFFF;
}

.social-card.linkedin .social-card-icon {
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.08);
}
.social-card.linkedin:hover .social-card-icon {
  background: #0A66C2;
  color: #FFFFFF;
}

.social-card-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.social-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

/* ===== 17. SIDEBAR ===== */
.sidebar {
  width: 20%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0;
  z-index: 2000;
}

.sidebar-inner {
  background: var(--white);
  border-left: 1px solid var(--border);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  /* Custom premium scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.sidebar-inner::-webkit-scrollbar {
  width: 6px;
}

.sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 3px;
}

.sidebar-promo {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 38, 133, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-promo-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--white);
  box-shadow: 0 4px 10px rgba(45, 38, 133, 0.15);
  animation: pulse-subtle 3s infinite ease-in-out;
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(45, 38, 133, 0.15); }
  50% { transform: scale(1.05); box-shadow: 0 6px 15px rgba(45, 38, 133, 0.25); }
}

.sidebar-promo-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px;
  line-height: 1.25;
}

.sidebar-promo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  font-weight: 400;
}

.sidebar-social {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--light-bg);
  flex-shrink: 0;
}

.sidebar-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-social-btn svg {
  transition: transform 0.3s;
}

.sidebar-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sidebar-social-btn:hover svg {
  transform: scale(1.1);
}

.sidebar-social-btn.yt { color: #FF0000; }
.sidebar-social-btn.yt:hover {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
  border-color: #CC0000 !important;
  color: #FFFFFF !important;
}

.sidebar-social-btn.ig { color: var(--pink); }
.sidebar-social-btn.ig:hover {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%) !important;
  border-color: #C13584 !important;
  color: #FFFFFF !important;
}

.sidebar-social-btn.fb { color: #1877F2; }
.sidebar-social-btn.fb:hover {
  background: linear-gradient(135deg, #1877F2 0%, #0F62FE 100%) !important;
  border-color: #0F62FE !important;
  color: #FFFFFF !important;
}

.sidebar-social-btn.tg { color: #0088CC; }
.sidebar-social-btn.tg:hover {
  background: linear-gradient(135deg, #0088CC 0%, #006699 100%) !important;
  border-color: #006699 !important;
  color: #FFFFFF !important;
}

.sidebar-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.sidebar-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--light-bg);
  margin-bottom: 12px;
  position: relative;
  border: 1px solid var(--border);
}

.sidebar-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sidebar-video-thumb:hover img {
  transform: scale(1.05);
}

.sidebar-video-thumb .sidebar-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 38, 133, 0.25);
  transition: background-color 0.3s;
}

.sidebar-video-thumb .sidebar-play i {
  background: #FF0000;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-video-thumb:hover .sidebar-play {
  background: rgba(45, 38, 133, 0.45);
}

.sidebar-video-thumb:hover .sidebar-play i {
  transform: scale(1.15);
}

.sidebar-video-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-link {
  display: block;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
  margin-bottom: 8px;
  text-decoration: none;
}

.sidebar-article-link:last-child {
  margin-bottom: 0;
}

.sidebar-article-link:hover {
  background: var(--white);
  border-color: var(--primary-light);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.sidebar-article-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 18. FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 70px 0 0;
  border-top: 1px solid var(--primary-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin-top: 12px;
  margin-bottom: 24px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 44px; /* WCAG AA Touch Target Compliance */
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all 0.2s;
  text-decoration: none;
  outline: none;
}

.footer-social-icon:hover {
  background: var(--color-yellow);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social-icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.footer-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  transition: all 0.2s;
  text-decoration: none;
  padding: 6px 0; /* Ensures 44px touch target height */
  display: inline-block;
  outline: none;
}

.footer-link:hover {
  color: var(--color-yellow);
  transform: translateX(4px);
}

.footer-link:focus-visible {
  outline: none;
  color: var(--color-yellow);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.footer-bottom span {
  color: var(--yellow);
}

/* ===== 19. UTILITIES & BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-primary { background: rgba(255, 107, 53, 0.15); color: var(--primary); }
.badge-secondary { background: rgba(78, 205, 196, 0.15); color: var(--secondary); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge-pink { background: rgba(236, 72, 153, 0.15); color: var(--pink); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.gap-2     { gap: 8px; }
.gap-4     { gap: 16px; }
.gap-6     { gap: 24px; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===== 20. BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 2px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-secondary);
}

/* ===== 21. PAGE HERO (Inner Pages) ===== */
.page-hero {
  padding: 170px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(255, 107, 53, 0.12), transparent);
  pointer-events: none;
}

.page-hero h1,
.page-hero .page-hero-title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.5rem;
}

.page-hero p,
.page-hero .page-hero-desc {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-hero .breadcrumb {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
}

.page-hero .breadcrumb a:hover {
  color: var(--yellow) !important;
}

.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.8) !important;
}

.page-hero .breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Page Hero Button Styling for high contrast on dark gradients */
.page-hero .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background: var(--yellow);
  color: var(--primary);
}

.page-hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Page Hero Landing/Catalog Pages Formatting */
.page-hero-landing {
  padding-bottom: 80px;
}

.page-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero .page-hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--yellow);
  margin-top: 8px;
  margin-bottom: 28px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  max-width: none;
}

.page-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.page-hero-landing .breadcrumb {
  margin-top: 0;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .page-hero-landing {
    padding-bottom: 50px;
  }
  .page-hero .page-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
  .page-hero-buttons {
    margin-bottom: 24px;
    gap: 12px;
  }
}

/* ===== 22. PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px; /* WCAG AA Touch Target Compliance */
  width: auto;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  outline: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.page-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.35);
}

.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== 23. BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(45, 38, 133, 0.3);
  font-family: var(--font-body);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.7);
}

/* ===== 24. READING PROGRESS ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== 25. RESOURCE BANNER ===== */
.resource-banner {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(78, 205, 196, 0.1));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.resource-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 107, 53, 0.05), transparent);
  pointer-events: none;
}

.resource-banner h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}

.resource-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
}

.resource-banner .btn {
  position: relative;
}

/* ===== 26. ALERT / NOTICE ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--green);
  color: #6EE7B7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #FCA5A5;
}

.alert-info {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}

.alert-warning {
  background: rgba(255, 230, 109, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 27. SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 20px;
  gap: 8px;
  transition: border-color 0.2s;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.1), var(--shadow-sm);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  min-width: 0; /* Prevents overflow */
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
}

.search-bar button {
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-white);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
  min-height: 40px;
}

.search-bar button:hover {
  background: var(--color-primary-light);
}

.search-bar button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.3);
}

/* ===== 28. DIVIDERS ===== */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
  margin: 24px 0;
}

/* ===== 29. LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== 30. COOKIE / TOAST ===== */
.toast {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  max-width: 320px;
  z-index: 950;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.4s ease;
  color: var(--text-primary);
}

.toast-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.toast-message {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===== 31. MEDIA QUERIES ===== */
@media (max-width: 1300px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 24px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: span 4;
  }
  .worksheet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .social-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Responsive Sidebar Wrap */
  .site-wrapper {
    flex-direction: column;
  }
  .main-content {
    width: 100% !important;
  }
  .sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .main-content {
    width: 100% !important;
  }
  .page-hero {
    padding: 130px 0 40px;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card {
    padding: 24px 16px;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .worksheet-grid {
    grid-template-columns: 1fr;
  }
  .social-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .footer-section {
    text-align: left;
  }
  .footer-links {
    align-items: flex-start;
  }
  .section {
    padding: 60px 0;
  }
  .resource-banner {
    padding: 32px 24px;
  }
  .resource-banner h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .social-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .social-card {
    width: auto !important;
    padding: 24px 16px !important;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .sidebar-search-form {
    flex-direction: column;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
    width: auto;
  }
  .container {
    padding: 0 16px;
  }
}

/* ===== Lucide Icons helper styles ===== */
.btn i[data-lucide],
.btn svg.lucide {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.5px;
}
.btn-sm i[data-lucide],
.btn-sm svg.lucide {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2px;
}
.btn-lg i[data-lucide],
.btn-lg svg.lucide {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.5px;
}

/* Light Theme overrides for contact page card & input fields */
.contact-form-card {
  background: var(--white) !important;
  border: 1px solid rgba(45, 38, 133, 0.15) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}
.contact-form-card .form-title {
  color: var(--primary) !important;
}
.contact-form-card .form-subtitle {
  color: var(--text-secondary) !important;
}
.contact-form-card .form-label {
  color: var(--text-secondary) !important;
}
.contact-form-card .form-input {
  background: var(--background) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: var(--text-primary) !important;
}
.contact-form-card .form-input::placeholder {
  color: #999;
}
.contact-form-card .form-input:focus {
  border-color: var(--primary) !important;
  background: var(--white) !important;
}

/* Light-theme overrides for contact social links */
.social-info-link {
  background: var(--white) !important;
  border: 1.5px solid rgba(45, 38, 133, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
  color: var(--text-primary) !important;
}
.social-info-link:hover {
  background: var(--background) !important;
  border-color: var(--primary) !important;
}
.social-info-link h4 {
  color: var(--text-primary) !important;
}
.social-info-link p {
  color: var(--text-secondary) !important;
}

/* Alert Styling adjustments */
.alert-success {
  background: rgba(77, 183, 72, 0.1) !important;
  border: 1px solid rgba(77, 183, 72, 0.3) !important;
  color: #2e6f2b !important;
}
.alert-success h4 {
  color: var(--green) !important;
}
.alert-error {
  background: rgba(248, 27, 45, 0.1) !important;
  border: 1px solid rgba(248, 27, 45, 0.3) !important;
  color: #b01320 !important;
}

/* Breadcrumb styling for breadcrumb-sep */
.breadcrumb-sep {
  color: var(--text-light) !important;
  margin: 0 8px;
}




/* ===== 17. HERO GRAPHIC ILLUSTRATION ===== */
.hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ===== 18. POPULAR LEARNING TOPICS ===== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-light);
}

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

.topic-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.topic-card:hover .topic-icon-circle {
  transform: scale(1.1);
}

.topic-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ===== 19. PARENTING CORNER SPLIT LAYOUT ===== */
.parenting-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.parenting-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.parenting-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.parenting-article-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-light);
}

.parenting-article-link:hover {
  transform: translateX(6px);
  border-left-color: var(--pink);
  box-shadow: var(--shadow-md);
  color: var(--pink);
}

/* ===== 20. WHY ANR KIDS WORLD ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  background: rgba(45, 38, 133, 0.08);
  color: var(--primary);
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== 21. NEWSLETTER SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 74, 166, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 12px;
  line-height: 1.2;
}

.newsletter-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--yellow);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.newsletter-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Custom social count badge styling */
.social-card-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

.social-card.youtube .social-card-count {
  background: rgba(248, 27, 45, 0.1);
  color: var(--red);
}

.social-card.instagram .social-card-count {
  background: rgba(217, 74, 166, 0.1);
  color: var(--pink);
}

.social-card.facebook .social-card-count {
  background: rgba(61, 183, 233, 0.1);
  color: var(--blue);
}

.social-card.telegram .social-card-count {
  background: rgba(78, 205, 196, 0.1);
  color: var(--secondary);
}

.social-card.linkedin .social-card-count {
  background: rgba(45, 38, 133, 0.1);
  color: var(--primary);
}

/* YouTube Subscribe CTA Button in Navbar & Mobile Menu */
.nav-cta-btn.btn-primary {
  background: #FF0000 !important;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-cta-btn.btn-primary:hover {
  background: linear-gradient(135deg, #CC0000 0%, #990000 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45) !important;
}

.nav-cta-btn.btn-primary i {
  color: #FFFFFF !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .topics-grid, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .parenting-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .topics-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-input, .newsletter-btn {
    width: 100%;
  }
  .navbar .nav-cta-btn {
    display: none !important;
  }
}

/* ===== 32. BLOG LAYOUT & OVERRIDES (Design System Standardized) ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: 110px;
}
.sidebar-widget {
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--color-card);
}
.sidebar-widget-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}
.sidebar-search-form {
  display: flex;
  gap: var(--space-xs);
  width: 100%;
}
.sidebar-search-form button {
  flex-shrink: 0;
}
.sidebar-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  background: var(--color-white);
  color: var(--color-text-primary);
  transition: var(--transition);
  outline: none;
}
.sidebar-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.1);
}
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-categories li {
  border-bottom: 1px solid var(--color-border);
}
.sidebar-categories li:last-child {
  border-bottom: none;
}
.sidebar-categories a {
  display: flex;
  padding: 10px 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-small);
  transition: var(--transition);
}
.sidebar-categories a:hover,
.sidebar-categories a.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  transform: translateX(2px);
}
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tips-list li {
  padding: var(--space-xs) 0;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.tips-list li:last-child {
  border-bottom: none;
}
.sidebar-social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.social-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-align: center;
  transition: var(--transition);
}
.social-link-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: var(--shadow-md);
}
.social-link-btn.yt { background: #FF0000; }
.social-link-btn.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link-btn.facebook { background: #1877F2; }
.social-link-btn.telegram { background: #229ED9; }

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}
.article-card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img {
  transform: scale(1.05);
}
.article-card-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}
.gradient-1 { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }
.gradient-2 { background: linear-gradient(135deg, var(--color-accent), var(--color-warning)); }
.gradient-3 { background: linear-gradient(135deg, var(--color-secondary), var(--color-success)); }
.gradient-4 { background: linear-gradient(135deg, var(--color-orange), var(--color-accent)); }
.gradient-5 { background: linear-gradient(135deg, var(--color-warning), var(--color-orange)); }

.placeholder-icon {
  font-size: 3rem;
}
.article-card-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin: var(--space-sm) 0 var(--space-xs);
  line-height: var(--line-height-snug);
}
.article-card-title a {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: var(--transition);
}
.article-card-title a:hover {
  color: var(--color-primary);
}
.article-card-excerpt {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}
.page-numbers {
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  justify-content: center;
}
.page-num, .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.page-num:hover,
.page-btn:hover {
  background: rgba(45, 38, 133, 0.05);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.page-num.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.page-ellipsis {
  padding: var(--space-xs) var(--space-2xs);
  color: var(--color-text-muted);
}

@media (max-width: 1150px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }
  .blog-sidebar .sidebar-widget {
    margin-bottom: 0;
  }
}

/* ===== 33. WORKSHEETS PAGE STYLES (Design System Standardized) ===== */
.worksheet-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover {
  background: rgba(45, 38, 133, 0.05);
  color: var(--color-primary);
}
.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.ws-select {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  background: var(--color-white);
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.ws-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.15);
}
@media (max-width: 768px) {
  .worksheet-filters { flex-direction: column; align-items: stretch; gap: var(--space-md); }
  .filter-tabs-wrap { width: 100%; }
  .ws-select { width: 100%; }
  #ws-cat-form { width: 100%; }
}

.worksheet-card {
  overflow: hidden;
  transition: var(--transition);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.worksheet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.worksheet-card-graphic {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  gap: var(--space-xs);
}
.ws-gradient-1 { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }
.ws-gradient-2 { background: linear-gradient(135deg, var(--color-accent), var(--color-warning)); }
.ws-gradient-3 { background: linear-gradient(135deg, var(--color-secondary), var(--color-success)); }
.ws-gradient-4 { background: linear-gradient(135deg, var(--color-orange), var(--color-accent)); }
.ws-gradient-5 { background: linear-gradient(135deg, var(--color-warning), var(--color-orange)); }
.ws-gradient-6 { background: linear-gradient(135deg, var(--color-success), var(--color-primary)); }

.ws-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-type-badge {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
}
.ws-card-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--color-primary-text);
}
.ws-card-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: var(--space-xs) 0;
}
.ws-card-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.ws-download-btn {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
@media (max-width: 992px) {
  .how-to-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .how-to-grid { grid-template-columns: 1fr; }
}
.how-to-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  color: var(--color-primary-text);
}
.how-to-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}
.ws-cta-banner {
  background: linear-gradient(135deg, #2D2685 0%, #1e5cb8 50%, #0088cc 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--color-white);
  box-shadow: 0 15px 35px rgba(45, 38, 133, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.ws-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.ws-cta-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}
.ws-cta-content h2 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.25;
}
.ws-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.ws-cta-banner .btn-accent {
  background: var(--color-white);
  color: var(--color-primary) !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ws-cta-banner .btn-accent:hover {
  background: var(--color-yellow);
  color: var(--color-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(253, 197, 0, 0.3);
}
.ws-cta-graphic {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.ws-graphic-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: float 4s ease-in-out infinite;
}
.ws-telegram-plane {
  width: 2.8rem;
  height: 2.8rem;
  color: #fff;
  transform: rotate(-15deg) translate(2px, -2px);
}
@media (max-width: 768px) {
  .ws-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .ws-cta-content {
    max-width: 100%;
  }
  .ws-cta-content h2 {
    font-size: 1.6rem;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  .ws-cta-graphic {
    width: 100px;
    height: 100px;
    margin-top: 12px;
  }
}


/* ===== 34. PARENTING PAGE STYLES (Design System Standardized) ===== */
.parenting-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 900px) {
  .parenting-layout { grid-template-columns: 1fr; }
}
.parenting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 600px) {
  .parenting-grid { grid-template-columns: 1fr; }
}
.parenting-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}
.parenting-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.parenting-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.parenting-gradient-1 { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); height: 260px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.parenting-gradient-2 { background: linear-gradient(135deg, var(--color-accent), var(--color-warning)); height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.parenting-gradient-3 { background: linear-gradient(135deg, var(--color-secondary), var(--color-success)); height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.parenting-card-body {
  padding: var(--space-lg);
}
.parenting-card-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  color: var(--color-primary-text);
}
.parenting-card-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.parenting-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.parenting-featured-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: var(--color-card);
}
.parenting-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.featured-main {
  grid-row: 1 / 3;
}
.featured-main .parenting-card-img {
  height: 260px;
}
.featured-main-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin: var(--space-sm) 0 var(--space-xs);
  line-height: var(--line-height-snug);
  color: var(--color-primary-text);
}
.featured-main-title a,
.featured-side-title a {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: var(--transition);
}
.featured-main-title a:hover,
.featured-side-title a:hover {
  color: var(--color-primary);
}
.featured-side-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin: var(--space-xs) 0;
  line-height: var(--line-height-snug);
  color: var(--color-primary-text);
}
.parenting-card-excerpt {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-sm);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.tip-card {
  transition: var(--transition);
  border-top: 4px solid var(--tip-color);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}
.tip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.tip-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--tip-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-white);
}
.tip-icon {
  font-size: 1.8rem;
}
.tip-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  color: var(--color-primary-text);
}
.community-banner {
  background: linear-gradient(135deg, rgba(45,38,133,0.08) 0%, rgba(61,183,233,0.08) 100%);
  border: 1px solid rgba(45,38,133,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.community-emoji {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}
.community-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.community-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-body);
}
.community-desc {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-body);
}

@media (max-width: 900px) {
  .parenting-featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-row: auto; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .community-banner { padding: var(--space-2xl) var(--space-md); }
}
@media (max-width: 600px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* ===== 35. GENERAL FORM & VALIDATION STATES ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  min-height: 44px; /* Touch target minimum height */
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 38, 133, 0.15);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* Validation states */
.form-input.is-valid, .form-control.is-valid {
  border-color: var(--color-success-text) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-input.is-valid:focus, .form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

.form-input.is-invalid, .form-control.is-invalid {
  border-color: var(--color-danger-text) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-input.is-invalid:focus, .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.valid-feedback {
  display: none;
  font-size: 0.82rem;
  color: var(--color-success-text);
  margin-top: 4px;
}

.invalid-feedback {
  display: none;
  font-size: 0.82rem;
  color: var(--color-danger-text);
  margin-top: 4px;
}

.is-valid ~ .valid-feedback,
.is-invalid ~ .invalid-feedback {
  display: block;
}

/* ===== 36. CONSOLIDATED PAGE STYLES ===== */

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  border-left: 4px solid var(--color-primary);
  padding-left: 14px;
}
.about-content p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 16px;
  font-size: var(--font-size-body);
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-visual .about-card {
  max-width: 360px;
  border-top: 5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.about-visual .about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.value-card {
  text-align: center;
  transition: var(--transition);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
  padding: 24px;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.value-card p {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: stretch;
}
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}
.contact-sidebar .sidebar-info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}
.contact-sidebar .sidebar-info-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-form-card {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.form-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alert {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: left;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--color-text-primary);
}
.alert-success h4 {
  color: var(--color-success-text);
  font-weight: 700;
  margin-bottom: 4px;
}
.alert-success p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}
.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sidebar-info-card {
  margin-bottom: 24px;
}
.info-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.info-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.social-info-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-info-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: var(--transition);
}
.social-info-link:hover {
  transform: translateX(4px);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 38, 133, 0.15);
}
.social-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.social-info-link h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.social-info-link p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.social-info-link.youtube:hover h4 { color: #FF0000; }
.social-info-link.telegram:hover h4 { color: #229ED9; }
.social-info-link.facebook:hover h4 { color: #1877F2; }
.social-info-link.instagram:hover h4 { color: #e1306c; }
.info-highlight-card {
  text-align: center;
}
.info-highlight-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.info-highlight-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Videos Page --- */
.video-thumb-link {
  display: block;
}
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-color: #1a1a2e;
}
.video-thumb-placeholder {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.video-card:hover .video-play-overlay {
  opacity: 1;
}
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.video-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 8px;
  line-height: 1.4;
}
.video-card-title a {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: var(--transition);
}
.video-card-title a:hover {
  color: var(--color-primary);
}
.video-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.video-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.video-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-card .card-body .badge {
  align-self: flex-start;
}
.yt-cta-banner {
  background: linear-gradient(135deg, #120e3d 0%, #1e1b4b 50%, #2e1065 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 32px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.yt-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 74, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.yt-cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61, 183, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.yt-cta-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}
.yt-cta-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-white);
  letter-spacing: -0.5px;
}
.yt-cta-desc {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.yt-cta-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.yt-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.yt-stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.yt-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-yellow);
}
.yt-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}
.yt-cta-banner .btn-accent {
  background: var(--color-white);
  color: var(--color-primary-dark) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
  transition: all 0.3s ease;
}
.yt-cta-banner .btn-accent:hover {
  background: var(--color-yellow);
  color: var(--color-white) !important;
  box-shadow: 0 6px 20px rgba(248, 196, 15, 0.4);
  transform: translateY(-3px);
}

/* --- Policy Pages --- */
.policy-content, .terms-content {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  box-shadow: var(--shadow-md);
}
.last-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.policy-content h2, .terms-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}
.policy-content p, .terms-content p, .policy-content li, .terms-content li {
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.policy-content ul, .terms-content ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

/* --- 404 Page --- */
.error-graphic-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.error-graphic {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  animation: bounce 2s infinite ease-in-out;
}
.error-animation-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(10rem, 25vw, 15rem);
  height: clamp(10rem, 25vw, 15rem);
  border: 4px dashed rgba(45, 38, 133, 0.08);
  border-radius: 50%;
  z-index: 1;
  animation: spin 20s linear infinite;
}
.error-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.error-desc {
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.youtube-cta-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.youtube-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(45, 38, 133, 0.08);
}
.youtube-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #FF0000, #CC0000);
}
.yt-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 0, 0.06);
  border-radius: 50%;
  margin-bottom: 16px;
}
.yt-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.yt-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 20px;
}
.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
}
.btn-yt-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
}

/* --- Article Page --- */
.reading-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.1);
  z-index: 9999;
}
.reading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-yellow));
  transition: width 0.1s linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.article-page-wrapper {
  width: 100%;
  margin: 0 auto;
}
.article-content {
  font-size: 1.05rem; /* Standard readable 17px body font size */
  line-height: 1.75;
  color: #334155; /* Slate 700 - standard for soft contrast reading */
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-heading);
}
.article-content h1 {
  font-size: 1.5rem; /* ~24px - Standard H1 inside article content */
  margin: 36px 0 14px;
}
.article-content h2 {
  font-size: 1.35rem; /* ~22px - Standard H2 */
  margin: 32px 0 12px;
}
.article-content h3 {
  font-size: 1.2rem; /* ~19px - Standard H3 */
  margin: 28px 0 10px;
}
.article-content h4 {
  font-size: 1.05rem; /* ~17px - Standard H4 */
  margin: 24px 0 8px;
}



.article-content p {
  margin-bottom: 24px;
}
.article-content ul, .article-content ol {
  margin: 18px 0 18px 28px;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--color-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}
.article-thumbnail-full {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.article-thumbnail-placeholder {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}
.article-thumbnail-placeholder span {
  display: none;
}
.article-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 28px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-title-heading {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 14px 0 8px;
  color: var(--color-primary);
}
.share-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.share-title {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--color-primary);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
  min-height: 44px;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: var(--shadow-md);
}
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
.article-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.article-sticky-sidebar {
  position: sticky;
  top: 110px;
}

/* --- Media Queries for Consolidated Styles --- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .yt-cta-banner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .yt-cta-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .videos-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sticky-sidebar { position: static; }
  .article-title-heading { font-size: 1.6rem; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .videos-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .policy-content, .terms-content { padding: 24px; }
}

/* --- Hero Sparkle Trail Effect --- */
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: var(--sparkle-color, #ffffff);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  animation: sparkle-animation 0.8s forwards ease-out;
  transform: translate(-50%, -50%);
}

@keyframes sparkle-animation {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.4) rotate(var(--rot, 0deg));
    opacity: 0;
  }
}

/* ===== 32. ULTRA-WIDE VIEWPORTS LAYOUT OPTIMIZATION ===== */
@media (min-width: 1400px) {
  .site-wrapper {
    display: grid;
    grid-template-columns: 80% 20%;
    width: 100%;
  }
  .main-content {
    grid-column: 1;
    width: 100% !important;
  }
  .sidebar {
    grid-column: 2;
    width: 100% !important;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
    z-index: 2000;
  }
  .footer .container {
    max-width: 100%;
    padding: 0 40px;
    width: 100%;
  }
  .hero, .section-alt, .page-hero {
    position: relative;
    z-index: 1;
    margin-left: 0;
    padding-left: 0;
  }
}

/* ===== 33. PREMIUM INTERACTIVE UI/UX ENHANCEMENTS ===== */
/* 33.1. Click Sparkles Effect */
.click-sparkle {
  position: fixed;
  width: 14px;
  height: 14px;
  background-color: var(--color);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) scale(1);
  animation: sparkle-fade-out 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkle-fade-out {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* 33.2. Floating Organic Background Blobs */
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-bg-blob.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float-blob-1 25s infinite ease-in-out alternate;
}

.hero-bg-blob.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  animation: float-blob-2 30s infinite ease-in-out alternate;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1) border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { transform: translate(60px, 80px) scale(1.15); border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  100% { transform: translate(-40px, -20px) scale(0.9); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1) border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; }
  50% { transform: translate(-80px, -60px) scale(1.2); border-radius: 30% 70% 60% 40% / 60% 40% 60% 40%; }
  100% { transform: translate(30px, 40px) scale(0.95); border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; }
}

/* Page Hero organic blob background */
.page-hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  right: -80px;
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  animation: float-blob-hero 18s infinite ease-in-out alternate;
}

@keyframes float-blob-hero {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.15); }
  100% { transform: translate(20px, -30px) scale(0.9); }
}

/* 33.3. Playful Icon Hover Animations */
/* Page flip for book-open icon */
.nav-link:hover .lucide-book-open,
.footer-link:hover .lucide-book-open,
.category-card:hover .lucide-book-open,
.sidebar-promo-icon:hover .lucide-book-open {
  animation: book-flip 0.8s ease-in-out;
}
@keyframes book-flip {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotateY(-20deg); }
  100% { transform: scale(1); }
}

/* Pulse play/video icon on hover */
.nav-link:hover .lucide-video,
.nav-cta-btn:hover .lucide-video,
.btn:hover .lucide-video,
.sidebar-play:hover i,
.sidebar-social-btn:hover svg,
.social-card:hover svg {
  animation: pulse-video 0.8s ease-in-out infinite alternate;
}
@keyframes pulse-video {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

/* Bounce download arrow */
.download-btn:hover svg,
.btn-primary:hover .lucide-download {
  animation: bounce-arrow 0.6s infinite alternate;
}
@keyframes bounce-arrow {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* 33.4. Scroll Progress Indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 99999;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  transition: width 0.1s ease-out;
}



/* 33.6. Form Submit Loading Overlay */
.form-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 38, 133, 0.4);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  animation: overlay-fade-in 0.3s ease-out forwards;
}

.form-submit-loader-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 380px;
  width: 90%;
  border: 1px solid var(--border);
  transform: translateY(20px);
  animation: loader-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.loader-icons {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 38, 133, 0.08);
  border-radius: 50%;
  color: var(--primary);
}

.loader-icon-send {
  width: 2.2rem;
  height: 2.2rem;
  animation: flight-send 1.5s infinite ease-in-out;
}

.loader-icon-sparkles {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent);
  animation: rotate-sparkles 2s infinite linear;
}

@keyframes overlay-fade-in {
  100% { opacity: 1; }
}

@keyframes loader-slide-up {
  100% { transform: translateY(0); }
}

@keyframes flight-send {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(15px, -15px) scale(0.9) rotate(-15deg);
    opacity: 0.7;
  }
}

@keyframes rotate-sparkles {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.loader-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Redesigned YouTube CTA Widget Styles */
.sidebar-yt-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFBEB 100%);
  border: 3px solid #FECDD3;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.sidebar-yt-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
  border-color: #FDA4AF;
}

.sidebar-yt-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(254, 205, 211, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar-yt-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Floating sparkles/bubbles */
.sidebar-yt-card .floating-sparkle {
  position: absolute;
  color: #FBBF24;
  opacity: 0.6;
  pointer-events: none;
  transition: transform 0.8s ease;
}
.sidebar-yt-card:hover .floating-sparkle {
  transform: scale(1.3) rotate(45deg);
}

.sidebar-yt-card .sparkle-1 { top: 15%; left: 10%; width: 14px; height: 14px; }
.sidebar-yt-card .sparkle-2 { bottom: 20%; right: 12%; width: 18px; height: 18px; }

/* Watch & Learn Badge */
.yt-card-badge {
  background: linear-gradient(135deg, #EC4899 0%, #D946EF 100%);
  color: #FFFFFF;
  font-family: 'Fredoka', var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
  display: inline-block;
  z-index: 1;
}

/* Pulsing Video Screen Mockup */
.yt-screen-mockup {
  position: relative;
  width: 140px;
  height: 90px;
  background: #1e1b4b;
  border: 4px solid #312e81;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.sidebar-yt-card:hover .yt-screen-mockup {
  transform: scale(1.05);
  border-color: #3730a3;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
}

/* YouTube Red Play Button */
.yt-screen-mockup .play-button-3d {
  position: relative;
  width: 52px;
  height: 36px;
  background: #EF4444;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.5);
  transition: all 0.3s ease;
  z-index: 2;
}

.yt-screen-mockup .play-button-3d::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid #FFFFFF;
  margin-left: 3px;
}

.sidebar-yt-card:hover .play-button-3d {
  background: #FF0000;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.6), 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Pulsing background ripple inside screen */
.yt-screen-mockup .screen-ripple {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  animation: screen-pulse 2s infinite ease-out;
  z-index: 1;
}

@keyframes screen-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Playful Scanlines / Shine on Screen */
.yt-screen-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 3;
}
.sidebar-yt-card:hover .yt-screen-mockup::before {
  left: 200%;
  transition: left 0.8s ease-in-out;
}

/* Playful Card Text */
.yt-card-header {
  font-family: 'Fredoka', var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #2D2685;
  margin: 0;
  line-height: 1.2;
}

.yt-card-subheader {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  max-width: 210px;
}

/* Bubbly Subscribe Button */
.yt-bubbly-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FF0000 0%, #E60000 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  width: 100%;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: 'Fredoka', var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 6px;
  z-index: 1;
}

.yt-bubbly-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #FF3333 0%, #CC0000 100%);
}

.yt-bubbly-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.yt-bubbly-btn i {
  transition: transform 0.3s ease;
}

.yt-bubbly-btn:hover i {
  transform: scale(1.2) rotate(-10deg);
  animation: bell-ring 0.6s ease-in-out infinite alternate;
}

@keyframes bell-ring {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(12deg); }
}

/* Playful & Premium Sidebar Author Card */
.sidebar-author-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(45, 38, 133, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(45, 38, 133, 0.07);
  border-color: var(--color-primary-light);
}

.author-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
  box-shadow: 0 4px 12px rgba(45, 38, 133, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-author-card:hover .author-avatar-wrap {
  transform: scale(1.08) rotate(5deg);
}

.author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-white);
}

.author-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

.author-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.author-name {
  font-family: 'Fredoka', var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.35;
}

.author-badge {
  display: inline-block;
  background: var(--color-secondary-light);
  color: var(--color-secondary-text);
  font-family: 'Fredoka', var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  line-height: 1.2;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.author-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.author-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  background: var(--color-white);
}

.author-link-btn:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(45, 38, 133, 0.15);
}

/* ===== 22. HERO CAROUSEL BANNER SLIDER ===== */
.hero-carousel-slider {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
  border: 4px solid var(--color-white);
  animation: float 6s ease-in-out infinite;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Caption Overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0) 100%);
  color: var(--color-white);
  z-index: 3;
  pointer-events: none;
}

.slide-caption h3 {
  font-family: var(--font-logo);
  font-size: 1.45rem;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--color-yellow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.slide-caption p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5px;
}

.slider-arrow:hover {
  background: var(--color-yellow);
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-arrow {
  left: 12px;
}

.next-arrow {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--color-yellow);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

/* ===== 23. GRAPESLAB HERO LAYOUT SYSTEM ===== */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Overlapping Colored Circles */
.visual-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  filter: blur(10px);
}

.circle-1 {
  width: 380px;
  height: 380px;
  background: var(--color-accent); /* Pink */
  top: -30px;
  left: -20px;
  animation: pulseCircle 8s ease-in-out infinite;
}

.circle-2 {
  width: 350px;
  height: 350px;
  background: var(--color-secondary); /* Sky Blue */
  bottom: -40px;
  right: -30px;
  animation: pulseCircle 10s ease-in-out infinite 1s;
}

.circle-3 {
  width: 280px;
  height: 280px;
  background: var(--color-yellow); /* Yellow */
  top: 30px;
  right: -50px;
  animation: pulseCircle 12s ease-in-out infinite 2s;
}

@keyframes pulseCircle {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.35; }
}

/* Floating Badge Cards */
.hero-badge-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  z-index: 5;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatBadge 6s ease-in-out infinite;
}

.hero-badge-card:hover {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.15);
  background: var(--color-white);
  border-color: var(--color-yellow);
}

/* Orbiting Badge Item Container */
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  --radius: 230px;
  z-index: 6;
  animation: orbit 50s linear infinite;
}

/* Pause orbit when any badge is hovered */
.hero-visual-wrapper:has(.hero-badge-icon:hover) .orbit-item {
  animation-play-state: paused;
}

@keyframes orbit {
  0% {
    transform: rotate(var(--start-angle)) translate(var(--radius)) rotate(calc(-1 * var(--start-angle)));
  }
  100% {
    transform: rotate(calc(var(--start-angle) + 360deg)) translate(var(--radius)) rotate(calc(-1 * (var(--start-angle) + 360deg)));
  }
}

/* Floating Circular Badge Icons */
.hero-badge-icon {
  position: absolute;
  width: 62px;
  height: 62px;
  top: -31px; /* Center-align on orbit line */
  left: -31px; /* Center-align on orbit line */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatBadge 6s ease-in-out infinite;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
}

.hero-badge-icon:hover {
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  border-color: var(--color-white);
}

.hero-badge-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2px;
}

.hero-badge-icon.bg-yellow { background: var(--color-yellow); }
.hero-badge-icon.bg-blue { background: var(--color-secondary); }
.hero-badge-icon.bg-pink { background: var(--color-accent); }
.hero-badge-icon.bg-green { background: var(--color-success); }
.hero-badge-icon.bg-orange { background: #f97316; } /* Orange */
.hero-badge-icon.bg-purple { background: #8b5cf6; } /* Violet/Purple */
.hero-badge-icon.bg-teal { background: #14b8a6; } /* Teal */

/* Delays for asynchronous floating */
.badge-star { animation-delay: 0s; }
.badge-stack { animation-delay: 0.8s; }
.badge-brain { animation-delay: 1.6s; }
.badge-palette { animation-delay: 2.4s; }
.badge-book { animation-delay: 3.2s; }
.badge-sprout { animation-delay: 4.0s; }
.badge-smile { animation-delay: 4.8s; }

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


/* Play Video Button Layout */
.btn-play-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--color-white) !important;
  transition: all 0.3s ease;
}

.play-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
  margin-left: 2px; /* Visual center alignment for play triangle */
}

.btn-play-video:hover {
  color: var(--color-yellow) !important;
}

.btn-play-video:hover .play-icon-circle {
  transform: scale(1.1);
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.3);
}

/* Floating Stats Bar */
.hero-stats-bar {
  position: relative;
  margin-top: -55px; /* Pull it up into the hero section space */
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 1000px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 30px;
  z-index: 10;
  border: 1.5px solid var(--color-border);
}

.stat-col {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 4px 15px;
}

.stat-col:not(:last-child) {
  border-right: 1.5px solid var(--color-border);
}

.stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.stat-icon-wrap.bg-green-light {
  background: var(--color-success-light);
  color: var(--color-success-text);
}

.stat-icon-wrap.bg-pink-light {
  background: var(--color-accent-light);
  color: var(--color-accent-text);
}

.stat-icon-wrap.bg-yellow-light {
  background: var(--color-warning-light);
  color: var(--color-warning-text);
}

.stat-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5px;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Adjustments for stats overlapping */
.hero {
  padding-bottom: 120px; /* Space for absolute bar */
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero {
    padding-bottom: 60px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual-wrapper {
    margin-top: 20px;
  }

  .hero-stats-bar {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .hero-stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 10px;
  }
  
  .stat-col {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 4px;
  }
  
  .stat-col:not(:last-child) {
    border-right: 1.5px solid var(--color-border);
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .orbit-item {
    --radius: 170px;
  }

  .hero-badge-icon {
    width: 48px;
    height: 48px;
    top: -24px;
    left: -24px;
    border-width: 1.5px;
  }

  .hero-badge-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .orbit-item {
    --radius: 135px;
  }

  .hero-badge-icon {
    width: 38px;
    height: 38px;
    top: -19px;
    left: -19px;
  }

  .hero-badge-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .visual-circle {
    opacity: 0.15;
  }
  
  .circle-1 { width: 300px; height: 300px; }
  .circle-2 { width: 280px; height: 280px; }
  .circle-3 { width: 220px; height: 220px; }
}

@media (max-width: 1024px) {
  .newsletter-section .floating-element {
    display: none !important;
  }
}

/* Video Topics List */
.video-topics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.topic-tag {
  background: rgba(45, 38, 133, 0.06);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(45, 38, 133, 0.1);
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.topic-tag:hover {
  background: rgba(45, 38, 133, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .video-topics-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .topic-tag {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Worksheet Topics List */
.worksheet-topics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.worksheet-topic-tag {
  background: rgba(245, 130, 32, 0.08);
  color: #F58220;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(245, 130, 32, 0.15);
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.worksheet-topic-tag:hover {
  background: rgba(245, 130, 32, 0.15);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .worksheet-topics-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .worksheet-topic-tag {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Revert text-alignment of p tags inside specific modules to inherit from parent containers */
.section-header p,
.section-subtitle,
.trust-card p,
.trust-card-desc,
.category-card p,
.card p,
.footer p,
.hero-text p,
.page-hero p,
.page-hero-subtitle {
  text-align: inherit;
}

