/* ===================================
   CSS Custom Properties & Variables
   REDESIGNED - Karate Aka/Gold Theme
   =================================== */
:root {
    /* Karate Color Palette - Aka (Red) */
    --color-primary: #C41E3A;
    /* Cardinal Red - Aka */
    --color-primary-light: #E63950;
    --color-primary-dark: #9A1830;
    --color-accent: #d4af37;
    /* Gold */
    --color-accent-secondary: #b39126;
    --color-accent-tertiary: #e6c253;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #d4d4d8;
    --color-text-muted: #a1a1aa;
    --color-text-dark: #27272a;

    /* Background Colors */
    --color-background: #0a0a0a;
    /* Near black */
    --color-background-light: #1a1a1a;
    --color-background-dark: #050505;
    --color-background-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #C41E3A 0%, #9A1830 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #b39126 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);

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

    /* Typography */
    --font-primary: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.35);

    /* Transitions - Subtle and Professional */
    --transition-fast: 0.2s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c253;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #0a0a0a;
}

/* ===================================
   Loading Screen with Video Background
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    animation: screenFadeIn 90ms ease-out forwards;
}

.loading-screen.fade-out {
    animation: screenFadeOut 90ms ease-out forwards;
    pointer-events: none;
}

/* Background Video */
.loading-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    opacity: 0.85;
    z-index: 1;
}

/* Text Overlay Container */
.loading-text-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay Text */
.loading-logo {
    font-family: 'Bebas Neue', var(--font-heading);
    font-size: 64px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* Loading screen animations */
@keyframes screenFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes screenFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Hide main content during load */
body.loading {
    overflow: hidden;
}

/* Prevent scrolling when mobile menu is open */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

body.loading .navbar,
body.loading .hero,
body.loading .about-instructor,
body.loading .why-choose,
body.loading .programs,
body.loading .ai-assistant,
body.loading .contact,
body.loading .footer {
    opacity: 0;
}

/* Reveal content after loading */
body:not(.loading) .navbar,
body:not(.loading) .hero,
body:not(.loading) .about-instructor,
body:not(.loading) .why-choose,
body:not(.loading) .programs,
body:not(.loading) .ai-assistant,
body:not(.loading) .contact,
body:not(.loading) .footer {
    opacity: 1;
    transition: opacity 0.5s ease 0.1s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .loading-logo {
        font-size: 42px;
    }

    .loading-video {
        filter: blur(4px);
    }
}

@media (max-width: 768px) {
    .loading-logo {
        font-size: 36px;
    }

    .loading-video {
        filter: blur(3px);
    }
}



/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

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

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    padding: 1px;
    background-color: #ffffff;
    transform: translateY(4px);
    border: 2px solid rgba(196, 30, 58, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- Nav Menu --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hide mobile-only elements on desktop */
.mobile-panel-header {
    display: none;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: rgba(12, 12, 16, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 180px;
    list-style: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 9px 18px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-menu li a:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Nav Icons --- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* --- Mobile Hamburger --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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



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

/* Global protection for images and assets */
img, video, canvas, svg {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

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

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

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

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

p {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

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

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

/* ===================================
   Club Feature Image (About Section)
   =================================== */
.club-feature-image-wrapper {
    text-align: center;
    margin: 0 auto 3rem auto;
    max-width: 900px;
}

.club-feature-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-text-dark);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition-base);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
}

/* --- Left: Branding --- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    padding: 1px;
    background-color: #ffffff;
    transform: translateY(4px);
    display: block;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-accent);
    /* Blue/Accent color */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* --- Right: Content --- */
.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--color-accent);
}

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

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-icon-link {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    transition: transform 0.2s, color 0.2s;
    filter: none;
    /* Reset distinct filter from previous step */
}

.nav-icon-link:hover {
    transform: scale(1.15);
    color: var(--color-accent);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ===================================
   Hero Section - Clean Layout
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

/* Subtle gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.65) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

/* Hero bottom gradient border */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Text Container */
.hero-text {
    padding: var(--spacing-md);
}

.hero-welcome {
    font-size: var(--font-size-lg);
    color: #E8C468;
    /* Keep warm gold for visibility */
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #D4AF37;
    /* Keep warm gold for visibility */
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-normal);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Hero CTA Buttons — 3-Button System
   =================================== */

/* Shared foundation */
.btn-cta-primary,
.btn-cta-secondary,
.btn-cta-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Focus ring for accessibility */
.btn-cta-primary:focus-visible,
.btn-cta-secondary:focus-visible,
.btn-cta-tertiary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* --- 1. Join Now — Gold gradient, strongest visual weight --- */
.btn-cta-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b39126 100%);
    color: #111111;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
    border-color: transparent;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.65);
    background: linear-gradient(135deg, #e6c55a 0%, #c9a32e 100%);
}

.btn-cta-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}

/* --- 2. View Schedule — Ghost / frosted glass --- */
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

/* --- 3. Membership Info — Gold outline --- */
.btn-cta-tertiary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
}

.btn-cta-tertiary:hover {
    background: var(--color-accent);
    color: #111111;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.btn-cta-tertiary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* Mobile — stack and go full-width */
@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-tertiary {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.section-title-accent {
    color: var(--color-accent);
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
}

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

/* ===================================
   About/Instructor Section - Dark Professional
   =================================== */
.about-instructor {
    background: var(--color-background-dark);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Noise texture overlay for depth */
.about-instructor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

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

.instructor-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.instructor-container.no-image {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    gap: 4rem;
}

.instructor-quote {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--color-background-dark);
    padding: 0 10px;
}

.founder-philosophy {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-signature strong {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.instructor-portrait {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.instructor-info h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.instructor-title {
    font-size: var(--font-size-lg);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.instructor-bio {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

/* Scroll-triggered text reveal effect */
.js-fill>span {
    background: linear-gradient(to right,
            var(--color-accent) 50%,
            var(--color-text-primary) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.credentials-list {
    list-style: none;
}

.credential-item {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.centered-credentials .credential-item {
    justify-content: center;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-icon {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* ===================================
   Programs Section
   =================================== */
.programs {
    background: var(--color-background-light);
    position: relative;
}

/* Red accent separator at top */
.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Program badge accent variant */
.program-badge-accent {
    background: var(--color-accent) !important;
    color: white !important;
}

.program-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 90, 172, 0.2);
    box-shadow: var(--shadow-sm);
}

.program-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.program-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--color-text-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
}

.program-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.program-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.program-features {
    list-style: none;
    margin-bottom: 0;
}

.program-features li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.75rem;
    line-height: var(--line-height-relaxed);
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===================================
   Features/Why Choose Us Section - Premium Bento Grid
   =================================== */
.why-choose {
    background: linear-gradient(180deg, #000000 0%, #0a0a0f 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

/* Grain texture overlay */
.why-choose::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Ambient background glow */
.why-choose::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 90, 172, 0.12) 0%, transparent 70%);
    pointer-events: none;
}


.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Bento Card Base Styles */
.bento-card {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 90, 172, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Top gradient accent bar */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* Corner accent decoration */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(30, 90, 172, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Hover Effects */
.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 90, 172, 0.5);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(30, 90, 172, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

/* Grid Layout - More interesting asymmetric layout */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
    padding: 2.5rem;
}

/* Featured card - first large card gets special treatment */
.bento-card.bento-large:first-child {
    background: linear-gradient(145deg, rgba(196, 30, 58, 0.3) 0%, rgba(20, 20, 30, 0.95) 100%);
    border-color: rgba(30, 90, 172, 0.4);
}

.bento-card.bento-large:first-child::before {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    opacity: 1;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Full width card - spans all 3 columns */
.bento-full {
    grid-column: span 3;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
}

.bento-full .bento-icon {
    flex-shrink: 0;
}

.bento-full .bento-title {
    margin-bottom: 0.5rem;
}

.bento-full .bento-description {
    margin: 0;
}

/* Icon Container with glow background */
.bento-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 90, 172, 0.15) 0%, rgba(30, 90, 172, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(30, 90, 172, 0.25);
}

.bento-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    filter: drop-shadow(0 2px 8px rgba(30, 90, 172, 0.5));
    transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
    background: linear-gradient(135deg, rgba(30, 90, 172, 0.25) 0%, rgba(196, 30, 58, 0.15) 100%);
    border-color: rgba(30, 90, 172, 0.5);
    box-shadow: 0 0 30px rgba(30, 90, 172, 0.25);
}

.bento-card:hover .bento-icon svg {
    color: #3A7BD5;
    filter: drop-shadow(0 4px 16px rgba(30, 90, 172, 0.7));
    transform: scale(1.15);
}

/* Large card icons are bigger */
.bento-large .bento-icon {
    width: 80px;
    height: 80px;
}

.bento-large .bento-icon svg {
    width: 48px;
    height: 48px;
}

/* Typography */
.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.bento-large .bento-title {
    font-size: 1.75rem;
}

.bento-card:hover .bento-title {
    color: var(--color-accent);
}

.bento-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0;
}

.bento-large .bento-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Container */
.philosophy-cta {
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

.philosophy-cta .btn {
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.philosophy-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.philosophy-cta .btn:hover::before {
    left: 100%;
}

/* Scroll Animation Support */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Floating animation for featured card */
@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.bento-card.bento-large:first-child {
    animation: subtleFloat 6s ease-in-out infinite;
}

.bento-card.bento-large:first-child:hover {
    animation: none;
    transform: translateY(-10px);
}


/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--color-background-light);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
}

.testimonial-quote {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--color-background-dark);
    position: relative;
}

/* Red accent line separator */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.contact-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(30, 90, 172, 0.15), 0 0 20px rgba(30, 90, 172, 0.1);
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(180deg, var(--color-background-dark) 0%, #020202 100%);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

/* ===================================
   Mobile Menu Dark Overlay
   =================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet - 2 column Bento Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-medium,
    .bento-full {
        grid-column: span 2;
    }

    .bento-small {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {

    /* --- Loading Screen (Disabled on Mobile) --- */
    #loading-screen {
        display: none !important;
    }

    body.loading {
        overflow: auto !important;
    }

    /* --- Navigation --- */
    .nav-container {
        justify-content: space-between;
        gap: 0;
        padding: 0 1rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-logo {
        height: 40px;
        width: 40px;
    }

    /* Mobile sidebar panel */
    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #0d0d0d;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-panel-header {
        display: flex !important;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Individual items default (no fade-in jank) */
    .nav-menu li {
        width: 100%;
        text-align: left;
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Stagger animation when menu opens */
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition: opacity 0.3s 0.08s ease, transform 0.3s 0.08s ease;
    }

    .nav-menu.active li:nth-child(2) {
        transition: opacity 0.3s 0.14s ease, transform 0.3s 0.14s ease;
    }

    .nav-menu.active li:nth-child(3) {
        transition: opacity 0.3s 0.2s ease, transform 0.3s 0.2s ease;
    }

    .nav-menu.active li:nth-child(4) {
        transition: opacity 0.3s 0.26s ease, transform 0.3s 0.26s ease;
    }

    .nav-menu.active li:nth-child(5) {
        transition: opacity 0.3s 0.32s ease, transform 0.3s 0.32s ease;
    }

    .nav-menu.active li:nth-child(6) {
        transition: opacity 0.3s 0.38s ease, transform 0.3s 0.38s ease;
    }

    /* --- Mobile Panel Header --- */
    .mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.25rem;
        height: 70px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        flex-shrink: 0;
    }

    .mobile-panel-title {
        font-family: var(--font-heading);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4);
    }

    .mobile-panel-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
    }

    .mobile-panel-close:hover,
    .mobile-panel-close:active {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    /* --- Nav links inside panel --- */
    .nav-menu .nav-links-group {
        padding: 0.5rem 0;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.85);
        min-height: 52px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: normal;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
    }

    /* Kill the desktop hover underline effect on mobile so it doesn't flicker/stretch */
    .nav-link::after {
        content: none !important;
        display: none !important;
    }

    /* Dropdown arrow indicator */
    .dropdown .nav-link::after {
        content: '›' !important;
        /* Restore the text-based arrow for dropdowns */
        display: inline-block !important;
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
        transition: transform 0.25s ease, color 0.25s ease;
        margin-left: auto;
        padding-left: 0.5rem;
        width: auto !important;
        /* Override desktop width transition */
        height: auto !important;
        background: transparent !important;
        bottom: auto;
        left: auto;
        position: relative;
    }

    .dropdown.mobile-open .nav-link::after {
        transform: rotate(270deg);
        color: var(--color-accent);
    }

    .dropdown.mobile-open>.nav-link {
        color: #fff;
        background: rgba(196, 30, 58, 0.08);
    }

    /* Mobile inline dropdown submenu */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.mobile-open .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        display: block;
        padding: 0.8rem 1.5rem 0.8rem 2.25rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.55);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a:active {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Nav icons row at the bottom of the panel */
    .nav-icons {
        margin-top: auto;
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: none !important;
    }

    .nav-icon-link {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, transform 0.2s;
    }

    .nav-icon-link:hover,
    .nav-icon-link:active {
        background: rgba(196, 30, 58, 0.15);
        border-color: rgba(196, 30, 58, 0.4);
        transform: scale(1.05);
    }

    /* Hamburger toggle */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        gap: 7px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .mobile-menu-toggle.active {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


    /* --- Hero Section --- */
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 70px;
        /* Offset for mobile navbar */
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .hero-welcome {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-top: var(--spacing-md);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 2rem;
        min-height: 48px;
    }

    /* --- About Section --- */
    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .club-description {
        padding: 0 0.5rem;
    }

    .instructor-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .instructor-container.no-image {
        grid-template-columns: 1fr;
    }

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

    .founder-philosophy {
        font-size: 1rem;
        line-height: 1.7;
    }

    .credentials-list {
        text-align: left;
    }

    /* --- Contact Section --- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: var(--spacing-md);
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    .contact-item {
        min-height: 48px;
        align-items: center;
    }

    /* --- Programs Section --- */
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: var(--spacing-md);
    }

    /* --- Bento Grid --- */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-large,
    .bento-medium,
    .bento-small,
    .bento-full {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .bento-large {
        padding: 1.75rem;
    }

    .bento-icon {
        width: 56px;
        height: 56px;
    }

    .bento-large .bento-icon {
        width: 64px;
        height: 64px;
    }

    .bento-title {
        font-size: 1.1rem;
    }

    .bento-large .bento-title {
        font-size: 1.25rem;
    }

    .bento-description {
        font-size: 0.88rem;
    }

    .philosophy-cta {
        margin-top: 2rem;
    }

    .philosophy-cta .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        min-height: 48px;
    }

    /* Disable floating animation on mobile */
    .bento-card.bento-large:first-child {
        animation: none;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    /* --- Buttons: Touch targets --- */
    .btn {
        min-height: 48px;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* --- Chatbot Widget --- */
    .ai-chatbot-widget {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .ai-chatbot-widget .chatbot-icon {
        width: 22px;
        height: 22px;
    }

    /* --- Chatbot Window --- */
    .ai-chat-window {
        width: calc(100vw - 24px);
        max-width: 340px;
        height: 50vh;
        max-height: 400px;
        bottom: 80px;
        right: 12px;
        border-radius: var(--radius-md);
    }

    .ai-chat-header {
        padding: 12px 16px;
    }

    .ai-chat-title h3 {
        font-size: 0.85rem;
    }

    .ai-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.55rem;
    }

    .ai-chat-close {
        font-size: 1.5rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .ai-chat-messages {
        padding: 12px;
        gap: 10px;
    }

    .message {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .ai-chat-input-area {
        padding: 10px 12px;
    }

    #ai-chat-input {
        padding: 10px 14px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    #ai-chat-send {
        width: 44px;
        height: 44px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .hero-cta .btn {
        max-width: 240px;
        font-size: 0.9rem;
    }

    .brand-name {
        font-size: 0.8rem;
    }

    .brand-logo {
        height: 36px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.88rem;
    }

    .bento-card {
        padding: 1.25rem;
    }

    .bento-icon {
        width: 48px;
        height: 48px;
    }

    .bento-icon svg {
        width: 28px;
        height: 28px;
    }

    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    /* Chatbot even more compact */
    .ai-chatbot-widget {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }

    .ai-chatbot-widget .chatbot-icon {
        width: 20px;
        height: 20px;
    }

    .ai-chat-window {
        width: calc(100vw - 16px);
        height: 45vh;
        max-height: 350px;
        bottom: 70px;
        right: 8px;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* ================================================
   Gallery Grid Styles
   ================================================ */

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

.gallery-item {
    background: var(--color-background-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 90, 172, 0.3);
    border-color: rgba(30, 90, 172, 0.4);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #1a1a1a;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 12px 14px;
    flex: 1;
}

.gallery-content h3 {
    color: var(--color-text-primary);
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-content p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ================================================
   Events & Schedule Section
   ================================================ */

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

/* Glass card base */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Shared card header */
.schedule-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.schedule-card-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.schedule-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

/* Top row: calendar + timetable side by side */
.schedule-top-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Calendar ── */
.rsmac-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.cal-month-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cal-nav-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day-name {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    text-align: center;
    padding: 0.3rem 0;
    letter-spacing: 0.5px;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    border-radius: 6px;
    color: var(--color-text-secondary);
    transition: background 0.15s ease;
    position: relative;
    cursor: default;
}

.cal-day.cal-empty {
    opacity: 0;
    pointer-events: none;
}

.cal-day.cal-class-day {
    background: rgba(212, 175, 55, 0.12);
    color: var(--color-accent);
    font-weight: 600;
}

.cal-day.cal-class-day::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
}

.cal-day.cal-event-day {
    background: rgba(196, 30, 58, 0.15);
    color: #f08090;
    font-weight: 600;
}

.cal-day.cal-event-day::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f08090;
}

.cal-day.cal-today {
    background: rgba(212, 175, 55, 0.28);
    color: #fff;
    font-weight: 800;
    border: 1px solid var(--color-accent);
}

.cal-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    padding-top: 0.25rem;
}

.cal-legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.cal-dot-class  { background: var(--color-accent); }
.cal-dot-event  { background: #f08090; }
.cal-dot-today  { background: #fff; border: 1.5px solid var(--color-accent); }

/* ── Timetable ── */
.timetable-scroll-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}

.timetable {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.timetable th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.55rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.timetable th:first-child {
    text-align: left;
    padding-left: 0.6rem;
}

.timetable tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.tt-time {
    font-weight: 700;
    color: var(--color-text-secondary);
    white-space: nowrap;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
}

.tt-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.25rem;
}

.tt-class {
    text-align: center;
    padding: 0.4rem 0.25rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
}

.tt-kids     { background: rgba(212, 175, 55, 0.15); color: #e6c55a; }
.tt-adult    { background: rgba(196, 30,  58, 0.15); color: #f08090; }
.tt-advanced { background: rgba(100, 60, 200, 0.18); color: #b8a0f0; }
.tt-special  { background: rgba(30,  160, 100, 0.15); color: #60d0a0; }

.tt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.tt-legend-chip {
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.tt-legend-chip.tt-kids     { background: rgba(212,175,55,0.15);  color:#e6c55a; }
.tt-legend-chip.tt-adult    { background: rgba(196,30,58,0.15);   color:#f08090; }
.tt-legend-chip.tt-advanced { background: rgba(100,60,200,0.18);  color:#b8a0f0; }
.tt-legend-chip.tt-special  { background: rgba(30,160,100,0.15);  color:#60d0a0; }

.tt-note {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-style: italic;
}

/* ── Club Activities ── */
.schedule-activities {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.activity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(212, 175, 55, 0.2);
}

.activity-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-gold  { background: rgba(212,175, 55,0.15); color: #d4af37; }
.activity-icon-red   { background: rgba(196, 30, 58,0.15); color: #f08090; }
.activity-icon-blue  { background: rgba(100, 60,200,0.18); color: #b8a0f0; }
.activity-icon-green { background: rgba( 30,160,100,0.15); color: #60d0a0; }

.activity-body { display: flex; flex-direction: column; gap: 0.4rem; }

.activity-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.activity-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}

.activity-tags {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.activity-tags li {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule-top-row {
        grid-template-columns: 1fr;
    }

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

/* ================================================
   Recognition Grid Styles

   ================================================ */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 450px));
    justify-content: center;
    gap: var(--spacing-lg);
}

.recognition-grid .gallery-image {
    aspect-ratio: 4 / 3;
    background-color: transparent;
}

.recognition-grid .gallery-image img {
    object-fit: contain;
    background: var(--color-background-dark);
    padding: var(--spacing-sm);
}

/* Center odd last item (3rd certificate) */
.recognition-grid .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 450px;
    width: 100%;
}

/* Adjust for vertical certificate */
.recognition-grid .gallery-item.vertical-cert .gallery-image {
    aspect-ratio: auto;
    min-height: 400px;
}

@media (max-width: 900px) {
    .recognition-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ===================================
   AI Chatbot Widget
   =================================== */

/* ===================================
   WhatsApp Floating Button
   =================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    animation: none;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 66px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1a1a1a;
}

.whatsapp-float-btn:hover .whatsapp-float-tooltip {
    opacity: 1;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* Hide during splash screen */
body.loading .whatsapp-float-btn {
    display: none !important;
}

.ai-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 90, 172, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: white;
}

.ai-chatbot-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(30, 90, 172, 0.7);
}

.ai-chatbot-widget .chatbot-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-widget .chatbot-icon svg {
    width: 100%;
    height: 100%;
}

/* Hide chatbot during splash screen */
body.loading .ai-chatbot-widget,
body.loading .ai-chat-window {
    display: none !important;
}

/* ===================================
   AI Chat Window
   =================================== */

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    background: rgba(15, 15, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(30, 90, 172, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.ai-chat-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ai-chat-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ai-chat-close:hover {
    color: var(--color-text-primary);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--color-accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message p {
    margin: 0;
}

.ai-chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

#ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

#ai-chat-input:focus {
    border-color: var(--color-accent);
}

#ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#ai-chat-send:hover {
    transform: scale(1.05);
    background: var(--color-accent-tertiary);
}

#ai-chat-send svg {
    width: 16px;
    height: 16px;
}

/* Typing bubble — sits inside the existing .message.bot-message bubble */
.typing-bubble {
    display: inline-flex !important;
    min-width: 0 !important;
    width: auto;
    padding: 12px 16px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: typingPulse 0.6s ease-in-out infinite;
    transform-origin: center;
}

.typing-dots span:nth-child(1) { animation-delay: 0ms; }
.typing-dots span:nth-child(2) { animation-delay: 150ms; }
.typing-dots span:nth-child(3) { animation-delay: 300ms; }

@keyframes typingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* ===================================
   Certificate / Gallery Modal Lightbox
   =================================== */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.cert-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.cert-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--color-background-dark);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cert-modal.active .cert-modal-content {
    transform: scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.cert-modal-close:hover {
    background: var(--color-primary);
}

.cert-modal-body {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

#cert-modal-img {
    width: 100%;
    /* Keep aspect ratio without cropping */
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    background: transparent;
    padding: 1rem;
}

.cert-modal-text {
    padding: var(--spacing-md);
    background: var(--color-background-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#cert-modal-title {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-xl);
}

#cert-modal-desc {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

@media (min-width: 768px) {
    .cert-modal-body {
        flex-direction: row;
    }

    #cert-modal-img {
        flex: 1;
        max-height: 70vh;
        width: 65%;
    }

    .cert-modal-text {
        width: 35%;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-lg);
    }
}

/* ===================================
   Testimonial Marquee
   =================================== */
.testimonials {
    background-color: var(--color-bg-secondary, #0a0a0a);
    overflow: hidden;
    /* Hide horizontal scroll */
    padding: var(--spacing-xl) 0;
}

.testimonials .container {
    max-width: 100%;
    padding: 0;
}

.testimonials .section-header {
    margin-bottom: var(--spacing-lg);
}

.testimonial-marquee {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full bleed trick */
    display: flex;
    overflow: hidden;
    gap: var(--spacing-md);
    /* Optional: add a subtle gradient fade on the edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-marquee__track {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    width: max-content;
    flex-shrink: 0;
    animation: scroll-left 40s linear infinite;
}



@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move left by exactly the width of one track + the gap between tracks */
        transform: translateX(calc(-100% - var(--spacing-md)));
    }
}

.testimonial-card-mq {
    width: 320px;
    padding: var(--spacing-lg);
    background: var(--color-surface, #141414);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

/* --- Header row: avatar + name + stars --- */
.testimonial-card-mq__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.testimonial-card-mq__avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: #d4af37;
    background-image: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #111;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    line-height: 1;
    overflow: hidden;
    user-select: none;
}

.testimonial-card-mq__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-card-mq__author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.testimonial-card-mq__stars {
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.testimonial-card-mq__text {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    font-style: italic;
    flex-grow: 1;
    margin: 0;
}

.testimonial-card-mq__source {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-card-mq__source span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}

.google-logo-icon {
    flex-shrink: 0;
}

/* ===================================
   Splash Screen Trial Modal
   =================================== */
.splash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.splash-modal-content {
    background-color: #111111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem 2rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-modal-overlay.active .splash-modal-content {
    transform: translateY(0) scale(1);
}

.limited-slots-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d4af37;
    color: #111;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.splash-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.splash-close-btn:hover {
    color: #fff;
}

.splash-logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: #fff;
    padding: 4px;
    border: 2px solid #d4af37;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.splash-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.splash-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.splash-title-accent {
    color: #d4af37;
}

.splash-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.splash-desc-accent {
    color: #d4af37;
}

.splash-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.splash-features li {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.splash-check {
    color: #aaa;
    font-size: 0.8rem;
}

.btn-splash {
    background: linear-gradient(135deg, #e6c253 0%, #b39126 100%);
    color: #111;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    width: 100%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-splash:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f0d06a 0%, #c19e30 100%);
    color: #000;
}

.splash-footer {
    color: #666;
    font-size: 0.75rem;
    margin-top: 1.5rem;
    font-style: italic;
}
 
/* ================================================================
   MOBILE OPTIMISATION PATCH
   Supplements the primary @media(max-width:768px) block above.
   Adds coverage for: new hero CTA buttons, schedule section,
   global overflow guard, iOS safe-area insets, hero above-fold fix.
   ================================================================ */

/* ── 1. Global overflow guard ── */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure every direct section/div child cannot escape the viewport */
.hero,
.about-instructor,
.why-choose,
.programs,
.testimonials,
.schedule-section,
.contact,
.footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── 2. iOS safe-area insets (notch/home-bar) ── */
.navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.footer {
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
}

/* ── 3. Hero: reduce second tagline gap so CTAs stay above fold ── */
@media (max-width: 768px) {
    .hero-tagline {
        margin-bottom: 0.75rem;
    }

    /* New CTA buttons — cover the gap left by the 600px-only rule */
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-tertiary {
        min-height: 48px;
    }

    /* When between 601–768px stacking is still applied above  */
    .hero-cta {
        gap: 0.85rem;
    }
}

/* ── 4. New hero CTA buttons on phones (≤600px already stacks; enforce min-height) ── */
@media (max-width: 600px) {
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-tertiary {
        min-height: 48px;
        font-size: 0.88rem;
        letter-spacing: 0.4px;
    }
}

/* ── 5. Schedule section — small phones (≤480px) ── */
@media (max-width: 480px) {
    .schedule-section .glass-card,
    .schedule-activities {
        padding: 1.1rem 0.9rem;
    }

    .schedule-card-title {
        font-size: 1rem;
    }

    .rsmac-calendar .cal-day {
        font-size: 0.7rem;
    }

    .cal-month-label {
        font-size: 0.85rem;
    }

    .activities-grid {
        gap: 0.75rem;
    }

    .activity-card {
        padding: 1rem;
    }

    .activity-title {
        font-size: 0.88rem;
    }

    .activity-desc {
        font-size: 0.75rem;
    }

    /* Timetable: reduce font further on very small screens */
    .timetable {
        font-size: 0.7rem;
    }

    .timetable th {
        padding: 0.45rem 0.3rem;
        font-size: 0.65rem;
    }

    .tt-time {
        font-size: 0.68rem;
        padding: 0.45rem 0.4rem;
    }

    .tt-class {
        font-size: 0.65rem;
        padding: 0.35rem 0.2rem;
    }
}

/* ── 6. Footer layout on very small phones ── */
@media (max-width: 480px) {
    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-section p,
    .footer-links a {
        font-size: 0.82rem;
    }
}

/* ── 7. Programs grid — prevent card overflow ── */
@media (max-width: 480px) {
    .program-card {
        padding: 1rem;
    }

    .program-image {
        border-radius: var(--radius-md);
    }

    .program-title {
        font-size: 1.05rem;
    }

    .program-description,
    .program-features li {
        font-size: 0.83rem;
    }
}

/* ================================================
   Dojo Location Links
   ================================================ */

/* About section — pill-style location chip */
.dojo-location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dojo-location-link svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.dojo-location-link:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.18);
    text-decoration: none;
}

/* Footer — subtle address link */
.footer-location-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-location-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Mobile — make dojo location chip wrap cleanly */
@media (max-width: 600px) {
    .dojo-location-link {
        font-size: 0.78rem;
        padding: 0.5rem 0.9rem;
    }
}

/* ================================================
   Why Choose Us — Premium 4-Feature Grid
   ================================================ */
.wcu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.wcu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wcu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.32);
    border-color: rgba(212,175,55,0.22);
}

.wcu-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcu-gold  { background: rgba(212,175, 55,0.14); color: #d4af37; }
.wcu-red   { background: rgba(196, 30, 58,0.14); color: #f08090; }
.wcu-blue  { background: rgba(100, 60,200,0.18); color: #b8a0f0; }
.wcu-green { background: rgba( 30,160,100,0.15); color: #60d0a0; }

.wcu-body { display: flex; flex-direction: column; gap: 0.45rem; }

.wcu-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

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

@media (max-width: 640px) {
    .wcu-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Programs — Age-Group Category Cards
   ================================================ */
.age-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.age-group-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.age-group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    border-color: rgba(212,175,55,0.2);
}

.age-group-card--accent {
    background: rgba(212,175,55,0.05);
    border-color: rgba(212,175,55,0.18);
}

.age-group-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.07);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}

.age-group-badge--accent {
    background: rgba(212,175,55,0.15);
    color: var(--color-accent);
    border-color: rgba(212,175,55,0.3);
}

.age-group-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.age-group-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.age-group-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.age-group-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.age-group-features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.835rem;
    color: var(--color-text-secondary);
}

.age-group-features li svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Divider between categories and pricing */
.programs-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 2rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.programs-divider::before,
.programs-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

@media (max-width: 640px) {
    .age-group-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Conversion CTA Section
   ================================================ */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    text-align: center;
}

.cta-bg-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15,10,5,1) 0%,
        rgba(28,18,8,1) 40%,
        rgba(20,14,5,1) 70%,
        rgba(10,8,3,1) 100%);
    z-index: 0;
}

/* Subtle gold radial glow */
.cta-bg-layer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(212,175,55,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated top border accent */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.cta-eyebrow {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
}

.cta-subtext {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

.cta-subtext strong {
    color: var(--color-accent);
    font-weight: 700;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Primary: gold gradient with shimmer */
.btn-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #d4af37 0%, #b39126 100%);
    color: #111111;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 52px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(212,175,55,0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer sweep on hover */
.btn-cta-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.4s ease;
}

.btn-cta-main:hover::after { left: 150%; }

.btn-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(212,175,55,0.6);
    background: linear-gradient(135deg, #e6c55a 0%, #c9a32e 100%);
}

.btn-cta-main:active { transform: translateY(-1px); }

.btn-cta-main:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Ghost: call button */
.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    min-height: 52px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-cta-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    transform: translateY(-2px);
}

.btn-cta-ghost:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.cta-note {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 600px) {
    .cta-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 0.5rem;
    }

    .btn-cta-main,
    .btn-cta-ghost {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }
}
 