@font-face {
    font-family: 'Geogrotesque Semibold';
    src: url('https://db.onlinewebfonts.com/t/49e8db2efcf373d70ae966bc6c06d64e.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Device & viewport: prevent horizontal scroll on small screens */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
    }
    section.challenge-section .challenge-image-wrapper::before {
        display: none !important;
    }
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey-50: #fafafa;
    --color-grey-100: #f5f5f5;
    --color-grey-200: #e5e5e5;
    --color-grey-300: #d4d4d4;
    --color-grey-400: #a3a3a3;
    --color-grey-500: #737373;
    --color-grey-600: #525252;
    --color-grey-700: #404040;
    --color-grey-800: #262626;
    --color-grey-900: #171717;
    --color-blue: #003366;
    --color-blue-dark: #002244;
    --color-blue-light: #e6f0f8;
    /* Lighter blue frame behind section images (visible as border) */
    --image-frame-color: #0d3255;
    
    /* Starry pattern for blue backgrounds - random white specs */
    --starry-pattern: 
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 34% 42%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 56% 28%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 78% 64%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 23% 76%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 89% 15%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 45% 58%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 67% 33%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 19% 51%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 81% 87%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 38% 24%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 92% 69%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 15% 83%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 54% 47%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 71% 12%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 29% 65%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 63% 91%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 47% 36%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 85% 54%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 26% 9%, rgba(255, 255, 255, 0.9), transparent);
    --starry-size: 300px 300px;
    
    /* CTA banner: very small white specs for starry sky (many random positions) */
    --cta-starry-pattern:
        radial-gradient(1px 1px at 7% 12%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 22% 8%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 38% 22%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 51% 5%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 67% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 83% 11%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 94% 28%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 11% 35%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 29% 48%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 45% 38%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 61% 52%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 76% 44%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 89% 58%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 4% 62%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 18% 75%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 35% 68%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 52% 82%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 69% 71%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 86% 88%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 14% 88%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 41% 95%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 58% 14%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 73% 92%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 2% 48%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 97% 65%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 25% 26%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 55% 61%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 33%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 9% 55%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 63% 78%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 31% 91%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 47% 17%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 92% 76%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 16% 42%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 71% 49%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 5% 72%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 44% 86%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 88% 42%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 19% 19%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 62% 29%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 37% 79%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 78% 63%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 3% 31%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 96% 19%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 53% 43%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 27% 64%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 74% 86%, rgba(255, 255, 255, 0.85), transparent);
    --cta-starry-size: 400px 400px;
    
    --font-primary: 'Roboto Slab', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-heading: 'Roboto Slab', serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========== Dark mode: white space→black, black text→white/grey only; blue/yellow/accents unchanged ========== */
/* Support both data-theme and .dark-mode class (class set by inline script + theme.js) */
[data-theme="dark"],
html.dark-mode {
    --color-black: #f0f0f0;
    --color-white: #0d0d0d;
    --color-grey-50: #1a1a1a;
    --color-grey-100: #262626;
    --color-grey-200: #333333;
    --color-grey-300: #404040;
    --color-grey-400: #525252;
    --color-grey-500: #737373;
    --color-grey-600: #a3a3a3;
    --color-grey-700: #d4d4d4;
    --color-grey-800: #e5e5e5;
    --color-grey-900: #f5f5f5;
    /* Keep blue and other accent colors unchanged */
    --color-blue: #003366;
    --color-blue-dark: #002244;
    --color-blue-light: #1a1a1a;
    --image-frame-color: #0d3255;
    /* Starry pattern: subtle light specs on dark (same positions, visible on blue) */
    --starry-pattern:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 34% 42%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 56% 28%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 78% 64%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 23% 76%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 89% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 45% 58%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 67% 33%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 19% 51%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 81% 87%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 38% 24%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 92% 69%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 15% 83%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 54% 47%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 71% 12%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 29% 65%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 63% 91%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 47% 36%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 85% 54%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 26% 9%, rgba(255, 255, 255, 0.6), transparent);
    --cta-starry-pattern:
        radial-gradient(1px 1px at 7% 12%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 22% 8%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 38% 22%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 51% 5%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 67% 18%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 83% 11%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 94% 28%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 11% 35%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 29% 48%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 45% 38%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 61% 52%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 76% 44%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 89% 58%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 4% 62%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 18% 75%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 35% 68%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 52% 82%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 69% 71%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 86% 88%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 14% 88%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 41% 95%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 58% 14%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 73% 92%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 2% 48%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 97% 65%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 25% 26%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 55% 61%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 80% 33%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 9% 55%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 63% 78%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 31% 91%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 47% 17%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 92% 76%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 16% 42%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 71% 49%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 5% 72%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 44% 86%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 88% 42%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 19% 19%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 62% 29%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 37% 79%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 78% 63%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 3% 31%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 96% 19%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 53% 43%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 27% 64%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 74% 86%, rgba(255, 255, 255, 0.55), transparent);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Dark mode: keep footer as dark bar for visual separation */
[data-theme="dark"] footer.main-footer,
[data-theme="dark"] footer,
html.dark-mode footer.main-footer,
html.dark-mode footer {
    background-color: #0d0d0d;
    color: var(--color-black);
    border-top: 1px solid var(--color-grey-200);
}
[data-theme="dark"] .footer-logo .logo-text,
[data-theme="dark"] .footer-title,
[data-theme="dark"] .footer-list a,
[data-theme="dark"] .contact-item a,
[data-theme="dark"] .social-link,
html.dark-mode .footer-logo .logo-text,
html.dark-mode .footer-title,
html.dark-mode .footer-list a,
html.dark-mode .contact-item a,
html.dark-mode .social-link {
    color: var(--color-grey-300) !important;
}
[data-theme="dark"] .footer-list a:hover,
[data-theme="dark"] .contact-item a:hover,
[data-theme="dark"] .social-link:hover,
html.dark-mode .footer-list a:hover,
html.dark-mode .contact-item a:hover,
html.dark-mode .social-link:hover {
    color: var(--color-black) !important;
}
[data-theme="dark"] .footer-description,
[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-item .icon,
html.dark-mode .footer-description,
html.dark-mode .footer-bottom p,
html.dark-mode .contact-item,
html.dark-mode .contact-item .icon {
    color: var(--color-grey-500) !important;
}

/* Dark mode: fill all page space (html, body, main) so margins and gaps are black */
[data-theme="dark"],
html.dark-mode {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] body,
[data-theme="dark"] main,
html.dark-mode body,
html.dark-mode main {
    background-color: #0d0d0d !important;
    min-height: 100%;
}
[data-theme="dark"] .main-header,
[data-theme="dark"] .navbar,
html.dark-mode .main-header,
html.dark-mode .navbar {
    background-color: #0d0d0d !important;
    border-bottom-color: var(--color-grey-200);
}
[data-theme="dark"] .navbar .nav-link,
[data-theme="dark"] .navbar .nav-menu-links .nav-link,
[data-theme="dark"] .navbar .dropdown-item,
[data-theme="dark"] .navbar .logo-text,
[data-theme="dark"] .navbar .user-name-nav,
[data-theme="dark"] .navbar .btn-nav-logout,
html.dark-mode .navbar .nav-link,
html.dark-mode .navbar .nav-menu-links .nav-link,
html.dark-mode .navbar .dropdown-item,
html.dark-mode .navbar .logo-text,
html.dark-mode .navbar .user-name-nav,
html.dark-mode .navbar .btn-nav-logout {
    color: #e5e5e5 !important;
}
[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .dropdown-item:hover,
html.dark-mode .navbar .nav-link:hover,
html.dark-mode .navbar .dropdown-item:hover {
    color: #ffffff !important;
}
[data-theme="dark"] .navbar .dropdown-menu,
html.dark-mode .navbar .dropdown-menu {
    background-color: #1a1a1a !important;
    border-color: var(--color-grey-200);
}
[data-theme="dark"] .mobile-menu-toggle span,
html.dark-mode .mobile-menu-toggle span {
    background-color: #e5e5e5 !important;
}
[data-theme="dark"] .navbar .btn-nav-contact,
html.dark-mode .navbar .btn-nav-contact {
    background-color: #262626 !important;
    color: #e5e5e5 !important;
    border-color: var(--color-grey-200);
}
[data-theme="dark"] .navbar .btn-nav-contact:hover,
html.dark-mode .navbar .btn-nav-contact:hover {
    background-color: #333 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .navbar .btn-nav-logout,
html.dark-mode .navbar .btn-nav-logout {
    background-color: transparent !important;
    color: #e5e5e5 !important;
    border-color: var(--color-grey-200);
}
[data-theme="dark"] .navbar .btn-nav-logout:hover,
html.dark-mode .navbar .btn-nav-logout:hover {
    background-color: #262626 !important;
    color: #ffffff !important;
}

/* ========== Proton-style dark mode: all sections, hero, cards, forms (every screen size) ========== */
[data-theme="dark"] .btn-nav-signup,
[data-theme="dark"] .btn-nav-login,
html.dark-mode .btn-nav-signup,
html.dark-mode .btn-nav-login {
    background-color: #262626 !important;
    color: #e5e5e5 !important;
    border-color: var(--color-grey-200);
}
[data-theme="dark"] .btn-nav-signup:hover,
[data-theme="dark"] .btn-nav-login:hover,
html.dark-mode .btn-nav-signup:hover,
html.dark-mode .btn-nav-login:hover {
    background-color: #333 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .nav-inbox-unread,
html.dark-mode .nav-inbox-unread {
    background: #dc2626 !important;
    color: #fff !important;
}
[data-theme="dark"] .theme-toggle-btn.theme-toggle-text,
html.dark-mode .theme-toggle-btn.theme-toggle-text {
    color: #e5e5e5 !important;
}
[data-theme="dark"] .theme-toggle-btn.theme-toggle-text:hover,
html.dark-mode .theme-toggle-btn.theme-toggle-text:hover {
    color: #ffffff !important;
    background: #262626 !important;
}

/* Hero & sections: black background, white/light text */
[data-theme="dark"] .hero,
html.dark-mode .hero {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%) !important;
}
[data-theme="dark"] .hero-section,
html.dark-mode .hero-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%) !important;
}
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-section .hero-content .hero-title,
html.dark-mode .hero-title,
html.dark-mode .hero-section .hero-content .hero-title {
    color: #f0f0f0 !important;
}
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-intro,
[data-theme="dark"] .hero-section .hero-content .hero-intro,
[data-theme="dark"] .hero-description,
[data-theme="dark"] .hero-trust-line,
html.dark-mode .hero-subtitle,
html.dark-mode .hero-intro,
html.dark-mode .hero-section .hero-content .hero-intro,
html.dark-mode .hero-description,
html.dark-mode .hero-trust-line {
    color: #d4d4d4 !important;
}
[data-theme="dark"] .hero-video-below .hero-trust-line,
html.dark-mode .hero-video-below .hero-trust-line {
    color: #d4d4d4 !important;
}
[data-theme="dark"] .hero-video,
html.dark-mode .hero-video {
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] section:not(.rotating-banner-section):not(.rotating-banner-secondary),
html.dark-mode section:not(.rotating-banner-section):not(.rotating-banner-secondary) {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] .solution-section,
[data-theme="dark"] .advantages-section,
html.dark-mode .solution-section,
html.dark-mode .advantages-section {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] .solution-section .section-title,
[data-theme="dark"] .advantages-section .section-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-label,
html.dark-mode .solution-section .section-title,
html.dark-mode .advantages-section .section-title,
html.dark-mode .section-title,
html.dark-mode .section-label {
    color: #f0f0f0 !important;
}
[data-theme="dark"] .triple-panel-col .section-title,
[data-theme="dark"] .triple-panel-col .section-label,
html.dark-mode .triple-panel-col .section-title,
html.dark-mode .triple-panel-col .section-label {
    color: #f0f0f0 !important;
}
[data-theme="dark"] .challenge-section,
[data-theme="dark"] .mission-section,
[data-theme="dark"] .disconnect-section,
html.dark-mode .challenge-section,
html.dark-mode .mission-section,
html.dark-mode .disconnect-section {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] .challenge-section .challenge-content,
[data-theme="dark"] .mission-section .mission-content,
[data-theme="dark"] .disconnect-section .disconnect-content,
html.dark-mode .challenge-section .challenge-content,
html.dark-mode .mission-section .mission-content,
html.dark-mode .disconnect-section .disconnect-content {
    color: #e5e5e5 !important;
}
[data-theme="dark"] .section-learn-more,
html.dark-mode .section-learn-more {
    color: #7eb8ff !important;
}
[data-theme="dark"] .section-learn-more:hover,
html.dark-mode .section-learn-more:hover {
    color: #93c5fd !important;
}
[data-theme="dark"] .cta-section,
html.dark-mode .cta-section {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] .contact-form .form-label,
[data-theme="dark"] .contact-form .form-input,
[data-theme="dark"] .contact-form .form-textarea,
[data-theme="dark"] .contact-form .form-select,
html.dark-mode .contact-form .form-label,
html.dark-mode .contact-form .form-input,
html.dark-mode .contact-form .form-textarea,
html.dark-mode .contact-form .form-select {
    color: #f0f0f0 !important;
    border-color: #404040 !important;
}
[data-theme="dark"] .contact-form .form-input,
[data-theme="dark"] .contact-form .form-textarea,
[data-theme="dark"] .contact-form .form-select,
html.dark-mode .contact-form .form-input,
html.dark-mode .contact-form .form-textarea,
html.dark-mode .contact-form .form-select {
    background-color: #262626 !important;
}
[data-theme="dark"] .contact-form .form-input::placeholder,
[data-theme="dark"] .contact-form .form-textarea::placeholder,
html.dark-mode .contact-form .form-input::placeholder,
html.dark-mode .contact-form .form-textarea::placeholder {
    color: #737373 !important;
}

/* Connect page: Proton-style black bg, white text (overrides inline vars) */
[data-theme="dark"] .connect-page,
html.dark-mode .connect-page {
    --connect-bg: #0d0d0d !important;
    --connect-card: #1a1a1a !important;
    --connect-border: #333 !important;
    --connect-text: #f0f0f0 !important;
    --connect-muted: #a3a3a3 !important;
    --connect-accent: #7eb8ff !important;
}
[data-theme="dark"] .connect-hero,
html.dark-mode .connect-hero {
    background: linear-gradient(180deg, #0d2137 0%, #0d0d0d 100%) !important;
}
[data-theme="dark"] .connect-guest-msg,
html.dark-mode .connect-guest-msg {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #e5e5e5 !important;
}
[data-theme="dark"] .connect-search,
html.dark-mode .connect-search {
    background: #262626 !important;
    border-color: #404040 !important;
    color: #f0f0f0 !important;
}
[data-theme="dark"] .connect-search::placeholder,
html.dark-mode .connect-search::placeholder {
    color: #737373 !important;
}
[data-theme="dark"] .connect-search-dropdown,
html.dark-mode .connect-search-dropdown {
    background: #1a1a1a !important;
    border-color: #333 !important;
}
[data-theme="dark"] .connect-search-dropdown-section,
html.dark-mode .connect-search-dropdown-section {
    border-bottom-color: #333 !important;
}
[data-theme="dark"] .connect-search-dropdown-title,
html.dark-mode .connect-search-dropdown-title {
    color: #a3a3a3 !important;
}

/* Inbox page: Proton-style black bg, white text */
[data-theme="dark"] .inbox-page,
html.dark-mode .inbox-page {
    --inbox-bg: #0d0d0d !important;
    --inbox-card: #1a1a1a !important;
    --inbox-border: #333 !important;
    --inbox-text: #f0f0f0 !important;
    --inbox-muted: #a3a3a3 !important;
    --inbox-accent: #7eb8ff !important;
    --inbox-self: #1a2d4d !important;
}
[data-theme="dark"] .inbox-hero,
html.dark-mode .inbox-hero {
    background: linear-gradient(180deg, #0d2137 0%, #0d0d0d 100%) !important;
}
[data-theme="dark"] .inbox-list-item:hover,
html.dark-mode .inbox-list-item:hover {
    background: #262626 !important;
}
[data-theme="dark"] .inbox-list-item.active,
html.dark-mode .inbox-list-item.active {
    background: #1a2d4d !important;
    border-left-color: #7eb8ff !important;
}
[data-theme="dark"] .inbox-msg.received,
html.dark-mode .inbox-msg.received {
    background: #333 !important;
    color: #f0f0f0 !important;
}
[data-theme="dark"] .inbox-compose input,
html.dark-mode .inbox-compose input {
    background: #262626 !important;
    border-color: #404040 !important;
    color: #f0f0f0 !important;
}

/* Dashboard and generic content areas */
[data-theme="dark"] .dashboard-page,
[data-theme="dark"] [class$="-page"],
html.dark-mode .dashboard-page,
html.dark-mode [class$="-page"] {
    background-color: #0d0d0d !important;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6 {
    color: #f0f0f0 !important;
}
[data-theme="dark"] p,
html.dark-mode p {
    color: #d4d4d4 !important;
}
[data-theme="dark"] a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.dropdown-item):not(.btn-nav-contact):not(.btn-nav-login):not(.btn-nav-signup):not(.btn-nav-logout),
html.dark-mode a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.dropdown-item):not(.btn-nav-contact):not(.btn-nav-login):not(.btn-nav-signup):not(.btn-nav-logout) {
    color: #7eb8ff !important;
}
[data-theme="dark"] .btn-primary,
html.dark-mode .btn-primary {
    background-color: var(--color-blue) !important;
    color: #fff !important;
}
[data-theme="dark"] .btn-secondary,
html.dark-mode .btn-secondary {
    background-color: transparent !important;
    color: #e5e5e5 !important;
    border-color: #525252 !important;
}
[data-theme="dark"] .btn-secondary:hover,
html.dark-mode .btn-secondary:hover {
    background-color: #262626 !important;
    color: #fff !important;
    border-color: #737373 !important;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-white);
    font-size: clamp(15px, 2vw, 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Profile page: extend the same soft grey behind the entire viewport (outside <main.profile-page> too) */
body.profile-body {
    background-color: #e5e7eb;
}

.scroll-progress {
    display: none;
}
main {
    min-height: 60vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

p {
    line-height: 1.8;
    color: var(--color-grey-700);
    font-weight: 500;
}

/* Navigation – sticky so header stays visible when scrolling */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
}

.navbar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-grey-200);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Ensure navigation links are always on top and clickable */
.navbar a,
.navbar .nav-link,
.navbar .btn-nav-contact {
    position: relative;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-inbox-wrap {
    position: relative;
}
.nav-inbox-unread {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    display: none;
}

/* Theme toggle (text only: "Dark mode" / "Light mode") */
.theme-toggle-btn.theme-toggle-text {
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-grey-700);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle-btn.theme-toggle-text:hover {
    color: var(--color-black);
    background: var(--color-grey-100);
}
.theme-toggle-btn.theme-toggle-text:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-black);
    transition: var(--transition);
    position: relative;
    z-index: 1002;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    color: var(--color-black);
    flex-shrink: 0;
}

.logo-image {
    height: clamp(24px, 5vw, 36px);
    width: auto;
    max-width: clamp(80px, 15vw, 120px);
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-black);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-grey-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-black);
}

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

/* Navigation Menu Links (left side - under logo) */
.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 0.25rem;
}

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

.nav-menu-links .nav-link {
    color: var(--color-grey-700) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    pointer-events: auto !important;
    z-index: 10 !important;
    user-select: none;
}

.nav-menu-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    transition: var(--transition);
}

.nav-menu-links .nav-link:hover {
    color: var(--color-black);
}

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

/* Dropdown Arrow */
.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: currentColor;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    max-width: 340px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

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

.dropdown-item {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--color-grey-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: var(--transition);
    border-left: 3px solid transparent;
    white-space: normal;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: var(--color-blue-light);
    color: var(--color-blue-dark);
    border-left-color: var(--color-blue);
}

.dropdown-item--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.85;
}
.dropdown-item--disabled:hover {
    background-color: transparent;
    color: var(--color-grey-700);
    border-left-color: transparent;
}
[data-theme="dark"] .dropdown-item--disabled,
html.dark-mode .dropdown-item--disabled { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .dropdown-item--disabled:hover,
html.dark-mode .dropdown-item--disabled:hover { background: transparent; color: rgba(255,255,255,0.7); }

/* User Menu (when logged in) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

/* Guest Menu (when not logged in) */
.guest-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.user-name-nav {
    color: var(--color-grey-700);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.btn-nav-logout {
    padding: 0.625rem 1.5rem;
    background-color: transparent;
    color: var(--color-grey-700);
    border: 1px solid var(--color-grey-300);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-nav-logout:hover {
    background-color: var(--color-grey-50);
    border-color: var(--color-grey-400);
    color: var(--color-black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-nav-signup,
.btn-nav-login,
.btn-nav-contact {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
}

.btn-nav-signup {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-nav-signup:hover {
    background-color: var(--color-grey-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 51, 102, 0.35);
}

.btn-nav-login {
    background-color: var(--color-blue);
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    background-position: 0 0, 50px 50px, 100px 100px, 150px 150px;
    color: var(--color-white);
    border: 1px solid var(--color-blue);
    position: relative;
    overflow: hidden;
}

.btn-nav-login:hover {
    background-color: var(--color-blue-dark);
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    border-color: var(--color-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4), 0 0 20px rgba(0, 51, 102, 0.5);
}

.btn-nav-contact {
    background-color: var(--color-white);
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    pointer-events: auto !important;
    z-index: 10 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    font-weight: 600;
    user-select: none;
}

.btn-nav-contact:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.35);
}

.btn-login,
.btn-signup {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-login {
    background-color: transparent;
    color: var(--color-grey-700);
    border: 1px solid var(--color-grey-300);
}

.btn-login:hover {
    background-color: var(--color-grey-50);
    border-color: var(--color-grey-400);
    color: var(--color-black);
}

.btn-signup {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-signup:hover {
    background-color: var(--color-grey-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-grey-50) 100%);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-grey-600);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-grey-700);
    font-weight: 700;
    line-height: 1.75;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    min-width: 160px;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: #001a33;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.btn-primary:hover {
    background-color: var(--color-grey-800);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 26, 51, 0.6);
}
.btn-primary:hover::after {
    opacity: 1;
}
.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 16px rgba(0, 26, 51, 0.5);
}
.btn-secondary:active {
    transform: translateY(-1px);
}

/* Rotating Banner Section */
.rotating-banner-section {
    background: linear-gradient(135deg, var(--color-black) 0%, #001122 50%, var(--color-black) 100%);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--color-blue);
    border-bottom: 3px solid var(--color-blue);
}

.rotating-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 51, 102, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.rotating-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.rotating-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.rotating-banner-prefix {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(0, 51, 102, 0.5);
    font-family: var(--font-primary);
}

.rotating-banner-text-wrapper {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rotating-banner-text {
    position: absolute;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
}

.rotating-banner-text.active {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-white);
}

.rotating-banner-text.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-blue);
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    box-shadow: 0 0 15px rgba(0, 51, 102, 0.8);
}
.rotating-banner-secondary {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(90deg, #0a0a0a 0%, #001a33 50%, #0a0a0a 100%);
    border-top: 1px solid rgba(0, 51, 102, 0.4);
    border-bottom: 1px solid rgba(0, 51, 102, 0.4);
}
.rotating-banner-secondary .rotating-banner-content {
    flex-direction: row;
    justify-content: center;
    gap: 0;
}
.rotating-banner-secondary .rotating-banner-text-wrapper {
    min-height: 80px;
}
.rotating-banner-secondary .rotating-banner-text {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    transform: translateX(60px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.rotating-banner-secondary .rotating-banner-text.active {
    opacity: 1;
    transform: translateX(0);
}
.rotating-banner-secondary .rotating-banner-text.active::after {
    display: none;
}
/* Side-scroll variant: no prefix, text slides in from right */
.rotating-banner-scroll-side .rotating-banner-text {
    transform: translateX(80px);
    opacity: 0;
}
.rotating-banner-scroll-side .rotating-banner-text.active {
    transform: translateX(0);
    opacity: 1;
}

/* Hero Section with Image Layout */
.hero-section {
    padding: var(--spacing-md) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%);
    min-height: min(78vh, 52rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left column: headline + intro + buttons – perfectly centered together */
.hero-section .hero-content {
    grid-column: 1;
    justify-self: center;
    text-align: center;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Right column: video on top, then buttons + trust line below, all centered */
.hero-video-wrapper {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
    max-width: 640px;
    gap: var(--spacing-lg);
}

.hero-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 51, 102, 0.15);
    background: var(--color-grey-900);
}

.hero-video-below {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: var(--spacing-lg);
}

.hero-actions-below-video {
    margin-top: 0;
}

.hero-video-below .hero-trust-line {
    margin-top: 0;
    margin-bottom: 0;
    /* Prepare for decorative underline below this text */
    display: inline-block;
    position: relative;
}

.hero-video:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* Content canvas: blur contained inside the panel only (does not bleed outside) */
.content-canvas {
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
}
.hero-section .hero-content.content-canvas {
    overflow: visible;
    z-index: 1;
}
.content-canvas-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.5);
}
.disconnect-content .content-canvas-blur {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-content {
    max-width: 700px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.hero-section .hero-content .hero-title,
.hero-section .hero-content .hero-intro,
.hero-section .hero-content .hero-trust-line {
    text-align: center;
    width: 100%;
}
.hero-section .hero-content .hero-intro {
    max-width: 100%;
    line-height: 1.6;
    margin-top: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--color-black);
    padding-bottom: 0.08em;
    position: relative;
    z-index: 2;
}

.hero-title .highlight {
    color: var(--color-blue);
}

/* Hero title: three lines stacked, center-aligned; keep each phrase on one line */
.hero-title .hero-title-line {
    display: block;
    white-space: nowrap;
    line-height: 1.28;
    padding-bottom: 0.04em;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-grey-600);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--color-grey-700);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
}

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

.hero-section .hero-actions {
    margin-top: var(--spacing-md);
}

.btn-hero {
    min-width: 160px;
}

/* Hero: Start Here = blue background; How Apprenticeships Work = black */
.hero-actions .btn-primary {
    background: var(--color-blue) !important;
    background-image: var(--starry-pattern) !important;
    background-size: var(--starry-size) !important;
    color: var(--color-white) !important;
    border: none !important;
}
.hero-actions .btn-primary:hover {
    background: var(--color-blue-dark) !important;
    background-image: var(--starry-pattern) !important;
    color: var(--color-white) !important;
}

.hero-actions .btn-secondary {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border: none !important;
    transition: transform 0.25s ease, box-shadow 0.35s ease;
}
.hero-actions .btn-secondary::before {
    display: none !important;
}
.hero-actions .btn-secondary:hover {
    background: var(--color-grey-800) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-trust-line {
    margin-top: var(--spacing-lg);
    font-size: 1rem;
    color: var(--color-blue);
    font-style: italic;
    font-weight: 700;
}

.hero-trust-line .hero-trust-emphasis {
    font-weight: 800;
    font-size: 1.1em;
}

/* Reuse the same modern underline used for the solution tagline under the hero trust line below the video */
.hero-video-below .hero-trust-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 0.75rem;
    background: var(--color-blue);
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

/* Hero and disconnect image areas: no blur; clean background distinct from mission/challenge frame style */
.hero-image-container,
.disconnect-image-wrapper {
    position: relative;
}

/* Blur layer removed – hidden so sharp image only; background comes from container */
.image-canvas-blur {
    display: none !important;
}

.hero-image-container .image-rotator,
.disconnect-image-wrapper .image-rotator {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-radius: 4px;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    align-self: center;
    flex-shrink: 0;
    transform: none;
}
.hero-image-container .image-rotator {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
}
.hero-image-container .rotating-image {
    object-fit: cover !important;
}
.hero-image-container .rotating-image,
.disconnect-image-wrapper .rotating-image {
    border-radius: 10px;
}

/* Hero/disconnect image boxes: thin dark border, darker fill, brought in on left/right */
.hero-image-container {
    width: 100%;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    min-height: 575px;
    max-height: 920px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(158deg, #001a33 0%, #002244 45%, #000c1a 100%);
    border: 0.5px solid rgba(0, 12, 26, 0.95);
    padding: 0.2in 0.95in 0.95in 0.2in;
}
.hero-image-container::before {
    display: none;
}
/* Hero only: blue box behind image; sharp corners; image much closer to top-left (more blue on right/bottom) */
.hero-image-container .image-rotator {
    position: absolute !important;
    inset: 0.2in 0.95in 0.95in 0.2in !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch !important;
    border-radius: 0 !important;
}
.hero-image-container .rotating-image {
    border-radius: 0 !important;
}
/* Disconnect: no blue box – full rotating images, centered, not clipped */
.disconnect-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disconnect-image-wrapper::before {
    display: none;
}
.disconnect-image-wrapper .image-rotator {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3;
    min-height: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent !important;
}

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

/* Image Rotator Container */
.image-rotator {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-grey-100);
}

.rotating-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
    display: block;
}

.rotating-image.active {
    opacity: 1;
    z-index: 1;
}

/* Universal Image Responsive Rules – all viewports & devices */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Prevent images from ever causing horizontal scroll on any device */
main img,
.container img,
section img,
footer img {
    max-width: 100%;
    height: auto;
}
/* Nav logo: keep original size; override universal img so logo doesn’t grow */
.navbar .logo-image {
    height: clamp(24px, 5vw, 36px) !important;
    width: auto !important;
    max-width: clamp(80px, 15vw, 120px) !important;
    object-fit: contain;
}
/* Footer and profile images stay constrained */
.footer-logo-img,
.profile-page .profile-avatar img,
.profile-page .profile-cover img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ensure all images are responsive */
.challenge-image-wrapper img:not(.challenge-image) {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Mission and disconnect: rotating images only; section frame images have own rules below */
.mission-image-wrapper img:not(.mission-image):not(.rotating-image),
.disconnect-image-wrapper img:not(.rotating-image) {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Rotating images have special handling */
.rotating-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Mission Section */
.mission-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%);
    border-top: 2px solid var(--color-blue);
}

.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    justify-items: center; /* center image in its column */
}

/* Mission: no border – full image, centered and sized correctly */
.mission-image-wrapper {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    border-radius: 0;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
}
section.mission-section .mission-image-wrapper::before {
    display: none !important;
}

.mission-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 0;
}

.mission-lead {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-grey-600);
    margin-top: -0.25rem;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Disconnect rotator – full images, centered; no background so no dark block */
.disconnect-image-wrapper .image-rotator {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: transparent !important;
}

.disconnect-image-wrapper .rotating-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
    display: block;
}

.disconnect-image-wrapper .rotating-image.active {
    opacity: 1;
    z-index: 1;
}

.mission-content {
    max-width: 600px;
}

.mission-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 600;
}
.mission-text .body-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
}

.lead-text {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-black);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.01em;
}

.body-text {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--color-grey-700);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.body-text.emphasis {
    font-weight: 600;
    color: var(--color-black);
    font-size: 1.1875rem;
}

/* Single paragraph per section, no extra spacing; Learn more link */
.section-single-p {
    margin-bottom: 0;
}
.section-learn-more {
    display: inline-block;
    margin-top: 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-blue);
    text-decoration: none;
    border-bottom: 2px solid var(--color-blue);
    padding-bottom: 2px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, letter-spacing 0.2s ease, text-shadow 0.2s ease, filter 0.2s ease;
}
.section-learn-more:hover {
    color: var(--color-blue-dark);
    border-bottom-color: var(--color-blue-dark);
    letter-spacing: 0.06em;
    transform: translateX(2px);
    text-shadow: 0 0 0.5px var(--color-blue-dark), 0 1px 2px rgba(0, 34, 68, 0.15);
    filter: contrast(1.08);
}
.section-learn-more:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* Challenge Section */
.challenge-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%);
    border-top: 2px solid var(--color-blue);
}

.challenge-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Challenge: no border – full image, centered (user image has frame in PowerPoint) */
.challenge-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 0;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
}
section.challenge-section .challenge-image-wrapper::before {
    display: none !important;
}

.challenge-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 0;
}

.challenge-content {
    max-width: 600px;
    order: 1;
}

.challenge-image-wrapper {
    order: 2;
}

.challenge-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-grey-700);
    font-weight: 600;
}
.challenge-text .body-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
}

/* Disconnect Section – same padding/background as mission and challenge */
.disconnect-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%);
    border-top: 2px solid var(--color-blue);
}

/* Disconnect Section – same layout and formatting as Mission (Who we're for).
   Use section.disconnect-section so these win over earlier .disconnect-image-wrapper rules. */
section.disconnect-section .disconnect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    justify-items: stretch;
}

section.disconnect-section .disconnect-content {
    grid-column: 2;
    max-width: 600px;
    justify-self: start;  /* text starts at left of its column – directly right of image */
}

section.disconnect-section .disconnect-image-wrapper {
    grid-column: 1;
    width: 100%;
    max-width: 640px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: end;  /* image sits at right of its column – directly left of text */
    border-radius: 0;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
}
section.disconnect-section .disconnect-image-wrapper::before {
    display: none !important;
}
section.disconnect-section .disconnect-image-wrapper .image-rotator {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3;
    min-height: 0;
    flex-shrink: 0;
    background: transparent !important;
    border: none;
    box-shadow: none;
}
section.disconnect-section .container {
    position: relative;
    z-index: 1;
}

.disconnect-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 600;
}
.disconnect-text .body-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
}

.disconnect-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Solution Section */
.solution-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%);
    border-top: 2px solid var(--color-blue);
    border-bottom: 2px solid var(--color-blue);
}

.solution-lead {
    text-align: center;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-grey-700);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.solution-step-num {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    background: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.solution-card {
    background-color: var(--color-white);
    padding: var(--spacing-2xl);
    border-radius: 12px;
    border: 2px solid var(--color-blue);
    border-left: 5px solid var(--color-blue-dark);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

.solution-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 12px 24px -8px rgba(0, 51, 102, 0.25), 0 0 24px rgba(0, 51, 102, 0.15);
    transform: translateY(-4px);
    border-width: 2px;
}

.solution-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white) !important;
    background: var(--color-blue) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.solution-icon svg {
    width: 100%;
    fill: var(--color-white) !important;
    stroke: var(--color-white) !important;
    color: var(--color-white) !important;
}

.solution-icon svg path,
.solution-icon svg circle,
.solution-icon svg polyline,
.solution-icon svg rect,
.solution-icon svg line {
    stroke: var(--color-white) !important;
    fill: var(--color-white) !important;
}

.solution-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
}

.solution-section .section-title {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
}

.solution-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-grey-700);
}

.solution-tagline-wrap {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.solution-tagline {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    line-height: 1.5;
    display: inline-block;
    position: relative;
}

/* Modern geometric line under tagline: blue, sharp angled ends, sentence width */
.solution-tagline::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 0.75rem;
    background: var(--color-blue);
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

/* Advantages Section */
.advantages-section .section-title {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
}

.advantages-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-light) 100%) !important;
    border-top: 2px solid var(--color-blue) !important;
    border-bottom: 2px solid var(--color-blue) !important;
    position: relative;
}

.advantages-section::after {
    display: none;
}

/* Triple panel: Differentiation | Who This Is For | Outcome Vision */
.triple-panel {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: stretch;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.triple-panel-col {
    padding: 0 var(--spacing-2xl);
}

.triple-panel-col .section-label {
    margin-bottom: var(--spacing-sm);
}

.triple-panel-col .section-title {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.35;
}

/* Full-height vertical lines (same size/shape as middle column bracket): left edge of left column, right edge of right column */
.triple-panel-left,
.triple-panel-right {
    position: relative;
}

.triple-panel-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 51, 102, 0.25) 15%,
        rgba(0, 51, 102, 0.5) 50%,
        rgba(0, 51, 102, 0.25) 85%,
        transparent 100%);
}

.triple-panel-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 51, 102, 0.25) 15%,
        rgba(0, 51, 102, 0.5) 50%,
        rgba(0, 51, 102, 0.25) 85%,
        transparent 100%);
}

.triple-panel-text {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-grey-700);
    margin: 0;
}

.triple-panel-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 51, 102, 0.2) 8%, rgba(0, 51, 102, 0.35) 50%, rgba(0, 51, 102, 0.2) 92%, transparent 100%);
    align-self: stretch;
    min-height: 180px;
}

.triple-panel-center .who-list {
    margin-top: 0;
    max-width: 100%;
}

.who-list {
    list-style: none;
    margin: var(--spacing-2xl) auto 0;
    padding: 0;
    max-width: 520px;
    text-align: left;
}

.who-list li {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-grey-800);
    padding: var(--spacing-md) 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 51, 102, 0.12);
}

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

.who-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1em;
    width: 6px;
    height: 6px;
    background: var(--color-blue);
    border-radius: 50%;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
}

.advantage-item {
    padding: 0;
    transition: var(--transition);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-white) !important;
    background: var(--color-blue) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-white) !important;
    stroke: var(--color-white) !important;
    color: var(--color-white) !important;
}

.advantage-icon svg path,
.advantage-icon svg circle,
.advantage-icon svg polyline,
.advantage-icon svg rect,
.advantage-icon svg line {
    stroke: var(--color-white) !important;
    fill: var(--color-white) !important;
}

.advantage-title {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
}

.advantage-description {
    font-family: 'Geogrotesque Semibold', var(--font-primary);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-grey-700);
}

/* CTA Section - black to blue gradient */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-black) 0%, #001122 35%, #002244 70%, var(--color-black) 100%) !important;
    color: var(--color-white) !important;
    border-top: 3px solid var(--color-blue);
    border-bottom: 3px solid var(--color-blue);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 51, 102, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--cta-starry-pattern);
    background-size: var(--cta-starry-size);
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

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

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 51, 102, 0.4);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    min-width: 180px;
}

/* CTA Section Button Overrides for starry night background */
.cta-section .btn-primary {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 2px solid var(--color-white) !important;
}

.cta-section .btn-primary:hover {
    background-color: var(--color-grey-100) !important;
    border-color: var(--color-white) !important;
    color: var(--color-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.4), 0 0 48px rgba(0, 51, 102, 0.5);
}

.cta-section .btn-secondary {
    background-color: transparent !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-white) !important;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35), 0 0 48px rgba(0, 51, 102, 0.4);
}

.cta-section .btn-secondary::before {
    display: none;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-grey-50) 100%);
    min-height: 80vh;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-grey-200);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--color-blue-light);
}

.contact-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-grey-700);
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.contact-form .form-input,
.contact-form .form-textarea,
.contact-form .form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-grey-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background-color: var(--color-white);
    color: var(--color-black);
}
.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
    color: var(--color-grey-500);
}
.contact-form .form-select {
    color: var(--color-black);
}
.contact-form .form-select option {
    color: var(--color-black);
    background-color: var(--color-white);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
.contact-form .form-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px var(--color-blue-light);
}

/* Legal pages (Privacy, Terms) */
.legal-section .legal-updated {
    color: var(--color-grey-500);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xl);
}
.legal-content a {
    color: var(--color-blue);
    text-decoration: underline;
}
.legal-content a:hover {
    text-decoration: none;
}

/* Support hub cards */
.support-card:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
}

/* How It Works page: see /how-it-works.css */

/* ========== How Apprenticeships Work page ========== */
.haw-page {
    --haw-accent-gold: #c9a227;
    --haw-accent-gold-light: #f5ecd2;
    --haw-accent-teal: #0d9488;
    --haw-accent-teal-light: #ccfbf1;
}

.haw-hero {
    position: relative;
    padding: var(--spacing-3xl) 2rem;
    background: linear-gradient(165deg, #002244 0%, #003366 45%, #0d3255 100%);
    background-size: 100% 100%;
    overflow: hidden;
}

.haw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    opacity: 0.5;
    pointer-events: none;
}

.haw-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.haw-hero-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--haw-accent-gold-light);
    margin-bottom: var(--spacing-sm);
    padding: 0.4rem 0.9rem;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 6px;
}

.haw-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.haw-hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.haw-hero-line {
    width: 120px;
    height: 4px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--haw-accent-gold), transparent);
    border-radius: 2px;
}

.haw-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
}

.haw-hero-shape--1 {
    width: 280px;
    height: 280px;
    background: var(--haw-accent-teal);
    top: -80px;
    right: -60px;
}

.haw-hero-shape--2 {
    width: 160px;
    height: 160px;
    background: var(--haw-accent-gold);
    bottom: -40px;
    left: 10%;
}

.haw-hero-shape--3 {
    width: 80px;
    height: 80px;
    background: var(--color-blue-light);
    top: 50%;
    left: -20px;
}

.haw-cards-section {
    padding: var(--spacing-3xl) 2rem;
    background: linear-gradient(180deg, var(--color-grey-50) 0%, var(--color-white) 20%, var(--color-white) 100%);
}

.haw-cards-container {
    max-width: 1100px;
    margin: 0 auto;
}

.haw-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.haw-card {
    position: relative;
    min-height: 220px;
}

.haw-card-inner {
    position: relative;
    height: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-white);
    border-radius: 16px;
    border: 2px solid var(--color-grey-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.haw-card:hover .haw-card-inner {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.haw-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

.haw-card-accent--blue { background: var(--color-blue); }
.haw-card-accent--teal { background: var(--haw-accent-teal); }
.haw-card-accent--gold { background: var(--haw-accent-gold); }
.haw-card-accent--navy { background: var(--color-blue-dark); }

.haw-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    padding-right: 48px;
}

.haw-card-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-grey-700);
    margin: 0;
}

.haw-card-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    color: var(--color-grey-300);
}

.haw-card-icon svg {
    width: 100%;
    height: 100%;
}

.haw-card--1 .haw-card-icon { color: rgba(0, 51, 102, 0.4); }
.haw-card--2 .haw-card-icon { color: rgba(13, 148, 136, 0.45); }
.haw-card--3 .haw-card-icon { color: rgba(201, 162, 39, 0.5); }
.haw-card--4 .haw-card-icon { color: rgba(0, 34, 68, 0.5); }

.haw-cta-section {
    position: relative;
    padding: var(--spacing-2xl) 2rem;
    overflow: hidden;
}

.haw-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, rgba(13, 148, 136, 0.08) 50%, var(--haw-accent-gold-light) 100%);
    opacity: 0.9;
}

.haw-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.haw-cta-box {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--color-white);
    border-radius: 20px;
    border: 2px solid var(--color-grey-200);
    box-shadow: var(--shadow-md);
}

.haw-cta-text {
    font-size: 1.2rem;
    color: var(--color-grey-800);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.haw-cta-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--color-blue);
    color: var(--color-white) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid var(--color-blue);
}

.haw-cta-btn:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .haw-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .haw-hero {
        padding: var(--spacing-2xl) 1.25rem;
    }
    .haw-hero-shape--1 { width: 180px; height: 180px; top: -60px; right: -40px; }
    .haw-hero-shape--2 { width: 100px; height: 100px; }
    .haw-cards-section {
        padding: var(--spacing-2xl) 1rem;
    }
    .haw-card-inner {
        padding: var(--spacing-lg);
    }
    .haw-cta-box {
        padding: var(--spacing-xl);
    }
}

/* ========== Shared content page layout (hero + cards + CTA) ========== */
/* Body text on breadcrumb pages uses homepage font (Roboto Slab + Inter); headers/titles unchanged */
.pg-page p,
.pg-page .pg-hero-label,
.pg-page .pg-hero-tagline,
.pg-page .pg-card-desc,
.pg-page .pg-cta-text,
.pg-page .contact-description,
.pg-page .form-label,
.pg-page label,
.pg-page .support-card-desc,
.hiw-page p,
.hiw-page .hiw-hero-label,
.hiw-page .hiw-hero-tagline,
.hiw-page .hiw-hero-intro,
.hiw-page .hiw-card-desc,
.hiw-page .hiw-cta-heading,
.haw-page p,
.haw-page .haw-hero-label,
.haw-page .haw-hero-tagline,
.haw-page .haw-card-desc,
.haw-page .haw-cta-text {
    font-family: var(--font-primary);
}

.pg-page {
    --pg-accent-gold: #c9a227;
    --pg-accent-gold-light: #f5ecd2;
    --pg-accent-teal: #0d9488;
    --pg-accent-teal-light: #ccfbf1;
}

.pg-hero {
    position: relative;
    padding: var(--spacing-3xl) 2rem;
    background: linear-gradient(165deg, #002244 0%, #003366 45%, #0d3255 100%);
    background-size: 100% 100%;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--starry-pattern);
    background-size: var(--starry-size);
    opacity: 0.5;
    pointer-events: none;
}

.pg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pg-hero-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pg-accent-gold-light);
    margin-bottom: var(--spacing-sm);
    padding: 0.4rem 0.9rem;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 6px;
}

.pg-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pg-hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.pg-hero-line {
    width: 120px;
    height: 4px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--pg-accent-gold), transparent);
    border-radius: 2px;
}

.pg-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
}

.pg-hero-shape--1 {
    width: 280px;
    height: 280px;
    background: var(--pg-accent-teal);
    top: -80px;
    right: -60px;
}

.pg-hero-shape--2 {
    width: 160px;
    height: 160px;
    background: var(--pg-accent-gold);
    bottom: -40px;
    left: 10%;
}

.pg-hero-shape--3 {
    width: 80px;
    height: 80px;
    background: var(--color-blue-light);
    top: 50%;
    left: -20px;
}

.pg-cards-section {
    padding: var(--spacing-3xl) 2rem;
    background: linear-gradient(180deg, var(--color-grey-50) 0%, var(--color-white) 25%, var(--color-white) 100%);
}

.pg-cards-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pg-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.pg-card {
    position: relative;
    min-height: 220px;
}

.pg-card-inner {
    position: relative;
    height: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-white);
    border-radius: 16px;
    border: 2px solid var(--color-grey-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.pg-card:hover .pg-card-inner {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pg-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

.pg-card-accent--blue { background: var(--color-blue); }
.pg-card-accent--teal { background: var(--pg-accent-teal); }
.pg-card-accent--gold { background: var(--pg-accent-gold); }
.pg-card-accent--navy { background: var(--color-blue-dark); }

.pg-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    padding-right: 48px;
}

.pg-card-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-grey-700);
    margin: 0;
}

.pg-card-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    color: var(--color-grey-300);
}

.pg-card-icon svg {
    width: 100%;
    height: 100%;
}

.pg-card--1 .pg-card-icon { color: rgba(0, 51, 102, 0.4); }
.pg-card--2 .pg-card-icon { color: rgba(13, 148, 136, 0.45); }
.pg-card--3 .pg-card-icon { color: rgba(201, 162, 39, 0.5); }
.pg-card--4 .pg-card-icon { color: rgba(0, 34, 68, 0.5); }

.pg-cta-section {
    position: relative;
    padding: var(--spacing-2xl) 2rem;
    overflow: hidden;
}

.pg-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, rgba(13, 148, 136, 0.08) 50%, var(--pg-accent-gold-light) 100%);
    opacity: 0.9;
}

.pg-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.pg-cta-box {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--color-white);
    border-radius: 20px;
    border: 2px solid var(--color-grey-200);
    box-shadow: var(--shadow-md);
}

.pg-cta-text {
    font-size: 1.2rem;
    color: var(--color-grey-800);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.pg-cta-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--color-blue);
    color: var(--color-white) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid var(--color-blue);
}

.pg-cta-btn:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .pg-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pg-hero {
        padding: var(--spacing-2xl) 1.25rem;
    }
    .pg-hero-shape--1 { width: 180px; height: 180px; top: -60px; right: -40px; }
    .pg-hero-shape--2 { width: 100px; height: 100px; }
    .pg-cards-section {
        padding: var(--spacing-2xl) 1rem;
    }
    .pg-card-inner {
        padding: var(--spacing-lg);
    }
    .pg-cta-box {
        padding: var(--spacing-xl);
    }
}

/* ========== Payment page (Plans & Payment) ========== */
.pay-page .pg-hero-tagline {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.pay-section {
    padding: var(--spacing-3xl) 2rem;
}

.pay-section--light {
    background: linear-gradient(180deg, var(--color-grey-50, #f8fafc) 0%, #fff 30%, #fff 100%);
}

.pay-section--dark {
    background: linear-gradient(165deg, #001a33 0%, #002244 50%, #0d2438 100%);
    color: #fff;
}

.pay-container {
    max-width: 900px;
    margin: 0 auto;
}

.pay-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--color-grey-900, #0f172a);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.pay-section-title--light {
    color: #fff;
}

.pay-section-lead {
    font-size: 1.05rem;
    color: var(--color-grey-600, #475569);
    text-align: center;
    margin: 0 0 2rem 0;
}

.pay-section-lead--light {
    color: rgba(255, 255, 255, 0.85);
}

.pay-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: pay-step;
}

.pay-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-grey-200, #e2e8f0);
    counter-increment: pay-step;
}

.pay-step:last-child {
    border-bottom: none;
}

.pay-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #001a33 0%, #002244 100%);
    color: #00ff88;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 26, 51, 0.25);
}

.pay-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-grey-900, #0f172a);
    margin: 0 0 0.35rem 0;
}

.pay-step-desc {
    font-size: 0.9875rem;
    line-height: 1.6;
    color: var(--color-grey-600, #475569);
    margin: 0;
}

.pay-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .pay-trust-grid {
        grid-template-columns: 1fr;
    }
}

.pay-trust-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pay-trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: #00ff88;
}

.pay-trust-icon svg {
    width: 100%;
    height: 100%;
}

.pay-trust-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem 0;
}

.pay-trust-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.pay-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .pay-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.pay-plan {
    height: 100%;
}

.pay-plan-inner {
    height: 100%;
    background: #fff;
    border: 2px solid var(--color-grey-200, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pay-plan:hover .pay-plan-inner {
    border-color: var(--color-blue, #2563eb);
    box-shadow: 0 12px 32px rgba(0, 51, 102, 0.12);
}

.pay-plan--featured .pay-plan-inner {
    border-color: #001a33;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 28px rgba(0, 26, 51, 0.1);
}

.pay-plan--featured:hover .pay-plan-inner {
    box-shadow: 0 12px 36px rgba(0, 26, 51, 0.15);
}

.pay-plan-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #001a33;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.pay-plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-grey-900, #0f172a);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.pay-plan-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-grey-600, #475569);
    margin: 0 0 1rem 0;
}

.pay-plan-price {
    margin-bottom: 1rem;
}

.pay-plan-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #001a33;
    font-variant-numeric: tabular-nums;
}

.pay-plan-period {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-grey-500, #64748b);
}

.pay-plan-was {
    display: block;
    font-size: 0.8rem;
    color: var(--color-grey-500, #64748b);
    text-decoration: line-through;
    margin-top: 0.2rem;
}

.pay-plan-cta--muted {
    background: var(--color-grey-200, #e5e7eb) !important;
    color: var(--color-grey-600, #4b5563) !important;
    border: none;
    cursor: default;
}

.pay-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.pay-plan-features li {
    font-size: 0.9rem;
    color: var(--color-grey-700, #334155);
    padding: 0.35rem 0 0 1.5rem;
    position: relative;
    line-height: 1.45;
}

.pay-plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.pay-plan-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #001a33 0%, #002244 100%);
    border: 2px solid #001a33;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-plan-cta:hover {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 26, 51, 0.3);
}

.pay-plan-cta--secondary {
    background: #fff;
    color: #001a33 !important;
    border-color: #001a33;
}

.pay-plan-cta--secondary:hover {
    background: #f1f5f9;
    border-color: #001a33;
}

.pay-note {
    font-size: 0.85rem;
    color: var(--color-grey-500, #64748b);
    text-align: center;
    margin: 1.5rem 0 0 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.pay-cta-section {
    padding: var(--spacing-2xl) 2rem;
    background: linear-gradient(180deg, #fff 0%, var(--color-grey-50, #f8fafc) 100%);
}

.pay-cta-box {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-2xl);
    background: #fff;
    border-radius: 16px;
    border: 2px solid var(--color-grey-200, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 26, 51, 0.06);
}

.pay-cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-grey-900, #0f172a);
    margin: 0 0 0.5rem 0;
}

.pay-cta-text {
    font-size: 1rem;
    color: var(--color-grey-600, #475569);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.pay-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .pay-section {
        padding: var(--spacing-2xl) 1rem;
    }
    .pay-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pay-plan-inner {
        padding: 1.25rem 1rem;
    }
}

/* ========== Support page (premium layout) ========== */
.support-page .pg-hero {
    padding: var(--spacing-3xl) 2rem var(--spacing-2xl);
}

.support-hero-badge {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pg-accent-gold-light);
    background: rgba(201, 162, 39, 0.25);
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.support-quick-contact {
    background: linear-gradient(180deg, var(--color-grey-50) 0%, var(--color-white) 100%);
    padding: var(--spacing-lg) 2rem;
    border-bottom: 1px solid var(--color-grey-200);
}

.support-quick-contact-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-xl);
}

.support-quick-contact-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-grey-700);
}

.support-quick-contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
}

.support-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 2px solid var(--color-grey-200);
    border-radius: 10px;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.support-quick-link:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.support-quick-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-cards-section {
    padding-top: var(--spacing-2xl);
}

.support-cards-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-grey-600);
    margin: 0 0 var(--spacing-xl);
    font-weight: 500;
}

.support-page .support-cards-grid .pg-card-inner {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.support-card-btn {
    margin-top: var(--spacing-md);
    display: inline-block;
}

.support-cta-section {
    padding: var(--spacing-2xl) 2rem var(--spacing-3xl);
}

.support-cta-box {
    padding: var(--spacing-2xl) var(--spacing-3xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
    .support-quick-contact {
        padding: var(--spacing-md) 1rem;
    }
    .support-quick-contact-inner {
        flex-direction: column;
        text-align: center;
    }
    .support-quick-link {
        width: 100%;
        justify-content: center;
    }
    .support-hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.btn-contact-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    margin-top: var(--spacing-md);
}

.btn-contact-submit:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Intro */
.section-intro {
    margin-bottom: var(--spacing-xl);
}

.section-intro.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-blue-light);
    border-radius: 6px;
    border-left: 3px solid var(--color-blue);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--color-black);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Content Sections (for backward compatibility) */
.content-section {
    padding: var(--spacing-3xl) 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-grey-700);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Modal Styles - blue-black box */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(165deg, #0a1628 0%, #001a33 35%, #000814 100%);
    border: 2px solid rgba(0, 51, 102, 0.8);
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 51, 102, 0.3), 0 0 40px rgba(0, 51, 102, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close:hover {
    color: var(--color-white);
    background-color: rgba(0, 51, 102, 0.6);
}

.modal-header {
    text-align: center;
    padding: 1.25rem 2rem 1.75rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.5);
}

.modal-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-logo {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
}

.modal-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1;
}

.footer-logo-img {
    width: clamp(32px, 8vw, 48px);
    height: clamp(32px, 8vw, 48px);
    object-fit: contain;
    max-width: 100%;
    filter: none !important; /* Logo3 white on black - never invert */
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.modal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 0;
}
.auth-form {
    padding: 2rem 2rem 2.25rem;
}
.form-group {
    margin-bottom: 1.75rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}
.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 51, 102, 0.6);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background-color: rgba(0, 20, 40, 0.6);
    color: var(--color-white);
}
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.4);
}

.form-group input::placeholder {
    color: var(--color-grey-400);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-grey-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
    border: 2px solid rgba(0, 51, 102, 0.8);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.4);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.5), 0 0 20px rgba(0, 51, 102, 0.3);
}
.form-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}
.form-footer a {
    color: var(--color-blue-light);
    text-decoration: none;
    font-weight: 600;
}
.form-footer a:hover {
    text-decoration: underline;
}

.btn-submit:hover {
    background-color: var(--color-grey-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-content .form-footer {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}
.modal-content .form-footer a {
    color: var(--color-blue-light);
    text-decoration: none;
    font-weight: 600;
}
.modal-content .form-footer a:hover {
    text-decoration: underline;
}
.modal-content .form-message.success {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
}
.modal-content .form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}
.form-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-grey-600);
}
.form-footer a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
}
.form-footer a:hover {
    text-decoration: underline;
}

/* Form Message Styles */
.form-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-3xl) 2rem var(--spacing-lg);
    margin-top: var(--spacing-3xl);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-grey-800);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-logo .logo-symbol {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-size: 1.125rem;
}

.footer-description {
    color: var(--color-grey-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-grey-400);
    font-size: 0.9375rem;
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-grey-500);
}

.contact-item a {
    color: var(--color-grey-400);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-grey-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.social-link:hover {
    color: var(--color-white);
}

.social-link .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.footer-list li {
    margin: 0;
}

.footer-list a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-list a:hover {
    color: var(--color-grey-300);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
}

.footer-bottom p {
    color: var(--color-grey-500);
    font-size: 0.875rem;
}

/* Footer bottom – small logo (logo3, white on black) left of copyright */
.footer-bottom-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-bottom-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: none !important; /* Logo3 is already white on black - never invert */
}

/* Responsive Design - Rotating Banner */
@media (max-width: 768px) {
    .rotating-banner-section {
        padding: var(--spacing-2xl) 0;
    }

    .rotating-banner-text-wrapper {
        min-height: 100px;
    }

    .rotating-banner-prefix {
        font-size: 0.75rem;
        margin-bottom: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .rotating-banner-text-wrapper {
        min-height: 80px;
    }

    .rotating-banner-prefix {
        font-size: 0.6875rem;
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (768px) – cellular & small screens */
@media (max-width: 768px) {
    /* Base mobile fixes */
    html {
        font-size: 15px;
    }
    
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Section image wrappers: prevent horizontal overflow from decorative “poke out” */
    .disconnect-image-wrapper {
        overflow: visible !important;
    }
    .mission-image-wrapper .mission-image,
    .challenge-image-wrapper .challenge-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
    }
    section.challenge-section .challenge-image-wrapper::before {
        display: none !important;
    }
    /* Disconnect: rotating images fill wrapper without overflowing */
    .disconnect-image-wrapper .rotating-image {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* Container fixes */
    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Navigation - Mobile Menu */
    .nav-container {
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .logo-section {
        width: auto;
    }
    
    .logo-image {
        height: 32px !important;
        width: auto !important;
        max-width: 90px !important;
    }
    
    .logo-text {
        font-size: 1rem !important;
    }

    .nav-menu-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-grey-200);
        display: none;
        gap: var(--spacing-md);
        margin-top: 0;
        z-index: 1000;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-blue-light);
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.25rem 0;
        display: none;
        width: calc(100% - 1rem);
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .nav-menu-links.active {
        display: flex;
    }

    .nav-menu-links .nav-link {
        width: 100%;
        padding: var(--spacing-sm) 0;
    }

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

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        display: none;
    }

    .btn-login,
    .btn-signup,
    .btn-nav-signup,
    .btn-nav-login,
    .btn-nav-contact {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-lg) 0 !important;
        min-height: auto !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
        padding: 0 1rem !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        justify-self: center !important;
        text-align: center !important;
        order: 1;
    }
    
    .hero-video-wrapper {
        order: 2;
        max-width: 100%;
        justify-self: center;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .hero-title .hero-title-line {
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .hero-intro {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .hero-image-container {
        order: 2;
        min-height: 345px !important;
        max-height: 575px !important;
        width: 100% !important;
    }
    .hero-image-container::before {
        top: -8px;
        left: -5px;
        bottom: -6px;
        right: 32px;
    }
    
    .hero-image-container .image-rotator {
        min-height: 345px !important;
        max-height: 575px !important;
    }
    
    .hero-image-container .rotating-image {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .hero-image-container .rotating-image {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-hero {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Mission Section */
    .mission-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .mission-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
        padding: 0 1rem !important;
        align-items: start !important;
    }

    .mission-image-wrapper {
        order: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
    }
    section.mission-section .mission-image-wrapper::before {
        display: none !important;
    }
    section.mission-section .mission-image-wrapper .mission-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .mission-content {
        order: 2;
        max-width: 100% !important;
    }
    
    .mission-text,
    .lead-text {
        font-size: 1rem !important;
    }
    
    .body-text {
        font-size: 0.9375rem !important;
    }
    
    /* Challenge Section */
    .challenge-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .challenge-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
        padding: 0 1rem !important;
        align-items: start !important;
    }

    .challenge-image-wrapper {
        order: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
    }
    .challenge-image-wrapper::before,
    section.challenge-section .challenge-image-wrapper::before {
        display: none !important;
    }
    
    .challenge-image-wrapper .challenge-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .challenge-content {
        order: 2;
        max-width: 100% !important;
    }
    
    .challenge-text {
        font-size: 0.9375rem !important;
    }
    
    /* Disconnect Section – keep two columns (image left, text right) until 600px */
    .disconnect-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .disconnect-layout {
        padding: 0 1rem !important;
    }
    
    .disconnect-image-wrapper::before {
        display: none !important;
    }
    
    .disconnect-text {
        font-size: 0.9375rem !important;
    }
    
    /* Solution Section */
    .solution-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .solution-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
        margin-top: var(--spacing-xl) !important;
        padding: 0 1rem !important;
    }
    
    .solution-card {
        padding: var(--spacing-lg) !important;
    }
    
    .solution-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .solution-title {
        font-size: 1.125rem !important;
    }
    
    .solution-text {
        font-size: 0.9375rem !important;
    }
    
    /* Advantages Section / Triple Panel */
    .advantages-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .triple-panel {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .triple-panel-col {
        padding: var(--spacing-xl) 1rem;
        border-bottom: 1px solid rgba(0, 51, 102, 0.2);
    }
    
    .triple-panel-col:last-child {
        border-bottom: none;
    }
    
    .triple-panel-divider {
        display: none;
    }
    
    .triple-panel-col .section-title {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .triple-panel-text {
        font-size: 0.9375rem;
    }
    
    .who-list {
        margin-top: var(--spacing-xl);
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .who-list li {
        font-size: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
        margin-top: var(--spacing-xl) !important;
        padding: 0 1rem !important;
    }
    
    .advantage-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .advantage-title {
        font-size: 1rem !important;
    }
    
    .advantage-description {
        font-size: 0.875rem !important;
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) 0 !important;
    }
    
    .cta-content {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .cta-text {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-lg) !important;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-cta {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Content Sections */
    .content-section {
        padding: var(--spacing-xl) 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .section-text {
        font-size: 0.9375rem !important;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .section-intro {
        margin-bottom: var(--spacing-md) !important;
    }
    
    .section-intro.centered {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .section-label {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* Contact Section */
    .contact-section {
        padding: var(--spacing-xl) 0 !important;
        min-height: auto !important;
    }
    
    .contact-container {
        margin: 0 1rem !important;
        padding: var(--spacing-lg) !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .contact-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    
    .contact-description {
        font-size: 0.9375rem !important;
    }
    
    /* Footer */
    footer {
        padding: var(--spacing-xl) 1rem var(--spacing-md) !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }
    
    .footer-description {
        max-width: 100% !important;
    }

    .modal-content {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    /* Rotating Banner */
    .rotating-banner-section {
        padding: var(--spacing-xl) 0 !important;
    }
    
    .rotating-banner-text-wrapper {
        min-height: 80px !important;
        padding: 0 1rem !important;
    }
    
    .rotating-banner-text {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
    }
}

/* Disconnect: stack image above text only on small screens so image stays left on tablet */
@media (max-width: 640px) {
    .disconnect-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
    }
    .disconnect-content {
        grid-column: 1 !important;
        order: 2 !important;
        max-width: 100% !important;
    }
    .disconnect-image-wrapper {
        grid-column: 1 !important;
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        background: transparent !important;
    }
    .disconnect-image-wrapper {
        justify-self: center !important;
    }
    .disconnect-image-wrapper .image-rotator {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
        min-height: 0 !important;
    }
    .disconnect-image-wrapper .rotating-image {
        object-fit: contain !important;
        object-position: center !important;
    }
    .disconnect-image-wrapper::before {
        display: none !important;
    }
    section.challenge-section .challenge-image-wrapper::before {
        display: none !important;
    }
}

/* Small Mobile Devices (480px and below) - iPhone 11 = 414px */
@media (max-width: 480px) {
    /* Base font size for small screens */
    html {
        font-size: 14px !important;
    }
    
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Container */
    .container {
        padding: 0 0.875rem !important;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.625rem 0.875rem !important;
    }
    
    .logo-text {
        font-size: 0.9375rem !important;
    }

    .logo-image {
        height: 28px !important;
        max-width: 80px !important;
    }

    .logo-symbol {
        width: 24px !important;
        height: 24px !important;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .btn-login {
        display: none;
    }
    
    .nav-menu-links {
        padding: var(--spacing-md) !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-lg) 0 !important;
    }
    
    .hero-container {
        padding: 0 0.875rem !important;
        gap: var(--spacing-md) !important;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9375rem, 3.5vw, 1rem) !important;
    }
    
    .hero-description {
        font-size: 0.9375rem !important;
    }
    
    .hero-intro {
        font-size: 0.9375rem !important;
    }
    
    .hero-image-container {
        min-height: 288px !important;
        max-height: 345px !important;
    }
    
    /* Mission/Challenge/Disconnect Sections */
    .mission-section,
    .challenge-section,
    .disconnect-section {
        padding: var(--spacing-lg) 0 !important;
    }
    
    .mission-layout,
    .challenge-layout,
    .disconnect-layout {
        padding: 0 0.875rem !important;
        gap: var(--spacing-md) !important;
        align-items: start !important;
    }
    
    .mission-image-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
    }
    section.mission-section .mission-image-wrapper::before {
        display: none !important;
    }
    section.mission-section .mission-image-wrapper .mission-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }
    .challenge-image-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
    }
    .challenge-image-wrapper::before,
    section.challenge-section .challenge-image-wrapper::before {
        display: none !important;
    }
    .challenge-image-wrapper .challenge-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }
    .disconnect-image-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        background: transparent !important;
    }
    .disconnect-image-wrapper {
        justify-self: center !important;
    }
    .disconnect-image-wrapper .image-rotator {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important;
    }
    .disconnect-image-wrapper .rotating-image {
        object-fit: contain !important;
        object-position: center !important;
    }
    .hero-image-container::before {
        top: -6px;
        left: -4px;
        bottom: -5px;
        right: 24px;
    }
    .disconnect-image-wrapper::before {
        display: none !important;
    }
    
    .mission-text,
    .challenge-text,
    .disconnect-text,
    .lead-text {
        font-size: 0.9375rem !important;
    }
    
    .body-text {
        font-size: 0.875rem !important;
    }
    
    /* Solution & Advantages */
    .solution-section,
    .advantages-section {
        padding: var(--spacing-lg) 0 !important;
    }
    
    .solution-grid,
    .advantages-grid {
        padding: 0 0.875rem !important;
        gap: var(--spacing-md) !important;
    }
    
    .solution-card {
        padding: var(--spacing-md) !important;
    }
    
    .solution-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .solution-title {
        font-size: 1rem !important;
    }
    
    .solution-text {
        font-size: 0.875rem !important;
    }
    
    .triple-panel-col {
        padding: var(--spacing-lg) 0.875rem;
    }
    
    .triple-panel-text {
        font-size: 0.875rem;
    }
    
    .who-list {
        padding: 0 0.875rem;
    }
    
    .who-list li {
        font-size: 0.9375rem;
        padding: var(--spacing-sm) 0;
        padding-left: 1.5rem;
    }
    
    .advantage-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .advantage-title {
        font-size: 0.9375rem !important;
    }
    
    .advantage-description {
        font-size: 0.8125rem !important;
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-lg) 0 !important;
    }
    
    .cta-content {
        padding: 0 0.875rem !important;
    }
    
    .cta-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    }
    
    .cta-text {
        font-size: 0.9375rem !important;
    }
    
    /* Content Sections */
    .content-section {
        padding: var(--spacing-lg) 0.875rem !important;
    }
    
    .section-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    }
    
    .section-text {
        font-size: 0.875rem !important;
    }
    
    .section-intro.centered {
        max-width: 100% !important;
        padding: 0 0.875rem !important;
    }
    
    .section-label {
        font-size: 0.6875rem !important;
        padding: 0.3125rem 0.625rem !important;
    }
    
    /* Contact */
    .contact-container {
        margin: 0 0.875rem !important;
        padding: var(--spacing-md) !important;
    }
    
    .contact-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    }
    
    .contact-description {
        font-size: 0.875rem !important;
    }
    
    .contact-form .form-input,
    .contact-form .form-textarea,
    .contact-form .form-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 0.875rem 1rem !important;
    }
    
    /* Footer */
    footer {
        padding: var(--spacing-lg) 0.875rem var(--spacing-sm) !important;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-hero,
    .btn-cta {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    /* Rotating Banner */
    .rotating-banner-text-wrapper {
        min-height: 70px !important;
        padding: 0 0.875rem !important;
    }
    
    .rotating-banner-text {
        font-size: clamp(0.9375rem, 4vw, 1.125rem) !important;
    }
    
    .rotating-banner-prefix {
        font-size: 0.625rem !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-grey-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-grey-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-grey-500);
}

/* Section Images – blue box behind image (move box via ::before top/left/bottom/right) */
.section-image-container {
    margin-top: 2.5rem;
    text-align: left;
    overflow: visible;
    position: relative;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    max-width: 100%;
}
.section-image-container::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: -48px;
    left: -48px;
    bottom: -32px;
    right: 12px;
    background: var(--image-frame-color) url('TriunctioBlueBox.jpg') center/cover no-repeat;
    border-radius: 4px;
}

.section-image {
    position: relative;
    z-index: 1;
    max-width: none;
    width: calc(100% + 28px);
    height: auto;
    border-radius: 4px;
    box-shadow: none;
    transition: var(--transition);
    display: block;
    transform: translateX(-20px);
}

.section-image:hover {
    box-shadow: none;
    transform: translateX(-20px) translateY(-2px);
}

@media (max-width: 768px) {
    .section-image-container {
        margin-top: 2rem;
    }
    .section-image-container::before {
        top: -36px;
        left: -36px;
        bottom: -24px;
        right: 10px;
    }
    
    .section-image {
        width: calc(100% + 24px);
        transform: translateX(-16px);
    }
    
    .section-image:hover {
        transform: translateX(-16px) translateY(-2px);
    }
}

/* Profile Page Styles */
.profile-page-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 4rem) clamp(0.5rem, 2vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

#profileContent {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
}

/* Sidebar Styles */
.profile-sidebar {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    background: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: calc(var(--spacing-2xl) + 80px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    box-sizing: border-box;
}

.sidebar-header {
    margin-bottom: clamp(0.75rem, 2vw, 2rem);
    padding-bottom: clamp(0.5rem, 1.5vw, 1.5rem);
    border-bottom: 3px solid var(--color-black);
}

.sidebar-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 900;
    color: var(--color-black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
        flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    padding: clamp(0.5rem, 1.5vw, 1.5rem);
    background: transparent;
    border: 2px solid transparent;
    border-radius: clamp(6px, 1vw, 8px);
    color: var(--color-grey-700);
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9375rem);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.sidebar-item svg {
    flex-shrink: 0;
    width: clamp(16px, 3vw, 20px);
    height: clamp(16px, 3vw, 20px);
}

.sidebar-item:hover {
    background: var(--color-grey-50);
    color: var(--color-black);
    border-color: var(--color-grey-300);
}

.sidebar-item.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.sidebar-item.active:hover {
    background: var(--color-grey-800);
    border-color: var(--color-grey-800);
}

/* Main Content Area */
.profile-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-section-content {
    display: none;
    width: 100%;
}

.profile-section-content.active {
    display: block;
}

.content-section-title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--color-black);
    font-family: var(--font-heading);
    margin-bottom: clamp(1rem, 3vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--color-black);
    padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
    width: 100%;
    box-sizing: border-box;
}

.profile-section {
    background: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(1rem, 3vw, 3rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(1rem, 3vw, 3rem);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-black);
}

.profile-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-grey-800);
}

.profile-section-title {
    font-size: clamp(1rem, 3.5vw, 1.75rem);
    font-weight: 900;
    margin-bottom: clamp(0.75rem, 2vw, 2rem);
    color: var(--color-black);
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--color-black);
    padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
    position: relative;
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.profile-form {
    display: flex;
        flex-direction: column;
    gap: clamp(0.75rem, 2vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(0.75rem, 2vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem, 1vw, 0.5rem);
    width: 100%;
    box-sizing: border-box;
}

.form-label {
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.form-label-group .form-label {
    margin-bottom: 0;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1rem, 2.5vw, 1.125rem);
    border: 2px solid var(--color-grey-300);
    border-radius: clamp(8px, 1.5vw, 10px);
    font-size: clamp(16px, 2.5vw, 1rem);
    font-family: var(--font-primary);
    transition: var(--transition);
    background-color: var(--color-white);
    color: var(--color-black);
    background-image: linear-gradient(135deg, var(--color-white) 0%, #fafbfc 100%);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--color-white);
    transform: translateY(-1px);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003366' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:hover {
    border-color: var(--color-black);
    background-color: #f8f9fa;
}

.form-select option {
    padding: 0.5rem;
    background-color: var(--color-white);
    color: var(--color-black);
}

.form-textarea {
    resize: vertical;
    min-height: clamp(100px, 15vw, 120px);
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--color-grey-600);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Profile Picture Styles */
.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 3vw, 2rem);
    background: var(--color-grey-50);
    border-radius: clamp(8px, 2vw, 16px);
    border: 2px dashed var(--color-black);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.profile-picture-wrapper {
    position: relative;
    width: clamp(80px, 20vw, 150px);
    height: clamp(80px, 20vw, 150px);
    border-radius: 50%;
    overflow: hidden;
    border: clamp(3px, 1vw, 5px) solid var(--color-white);
    box-shadow: 0 clamp(4px, 1vw, 8px) clamp(12px, 3vw, 24px) rgba(0, 0, 0, 0.2), 0 0 0 clamp(2px, 0.8vw, 4px) var(--color-black);
    background: linear-gradient(135deg, var(--color-grey-100) 0%, var(--color-grey-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-picture-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 clamp(6px, 1.5vw, 12px) clamp(16px, 4vw, 32px) rgba(0, 0, 0, 0.3), 0 0 0 clamp(2px, 0.8vw, 4px) var(--color-grey-800);
}

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

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-grey-400);
    background: var(--color-grey-100);
}

.profile-picture-placeholder svg {
    width: clamp(30px, 8vw, 60px);
    height: clamp(30px, 8vw, 60px);
}

.profile-picture-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-text {
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--color-grey-600);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--color-blue);
}

/* Entry List Styles */
.entry-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    width: 100%;
}

.entry-item {
    background: var(--color-grey-50);
    border: 2px solid var(--color-black);
    border-radius: clamp(6px, 1.5vw, 10px);
    padding: clamp(0.75rem, 2.5vw, 2rem);
    transition: var(--transition);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.entry-item:hover {
    border-color: var(--color-grey-800);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
    padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
    border-bottom: 2px solid var(--color-black);
    width: 100%;
    box-sizing: border-box;
}

.entry-number {
    font-weight: 900;
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: var(--color-black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-remove-entry {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: clamp(4px, 1vw, 6px);
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.btn-remove-entry svg {
    width: clamp(10px, 2.5vw, 14px);
    height: clamp(10px, 2.5vw, 14px);
}

.btn-remove-entry:hover {
    background: var(--color-grey-800);
    transform: rotate(90deg);
}

.btn-add-entry {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: clamp(6px, 1.5vw, 8px);
    padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(0.75rem, 2.5vw, 1.25rem);
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-add-entry:hover {
    background: var(--color-grey-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-add-entry svg {
    width: 16px;
    height: 16px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 3px solid var(--color-black);
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-actions .btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border: 3px solid var(--color-black);
    padding: 1.125rem 2.5rem;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-grey-800);
    transition: left 0.3s ease;
    z-index: 0;
}

.profile-actions .btn-primary span {
    position: relative;
    z-index: 1;
}

.profile-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--color-grey-800);
}

.profile-actions .btn-primary:hover::before {
    left: 0;
}

.profile-actions .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== LinkedIn-style profile (main profile page only) ========== */
main.profile-page {
    --li-blue: #0a66c2;
    --li-blue-hover: #004182;
    --li-bg: #f3f2ef;
    --li-card-bg: #ffffff;
    --li-card-border: rgba(0, 0, 0, 0.08);
    --li-text: rgba(0, 0, 0, 0.9);
    --li-text-secondary: rgba(0, 0, 0, 0.6);
    --li-text-muted: rgba(0, 0, 0, 0.45);
    min-height: 60vh;
    background-color: var(--li-bg) !important;
    padding: 1.5rem 1rem 3rem;
    padding-top: 2rem;
    margin: 0 auto;
    max-width: 1128px;
    width: 100%;
    box-sizing: border-box;
}

.profile-page .profile-loading,
.profile-page .profile-error {
    text-align: center;
    padding: 3rem;
    background: var(--li-card-bg);
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--li-card-border);
    margin-bottom: 0.5rem;
    color: var(--li-text-secondary);
}

.profile-page .profile-error {
    color: #b24020;
}

/* Intro card: cover + avatar + name + actions */
.profile-page #profileView .profile-card {
    background: var(--li-card-bg);
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--li-card-border), 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.5rem;
    overflow: hidden;
    padding: 0;
}

.profile-page .profile-cover {
    height: 252px;
    background: linear-gradient(135deg, #0a66c2 0%, #004182 50%, #002850 100%);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.profile-page .profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page .profile-card-inner {
    padding: 0 1.5rem 1.5rem;
    position: relative;
}

.profile-page .profile-avatar-wrap {
    margin-top: -84px;
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
}

.profile-page .profile-avatar {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 4px solid var(--li-card-bg);
    background: linear-gradient(135deg, var(--li-blue), var(--li-blue-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.25rem;
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--li-card-border);
    overflow: hidden;
}

.profile-page .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page .profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
    font-family: inherit;
}

.profile-page .profile-name,
.profile-page .profile-headline,
.profile-page .profile-meta {
    font-family: var(--font-primary);
}

.profile-page .profile-headline {
    font-size: 0.9375rem;
    color: var(--li-text-secondary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.profile-page .profile-role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.profile-page .profile-role-badge.student {
    background: #e7f3ff;
    color: var(--li-blue);
}

.profile-page .profile-role-badge.master {
    background: #e7f5e9;
    color: #0d6b2c;
}

.profile-page .profile-role-badge.educator {
    background: #fff3e0;
    color: #e65100;
}

.profile-page .profile-meta {
    font-size: 0.875rem;
    color: var(--li-text-muted);
    margin-bottom: 1rem;
}

.profile-page .profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.profile-page .profile-actions .btn-primary {
    background: var(--li-blue);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.profile-page .profile-actions .btn-primary:hover {
    background: var(--li-blue-hover);
    box-shadow: none;
    transform: none;
}

.profile-page .profile-actions .btn-primary::before,
.profile-page .profile-actions .btn-primary span {
    display: none;
}

.profile-page .profile-actions .btn-secondary {
    background: transparent;
    color: var(--li-blue);
    border: 1px solid var(--li-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.profile-page .profile-actions .btn-secondary:hover {
    background: #e7f3ff;
    color: var(--li-blue-hover);
    border-color: var(--li-blue-hover);
}

.profile-page .profile-actions a.btn-secondary {
    text-decoration: none;
}

/* Section cards (About, Experience, etc.) - override global .profile-section */
.profile-page #profileView .profile-section {
    background: var(--li-card-bg) !important;
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--li-card-border), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.5rem;
    padding: 1.25rem 1.5rem;
    transform: none;
}

.profile-page #profileView .profile-section::before {
    display: none !important;
}

.profile-page #profileView .profile-section:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--li-card-border);
}

.profile-page #profileView .profile-section h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 0 0 1rem;
    padding-bottom: 0;
    border-bottom: none;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.profile-page #profileView .profile-section p {
    margin: 0;
    line-height: 1.6;
    color: var(--li-text-secondary);
    font-size: 0.9375rem;
}

.profile-page .exp-item,
.profile-page .edu-item,
.profile-page .cert-item {
    padding: 0.75rem 0;
    border-bottom: none;
}

.profile-page .exp-item:not(:last-child),
.profile-page .edu-item:not(:last-child),
.profile-page .cert-item:not(:last-child) {
    border-bottom: 1px solid var(--li-card-border);
    margin-bottom: 0.25rem;
}

.profile-page .exp-item h3,
.profile-page .edu-item h3,
.profile-page .cert-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 0 0 0.2rem;
}

.profile-page .exp-item .company,
.profile-page .edu-item .meta,
.profile-page .cert-item .meta {
    font-size: 0.875rem;
    color: var(--li-text-secondary);
    margin-bottom: 0.2rem;
}

.profile-page .exp-item .dates,
.profile-page .edu-item .dates,
.profile-page .cert-item .dates {
    font-size: 0.8125rem;
    color: var(--li-text-muted);
}

.profile-page .exp-item .description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--li-text-secondary);
    line-height: 1.5;
}

.profile-page .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-page .skill-tag {
    background: transparent;
    color: var(--li-text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--li-card-border);
}

.profile-page #profileView .profile-section:last-child {
    border-bottom: none;
}

.profile-page .profile-empty {
    color: var(--li-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.profile-page #profileContactWrap a {
    color: var(--li-blue);
    text-decoration: none;
}

.profile-page #profileContactWrap a:hover {
    text-decoration: underline;
}

/* Edit mode: card + tabs */
.profile-page #profileEdit .profile-card.profile-edit-card,
.profile-page #profileEdit .profile-card {
    background: var(--li-card-bg);
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--li-card-border);
    padding: 0;
    overflow: hidden;
}

.profile-page .profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--li-card-border);
    margin-bottom: 0;
    padding: 0 1.5rem 0 0;
}

.profile-page .profile-tab {
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--li-text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-page .profile-tab.active {
    color: var(--li-blue);
    border-bottom-color: var(--li-blue);
}

.profile-page .profile-tab:hover {
    color: var(--li-text);
}

.profile-page .tab-panel {
    padding: 1.5rem 1.5rem 2rem;
}

.profile-page .tab-panel h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 0 0 1rem;
    font-family: inherit;
}

.profile-page .profile-form .form-group {
    margin-bottom: 1rem;
}

.profile-page .profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-page .block-item .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-page .block-item .full {
    grid-column: 1 / -1;
}

.profile-page .profile-form label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
    color: var(--li-text);
}

.profile-page .profile-form input,
.profile-page .profile-form textarea,
.profile-page .profile-form select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--li-card-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    background: var(--li-card-bg);
}

.profile-page .profile-form input:focus,
.profile-page .profile-form textarea:focus {
    border-color: var(--li-blue);
    outline: 1px solid var(--li-blue);
    outline-offset: -1px;
}

.profile-page .profile-form textarea {
    min-height: 80px;
    resize: vertical;
}

.profile-page .block-item {
    background: var(--li-bg);
    border: 1px solid var(--li-card-border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.profile-page .block-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 0 0 0.5rem;
}

.profile-page .btn-remove-block {
    color: var(--li-text-muted);
    font-size: 0.875rem;
}

.profile-page .btn-remove-block:hover {
    color: var(--li-blue);
}

.profile-page .btn-add-block {
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--li-blue);
    background: transparent;
    border: 1px solid var(--li-blue);
}

.profile-page .btn-add-block:hover {
    background: #e7f3ff;
}

.profile-page .settings-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-page .settings-check input {
    width: auto;
}

.profile-page #editSkillsInput {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--li-card-border);
}

.profile-page .tab-panel .btn-primary {
    background: var(--li-blue) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: none !important;
    transform: none !important;
}

.profile-page .tab-panel .btn-primary::before {
    display: none !important;
}

.profile-page .tab-panel .btn-primary:hover {
    background: var(--li-blue-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

.profile-page .tab-panel .btn-secondary {
    background: transparent;
    color: var(--li-blue);
    border: 1px solid var(--li-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.profile-page .tab-panel .btn-secondary:hover {
    background: #e7f3ff;
}

.profile-page .tab-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--li-text);
    margin: 1.25rem 0 0.5rem;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 1rem 0.75rem 2rem;
    }
    .profile-page .profile-card-inner {
        padding: 0 1rem 1.25rem;
    }
    .profile-page .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    .profile-page .profile-avatar-wrap {
        margin-top: -60px;
    }
    .profile-page .profile-name {
        font-size: 1.25rem;
    }
    .profile-page .profile-actions {
        flex-direction: column;
    }
    .profile-page .profile-actions .btn-primary,
    .profile-page .profile-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .profile-page #profileView .profile-section {
        padding: 1rem 1rem;
    }
    .profile-page .profile-form .form-row,
    .profile-page .block-item .row {
        grid-template-columns: 1fr;
    }
    .profile-page .tab-panel {
        padding: 1rem 1rem 1.5rem;
    }
}

.form-message {
    padding: var(--spacing-md);
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 2px solid #10b981;
    display: block;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 2px solid #ef4444;
    display: block;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
}

/* Responsive Profile Styles - Screen-based breakpoints */
/* Tablet and below (968px) */
@media screen and (max-width: 968px) {
    .profile-page-wrapper {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .profile-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #profileContent {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .profile-sidebar {
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
        position: static;
        max-height: none;
        padding: 1.5rem;
        border-radius: 12px;
        top: auto;
    }
    
    .sidebar-header {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1.25rem;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar-item {
        flex: 1 1 auto;
        min-width: 100px;
        justify-content: center;
        padding: 1rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .sidebar-item svg {
        width: 18px;
        height: 18px;
    }
    
    .profile-main-content {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .content-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .profile-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .profile-section-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
}

/* Mobile devices (768px and below) - COMPLETE REWRITE FOR RELIABILITY */
@media screen and (max-width: 768px) {
    /* Set base font size - this is the foundation for all rem units */
    html {
        font-size: 15px !important;
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Override ALL content-section padding on mobile */
    .content-section {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .profile-page-wrapper {
        padding: 1rem 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .profile-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    #profileContent {
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    .profile-sidebar {
        width: calc(100vw - 2rem) !important;
        min-width: calc(100vw - 2rem) !important;
        flex: 0 0 auto !important;
        position: static !important;
        max-height: none !important;
        padding: 1.25rem !important;
        border-radius: 10px !important;
        top: auto !important;
        margin: 0 auto !important;
    }
    
    .sidebar-title {
        font-size: 1.25rem !important;
    }
    
    .sidebar-item {
        font-size: 0.875rem !important;
        padding: 0.75rem !important;
        min-width: 90px !important;
        gap: 0.75rem !important;
    }
    
    .sidebar-item span {
        display: none !important;
    }
    
    .sidebar-item svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .profile-main-content {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        flex: 1 1 auto !important;
        min-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .content-section-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-section {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-section-title {
        font-size: 1.35rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-group {
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .form-label {
        font-size: 0.8125rem !important; /* 11.375px at 14px base */
        margin-bottom: 0.5rem !important;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Keep readable on mobile */
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .profile-picture-wrapper {
        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;
        max-height: 130px !important;
        min-width: 130px !important;
        min-height: 130px !important;
        border-width: 4px !important;
    }
    
    .profile-picture-container {
        padding: 1.25rem !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .logo-image {
        height: 32px !important;
        max-width: 110px !important;
        width: auto !important;
    }
    
    .profile-picture-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .btn-secondary,
    .btn-text {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-add-entry {
        padding: 0.625rem 1rem !important;
        font-size: 0.8125rem !important;
    }
    
    .entry-item {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .entry-header {
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
        width: 100% !important;
    }
    
    .entry-number {
        font-size: 0.875rem !important;
    }
    
    .profile-actions {
        padding: 1.5rem 0 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-actions .btn-primary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
        width: 100% !important;
    }
    
    .profile-section-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .entry-list {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Small mobile devices (480px and below) - iPhone 11 = 414px - COMPLETE FIX */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px !important;
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Override ALL content-section padding on mobile */
    .content-section {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Override content-section padding on profile page */
    .content-section.profile-page-wrapper {
        padding: 1.5vw 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .profile-page-wrapper {
        padding: 0.875rem 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .profile-container {
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    #profileContent {
        gap: 1.25rem !important;
        padding: 0 0.875rem !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .profile-sidebar {
        padding: 1rem !important;
        border-radius: 8px !important;
        width: calc(100vw - 1.75rem) !important;
        min-width: calc(100vw - 1.75rem) !important;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
    }
    
    .sidebar-item {
        min-width: 80px !important;
        padding: 0.625rem !important;
        font-size: 0.8125rem !important;
    }
    
    .profile-main-content {
        width: calc(100vw - 1.75rem) !important;
        max-width: calc(100vw - 1.75rem) !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .content-section-title {
        font-size: 1.4rem !important;
        width: 100% !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.625rem !important;
    }
    
    .profile-section {
        padding: 1.25rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
    }
    
    .profile-section-title {
        font-size: 1.15rem !important; /* 14.95px at 13px base */
        margin-bottom: 0.875rem !important;
        padding-bottom: 0.625rem !important;
    }
    
    .profile-main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Keep readable */
        padding: 0.75rem 0.875rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-picture-wrapper {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
    }
    
    .profile-picture-container {
        padding: 1rem !important;
        gap: 0.875rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .logo-image {
        height: 24px !important;
        max-width: 90px !important;
        width: auto !important;
    }
    
    .form-row {
        gap: 0.875rem !important;
        width: 100% !important;
    }
    
    .form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-group {
        margin-bottom: 0.875rem !important;
    }
    
    .profile-actions {
        padding: 1.25rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .profile-section-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .entry-item {
        padding: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
    }
    
    .entry-header {
        margin-bottom: 0.875rem !important;
        padding-bottom: 0.625rem !important;
        width: 100% !important;
    }
    
    .entry-number {
        font-size: 0.8125rem !important;
    }
    
    .btn-add-entry {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.75rem !important;
    }
    
    
    .profile-main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .profile-section-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .profile-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .entry-list {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* MISSION & CHALLENGE: no borders – full image, centered */
section.mission-section .mission-image-wrapper::before {
    display: none !important;
}
section.mission-section .mission-image-wrapper {
    background: transparent !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
section.mission-section .mission-image-wrapper .mission-image {
    position: relative !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

section.challenge-section .challenge-image-wrapper::before {
    display: none !important;
}
section.challenge-section .challenge-image-wrapper {
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
section.challenge-section .challenge-image-wrapper .challenge-image {
    position: relative !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* Disconnect: no blue box – full rotating images, centered, nothing blocking */
.disconnect-image-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    justify-self: center !important;
    overflow: visible !important; /* do not clip image */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.disconnect-image-wrapper .image-rotator {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}
.disconnect-image-wrapper .rotating-image {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
/* Force disconnect image area unblocked – no pseudo-elements, no blue block, no white lines */
section.disconnect-section .disconnect-image-wrapper::before,
section.disconnect-section .disconnect-image-wrapper::after,
section.disconnect-section .disconnect-image-wrapper .disconnect-rotator::before,
section.disconnect-section .disconnect-image-wrapper .disconnect-rotator::after,
section.disconnect-section .disconnect-image-wrapper .image-rotator::before,
section.disconnect-section .disconnect-image-wrapper .image-rotator::after {
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    content: none !important;
    border: none !important;
}
section.disconnect-section .disconnect-image-wrapper {
    overflow: visible !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    outline-width: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
/* Disconnect: no frame, no white lines – rotator contains the stack so no seam between images */
section.disconnect-section .disconnect-image-wrapper .disconnect-rotator,
section.disconnect-section .disconnect-image-wrapper .image-rotator {
    position: relative !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
}
section.disconnect-section .disconnect-image-wrapper .rotating-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;  /* overrides generic translate(-50%,-50%) that was cropping to top-left */
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    outline-width: 0 !important;
    border-radius: 0 !important;
}
/* Nuclear: no frame, no white line – any element in disconnect image area */
section.disconnect-section .disconnect-image-wrapper,
section.disconnect-section .disconnect-image-wrapper *,
section.disconnect-section .disconnect-image-wrapper *::before,
section.disconnect-section .disconnect-image-wrapper *::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
section.disconnect-section .disconnect-layout {
    justify-items: stretch !important;
    overflow: visible !important;
}
/* Layout/container don’t clip image; section uses overflow:hidden to prevent overlap into section above */
section.disconnect-section .container,
section.disconnect-section .disconnect-layout {
    overflow: visible !important;
}
section.disconnect-section {
    overflow: visible !important; /* do not clip image area */
}