/* ===================================
   Yoga Asanas Web App - Styles
   Modern, Premium Design System
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Orange Pastel Theme Palette */
  --primary-pastel: #FFDAC1;
  /* Soft Peach */
  --primary-pastel-dark: #FFB7B2;
  /* Coral Pink/Orange */
  --secondary-pastel: #FFF2CC;
  /* Pale Yellow-Orange */
  --accent-pastel: #FF9AA2;
  /* Soft Salmon */

  /* Text Accents (Darker for contrast) */
  --text-primary: #D35400;
  /* Dark Pumpkin */
  --text-secondary: #E67E22;
  /* Carrot */

  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #FFFDF9;
  /* Warm tint */
  --gray-100: #F9F3EA;
  /* Warm tint */
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --gray-400: #A0AEC0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A202C;
  --gray-900: #171923;

  /* Orange Pastel Gradients */
  --gradient-main: linear-gradient(135deg, var(--primary-pastel) 0%, var(--secondary-pastel) 100%);
  --gradient-hero: linear-gradient(135deg, #FFDAC1 0%, #FFB7B2 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

  /* Backward Compatibility Mappings */
  --chakra-heart-pastel: var(--primary-pastel);
  --chakra-throat-pastel: var(--primary-pastel-dark);
  --chakra-solar-pastel: var(--secondary-pastel);
  --chakra-crown-pastel: var(--accent-pastel);

  --gradient-chakra-full: var(--gradient-hero);
  --gradient-primary: var(--gradient-main);
  --gradient-warm: var(--gradient-hero);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-700);
}

.sanskrit {
  font-style: italic;
  color: var(--chakra-third-eye);
  font-weight: 500;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  /* Removed background */
  box-shadow: none;
  /* Removed shadow */
  transition: var(--transition-base);
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  /* Larger for visibility */
  font-weight: 800;
  /* Extra bold */
  color: white;
  /* White text for logo on dark hero */
  text-decoration: none;
  letter-spacing: -0.5px;
  background: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 18px;
  /* Further reduced for more subtle appearance */
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-accent {
  color: #FF9933;
  /* Saffron orange accent for 'soul' */
}

/* Default Nav hidden for Awwwards style */
.nav-menu {
  display: none;
}


/* Mobile Menu Toggle */
/* Menu Toggle - Visible Always */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
  transition: transform 0.2s ease;
  /* Removed fixed positioning to allow flexbox alignment in nav-container */
}

.menu-toggle:hover {
  transform: scale(1.05);
}

.menu-toggle img {
  width: 44px;
  /* Slightly larger touch target */
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Slight shadow for visibility */
}

/* Scrolled State for Header */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled .logo {
  color: #2c3e50;
  /* Dark color on scroll */
}

/* Remove old span styles specifically */
/* Solid Header (For pages without Hero Image) */

/* Solid Header (For pages without Hero Image) */
.header.solid-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.header.solid-header .logo {
  color: black;
}

/* ===================================
   Floating Card Menu (Redesigned)
  /* Floating Full Screen Menu (Mobile/Overlay) */
.fullscreen-menu {
  /* Overlay wrapper for click-outside detection */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  /* Let clicks pass through when hidden */
}

/* The Card Itself */
.menu-card {
  position: absolute;
  top: 70px;
  /* Position below header */
  right: 20px;

  background: #FFF8E7;
  /* Very light saffron/cream */
  width: 300px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  /* Reduced outer padding */
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Reduced gap between items */

  /* Hidden State */
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Active State */
.fullscreen-menu.active {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.2);
  /* Dimmed background for better UX and click capture */
  /* Capture clicks on wrapper */
}

.fullscreen-menu.active .menu-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Menu Header (User Profile Style) */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Text Left, Avatar Right */
  padding: 12px 16px;
  /* Reduced padding */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Softer border */
  margin-bottom: 4px;
}

.menu-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-user-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.menu-user-info span {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0;
}

.menu-avatar {
  width: 48px;
  /* Slightly smaller avatar */
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  /* Instagram-like ring */
}

.menu-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFF8E7;
  /* Match bg color */
  background: #FFF8E7;
}

/* Menu Items */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  /* Reduced padding */
  text-decoration: none;
  color: var(--gray-700);
  border-radius: 12px;
  /* Softer rounded */
  transition: all 0.2s ease;
  font-weight: 600;
  margin: 0 4px;
  /* Reduced side margins */
  font-size: 0.95rem;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.6);
  /* Subtle white hover on saffron */
}

.menu-item.active {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--gray-900);
}

.menu-icon {
  font-size: 1.1rem;
  width: 20px;
  /* Enforce consistent width */
  text-align: center;
  display: flex;
  justify-content: center;
}

.menu-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.badge-pro {
  background: #dcfce7;
  color: #166534;
}

.menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 4px 10px;
}

/* Submenu/Dropdown in Card */
.menu-item-group {
  display: flex;
  flex-direction: column;
}

.menu-submenu {
  padding-left: 52px;
  /* Align with text (icon width + gap + padding) */
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.menu-item-group.active .menu-submenu {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.submenu-item {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.submenu-item:hover {
  color: var(--text-primary);
}


/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  height: 100vh;
  /* Force full height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  /* Remove offset for full video experience */
  background: transparent;
}

/* Sutras Page Background */
.hero-sutras {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('sutras_bg_desktop.png') no-repeat center center/cover !important;
}

@media (max-width: 768px) {
  .hero-sutras {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('sutras_bg_mobile.png') no-repeat center center/cover !important;
  }
}

/* Gita Page Background */
.hero-gita {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('gita_bg_desktop.png') no-repeat center center/cover !important;
}

@media (max-width: 768px) {
  .hero-gita {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('gita_bg_mobile.png') no-repeat center center/cover !important;
  }
}


.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Dark Overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  /* Safe distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
  color: white;
  display: flex;
  flex-direction: column;
  /* Stack items */
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: white;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: white;
  /* White text */
  margin-bottom: var(--spacing-xl);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Strong shadow */
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  /* Wider button */
  background: rgba(255, 255, 255, 0.9);
  /* Slightly translucent white */
  color: #D35400;
  /* Dark Saffron */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Stronger shadow */
  transition: all 0.3s ease;
  border: 2px solid white;
  /* Border to pop */
  backdrop-filter: blur(5px);
}

.cta-button:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

/* Breathing Animation */
@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Journey Cards */
.journey-cards-container {
  display: flex;
  flex-direction: column;
  /* Stack Title and Cards */
  align-items: center;
  gap: 30px;
  width: 98%;
  /* Increased Width */
  max-width: 1600px;
  /* Increased Max Width */
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.journey-title {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  animation: fadeInUp 0.8s ease-out;
}

.journey-cards-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.journey-card {
  flex: 1;
  position: relative;
  /* Remove direct background/border to use pseudo-element for masking */
  background: none !important;
  border: none !important;
  padding: 24px;
  /* Increased padding */
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  /* Increased Height for better proportion */
  isolation: isolate;
  /* Create stacking context */
}

/* Card Variants */
.card-style-grey {
  background: linear-gradient(135deg, rgba(80, 80, 80, 0.9), rgba(50, 50, 50, 0.95));
}

.card-style-rose {
  background: linear-gradient(135deg, rgba(160, 100, 100, 0.9), rgba(130, 70, 70, 0.95));
}

.card-style-light {
  background: linear-gradient(135deg, rgba(180, 180, 180, 0.9), rgba(150, 150, 150, 0.95));
}

.card-style-blue {
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.9), rgba(52, 152, 219, 0.95));
}

.card-style-amber {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.9), rgba(230, 126, 34, 0.95));
}

.card-style-red {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.9), rgba(231, 76, 60, 0.95));
}

.card-style-glass {
  /* No base background, handled by ::before */
}


/* The Cutout & Button Wrapper */
/* Background & Masking Layer */
.journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  /* Softer rounding */
  z-index: -1;

  /* The Cutout Mask: Perfect Circle around button */
  /* Button is at right: -6px, bottom: -6px. Radius 28px. */
  /* Center of button is 22px from right, 22px from bottom edges */
  --cutout-center: 22px;
  --cutout-radius: 34px;
  /* 28px + 6px gap */

  -webkit-mask: radial-gradient(circle at right var(--cutout-center) bottom var(--cutout-center), transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));
  mask: radial-gradient(circle at right var(--cutout-center) bottom var(--cutout-center), transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  /* Add blur for glass effect */
  -webkit-backdrop-filter: blur(8px);
}

/* Gradients matching screenshot (Translucent 50%) */
.card-style-grey::before {
  background: linear-gradient(135deg, rgba(107, 112, 116, 0.5) 0%, rgba(84, 89, 93, 0.5) 100%);
}

.card-style-rose::before {
  background: linear-gradient(135deg, rgba(168, 139, 139, 0.5) 0%, rgba(143, 114, 114, 0.5) 100%);
}

.card-style-light::before {
  background: linear-gradient(135deg, rgba(184, 184, 182, 0.5) 0%, rgba(158, 158, 156, 0.5) 100%);
}

.card-style-blue::before {
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.5) 0%, rgba(52, 152, 219, 0.5) 100%);
}

.card-style-amber::before {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.5) 0%, rgba(230, 126, 34, 0.5) 100%);
}

.card-style-red::before {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.5) 0%, rgba(231, 76, 60, 0.5) 100%);
}

/* Light Saffron Frosted Glass Style */
.card-style-glass::before {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.7), rgba(255, 179, 71, 0.75));
  /* Light Saffron / Pastel Orange */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Typography Overrides */
.card-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.card-title {
  font-family: var(--font-body);
  /* Matching screenshot Sans-Serif */
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}


/* Floating Action Button */
.card-action {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Action Button Color Variants */
.action-blue {
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: white;
}

.action-amber {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
}

.action-red {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
}

/* Cleanup */
.journey-card::after {
  display: none;
}

.card-action::before {
  display: none;
}

/* Button Colors */
.btn-dark {
  background-color: #0F3D3E;
}

.btn-light {
  background-color: #A3C9C9;
}

.btn-accent {
  background-color: #C06014;
}

/* Burnt Orange */


.arrow-icon {
  font-size: 1.5rem;
  /* Slightly larger */
  font-weight: 900;
  /* Thicker */
  color: white;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.journey-card:hover .arrow-icon {
  transform: rotate(45deg);
}

.journey-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .journey-cards-row {
    flex-direction: column;
    /* Reduce gap nicely */
    gap: 8px;
    transition: transform 0.5s ease-in-out;
    /* Smooth transition */
  }

  .journey-cards-container {
    bottom: 10px;
    /* Move closer to bottom */
    gap: 8px;
    width: 95%;
    /* Ensure not too wide */
  }

  .journey-title {
    font-size: 1.1rem;
    /* Smaller title */
    margin-bottom: 4px;
    line-height: 1.1;
  }

  /* Compacting the hero title to ensure video is visible */
  .hero-content {
    /* If there's any hero content active (though obscured by cards usually), hide it or move it up */
    display: none;
    /* Hide specific hero text on mobile if cards are main nav */
  }

  .journey-card {
    min-height: 80px;
    /* Increased height for better aesthetics */
    padding: 16px;
    padding-right: 50px;
    /* Space for absolute button */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .card-text {
    text-align: left;
    flex: 1;
  }

  .card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-title {
    font-size: 1.05rem;
    /* Reduced to fit */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-action {
    width: 44px;
    height: 44px;
    position: absolute;
    bottom: -6px;
    right: -6px;
    margin: 0;
    transform: none;
    /* Reset any transforms */
  }

  .journey-card::before {
    /* Mobile Cutout Params for 44px button at -6px offset */
    /* Button R = 22px. Offset = -6px. Center = 16px from edge */
    --cutout-center: 16px;
    --cutout-radius: 28px;
    /* 22px + 6px gap */

    -webkit-mask: radial-gradient(circle at right var(--cutout-center) bottom var(--cutout-center), transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));
    mask: radial-gradient(circle at right var(--cutout-center) bottom var(--cutout-center), transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));
  }
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  animation: breathe 4s ease-in-out infinite;
}

/* ===================================
   Main Content
   =================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.section {
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

/* ===================================
   Asana Grid & Filtering
   =================================== */
.tag-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.tag-button {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xl);
  border: 2px solid #FF9933;
  /* Vivid Saffron */
  background: transparent;
  color: #D35400;
  /* Darker Orange text for contrast */
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-body);
}

.tag-button:hover,
.tag-button.active {
  background: #FF9933;
  /* Vivid Saffron */
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.asana-card.hidden {
  display: none;
}

.asana-grid {
  column-count: 3;
  column-gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.asana-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--spacing-xl);
}

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

.asana-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  /* Ensure consistent square aspect */
  object-fit: cover;
  /* Full bleed, no whitespace */
  background: var(--gray-100);
  display: block;
}

/* For SVG and placeholder images */
.asana-card-image.svg-icon {
  object-fit: contain;
  padding: 1rem;
}

.asana-card-content {
  padding: var(--spacing-lg);
}

.asana-card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--gray-900);
}

.asana-card-sanskrit {
  font-style: italic;
  color: var(--chakra-third-eye);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.asana-card-excerpt {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.difficulty-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-beginner {
  background: var(--primary-pastel);
  color: #D35400;
  /* Dark Pumpkin for contrast */
}

.difficulty-intermediate {
  background: var(--secondary-pastel);
  color: #E67E22;
  /* Carrot Orange for contrast */
}

.difficulty-advanced {
  background: var(--accent-pastel);
  color: #C0392B;
  /* Deep Red-Orange for contrast */
}

/* ===================================
   Modal / Detail View
   =================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: var(--spacing-lg);
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--gray-100);
  transform: rotate(90deg);
}

.modal-header {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
  color: var(--white);
  text-align: center;
}

.modal-header h2 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.modal-body {
  padding: var(--spacing-xl);
}

.detail-section {
  margin-bottom: var(--spacing-xl);
}

.detail-section h3 {
  color: var(--chakra-throat);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.detail-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.benefits-list,
.steps-list {
  list-style: none;
  padding-left: 0;
}

.benefits-list li,
.steps-list li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--gray-700);
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-saffron);
  font-weight: 700;
  font-size: 1.2rem;
}

.steps-list li {
  counter-increment: step-counter;
  padding-left: var(--spacing-xl);
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps-list {
  counter-reset: step-counter;
}

.precaution-box {
  background: rgba(243, 156, 18, 0.1);
  border-left: 4px solid var(--chakra-solar);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-md);
}

.precaution-box p {
  margin: 0;
  color: var(--gray-700);
}

.step-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.step-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
}

.footer p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: var(--spacing-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  list-style: none;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--chakra-throat);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Responsive Design
   =================================== */
/* Mobile Dropdown Override - Removed as unified fullscreen handles it */
@media (max-width: 768px) {

  .asana-grid {
    column-count: 1;
    gap: var(--spacing-lg);
  }

  .hero {
    margin-top: 0;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100dvh;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    margin-bottom: var(--spacing-sm);
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
    padding: 0 15px;
  }



  .asana-card-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    aspect-ratio: 1/1 !important;
  }

  /* Smart Cropping for Mobile - Preserves Subject */
  /* Vertical Poses - Taller Card to save head/feet */
  .asana-card[data-asana="headstand"] .asana-card-image,
  .asana-card[data-asana="shoulderstand"] .asana-card-image,
  .asana-card[data-asana="standing-forward"] .asana-card-image,
  .asana-card[data-asana="triangle"] .asana-card-image {
    aspect-ratio: 4/5 !important;
  }

  /* Horizontal Poses - Wider Card to save sides */
  .asana-card[data-asana="plough"] .asana-card-image,
  .asana-card[data-asana="fish"] .asana-card-image,
  .asana-card[data-asana="cobra"] .asana-card-image,
  .asana-card[data-asana="half-locust"] .asana-card-image,
  .asana-card[data-asana="full-locust"] .asana-card-image,
  .asana-card[data-asana="bow"] .asana-card-image,
  .asana-card[data-asana="peacock"] .asana-card-image,
  .asana-card[data-asana="crow"] .asana-card-image,
  .asana-card[data-asana="relaxation"] .asana-card-image {
    aspect-ratio: 4/3 !important;
  }

  /* Manual Object Position Tweaks */
  .asana-card[data-asana="standing-forward"] .asana-card-image {
    object-position: center bottom !important;
  }

  .asana-card-excerpt {
    text-align: justify;
    hyphens: auto;
  }


  .container {
    padding: var(--spacing-xl) var(--spacing-sm);
    /* Reduce side padding */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    box-sizing: border-box;
  }

  .modal-content {
    margin: var(--spacing-md);
  }

  .modal-body {
    padding: var(--spacing-md);
    text-align: justify;
    hyphens: auto;
  }

  .detail-section p,
  .detail-section li {
    text-align: justify;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

  .header,
  .footer,
  .cta-button,
  .modal-close {
    display: none;
  }

  .modal-content {
    box-shadow: none;
    max-height: none;
  }

  .asana-card {
    page-break-inside: avoid;
  }
}

/* ===================================
   Dropdown Menu Styles (Premium Redesign)
   =================================== */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-toggle {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-pastel-dark);
}

.dropdown:hover .dropdown-toggle {
  background: rgba(255, 153, 51, 0.1);
  color: var(--text-primary);
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  min-width: 240px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs);
  list-style: none;
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 218, 193, 0.5);
  margin-top: 10px;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Arrow pointer on top */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid rgba(255, 218, 193, 0.5);
  border-top: 1px solid rgba(255, 218, 193, 0.5);
}

.dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: dropdownSlideIn 0.3s ease forwards;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-menu li {
  position: relative;
  z-index: 1;
  /* Above the arrow */
}

.dropdown-menu li a {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}

.dropdown-menu li a:last-child {
  margin-bottom: 0;
}

.dropdown-menu li a:hover {
  background: linear-gradient(to right, #FFF5F0, #FFF);
  color: var(--text-secondary);
  transform: translateX(3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Add an icon or arrow to links on hover */
.dropdown-menu li a:hover::after {
  content: '→';
  opacity: 1;
  transform: translateX(0);
}

.dropdown-menu li a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  font-size: 0.9em;
  color: var(--primary-pastel-dark);
}

/* Mobile Dropdown Override */
@media (max-width: 768px) {
  .dropdown {
    display: block;
    height: auto;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-radius: 0;
    font-size: 1.1rem;
    /* Match mobile nav headers usually */
  }

  .dropdown-toggle:hover {
    background: transparent;
    color: var(--chakra-heart);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
    padding: 0;
    padding-left: var(--spacing-md);
    opacity: 1;
    transform: none;
    border: none;
    background: transparent;
    min-width: 100%;
    margin-top: 0;
    backdrop-filter: none;
  }

  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    animation: none;
  }

  .dropdown-menu li a {
    padding: 0.8rem 0;
    border-radius: 0;
    margin: 0;
    font-size: 1rem;
    color: var(--gray-600);
  }


  .dropdown {
    position: relative;
    /* Ensure dropdown menu positions relative to this */
    display: flex;
    align-items: center;
    height: 100%;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.1s ease-out;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Align right so it doesn't overflow screen */
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1100;
    list-style: none;
    text-align: left;
  }

  .dropdown-menu li {
    margin: 0;
    display: block;
  }

  .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.1s;
    border-bottom: none;
  }

  .dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-menu li a::after {
    display: none;
  }
}

/* ===================================
   Custom Chapter Dropdown
   =================================== */
.chapter-select-container {
  display: block;
  margin: 0 auto 2rem auto;
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 200;
}

.chapter-select-trigger {
  background: white;
  border: 2px solid var(--primary-pastel-dark);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.chapter-select-trigger:hover {
  border-color: var(--accent-pastel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chapter-select-trigger::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--primary-pastel-dark);
  transition: transform 0.3s ease;
}

.chapter-select-container.active .chapter-select-trigger::after {
  transform: rotate(180deg);
}

.chapter-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-select-container.active .chapter-select-options {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.chapter-option {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.1s ease;
  border-bottom: 1px solid var(--gray-50);
}

.chapter-option:last-child {
  border-bottom: none;
}

.chapter-option:hover {
  background: var(--gray-50);
}

.chapter-option.selected {
  background: rgba(255, 218, 193, 0.3);
  color: var(--primary-pastel-dark);
  font-weight: 600;
}

.chapter-option-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
}

.chapter-option-text {
  display: flex;
  flex-direction: column;
}

.chapter-option-title {
  font-size: 1rem;
  margin-bottom: 2px;
}

.chapter-option-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .chapter-select-container {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
}


/* ===================================
   Modern Footer (Clean Rewrite)
   =================================== */
.footer-modern {
  background: #1a202c;
  /* Dark Slate */
  color: #e2e8f0;
  padding: 4rem 1rem 2rem;
  margin-top: auto;
  font-family: 'Inter', system-ui, sans-serif;
  display: block;
  /* Ensure visibility */
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-toggle-icon {
  display: none;
  /* Hidden on desktop */
}

.footer-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #FF9933;
  /* Saffron */
}

/* Brand Column */
.brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 300px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .footer-modern {
    padding: 2rem 1rem 1.5rem;
    /* Reduced padding */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    /* Reduced gap */
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .footer-desc {
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  /* Collapsible Logic */
  .footer-col.collapsible h4 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle bg for touch target */
    border-radius: 8px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
  }

  .footer-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--gray-500);
  }

  .footer-col.active .footer-toggle-icon {
    transform: rotate(180deg);
    color: #FF9933;
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    /* Darker inner bg */
    border-radius: 0 0 8px 8px;
  }

  .footer-col.active .footer-links {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0;
    margin-top: -5px;
    /* Pull up to connect with header */
    margin-bottom: 1rem;
  }

  .footer-links li a {
    padding: 0.5rem 0;
    display: block;
  }
}



/* ===================================
   Visual Slider (Split View: Image Top / Text Bottom)
   =================================== */
.slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  /* Taller aspect ratio to accommodate text below */
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .slider-container {
    /* Full vertical screen feel on mobile */
    aspect-ratio: 9/16;
    max-height: 80vh;
  }
}

.slider-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
  width: 100%;
}

.slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--white);
  /* Light bg for image area */
}

/* Visual Area (Top ~70%) */
.slide-visual {
  flex: 1;
  /* Takes all available space initially */
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 60%;
  /* Ensure image is dominant */
}


/* Big Step Number Overlay */
.slide-big-number {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.1);
  /* Dark watermark for light bg */
  line-height: 1;
  pointer-events: none;
}

/* Image Layers */

.slide-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) opacity(0.5);
  /* Light and soft */
  transform: scale(1.2);
  z-index: 0;
}

.slide-image-contain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  padding: 10px;
  /* Small breathing room */
}

/* Caption Area (Bottom ~30%) */
.slide-caption {
  flex-shrink: 0;
  /* Don't shrink */
  background: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--gray-800);
  border-top: 1px solid var(--gray-100);
  position: relative;
  z-index: 10;
  min-height: 180px;
  /* Fixed minimum height for text consistency */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  background: var(--secondary-pastel);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}

.slide-sanskrit-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

.slide-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Progress Bars */
.slider-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  gap: 2px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
}

.progress-bar-bg {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  height: 100%;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--text-primary);
  /* Distinct orange for progress */
  width: 0%;
  transition: width 0.3s ease;
}

.progress-bar-bg.active .progress-bar-fill,
.progress-bar-bg.passed .progress-bar-fill {
  width: 100%;
}

/* Controls - Positioned over the visual area visually */
.slider-controls {
  position: absolute;
  top: 35%;
  /* Center in visual area */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-sm);
  z-index: 15;
  pointer-events: none;
}


/* Big invisible touch zones for mobile tapping (Story style) */
/* Actually, let's stick to buttons for clarity but make them subtle */

.slider-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .slide-sanskrit {
    font-size: 1.8rem;
  }

  .slide-text {
    font-size: 1rem;
  }
}

/* ===================================
   Deep Dive Article Styles
   =================================== */
.deep-dive-container {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) 0;
}

.deep-dive-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gray-900);
  border-bottom: 2px solid var(--primary-pastel);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  display: inline-block;
}

.deep-dive-content h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deep-dive-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: var(--spacing-md);
}

.deep-dive-content strong {
  color: var(--gray-900);
}

.deep-dive-content em {
  font-style: italic;
  color: var(--gray-600);
}

/* Accordion Styles (Refined) */
.detail-accordion {
  margin-top: var(--spacing-lg);
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  background: white;
}

.accordion-header {
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all 0.2s;
}

.accordion-header:hover {
  background: var(--gray-100);
}

.accordion-content {
  display: none;
  padding: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.accordion-icon {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Modal Enhancements */
.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
  z-index: 100;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-lg);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Mobile Redesign (Full-Width / Wider)
   =================================== */
@media (max-width: 768px) {
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    /* Remove margin */
  }

  .modal-body {
    padding: var(--spacing-sm) !important;
    overflow-y: auto;
    flex: 1;
    /* Reset text alignment for better readability on small screens */
    text-align: left !important;
    hyphens: none !important;
  }

  .modal-header {
    padding: var(--spacing-md) !important;
    flex-shrink: 0;
  }

  /* Full-Bleed Slider */
  .slider-container {
    margin-left: -1rem;
    /* Negative margin to bleed to edges if inside padded container */
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
    margin-top: 0;
    aspect-ratio: 3/4;
    /* Slightly taller but not too tall */
    max-height: 60vh;
  }

  .slide-caption {
    min-height: auto;
    /* Allow auto height on mobile */
    padding: 1rem;
  }

  /* Make close button larger and easier to hit */
  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* ===================================
   Modern Modal Redesign (Premium)
   =================================== */

/* Hero Header */
.hero-header {
  background: radial-gradient(circle at center, var(--orange-50), white);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sanskrit {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--orange-500);
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-difficulty {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tabs Navigation */
.modal-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Above content */
  padding: 0 1rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--orange-400);
}

.tab-btn.active {
  color: var(--orange-600);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange-500);
  border-radius: 3px 3px 0 0;
}

/* Tab Content Areas */
.modal-tab-content {
  padding: 2rem;
  min-height: 400px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.overview-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-700);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Benefits Grid (Replaces Accordion) */
.benefits-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
  border-left: 4px solid var(--orange-500);
  padding-left: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-card {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  color: var(--green-500);
  font-size: 1.2rem;
}

.precaution-card {
  background: #fff5f5;
  /* Light red/orange tint */
  border-color: #feb2b2;
}

.precaution-icon {
  color: #c53030;
}

/* Deep Dive Cards */
.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dd-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s;
}

.dd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dd-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--orange-600);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dd-card-content {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Mobile Tweaks */
/* Mobile Tweaks */
@media (max-width: 768px) {
  .hero-header {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-sanskrit {
    font-size: 1.1rem;
  }

  .modal-tab-content {
    padding: 1rem 0;
    /* Less horizontal padding, let inner elements handle it */
  }

  .modal-tabs {
    gap: 0;
    /* Remove gap */
    justify-content: space-between;
    padding: 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
  }

  .tab-btn {
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    border-bottom: 2px solid transparent;
  }

  .tab-btn.active::after {
    height: 2px;
    /* Thinner border on mobile */
  }

  .overview-text {
    font-size: 1rem;
    text-align: left;
    /* Left align for readability */
    padding: 0 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    /* Single column */
    padding: 0 1rem;
  }

  .benefits-section h4 {
    margin-left: 1rem;
  }

  .deep-dive-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .dd-card {
    padding: 1.5rem;
  }
}

/* ===================================
   Redesign V2: Mobile-First Modal
   =================================== */

/* Base Layout */
.modal-content.mobile-redesign-v2 {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  overflow: hidden;
  /* Inner body scrolls */
  height: 100%;
  max-height: 100dvh;
  /* Mobile full height */
  border-radius: 0;
}

@media (min-width: 769px) {
  .modal-content.mobile-redesign-v2 {
    height: 90vh;
    max-height: 900px;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}

/* Sticky Header */
.modal-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0.5rem 1rem 0;
  flex-shrink: 0;
}

.modal-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
}

@media (min-width: 769px) {
  .modal-drag-handle {
    display: none;
  }
}

.modal-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title-compact {
  font-size: 1.25rem;
  margin: 0;
  font-family: var(--font-heading);
}

.modal-close-compact {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
}

/* Segmented Control Tabs */
.modal-tabs-segmented {
  display: flex;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 1rem;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.segment-btn.active {
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Scrollable Body */
.modal-scroll-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  flex: 1;
  scroll-behavior: smooth;
}

.modal-section {
  padding: 1.5rem;
  scroll-margin-top: 140px;
  /* Offset for sticky header */
}

/* Typography & Hero Card */
.hero-card {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-title-large {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.hero-sanskrit-large {
  font-size: 1.1rem;
  color: var(--orange-500);
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-difficulty-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-difficulty-pill.beginner {
  background: var(--primary-pastel);
  color: #d35400;
}

.hero-difficulty-pill.intermediate {
  background: var(--secondary-pastel);
  color: #e67e22;
}

.hero-difficulty-pill.advanced {
  background: var(--accent-pastel);
  color: #c0392b;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* Benefits Horizontal Scroll */
.benefits-scroll-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin: 0 -1.5rem 1.5rem;
  /* Bleed */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  scroll-padding-left: 1.5rem;
  scrollbar-width: none;
  /* Hide scrollbar */
}

.benefits-scroll-container::-webkit-scrollbar {
  display: none;
}

.benefit-chip {
  flex: 0 0 auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .benefits-scroll-container {
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 0 0 1.5rem;
    padding: 0;
  }

  .benefit-chip {
    white-space: normal;
  }
}

/* Visual Guide Horizontal Scroller (Snap) */
.visual-guide-scroller {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 1.5rem 2rem;
  margin: 0 -1.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
}

.step-card {
  flex: 0 0 85%;
  /* Shows part of next card */
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

@media (min-width: 769px) {
  .step-card {
    flex: 0 0 45%;
    /* Show 2 cards on desktop */
  }
}

.step-image-container {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-50);
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: var(--gray-900);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.step-info {
  padding: 1.25rem;
  flex: 1;
}

.step-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.step-sanskrit-small {
  font-size: 0.8rem;
  color: var(--orange-500);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.scroll-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: -1rem;
  margin-bottom: 1rem;
}

/* Deep Dive & Misc */
.section-divider {
  border: none;
  height: 12px;
  background: var(--gray-50);
  margin: 0;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.dd-block {
  margin-bottom: 2rem;
}

.dd-block h4 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.modal-footer-space {
  height: 80px;
  /* Extra space at bottom */
}

.warning-list {
  background: #fff5f5;
  padding: 1rem;
  border-radius: 8px;
  list-style-position: inside;
  color: #c53030;
}

.warning-header {
  font-weight: 600;
  color: #c53030;
  margin-bottom: 0.5rem;
}