/* ============================================================
   PUBLIC SITE STYLES - Pueri Cantores
   Premium Ultra-Modern Design 2024 - Glassmorphism & Elegance
   ============================================================ */

/* ============================================================
   CSS VARIABLES - FALLBACKS & NON-THEME VARIABLES
   Les couleurs principales sont injectées par le système de thèmes
   via injectPublicThemeVars() dans le layout
   ============================================================ */
:root {
    /* Primary Palette - FALLBACKS (écrasés par le thème si configuré) */
    --primary-color: var(--theme-primary, #1a3c6e);
    --primary-light: var(--theme-primary-light, #2a5298);
    --primary-lighter: #3d6bb3;
    --primary-dark: var(--theme-primary-dark, #0d1f3c);
    --primary-darker: #071428;
    
    /* Accent Palette - FALLBACKS */
    --accent-color: var(--theme-accent, #c8a84b);
    --accent-light: var(--theme-accent-light, #d4b85c);
    --accent-lighter: #e5cf8a;
    --accent-dark: var(--theme-accent-dark, #96791c);
    --accent-glow: rgba(200, 168, 75, 0.4);
    
    /* Background Palette - FALLBACKS */
    --bg-primary: var(--theme-bg-primary, #ffffff);
    --bg-secondary: var(--theme-bg-secondary, #f8fafc);
    --bg-tertiary: var(--theme-bg-tertiary, #f1f5f9);
    --bg-card: var(--theme-bg-card, #ffffff);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-strong: rgba(255, 255, 255, 0.92);
    --bg-overlay: rgba(15, 23, 42, 0.6);
    
    /* Text Palette - FALLBACKS */
    --text-primary: var(--theme-text-primary, #0f172a);
    --text-secondary: var(--theme-text-secondary, #475569);
    --text-muted: var(--theme-text-muted, #94a3b8);
    --text-inverse: #ffffff;
    --text-accent: var(--accent-color);
    
    /* Border & Dividers */
    --border-color: var(--theme-border-color, #e2e8f0);
    --border-light: #f1f5f9;
    --border-glass: rgba(255, 255, 255, 0.2);
    
    /* Enhanced Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    --shadow-2xl: 0 32px 64px rgba(0,0,0,0.14), 0 16px 32px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(200, 168, 75, 0.15);
    --shadow-primary: 0 8px 24px rgba(26, 60, 110, 0.25);
    --shadow-accent: 0 8px 24px rgba(200, 168, 75, 0.3);
    
    /* Gradients - Uses theme variables */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(26,60,110,0.08) 0%, rgba(42,82,152,0.04) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(200,168,75,0.15) 0%, rgba(212,184,92,0.08) 100%);
    --gradient-hero: var(--hero-gradient, linear-gradient(135deg, #071428 0%, #0d1f3c 25%, #1a3c6e 50%, #2a5298 100%));
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #152238 50%, #1a3c6e 100%);
    --gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(200,168,75,0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(26,60,110,0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(200,168,75,0.05) 0px, transparent 50%);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: var(--theme-radius-md, 12px);
    --radius-lg: var(--theme-radius-lg, 16px);
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Typography - Uses theme fonts */
    --font-display: var(--theme-font-display, 'Playfair Display', Georgia, serif);
    --font-body: var(--theme-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================================
   CSS VARIABLES - DARK MODE (FALLBACKS - overridden by theme)
   ============================================================ */
[data-theme="dark"] {
    /* Primary Palette - Dark Mode (overridden by theme injection) */
    --primary-color: var(--dark-primary-color, #4f8fea);
    --primary-light: var(--dark-primary-light, #6ba3f5);
    --primary-lighter: #8bb8ff;
    --primary-dark: var(--dark-primary-dark, #3a6eb8);
    --primary-darker: #2a5090;
    
    /* Accent Palette - Dark Mode */
    --accent-color: var(--dark-accent-color, #e5c76d);
    --accent-light: var(--dark-accent-light, #f0d88a);
    --accent-lighter: #f8e6a8;
    --accent-dark: var(--dark-accent-dark, #c9a94d);
    --accent-glow: rgba(229, 199, 109, 0.3);
    
    /* Background Palette - Dark Mode */
    --bg-primary: var(--dark-bg-primary, #0a0f1a);
    --bg-secondary: var(--dark-bg-secondary, #111827);
    --bg-tertiary: var(--dark-bg-tertiary, #1f2937);
    --bg-card: var(--dark-bg-card, #1a2234);
    --bg-glass: rgba(17, 24, 39, 0.85);
    --bg-glass-strong: rgba(26, 34, 52, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    /* Text Palette - Dark Mode */
    --text-primary: var(--dark-text-primary, #f1f5f9);
    --text-secondary: var(--dark-text-secondary, #94a3b8);
    --text-muted: var(--dark-text-muted, #64748b);
    --text-inverse: #0f172a;
    
    /* Border & Dividers - Dark Mode */
    --border-color: var(--dark-border-color, #2d3a50);
    --border-light: #374151;
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Shadows - Dark Mode */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.45), 0 4px 8px rgba(0,0,0,0.3);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.35);
    --shadow-2xl: 0 32px 64px rgba(0,0,0,0.6), 0 16px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(229, 199, 109, 0.1);
    --shadow-primary: 0 8px 24px rgba(79, 143, 234, 0.2);
    --shadow-accent: 0 8px 24px rgba(229, 199, 109, 0.2);
    
    /* Gradients - Dark Mode */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(79,143,234,0.1) 0%, rgba(42,82,152,0.05) 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(229,199,109,0.12) 0%, rgba(240,216,138,0.06) 100%);
    --gradient-hero: linear-gradient(135deg, #040810 0%, #0a1628 25%, #152238 50%, var(--primary-color) 100%);
    --gradient-dark: linear-gradient(180deg, #040810 0%, #0a1628 50%, #152238 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(229,199,109,0.06) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(79,143,234,0.08) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(229,199,109,0.04) 0px, transparent 50%);
}

/* Theme Transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ============================================================
   BASE CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Dark mode body styles */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .section {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .section-light {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .public-card,
[data-theme="dark"] .premium-card,
[data-theme="dark"] .glass-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .public-card-title,
[data-theme="dark"] h1, [data-theme="dark"] h2, 
[data-theme="dark"] h3, [data-theme="dark"] h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .public-card-text,
[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] .input-premium input,
[data-theme="dark"] .input-premium textarea,
[data-theme="dark"] input, [data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .input-premium label {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}


/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(90deg, #0d1a2d 0%, #1a3c6e 100%);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left i {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    max-width: 55%;
}

.top-bar-right a,
.top-bar-right .top-social-link {
    color: rgba(255,255,255,0.92);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    font-size: 0.85rem;
}

.top-bar-right a:hover,
.top-bar-right .top-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.top-bar-right .social-link--facebook:hover { background: #1877f2; border-color: #1877f2; }
.top-bar-right .social-link--youtube:hover { background: #ff0000; border-color: #ff0000; }
.top-bar-right .social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.top-bar-right .social-link--whatsapp:hover { background: #25d366; border-color: #25d366; }
.top-bar-right .social-link--twitter:hover,
.top-bar-right .social-link--x:hover { background: #000; border-color: #000; }
.top-bar-right .social-link--tiktok:hover { background: #000; border-color: #25f4ee; }
.top-bar-right .social-link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.top-bar-right .social-link--lien:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 1280px) {
    .top-bar-inner {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }

    .top-bar-left {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .top-bar-right {
        max-width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #1a3c6e 0%, #0d1f3c 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header.scrolled {
    background: rgba(26, 60, 110, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-width: 0;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    min-width: 0;
}

.site-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #d4a94c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

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

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-slogan {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.15rem;
}

.nav-menu > li > a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.nav-menu > li > a i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

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

.has-dropdown.open > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    z-index: 100;
}

.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(200,168,75,0.1);
    color: var(--primary-color);
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--accent-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Donate Button */
.btn-donate {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a94c 100%);
    color: #1a1a1a;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 168, 75, 0.3);
    white-space: nowrap;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.4);
}

.btn-donate i {
    animation: pulse 1.5s infinite;
}

/* User Button */
.btn-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-user:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Theme Toggle Button - Slider Style */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle .sun-icon {
    color: #ffc107;
}

.theme-toggle .moon-icon {
    color: rgba(255,255,255,0.5);
}

.theme-toggle .toggle-slider {
    position: absolute;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-toggle.dark-mode .toggle-slider,
[data-theme="dark"] .theme-toggle .toggle-slider {
    left: calc(100% - 23px);
    background: #4a5568;
}

.theme-toggle.dark-mode .sun-icon,
[data-theme="dark"] .theme-toggle .sun-icon {
    color: rgba(255,255,255,0.4);
}

.theme-toggle.dark-mode .moon-icon,
[data-theme="dark"] .theme-toggle .moon-icon {
    color: #ffc107;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Professional Design */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #0d1f3c 0%, #152238 50%, #1a3c6e 100%);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.mobile-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #d4a94c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
}

.mobile-brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
}

.mobile-brand-slogan {
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-nav-section {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-title {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-title i {
    font-size: 0.8rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.mobile-nav-link i {
    width: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Mobile Nav Group (Accordion) */
.mobile-nav-group {
    margin: 0.25rem 0;
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.mobile-nav-toggle span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-toggle span i {
    width: 24px;
    color: rgba(255,255,255,0.6);
}

.mobile-nav-toggle .toggle-arrow {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}

.mobile-submenu {
    display: none;
    padding-left: 2.5rem;
    margin-top: 0.25rem;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-submenu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.mobile-submenu a i {
    width: 20px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-color), #d4a94c);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-donate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(200,168,75,0.4);
}

.mobile-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-user-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.mobile-theme-toggle span {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.theme-toggle-mobile {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    padding: 0;
}

.theme-toggle-mobile .toggle-track {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.theme-toggle-mobile .toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle-mobile .toggle-thumb {
    left: calc(100% - 23px);
    background: var(--accent-color);
}

/* Body when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
    min-height: calc(100vh - 400px);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,60,110,0.85) 0%, rgba(13,31,60,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1,
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: #fff;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-title-accent {
    display: block;
    font-size: 4rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 20px rgba(200, 168, 75, 0.5), 0 0 40px rgba(200, 168, 75, 0.3);
    font-style: italic;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-mini {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1f3c 100%);
    text-align: center;
    color: #fff;
}

.hero-mini h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-mini p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
    padding: 5rem 0;
}

.section-light {
    background: #f8fafc;
}

.section-alt {
    background: #fff;
}

.section-dark {
    background: #1a3c6e;
    color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: #fff;
}

.section-dark p {
    color: rgba(255,255,255,0.85);
}

.section-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-dark .section-title h2 {
    color: #fff;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   CARDS
   ============================================================ */
.public-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.public-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.public-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.public-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.public-card-body {
    padding: 1.5rem;
}

.public-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.public-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   CHOIR CARDS
   ============================================================ */
.choir-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.choir-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.choir-card-header {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.choir-card-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.choir-card-body {
    padding: 1.5rem;
    text-align: center;
}

.choir-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.choir-card-parish {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.choir-card-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.choir-card-stat {
    text-align: center;
}

.choir-card-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.choir-card-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.event-card-date {
    width: 100px;
    min-width: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.event-card-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-card-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-body {
    padding: 1.25rem;
    flex: 1;
}

.event-card-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(200,168,75,0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.event-card-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================================
   LEADER CARDS
   ============================================================ */
.leader-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border-top: 4px solid var(--accent-color);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.leader-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.leader-card-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.leader-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.leader-card-position {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.leader-card-org {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================================
   TEACHING CARDS
   ============================================================ */
.teaching-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.teaching-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.teaching-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.teaching-card-body {
    padding: 1.5rem;
}

.teaching-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.teaching-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.teaching-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #0d1a2d 0%, #1a3c6e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color, #d4a843) 35%, var(--accent-color, #d4a843) 65%, transparent 100%);
    opacity: 0.85;
}

.footer-top {
    padding: 4rem 0 3rem;
}

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

.footer-grid > .footer-col {
    min-width: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    border-radius: 8px;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social-wrap {
    margin-top: 0.25rem;
}

.footer-social-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
    margin: 0 0 0.65rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .footer-social-heading {
        text-align: left;
    }
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0;
}

/* Liens réseaux (footer + cohérence avec la barre du haut) */
.social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-link:active {
    transform: translateY(-1px) scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .social-link,
    .social-link:hover,
    .social-link:active {
        transform: none;
        transition: none;
    }
}

.footer-social .social-link--facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social .social-link--youtube:hover { background: #ff0000; border-color: #ff0000; }
.footer-social .social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.footer-social .social-link--whatsapp:hover { background: #25d366; border-color: #25d366; }
.footer-social .social-link--twitter:hover,
.footer-social .social-link--x:hover { background: #000; border-color: #333; }
.footer-social .social-link--tiktok:hover { background: #000; border-color: #25f4ee; }
.footer-social .social-link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.footer-social .social-link--lien:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.contact-info a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info li span,
.contact-info li a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* Footer : bandeau copyright + liens lisibles sur tablette / petits écrans */
@media (max-width: 991px) {
    .footer-top {
        padding: 3rem max(1rem, env(safe-area-inset-left, 0px)) 2.5rem max(1rem, env(safe-area-inset-right, 0px));
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 1rem;
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    }

    .footer-bottom-inner p {
        max-width: 100%;
        line-height: 1.5;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--accent-color, #d4a843) 0%, #b8922a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200,168,75,0.4);
    z-index: 999;
}

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

.back-to-top:hover {
    background: #d4a94c;
    transform: translateY(-5px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .nav-menu > li > a {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .btn-donate,
    .btn-user {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-slogan {
        font-size: 0.65rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
    }
    
    .btn-donate span,
    .btn-user span {
        display: none;
    }
    
    .btn-donate,
    .btn-user {
        padding: 0.5rem;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .btn-donate span,
    .btn-user span {
        display: none;
    }
    
    .btn-donate,
    .btn-user {
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    
    .btn-donate i,
    .btn-user i {
        margin: 0;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }
    
    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon,
    .theme-toggle .toggle-slider {
        display: none;
    }
    
    .theme-toggle::before {
        content: '\f186';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #fff;
        font-size: 0.9rem;
    }
    
    .theme-toggle.dark-mode::before,
    [data-theme="dark"] .theme-toggle::before {
        content: '\f185';
        color: #ffc107;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-slogan {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-actions .btn-user {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-col:first-child {
        grid-column: span 3;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-col:first-child .footer-logo {
        justify-content: center;
    }
    
    .footer-col:first-child .footer-description {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-col:first-child .footer-social {
        justify-content: center;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-card-date {
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .event-card-day {
        font-size: 1.5rem;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    
    .grid-2 > *, .grid-3 > *, .grid-4 > * {
        padding: 1.25rem !important;
    }
}

/* Social embeds */
.social-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================================ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(200, 168, 75, 0.3); }
    50% { box-shadow: 0 0 40px rgba(200, 168, 75, 0.6); }
}

/* Animation Classes */
.animate-fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fadeInDown { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.6s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================================
   GLASSMORPHISM COMPONENTS
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.glass-dark {
    background: rgba(26, 60, 110, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============================================================
   PREMIUM BUTTONS
   ============================================================ */
.btn-premium {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #d4a94c, var(--accent-color));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::after {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(200, 168, 75, 0.4);
}

.btn-3d {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, #0d1f3c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 0 #0a1628,
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #0a1628,
        0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-3d:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #0a1628,
        0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   PREMIUM CARDS
   ============================================================ */
.premium-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.premium-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

.premium-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.premium-card:hover .premium-card-shine {
    left: 150%;
}

/* Floating Card Effect */
.floating-card {
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* ============================================================
   HERO ENHANCEMENTS
   ============================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================================
   SCROLL REVEAL EFFECTS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   ENHANCED CHOIR CARDS
   ============================================================ */
.choir-card-premium {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.choir-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(200, 168, 75, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.choir-card-premium:hover::before {
    opacity: 1;
}

.choir-card-premium:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(200, 168, 75, 0.2);
}

.choir-card-premium .choir-card-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2C5282 50%, var(--accent-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.choir-card-premium .choir-card-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.choir-card-premium .choir-card-avatar {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    object-fit: cover;
}

.choir-card-premium .choir-card-body {
    padding: 60px 1.5rem 1.5rem;
    text-align: center;
}

/* ============================================================
   PREMIUM EVENT TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.2);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   STATS COUNTERS
   ============================================================ */
.stat-counter {
    text-align: center;
    padding: 2rem;
}

.stat-counter-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-counter-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-counter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), rgba(26, 60, 110, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
}

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.testimonial-card {
    position: relative;
    background: #fff;
    padding: 3rem 2rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

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

/* ============================================================
   SOCIAL MEDIA EMBEDS PREMIUM
   ============================================================ */
.social-embed-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.social-embed-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.social-embed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #2C5282);
    color: #fff;
}

.social-embed-header i {
    font-size: 1.5rem;
}

.social-embed-header span {
    font-weight: 600;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.youtube-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.youtube-container:hover::before {
    opacity: 0.1;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-image {
    height: 200px;
    border-radius: 12px;
}

/* ============================================================
   INTERACTIVE ELEMENTS
   ============================================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(200, 168, 75, 0.4);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-rotate {
    transition: transform 0.4s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magnetic-btn span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.gradient-text-animated {
    color: var(--accent-color);
    background: linear-gradient(135deg, #c8a84b, #e5c96d, #c8a84b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(200, 168, 75, 0.3);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(26, 60, 110, 0.3);
    bottom: -150px;
    left: -100px;
}

.divider-wave {
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f8f9fa' d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.divider-angle {
    width: 100%;
    height: 80px;
    background: linear-gradient(to right bottom, transparent 49%, #f8f9fa 50%);
}

/* ============================================================
   ENHANCED FORM INPUTS
   ============================================================ */
.input-premium {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-premium input,
.input-premium textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.input-premium input:focus,
.input-premium textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.1);
}

.input-premium label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.25rem;
}

.input-premium input:focus + label,
.input-premium input:not(:placeholder-shown) + label,
.input-premium textarea:focus + label,
.input-premium textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================================
   CURSOR EFFECTS (Optional)
   ============================================================ */
.cursor-glow {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.custom-cursor.hover {
    transform: scale(2);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* ============================================================
   DARK MODE - ADDITIONAL OVERRIDES
   ============================================================ */
[data-theme="dark"] .top-bar {
    background: linear-gradient(90deg, #0a0f18 0%, #152238 100%);
}

[data-theme="dark"] .site-header {
    background: linear-gradient(135deg, #152238 0%, #0a0f18 100%);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(15, 20, 25, 0.98);
}

[data-theme="dark"] .hero-section,
[data-theme="dark"] .hero-mini {
    background: var(--gradient-hero);
}

[data-theme="dark"] .section-dark {
    background: linear-gradient(135deg, #0a0f18 0%, #152238 100%);
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #0a0f18 0%, #0d1419 100%);
}

@media (max-width: 767px) {
    [data-theme="dark"] .footer-about {
        background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
        border-color: rgba(255,255,255,0.09);
        box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    }
}

[data-theme="dark"] .nav-menu a {
    color: rgba(255,255,255,0.85);
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .dropdown-menu li a {
    color: rgba(255,255,255,0.85);
}

[data-theme="dark"] .dropdown-menu li a:hover {
    background: rgba(200,168,75,0.15);
    color: var(--accent-color);
}

[data-theme="dark"] .btn-user {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Navigation Highlight (Donation Link) */
.nav-highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(200, 168, 75, 0.3);
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.4);
}

.nav-highlight i {
    margin-right: 0.4rem;
    animation: pulse 1.5s infinite;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-inverse);
}

[data-theme="dark"] .divider-wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%231a1f2e' d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e5c96d 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .blob-1 {
    background: rgba(212, 184, 92, 0.2);
}

[data-theme="dark"] .blob-2 {
    background: rgba(59, 108, 181, 0.2);
}

[data-theme="dark"] .empty-state {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .breadcrumb a {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumb a:hover {
    color: var(--accent-color);
}

/* ============================================================
   DONATION SECTION STYLES
   ============================================================ */
.donation-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .donation-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.donation-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.donation-amount-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.donation-amount-btn:hover,
.donation-amount-btn.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1) 0%, rgba(200, 168, 75, 0.2) 100%);
    color: var(--accent-color);
}

.donation-amount-btn.active {
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.2);
}

.donation-custom-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.donation-custom-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.15);
}

.donation-type-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.donation-type-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.donation-type-btn.active {
    background: var(--bg-card);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.donation-impact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid #27ae60;
    margin: 1.5rem 0;
}

.donation-impact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-method i {
    font-size: 1.25rem;
}

.payment-method.visa i { color: #1a1f71; }
.payment-method.mastercard i { color: #eb001b; }
.payment-method.paypal i { color: #003087; }
.payment-method.mobile i { color: #ff6600; }

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient-hero);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 9998;
        padding: 2rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
    
    .mobile-toggle {
        display: flex !important;
        z-index: 9999;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Grid Adjustments */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .hero-section {
        min-height: 70vh;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-mini {
        padding: 4rem 0;
    }
    
    .hero-mini h1 {
        font-size: 2rem;
    }
    
    /* Sections */
    .section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Top Bar */
    .top-bar-left {
        display: none;
    }
    
    .top-bar-inner {
        justify-content: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Cards */
    .premium-card > div[style*="display:flex"] {
        flex-direction: column;
    }
    
    .premium-card > div > div[style*="min-width:120px"] {
        min-width: auto !important;
        flex-direction: row;
        padding: 1rem !important;
        gap: 0.5rem;
    }
    
    /* Donation */
    .donation-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blobs - reduce size */
    .blob-1,
    .blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1.25rem;
    }
    
    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .hero-mini h1 {
        font-size: 1.75rem;
    }
    
    /* Stats Grid */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
        max-width: 280px;
    }
    
    /* Buttons */
    .btn-group,
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-premium,
    .btn-3d,
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    /* Footer — mobile : version compacte (grilles denses, moins de hauteur) */
    .footer-top {
        padding: 1.75rem max(0.65rem, env(safe-area-inset-left, 0px)) 1.35rem max(0.65rem, env(safe-area-inset-right, 0px));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        text-align: center;
    }

    .footer-about {
        padding: 1rem 0.85rem 1.1rem;
        border-radius: 16px;
        background: linear-gradient(165deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
        margin-bottom: 0.65rem;
    }

    .footer-logo img {
        height: 42px;
    }

    .footer-logo span {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .footer-about p {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.75rem;
    }

    .footer-social-wrap {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-social-heading {
        text-align: center;
        margin-bottom: 0.45rem;
        letter-spacing: 0.16em;
        font-size: 0.65rem;
    }

    /* Icônes réseaux : 4 colonnes serrées */
    .footer-social {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
        max-width: 100%;
    }

    .footer-social .social-link {
        width: 100%;
        min-height: 42px;
        min-width: 0;
        border-radius: 10px;
        font-size: 1rem;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-col h4 {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
        font-size: 0.92rem;
    }

    /* Navigation & Ressources : 3 colonnes (plus dense que l’ancien 2 colonnes) */
    .footer-col:not(.footer-about) .footer-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.28rem 0.4rem;
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .footer-col:not(.footer-about) .footer-links li {
        margin-bottom: 0;
    }

    .footer-col:not(.footer-about) .footer-links a {
        padding: 0.3rem 0.2rem;
        justify-content: center;
        font-size: 0.76rem;
        line-height: 1.2;
        text-align: center;
        border-radius: 6px;
    }

    .footer-col:not(.footer-about) .footer-links a:hover {
        padding-left: 0.2rem;
    }

    .footer-contact .contact-info {
        max-width: 100%;
        margin: 0 auto;
        text-align: left;
        font-size: 0.8rem;
    }

    .footer-contact .contact-info li {
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        gap: 0.45rem;
    }

    .footer-contact .contact-info i {
        margin-top: 0.15rem;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 0.65rem;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem 0.75rem;
    }

    .footer-bottom-links a {
        font-size: 0.74rem;
    }

    .footer-bottom {
        padding: 0.85rem 0;
        flex-direction: column;
        gap: 0.65rem;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.72rem;
        line-height: 1.4;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Cards */
    .public-card,
    .premium-card,
    .glass-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .leader-card {
        padding: 1.5rem;
    }
    
    .leader-card-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Quick Links */
    .quick-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .quick-link-item {
        padding: 1rem !important;
    }
    
    .quick-link-item i {
        font-size: 1.5rem !important;
    }
    
    /* Donation */
    .donation-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-card {
        padding: 1.5rem;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    /* Hide decorative elements */
    .blob {
        display: none;
    }
    
    /* Reduce animations on mobile for performance */
    .animate-float {
        animation: none;
    }
}

/* Mobile Small (< 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    body {
        font-size: 0.95rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Hero */
    .hero-section {
        min-height: 55vh;
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.65rem;
    }
    
    .hero-mini {
        padding: 3rem 0;
    }
    
    .hero-mini h1 {
        font-size: 1.5rem;
    }
    
    /* Header */
    .site-logo img {
        height: 40px;
    }
    
    .site-logo-text h1 {
        font-size: 1rem;
    }
    
    .site-logo-text span {
        font-size: 0.7rem;
    }
    
    /* Quick Links */
    .quick-links {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Buttons */
    .btn, .btn-sm, .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-premium,
    .btn-3d {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .premium-card,
    .glass-card {
        border-radius: var(--radius-md);
    }
    
    /* Theme Toggle */
    .theme-toggle {
        width: 50px;
        height: 26px;
    }
    
    .theme-toggle::before {
        width: 20px;
        height: 20px;
    }
    
    [data-theme="dark"] .theme-toggle::before {
        transform: translateX(24px);
    }
    
    /* Donation */
    .donation-amount-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .donation-amount-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .donation-type-toggle {
        flex-direction: column;
    }
    
    /* Footer — très petits écrans : encore plus dense (4 colonnes liens, réseaux en 5 max) */
    .footer-top {
        padding: 1.5rem 0 1.15rem;
    }

    .footer-grid {
        gap: 1.15rem;
    }

    .footer-about {
        padding: 0.85rem 0.65rem 1rem;
        border-radius: 14px;
    }

    .footer-logo span {
        font-size: 1.1rem;
    }

    .footer-social-wrap {
        max-width: 100%;
    }

    .footer-social {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        max-width: 100%;
        gap: 0.35rem;
    }

    .footer-social .social-link {
        min-height: 40px;
        border-radius: 9px;
        font-size: 0.95rem;
    }

    .footer-col:not(.footer-about) .footer-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.22rem 0.3rem;
    }

    .footer-col:not(.footer-about) .footer-links a {
        font-size: 0.68rem;
        padding: 0.24rem 0.12rem;
        line-height: 1.15;
    }

    .footer-contact .contact-info {
        font-size: 0.76rem;
    }

    .footer-contact .contact-info li {
        margin-bottom: 0.4rem;
    }

    .footer-bottom {
        padding: 0.65rem 0;
    }

    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 0.68rem;
    }

    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
    }
}

/* Extra Small (< 400px) */
@media (max-width: 399px) {
    .container {
        padding: 0 0.75rem;
    }

    .footer-social {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .footer-col:not(.footer-about) .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.2rem 0.28rem;
    }

    .footer-col:not(.footer-about) .footer-links a {
        font-size: 0.65rem;
    }

    /* Bandeau légal : une ligne serrée plutôt qu’une colonne haute */
    .footer-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 0.65rem;
        row-gap: 0.4rem;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .quick-links {
        grid-template-columns: 1fr !important;
    }
    
    .donation-amount-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-glow:hover {
        transform: none;
    }
    
    .premium-card-shine {
        display: none;
    }
    
    .btn:hover,
    .btn-premium:hover,
    .btn-3d:hover {
        transform: none;
    }

    .site-footer .social-link {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Larger touch targets */
    .nav-menu a {
        padding: 1rem;
    }
    
    .btn, .btn-sm {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
    
    .nav-menu {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
}

/* Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ============================================================
   PREMIUM 2024 DESIGN ENHANCEMENTS
   Ultra-Modern Components & Effects
   ============================================================ */

/* ============================================================
   PREMIUM HEADER REDESIGN
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, rgba(26, 60, 110, 0.98) 0%, rgba(13, 31, 60, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.site-header.scrolled {
    background: rgba(13, 26, 45, 0.95);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(200, 168, 75, 0.1);
}

/* Premium Logo Animation */
.site-logo {
    position: relative;
    overflow: hidden;
}

.site-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(200, 168, 75, 0.1) 60deg,
        transparent 120deg
    );
    animation: logoRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-logo:hover::before {
    opacity: 1;
}

@keyframes logoRotate {
    100% { transform: rotate(360deg); }
}

/* Premium Navigation Pills */
.nav-menu > li > a {
    position: relative;
    overflow: hidden;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before {
    width: 100%;
}

/* Dropdown Premium Redesign */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-menu li a {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.dropdown-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu li a:hover::after {
    transform: scaleY(1);
}

[data-theme="dark"] .dropdown-menu {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dropdown-menu::before {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   PREMIUM BUTTONS 2024
   ============================================================ */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 15px rgba(26, 60, 110, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(26, 60, 110, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--primary-darker);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover {
    color: #fff;
}

.btn-outline:hover::after {
    transform: scaleX(1);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light::after {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline-light:hover {
    border-color: #fff;
    color: #fff;
}

/* Glow Button Effect */
.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(200, 168, 75, 0.2); }
}

/* ============================================================
   PREMIUM CARDS 2024
   ============================================================ */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(200, 168, 75, 0.2);
}

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

/* Card with Gradient Border */
.card-gradient-border {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    position: relative;
    padding: 2px;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientBorder 4s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-gradient-border:hover::before {
    opacity: 1;
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-gradient-border-inner {
    background: var(--bg-card);
    border-radius: calc(var(--radius-xl) - 2px);
    padding: 1.5rem;
    height: 100%;
}

/* Featured Card */
.card-featured {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.card-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

/* ============================================================
   ENHANCED SECTION STYLES
   ============================================================ */
.section {
    position: relative;
}

.section-gradient {
    background: var(--gradient-mesh);
    background-color: var(--bg-primary);
}

.section-pattern {
    position: relative;
}

.section-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(200, 168, 75, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(26, 60, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Title Premium */
.section-title-premium {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title-premium .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.15) 0%, rgba(200, 168, 75, 0.05) 100%);
    border: 1px solid rgba(200, 168, 75, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-title-premium h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.section-title-premium p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-title-premium::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    margin: 2rem auto 0;
}

/* ============================================================
   PREMIUM FOOTER REDESIGN
   ============================================================ */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-color) 20%, 
        var(--primary-light) 50%, 
        var(--accent-color) 80%, 
        transparent 100%
    );
}

.footer-top {
    position: relative;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(200, 168, 75, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Footer Logo Enhanced */
.footer-logo {
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 3px;
}

/* Footer Links Enhanced */
.footer-links a {
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    padding-left: 15px;
    color: var(--accent-color);
}

.footer-links a:hover::before {
    width: 10px;
}

/* ============================================================
   ENHANCED FORM ELEMENTS
   ============================================================ */
.form-modern {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-group-modern {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group-modern label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.25rem;
}

.form-group-modern textarea ~ label {
    top: 1.25rem;
    transform: none;
}

.form-group-modern input:focus ~ label,
.form-group-modern input:not(:placeholder-shown) ~ label,
.form-group-modern textarea:focus ~ label,
.form-group-modern textarea:not(:placeholder-shown) ~ label {
    top: 0;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--accent-color);
    background: var(--bg-card);
}

/* ============================================================
   ANIMATED COUNTERS
   ============================================================ */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.counter-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.counter-item:hover::before {
    transform: scaleX(1);
}

.counter-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.15) 0%, rgba(26, 60, 110, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-color);
}

.counter-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .counter-grid { grid-template-columns: 1fr; }
    .counter-item { padding: 1.5rem; }
    .counter-value { font-size: 2.5rem; }
}

/* ============================================================
   TESTIMONIAL CAROUSEL PREMIUM
   ============================================================ */
.testimonial-premium {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.testimonial-premium::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--accent-color);
    opacity: 0.15;
    line-height: 1;
}

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

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

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

.testimonial-author-details span {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item::after {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

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

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.gallery-caption span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================================
   TABS COMPONENT
   ============================================================ */
.tabs-modern {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tabs-header {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(200, 168, 75, 0.05);
}

.tab-btn.active {
    color: var(--accent-color);
    background: var(--bg-card);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 2rem;
}

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

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

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ACCORDION COMPONENT
   ============================================================ */
.accordion-modern {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

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

.accordion-header {
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(200, 168, 75, 0.05);
}

.accordion-header i {
    font-size: 0.75rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header {
    background: rgba(200, 168, 75, 0.08);
}

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

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 450px;
    animation: toastSlideIn 0.4s ease;
    border-left: 4px solid var(--accent-color);
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }
.toast.toast-info { border-left-color: #3b82f6; }

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.toast-success .toast-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.toast.toast-error .toast-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.toast.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.toast.toast-info .toast-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.toast-content {
    flex: 1;
}

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

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

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

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

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(26, 60, 110, 0.15) 0%, rgba(26, 60, 110, 0.1) 100%);
    color: var(--primary-color);
}

.badge-accent {
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.2) 0%, rgba(200, 168, 75, 0.1) 100%);
    color: var(--accent-dark);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* Badge with dot indicator */
.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
}

/* Live badge animation */
.badge-live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-live::before {
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================================
   PROGRESS INDICATORS
   ============================================================ */
.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Circular Progress */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.progress-circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.text-shadow-lg {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bg-mesh {
    background: var(--gradient-mesh);
    background-color: var(--bg-primary);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--accent-color)) border-box;
}

.shadow-accent {
    box-shadow: var(--shadow-accent);
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.glow-accent {
    box-shadow: 0 0 30px var(--accent-glow);
}

.glow-primary {
    box-shadow: 0 0 30px rgba(26, 60, 110, 0.3);
}

/* Aspect Ratios */
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-portrait { aspect-ratio: 3/4; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Inset */
.inset-0 { inset: 0; }

/* Flex Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Font Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Line Heights */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

/* Spacing */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Visibility */
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Transitions */
.transition { transition: var(--transition-normal); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }

/* Rounded */
.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================================
   UI/UX PRO MAX ENHANCEMENTS
   Based on ODPC Design System Guidelines
   ============================================================ */

/* === Skip Links for Accessibility === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-inverse);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* === Enhanced Focus States (WCAG AAA) === */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.3);
}

/* === Touch Target Size (44x44px minimum) === */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Reduced Motion Support === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide,
    .particle,
    .animate-pulse,
    .animate-float,
    .animate-spin {
        animation: none !important;
    }
}

/* === High Contrast Mode Support === */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-sm: none;
        --shadow-md: none;
        --shadow-lg: 0 0 0 2px #000000;
    }
    
    .btn, button {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid var(--primary-color);
    }
}

/* === Interactive States Enhancement === */
.interactive {
    cursor: pointer;
    transition: all 200ms ease;
}

.interactive:hover {
    transform: translateY(-2px);
}

.interactive:active {
    transform: translateY(0);
}

/* === Smooth Scroll Anchor Offset === */
html {
    scroll-padding-top: 100px;
}

[id] {
    scroll-margin-top: 100px;
}

/* === Loading States === */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    width: 100%;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.75em;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
}

/* === Tooltip Enhancement === */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: var(--primary-dark);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus::before,
[data-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
}

/* === Scroll Progress Indicator === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s ease;
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* === Improved Link Styles === */
.link-underline {
    text-decoration: none;
    position: relative;
}

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

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

/* === Icon Button === */
.icon-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.icon-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

.icon-btn.primary:hover {
    background: var(--primary-light);
}

/* === Divider with Text === */
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    max-width: 300px;
    margin: 0 auto;
}

/* === Pulse Animation for Notifications === */
.pulse-dot {
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(192, 57, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
    }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================================ */

/* Large screens */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
}

/* Medium screens */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
}

/* Tablet screens */
@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Page Hero responsive */
    .page-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    /* Cards responsive */
    .public-card {
        padding: 1.5rem;
    }
    
    .public-card-body {
        padding: 1.25rem;
    }
    
    /* Buttons responsive */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Header responsive - handled in layout */
    .public-header {
        padding: 0.75rem 0;
    }
    
    /* Footer responsive */
    .public-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* Page Hero mobile */
    .page-hero {
        padding: 5rem 0 2.5rem;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    /* Cards mobile */
    .public-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
    }
    
    /* Forms mobile */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Modal mobile */
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    /* Tabs mobile */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    /* Alert mobile */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Badge mobile */
    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Footer mobile 480px */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .footer-col:first-child {
        grid-column: span 3;
    }
    
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-links li a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    .footer-contact-item {
        font-size: 0.8rem;
    }
    
    .footer-social {
        gap: 0.5rem;
    }
    
    .footer-social .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .section-title h2 {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .public-card:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .public-card:active {
        transform: scale(0.99);
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .public-card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .page-hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .public-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .public-footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .mobile-menu {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* === Print Styles === */
@media print {
    .no-print,
    .skip-link,
    .back-to-top,
    .scroll-progress,
    nav,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
