/* ============================================
   MODERN RESPONSIVE CSS SYSTEM
   Mobile-First Approach
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Color Palette - Light Mode */
    --lavender-primary: #9B7EDE;
    --lavender-dark: #7B5FBE;
    --lavender-light: #B8A5E8;
    --lavender-lighter: #E6DDF5;
    --lavender-lightest: #F5F1FC;
    
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --text-lighter: #999999;
    
    /* Background Colors */
    --bg-primary: var(--white);
    --bg-secondary: var(--lavender-lightest);
    --bg-tertiary: var(--lavender-lighter);
    
    /* Typography Scale - Fluid using clamp() */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --font-size-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    
    /* Spacing Scale - Fluid using clamp() */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
    --space-3xl: clamp(4rem, 3rem + 5vw, 8rem);
    
    /* Layout */
    --container-padding: clamp(1rem, 4vw, 2rem);
    --container-max-width: 1200px;
    --container-max-width-wide: 1400px;
    --container-max-width-ultra: 1600px;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.14);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Touch Targets - Minimum 44x44px for accessibility */
    --touch-target-min: 2.75rem;
    
    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;

    /* Footer theming (adapts to light/dark mode) */
    --footer-overlay-color: rgba(45, 0, 79, 0.6); /* dark violet @ 60% */
    --footer-text-color: #ffffff;
}

/* Dark Mode Support - Manual Toggle */
[data-theme="dark"] {
    --white: #1a1a1a;
    --text-dark: #e5e5e5;
    --text-light: #b3b3b3;
    --text-lighter: #808080;
    
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    
    --lavender-lightest: #2d1f4a;
    --lavender-lighter: #3d2f5a;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

    --footer-overlay-color: rgba(0, 0, 0, 0.6);
    --footer-text-color: #ffffff;
}

/* System preference dark mode (only if no manual theme is set) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --white: #1a1a1a;
        --text-dark: #e5e5e5;
        --text-light: #b3b3b3;
        --text-lighter: #808080;
        
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #3a3a3a;
        
        --lavender-lightest: #2d1f4a;
        --lavender-lighter: #3d2f5a;
        
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

        --footer-overlay-color: rgba(0, 0, 0, 0.6);
        --footer-text-color: #ffffff;
    }
}

/* Override dark mode when light theme is explicitly set */
[data-theme="light"] {
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --text-lighter: #999999;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F1FC;
    --bg-tertiary: #E6DDF5;
    
    --lavender-lightest: #F5F1FC;
    --lavender-lighter: #E6DDF5;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.14);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-block-end: var(--space-md);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p {
    margin-block-end: var(--space-md);
    color: var(--text-light);
}

a {
    color: var(--lavender-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

/* Remove outline on mouse clicks, keep for keyboard navigation */
*:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--lavender-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   LAYOUT - CONTAINER SYSTEM
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Container Queries for Component-Level Responsiveness */
@container (min-width: 600px) {
    .container {
        max-width: var(--container-max-width-wide);
    }
}

@container (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width-ultra);
    }
}

/* ============================================
   HEADER & NAVIGATION
   Mobile-First Design
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-bottom: 1px solid var(--lavender-lighter);
    padding-block: var(--space-sm);
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .header {
        background-color: rgba(26, 26, 26, 0.95);
    }
}

[data-theme="dark"] .header {
    background-color: rgba(26, 26, 26, 0.95);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--lavender-primary);
    min-width: fit-content;
}

.logo-icon {
    width: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    height: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: block;
}

.logo-text {
    color: var(--text-dark);
    font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.25rem);
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

/* Theme Toggle Switch - Modern UI */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 38px;
    cursor: pointer;
    margin-inline-end: var(--space-md);
    -webkit-tap-highlight-color: transparent;
}

.theme-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e9edf3;
    border: none;
    border-radius: 999px;
    transition: background-color 200ms ease, box-shadow 200ms ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6px;
    box-sizing: border-box;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.10),
        0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.theme-switch-slider::after {
    content: 'LIGHT\A MODE';
    position: relative;
    z-index: 2;
    font-size: 0.52rem;
    color: rgba(45, 55, 72, 0.45);
    white-space: pre-line;
    line-height: 1.05;
    text-align: right;
}

.theme-switch-slider::before {
    content: '☀';
    position: absolute;
    height: 32px;
    width: 32px;
    left: 3px;
    top: 3px;
    background: #f7f9fc;
    border-radius: 999px;
    transition: left 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(45, 55, 72, 0.55);
}

.theme-switch-input:checked + .theme-switch-slider {
    background: #2a3142;
    justify-content: flex-start;
}

.theme-switch-input:checked + .theme-switch-slider::after {
    content: 'DARK\A MODE';
    color: rgba(226, 232, 240, 0.45);
}

.theme-switch-input:checked + .theme-switch-slider::before {
    left: calc(100% - 35px); /* 32px knob + 3px offset */
    content: '☾';
    background: #3a4256;
    color: rgba(226, 232, 240, 0.85);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-switch:focus-visible .theme-switch-slider {
    outline: 3px solid var(--lavender-primary);
    outline-offset: 3px;
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(155, 126, 222, 0.3);
}

.theme-switch:hover .theme-switch-slider {
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.10);
}

.theme-switch-input:checked + .theme-switch-slider:hover {
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.20),
        0 10px 26px rgba(0, 0, 0, 0.22);
}

.theme-switch:active .theme-switch-slider {
    transform: none;
}

.theme-switch-icon {
    display: none;
}

.theme-switch-icon-light {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-switch-icon-dark {
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
    position: absolute;
}

.theme-switch-input:checked + .theme-switch-slider .theme-switch-icon-light {
    opacity: 0;
    transform: scale(0.3) rotate(90deg);
}

.theme-switch-input:checked + .theme-switch-slider .theme-switch-icon-dark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-switch-slider {
    background: #e9edf3;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.10),
        0 6px 18px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .theme-switch-input:checked + .theme-switch-slider {
    background: #2a3142;
}

[data-theme="dark"] .theme-switch:hover .theme-switch-slider {
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.14),
        0 10px 26px rgba(0, 0, 0, 0.20);
}

/* Responsive adjustments for theme switch */
@media (max-width: 767px) {
    .theme-switch {
        width: 88px;
        height: 36px;
        margin-inline-end: var(--space-sm);
    }
    
    .theme-switch-slider {
        padding: 0 5px;
    }
    
    .theme-switch-slider::before {
        height: 30px;
        width: 30px;
        left: 3px;
        top: 3px;
        font-size: 0.9rem;
    }
    
    .theme-switch-input:checked + .theme-switch-slider::before {
        left: calc(100% - 33px); /* 30px knob + 3px offset */
    }
}

/* Smooth animation for theme transition */
@media (prefers-reduced-motion: no-preference) {
    .theme-switch-slider,
    .theme-switch-slider::before,
    .theme-switch-slider::after,
    .theme-switch-icon {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: transparent;
    border: none;
    padding: var(--space-xs);
    cursor: pointer;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    justify-content: center;
    align-items: center;
    z-index: calc(var(--z-sticky) + 1);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Navigation */
.nav {
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    padding-block: var(--space-lg);
}

.nav[aria-expanded="true"],
.nav.open {
    display: flex;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        width: auto;
        padding-block: 0;
        gap: var(--space-lg);
    }
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--lavender-primary);
    background-color: var(--lavender-lightest);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    height: 2px;
    background: var(--lavender-primary);
}

@media (min-width: 768px) {
    .nav-link.active::after {
        inset-block-end: -0.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    color: var(--footer-text-color);
    background-color: var(--text-dark);
    background-image: url("../images/background/typing.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* scroll effect */
    padding-block: clamp(3rem, 5vw, 5rem);
    min-height: clamp(400px, 50vh, 600px);
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-overlay-color);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* mobile-friendly fallback */
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

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

@media (min-width: 768px) {
    .hero-text {
        text-align: start;
    }
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1.1;
    margin-block-end: var(--space-lg);
    color: var(--footer-text-color);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--footer-text-color);
    opacity: 0.9;
    margin-block-end: var(--space-xl);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        align-items: stretch;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    min-height: var(--touch-target-min);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--lavender-primary);
    color: var(--white);
    width: 100%;
}

@media (min-width: 480px) {
    .btn-primary {
        width: auto;
    }
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--lavender-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-dark);
    border-color: var(--lavender-lighter);
    width: 100%;
}

@media (min-width: 480px) {
    .btn-secondary {
        width: auto;
    }
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--bg-secondary);
}

/* ============================================
   HERO ILLUSTRATION
   ============================================ */
.hero-image {
    display: none;
}

@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}

.hero-illustration {
    position: relative;
    width: 100%;
    /* group.png is 1536x1024 (3:2). Let the container follow the image ratio. */
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--lavender-lighter) 0%, var(--lavender-lightest) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-illustration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.illustration-person {
    width: clamp(120px, 15vw, 200px);
    aspect-ratio: 2/3;
    background: var(--lavender-primary);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    z-index: var(--z-base);
}

.illustration-person::before {
    content: '';
    position: absolute;
    inset-block-start: 20%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 40%;
    aspect-ratio: 1;
    background: var(--lavender-dark);
    border-radius: var(--radius-full);
}

.illustration-person::after {
    content: '';
    position: absolute;
    inset-block-end: -10%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 75%;
    aspect-ratio: 3/2;
    background: var(--lavender-light);
    border-radius: var(--radius-md);
}

.floating-icon {
    position: absolute;
    width: clamp(2.5rem, 2rem + 2vw, 3.125rem);
    aspect-ratio: 1;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.icon-1 {
    inset-block-start: 20%;
    inset-inline-end: 15%;
    animation-delay: 0s;
}

.icon-2 {
    inset-block-start: 50%;
    inset-inline-end: 10%;
    animation-delay: 0.5s;
}

.icon-3 {
    inset-block-end: 30%;
    inset-inline-end: 20%;
    animation-delay: 1s;
}

.icon-4 {
    inset-block-start: 30%;
    inset-inline-start: 10%;
    animation-delay: 1.5s;
}

.plant-icon {
    position: absolute;
    inset-block-end: 10%;
    inset-inline-start: 15%;
    font-size: var(--font-size-xl);
    animation: float 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1.25rem);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding-block: var(--space-2xl);
}

@media (min-width: 768px) {
    section {
        padding-block: var(--space-3xl);
    }
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-block-end: var(--space-lg);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    color: var(--text-light);
    margin-block-end: var(--space-xl);
}

/* ============================================
   TRAINING PROGRAMS
   CSS Grid with Auto-Fit
   ============================================ */
.training-programs {
    background: var(--bg-primary);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

@media (min-width: 480px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 768px) {
    .programs-grid {
        gap: var(--space-xl);
    }
}

.program-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--lavender-lighter);
    transition: all var(--transition-base);
}

.program-card.is-locked {
    position: relative;
    cursor: not-allowed;
}

.program-card.is-locked::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
        rgba(0, 0, 0, 0.65);
}

.program-card.is-locked::after {
    content: "COMING SOON";
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.program-card.is-locked .program-image {
    filter: grayscale(1) brightness(0.85);
}

.program-card.is-locked a {
    pointer-events: none;
}

.program-card.is-locked .btn-read-more {
    opacity: 0.5;
}

.program-card:hover,
.program-card:focus-within {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-md);
    border-color: var(--lavender-light);
}

.program-card.is-locked:hover,
.program-card.is-locked:focus-within {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--lavender-lighter);
}

.program-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* Fallback if an image file is missing */
    background-image: linear-gradient(135deg, var(--lavender-lightest) 0%, var(--lavender-light) 100%);
}

.program-content {
    padding: var(--space-lg);
    text-align: left;
}

.program-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-md);
}

.program-description {
    color: var(--text-light);
    margin-block-end: var(--space-lg);
    line-height: 1.7;
}

/* ============================================
   COACHES SECTION
   ============================================ */
.coaches-section {
    background: linear-gradient(135deg, var(--lavender-lightest) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.coaches-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    max-width: 50rem;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    line-height: 1.8;
}

/* ============================================
   TRAINING SCHEDULES
   Responsive Table
   ============================================ */
.training-schedules {
    background: var(--bg-primary);
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin-block: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--lavender-lighter);
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.schedule-table thead {
    background: var(--lavender-primary);
    color: var(--white);
}

.schedule-table th {
    padding: var(--space-md);
    text-align: start;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.schedule-table td {
    padding: var(--space-md);
    border-block-end: 1px solid var(--lavender-lighter);
    font-size: var(--font-size-sm);
}

.schedule-table tbody tr:hover {
    background: var(--bg-secondary);
}

.btn-enroll {
    background: var(--lavender-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition-base);
    display: inline-block;
    min-height: var(--touch-target-min);
    min-width: fit-content;
}

.btn-enroll:hover,
.btn-enroll:focus-visible {
    background: var(--lavender-dark);
}

.schedule-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-block-start: var(--space-lg);
    color: var(--lavender-primary);
    font-weight: 500;
}

.check-icon {
    width: 1.5rem;
    aspect-ratio: 1;
    background: var(--lavender-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose {
    background: var(--lavender-lightest);
}

.why-choose-content {
    margin-block-start: var(--space-xl);
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 56rem;
    margin-inline: auto;
    background: transparent;
    border: 1px solid var(--lavender-lighter);
    border-radius: var(--radius-lg);
    box-shadow: none;
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.why-choose-list li {
    position: relative;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-xl) + 0.5rem);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: var(--font-size-base);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lavender-lighter);
    border-radius: 0;
    transition: none;
}

.why-choose-list li::before {
    content: '✓';
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    background: var(--lavender-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.why-choose-list li:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .why-choose-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: var(--space-xl);
    }

    .why-choose-list li {
        border-bottom: none;
        border-right: 1px solid var(--lavender-lighter);
    }

    .why-choose-list li:nth-child(2n) {
        border-right: none;
    }

    .why-choose-list li:nth-last-child(-n+2) {
        padding-bottom: var(--space-md);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--space-xl);
    }
}

.feature-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.feature-item:hover,
.feature-item:focus-within {
    transform: translateY(-0.3125rem);
}

.feature-icon {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    margin-block-end: var(--space-md);
}

.feature-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
    background: linear-gradient(135deg, var(--lavender-lightest) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.tools-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    max-width: 50rem;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    line-height: 1.8;
}

.tools-list {
    list-style: none;
    max-width: 37.5rem;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    text-align: start;
}

.tools-list li {
    padding: var(--space-md);
    color: var(--text-dark);
    border-inline-start: 3px solid var(--lavender-primary);
    margin-block-end: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

@media (min-width: 480px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        gap: var(--space-xl);
    }
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--lavender-lighter);
    transition: all var(--transition-base);
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--lavender-primary) 0%, var(--lavender-light) 100%);
    position: relative;
    display: block;
    object-fit: cover; /* for <img class="blog-image ..."> */
}

.blog-content {
    padding: var(--space-lg);
}

.blog-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-md);
}

.blog-excerpt {
    color: var(--text-light);
    margin-block-end: var(--space-lg);
    line-height: 1.7;
}

.btn-read-more {
    color: var(--lavender-primary);
    font-weight: 500;
    transition: color var(--transition-base);
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
}

.btn-read-more:hover,
.btn-read-more:focus-visible {
    color: var(--lavender-dark);
    text-decoration: underline;
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.blog-article-section {
    padding-block: var(--space-2xl);
    background: var(--bg-primary);
    min-height: 100vh;
}

.blog-article-header {
    margin-block-end: var(--space-xl);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--lavender-primary);
    font-weight: 500;
    margin-block-end: var(--space-md);
    transition: color var(--transition-base);
    text-decoration: none;
    min-height: var(--touch-target-min);
}

.blog-back-link:hover,
.blog-back-link:focus-visible {
    color: var(--lavender-dark);
    text-decoration: underline;
}

.blog-article-title {
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-block-end: var(--space-md);
    line-height: 1.3;
}

.blog-article-meta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.blog-article-date {
    color: var(--text-light);
}

.blog-article-image {
    margin-block-end: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-article-image .blog-image {
    border-radius: var(--radius-lg);
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-content {
    max-width: 70rem;
    margin-inline: auto;
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-light);
}

.blog-article-content h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-start: var(--space-2xl);
    margin-block-end: var(--space-lg);
    line-height: 1.4;
}

.blog-article-content h3 {
    font-size: clamp(1.25rem, 1.125rem + 1vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-start: var(--space-xl);
    margin-block-end: var(--space-md);
    line-height: 1.4;
}

.blog-article-content p {
    margin-block-end: var(--space-lg);
}

.blog-article-content p:last-child {
    margin-block-end: 0;
}

@media (min-width: 768px) {
    .blog-article-content {
        font-size: var(--font-size-lg);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    color: var(--footer-text-color);
    background-color: var(--text-dark);
    background-image: url("../images/background/typing.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* scroll effect */
    text-align: center;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-overlay-color);
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section .section-title,
.about-section .about-preview-text,
.about-section .about-tagline,
.about-section .about-description,
.about-section .about-beliefs-title,
.about-section .about-beliefs-list li {
    color: inherit;
}

.about-section .about-beliefs-list li::before {
    color: var(--lavender-light);
}

@media (max-width: 768px) {
    .about-section {
        background-attachment: scroll; /* mobile-friendly fallback */
    }
}

.about-preview-section {
    background: linear-gradient(135deg, var(--lavender-lightest) 0%, var(--bg-primary) 100%);
    text-align: center;
    padding-block: var(--space-2xl);
}

.about-preview-text {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    font-weight: 500;
    max-width: 50rem;
    margin-inline: auto;
    line-height: 1.6;
}

.about-tagline {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--lavender-primary);
    margin-block-end: var(--space-lg);
}

.about-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    max-width: 37.5rem;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
}

.about-subparagraph {
    font-size: var(--font-size-base);
    color: var(--text-light);
    max-width: 50rem;
    margin-inline: auto;
    margin-block-end: var(--space-2xl);
    line-height: 1.8;
}

.about-content {
    max-width: 50rem;
    margin-inline: auto;
    text-align: left;
}

.about-content .about-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.8;
    margin-block-end: var(--space-lg);
}

/* About section uses an image background + overlay, so force readable text */
.about-section .about-content {
    color: var(--footer-text-color);
    max-width: 65rem;
}

.about-section .about-content .about-description {
    color: inherit;
    max-width: none;
    width: 100%;
}

.about-beliefs {
    margin-block-start: var(--space-2xl);
    padding-block-start: var(--space-xl);
    border-block-start: 2px solid var(--lavender-lighter);
}

.about-beliefs-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-lg);
    text-align: center;
}

.about-beliefs-list {
    list-style: none;
    max-width: 45rem;
    margin-inline: auto;
}

.about-beliefs-list li {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.8;
    padding: var(--space-md);
    padding-inline-start: var(--space-xl);
    position: relative;
    margin-block-end: var(--space-sm);
}

.about-beliefs-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-md);
    color: var(--lavender-primary);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

/* Leaders and Coaches Section */
.leaders-coaches-section {
    background: var(--bg-primary);
    text-align: center;
}

.leaders-coaches-section:not(.about-section .leaders-coaches-section) {
    margin-block-start: 0;
    padding-block-start: var(--space-2xl);
    border-block-start: none;
}

/* Coaches Grid */
.coaches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-block-start: var(--space-2xl);
    padding-block-end: var(--space-xl);
}

@media (min-width: 480px) {
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 768px) {
    .coaches-grid {
        /* Wider cards: keep fewer columns */
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .coaches-grid {
        /* Wider cards on desktop */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Coach Card */
.coach-card {
    cursor: pointer;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--lavender-lighter);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    /* Ensure image + long role titles have enough space */
    min-height: 580px;
}

/* Hover Effect Overlay */
.coach-card-hover-effect {
    display: none;
}

.coach-card:hover .coach-card-hover-effect {
    opacity: 0.1;
}

.coach-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(155, 126, 222, 0.3), 0 0 20px rgba(155, 126, 222, 0.2);
    border-color: var(--lavender-primary);
}

.coach-card:active {
    transform: translateY(-4px) scale(1.01);
}

.coach-card .coach-image {
    width: 100%;
    /* Give the role/title more room */
    flex: 0 0 55%;
    aspect-ratio: auto;
    border-radius: 0;
    background-position: 50% 20%;
    /* Fill the image area cleanly */
    background-size: cover;
    background-repeat: no-repeat;
    background-image: linear-gradient(135deg, var(--lavender-lightest) 0%, var(--lavender-light) 100%);
    border: none;
    box-shadow: none;
    margin-block-end: 0;
    position: relative;
    z-index: 2;
}

.coach-card .profile-role {
    line-height: 1.3;
    text-wrap: balance;
    word-break: break-word;
    hyphens: auto;
}

/* Keep the content centered in the remaining space */
.coach-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coach-card-content {
    padding: var(--space-lg);
    text-align: left;
    position: relative;
    z-index: 2;
}

.coach-card .profile-name,
.coach-card .profile-role {
    text-align: left;
}

/* Profile Avatar in Grid */
.coach-card .profile-avatar {
    width: clamp(6rem, 5rem + 4vw, 8rem);
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--lavender-lighter) 0%, var(--lavender-primary) 100%);
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    border: 4px solid var(--lavender-primary);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(155, 126, 222, 0.3);
}

.coach-card .coach-photo {
    width: clamp(6rem, 5rem + 4vw, 8rem);
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    border: 4px solid var(--lavender-primary);
    position: relative;
    z-index: 2;
    object-fit: cover;
    display: block;
    background: var(--lavender-lighter);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(155, 126, 222, 0.3);
}

.coach-card:hover .profile-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(155, 126, 222, 0.5);
}

.coach-card:hover .coach-photo,
.coach-card:hover .coach-image {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(155, 126, 222, 0.35);
}

.coach-card .profile-name,
.coach-card .profile-role {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Animation for card appearance */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coach-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.coach-card:nth-child(1) { animation-delay: 0.05s; }
.coach-card:nth-child(2) { animation-delay: 0.1s; }
.coach-card:nth-child(3) { animation-delay: 0.15s; }
.coach-card:nth-child(4) { animation-delay: 0.2s; }
.coach-card:nth-child(5) { animation-delay: 0.25s; }
.coach-card:nth-child(6) { animation-delay: 0.3s; }
.coach-card:nth-child(7) { animation-delay: 0.35s; }
.coach-card:nth-child(8) { animation-delay: 0.4s; }

/* Coach Modal */
.coach-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-md);
}

.coach-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.coach-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coach-modal.active .coach-modal-backdrop {
    opacity: 1;
}

.coach-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(2rem);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.coach-modal.active .coach-modal-container {
    transform: scale(1) translateY(0);
}

.coach-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--lavender-primary);
    border: none;
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 2.5rem;
    min-height: 2.5rem;
    box-shadow: var(--shadow-md);
}

.coach-modal-close:hover,
.coach-modal-close:focus-visible {
    background: var(--lavender-dark);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-lg);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.coach-modal-content {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.coach-modal-avatar {
    width: clamp(8rem, 6rem + 8vw, 12rem);
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--lavender-lighter) 0%, var(--lavender-primary) 100%);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    border: 4px solid var(--lavender-primary);
    box-shadow: 0 8px 25px rgba(155, 126, 222, 0.4);
    animation: modalAvatarAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes modalAvatarAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.coach-modal-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-block-end: var(--space-sm);
    animation: modalFadeIn 0.5s ease 0.3s backwards;
}

.coach-modal-role {
    font-size: var(--font-size-lg);
    color: var(--lavender-primary);
    font-weight: 500;
    margin-block-end: var(--space-xl);
    animation: modalFadeIn 0.5s ease 0.4s backwards;
}

.coach-modal-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
    animation: modalFadeIn 0.5s ease 0.5s backwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .coach-card,
    .coach-card-hover-effect,
    .coach-card .profile-avatar {
        animation: none;
        transition: none;
    }
    
    .coach-modal-container,
    .coach-modal-backdrop,
    .coach-modal-avatar,
    .coach-modal-name,
    .coach-modal-role,
    .coach-modal-description {
        animation: none;
        transition: opacity 0.2s ease;
    }
    
    .coach-modal.active .coach-modal-container {
        transform: scale(1);
    }
    
    .coaches-slider-track {
        transition: transform 0.3s ease;
    }
}

.leaders-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-xl);
}

/* Coaches Slider */
.coaches-slider-wrapper {
    position: relative;
    max-width: 62.5rem;
    margin-inline: auto;
    padding-inline: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.coaches-slider {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow-x: hidden;
    overflow-y: visible;
    padding-block-start: var(--space-xl);
    /* Allow vertical scroll but let our JS handle horizontal swipe dragging */
    touch-action: pan-y;
}

.coaches-slider.is-dragging {
    cursor: grabbing;
}

.coaches-slider.is-dragging .coaches-slider-track {
    transition: none !important;
}

@media (min-width: 768px) {
    .coaches-slider {
        min-height: 550px;
    }
}

.coaches-slider-track {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-lg);
    padding-inline: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: fit-content;
}

.coach-item {
    flex-shrink: 0;
    width: clamp(260px, 24vw, 320px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.coach-item .profile-card {
    width: 100%;
    max-width: 100%;
}

.coach-item .profile-card-center {
    width: 100%;
}

/* Slider Arrow Buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--lavender-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 0;
    cursor: pointer;
    display: none; /* desktop only (enabled below) */
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 600;
    z-index: 10;
    transition: color var(--transition-base), transform var(--transition-base);
    min-width: 44px;
    min-height: 44px;
    box-shadow: none;
    line-height: 1;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
    background: transparent;
    color: var(--lavender-dark);
    transform: translateY(-50%);
    outline: 2px solid var(--lavender-primary);
    outline-offset: 2px;
}

.slider-arrow-left {
    left: -12px;
}

.slider-arrow-right {
    right: -12px;
}

/* Show arrows on desktop only */
@media (min-width: 1024px) {
    .slider-arrow {
        display: flex;
    }
}

@media (max-width: 767px) {
    .coaches-slider-wrapper {
        padding-inline: 2rem;
    }
    
    .slider-arrow {
        display: none;
    }
    
    .coaches-slider {
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .coaches-slider-track {
        padding-inline: 0;
        gap: var(--space-md);
    }
    
    .coach-item {
        width: 100%;
    }
    
    .coach-item .profile-card {
        max-width: 100%;
        width: 100%;
        margin-inline: 0;
    }
    
    .coach-item .profile-card-center {
        transform: none;
        width: 100%;
        margin-inline: 0;
    }
    
    .coach-item .profile-card-center:hover,
    .coach-item .profile-card-center:focus-within {
        transform: translateY(-0.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .coaches-slider-track {
        gap: -1.5rem;
    }
    
    .coach-item {
        width: 280px;
    }
    
    .coach-item .profile-card {
        width: 240px;
        margin-inline: -1rem;
    }
    
    .coach-item .profile-card-center {
        width: 280px;
        margin-inline: -1.5rem;
    }
    
    .coaches-slider {
        overflow: hidden;
    }
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-block-start: var(--space-xl);
}

.slider-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--lavender-lighter);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
    min-width: 0.75rem;
    min-height: 0.75rem;
}

.slider-indicator:hover,
.slider-indicator:focus-visible {
    background: var(--lavender-light);
    transform: scale(1.2);
    outline: 2px solid var(--lavender-primary);
    outline-offset: 2px;
}

.slider-indicator.active {
    background: var(--lavender-primary);
    width: 2rem;
    border-radius: var(--radius-sm);
}

.profile-card {
    background: var(--bg-primary);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-inline: 0;
}

.profile-card:first-child {
    z-index: 2;
}

.profile-card:last-child:not(.profile-card-center) {
    margin-inline-end: 0;
    z-index: 2;
}

.profile-card-center {
    z-index: 10;
    transform: translateY(-1.25rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    margin-inline: 0;
    max-width: 320px;
}

.profile-card:hover,
.profile-card:focus-within {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

.profile-card-center:hover,
.profile-card-center:focus-within {
    transform: translateY(-1.75rem);
    z-index: 15;
}

.profile-avatar {
    width: clamp(8rem, 6rem + 8vw, 12rem);
    aspect-ratio: 1;
    background: var(--lavender-lighter);
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    border: 4px solid var(--lavender-primary);
}

/* Coaches slider: keep coach photos small and contained inside the profile card */
.coaches-slider .profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.coaches-slider .profile-avatar,
.coaches-slider .coach-photo {
    /* Same sizing as the original avatar, but constrained to the slider card */
    width: clamp(8rem, 6rem + 8vw, 12rem);
    aspect-ratio: 1;
    max-width: 100%;
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-block-end: var(--space-lg);
    border: 4px solid var(--lavender-primary);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.coaches-slider .coach-photo {
    display: block;
    object-fit: cover;
    object-position: 50% 20%; /* keep faces centered */
}

/* Make long names/roles fit nicely inside the slider cards */
.coaches-slider .profile-name {
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
    line-height: 1.15;
    margin-block-end: var(--space-xs);
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.coaches-slider .profile-role {
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
    line-height: 1.25;
    text-wrap: balance;
    min-height: 2.5em; /* reserve up to ~2 lines so cards stay even */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.profile-name {
    font-size: clamp(var(--font-size-lg), 1.25rem + 1vw, var(--font-size-xl));
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-sm);
}

.profile-role {
    font-size: clamp(var(--font-size-base), 1rem + 0.5vw, var(--font-size-lg));
    color: var(--lavender-primary);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    color: var(--footer-text-color);
    padding-block: var(--space-xl) var(--space-lg);
    background-color: var(--text-dark);
    background-image: url("../images/background/typing.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* scroll effect */
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-overlay-color);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer {
        background-attachment: scroll; /* mobile-friendly fallback */
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    margin-block-end: var(--space-xl);
    padding-block-end: var(--space-lg);
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-xl);
    }
}

.btn-inquire {
    background: var(--lavender-primary);
    color: var(--white);
    border: 1px solid transparent;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: var(--touch-target-min);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.btn-inquire:hover,
.btn-inquire:focus-visible {
    background: var(--lavender-dark);
    box-shadow: var(--shadow-md);
    outline: 2px solid var(--lavender-light);
    outline-offset: 2px;
}

.btn-inquire:active {
    transform: none;
}

.footer-contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-contact-section {
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
    }
}

.footer-contact-label {
    color: var(--footer-text-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer .btn-inquire,
.footer .social-icon {
    color: var(--footer-text-color);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-social {
        gap: var(--space-md);
    }
}

.social-icon {
    width: 2.75rem;
    height: 2.75rem;
    aspect-ratio: 1;
    background: var(--lavender-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(155, 126, 222, 0.3);
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: currentColor;
}

.social-icon:hover,
.social-icon:focus-visible {
    background: var(--lavender-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(155, 126, 222, 0.5);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-block-start: var(--space-lg);
    color: var(--footer-text-color);
}

.footer-bottom .footer-tagline,
.footer-bottom .footer-contact,
.footer-bottom .footer-copyright {
    color: inherit;
}

.footer-tagline {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--lavender-light);
    margin-block-end: var(--space-sm);
    letter-spacing: 0.3px;
}

.footer-contact {
    color: var(--lavender-light);
    margin-block-end: var(--space-sm);
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.footer-email-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-email-link:hover,
.footer-email-link:focus-visible {
    color: var(--footer-text-color);
}

.footer-copyright {
    color: var(--text-lighter);
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* ============================================
   INQUIRY FORM MODAL
   ============================================ */
.inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-md);
}

.inquiry-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.inquiry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inquiry-modal.active .inquiry-modal-backdrop {
    opacity: 1;
}

.inquiry-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(2rem);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.inquiry-modal.active .inquiry-modal-container {
    transform: scale(1) translateY(0);
}

.inquiry-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--lavender-primary);
    border: none;
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 2.5rem;
    min-height: 2.5rem;
    box-shadow: var(--shadow-md);
}

.inquiry-modal-close:hover,
.inquiry-modal-close:focus-visible {
    background: var(--lavender-dark);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-lg);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.inquiry-modal-content {
    padding: var(--space-3xl) var(--space-xl);
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.inquiry-modal-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-block-end: var(--space-sm);
}

.inquiry-modal-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-light);
    text-align: center;
    margin-block-end: var(--space-xl);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.inquiry-form-status {
    display: none;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    border: 1px solid var(--lavender-lighter);
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.inquiry-form-status.show {
    display: block;
}

.inquiry-form-status.success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.10);
}

.inquiry-form-status.error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: var(--lavender-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--lavender-lighter);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-primary);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lavender-primary);
    box-shadow: 0 0 0 3px rgba(155, 126, 222, 0.1);
}

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

.btn-submit {
    width: 100%;
    margin-block-start: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
}

@media (max-width: 767px) {
    .inquiry-modal-content {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .inquiry-modal-title {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   SECRET CODE MODAL
   ============================================ */
.code-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) + 5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.code-modal.active {
    display: flex;
}

.code-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.code-modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

.code-modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: transparent;
    border: none;
    color: var(--text-dark);
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-width: 2rem;
    min-height: 2rem;
    opacity: 0.6;
}

.code-modal-close:hover {
    opacity: 1;
}

.code-modal-content {
    padding: var(--space-xl);
    text-align: center;
}

.code-modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-block-end: var(--space-sm);
    text-transform: none;
    letter-spacing: normal;
}

.code-modal-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-block-end: var(--space-lg);
    font-weight: 400;
}

.code-input-wrapper {
    position: relative;
    margin-block-end: var(--space-md);
}

.code-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--text-lighter);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-family: inherit;
    text-align: left;
    color: var(--text-dark);
    background: var(--bg-primary);
}

.code-input:focus {
    outline: none;
    border-color: var(--text-light);
}

.code-input:disabled {
    background: var(--lavender-lightest);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-toggle-password {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
}

.btn-toggle-password:hover {
    opacity: 1;
}

.btn-toggle-password svg {
    position: absolute;
    width: 18px;
    height: 18px;
}

.btn-toggle-password .icon-eye-off {
    display: none;
}

.btn-toggle-password.show .icon-eye {
    display: none;
}

.btn-toggle-password.show .icon-eye-off {
    display: block;
}

.code-attempts {
    font-size: var(--font-size-xs);
    color: var(--text-lighter);
    margin-block-end: var(--space-sm);
}

.code-attempts strong {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.code-attempts.low-attempts strong {
    color: var(--text-dark);
}

.code-message {
    min-height: 1rem;
    margin-block-end: var(--space-sm);
    font-size: var(--font-size-xs);
    padding: var(--space-xs);
    display: none;
}

.code-message.show {
    display: block;
}

.code-message.error {
    color: var(--text-light);
}

.code-message.success {
    color: var(--text-light);
}

.code-message.locked {
    color: var(--text-light);
}

.btn-submit-code {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-submit-code:hover {
    background: var(--text-light);
}

.btn-submit-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No special styling for course header - keep it secret */

@media (max-width: 767px) {
    .code-modal-content {
        padding: var(--space-lg);
    }
}

/* ============================================
   MEDIA QUERIES - BREAKPOINT SYSTEM
   Mobile-First Approach
   ============================================ */

/* Base: 0-479px (Small Phones) - Default styles above */

/* Small: 480-767px (Large Phones) */
@media (min-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 2rem + 2.5vw, 3rem);
    }
}

/* Medium: 768-1023px (Tablets Portrait & Landscape) */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-text {
        text-align: start;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Large: 1024-1279px (Laptops) */
@media (min-width: 1024px) {
    .container {
        max-width: var(--container-max-width-wide);
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* XL: 1280-1919px (Desktops) */
@media (min-width: 1280px) {
    .container {
        max-width: var(--container-max-width);
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra-wide: 1920px+ */
@media (min-width: 1920px) {
    .container {
        max-width: var(--container-max-width-ultra);
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

/* Orientation Support */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding-block: var(--space-xl);
    }
}

/* High-DPI (Retina) Screens */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero-illustration,
    .blog-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Hover Support Detection */
@media (hover: hover) and (pointer: fine) {
    .program-card:hover,
    .blog-card:hover,
    .profile-card:hover {
        transform: translateY(-0.625rem);
    }
    
    .profile-card-center:hover {
        transform: translateY(-1.5rem) scale(1.1);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .footer-link {
        min-height: var(--touch-target-min);
    }
    
    /* Remove hover effects on touch devices */
    .program-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }
}

/* Foldable Device Support */
@media (min-width: 600px) and (max-width: 900px) {
    @supports (width: env(fold-left)) {
        .hero-content {
            grid-template-columns: 1fr;
        }
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .hero-buttons,
    .btn-enroll {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}


