body {
    font-family: 'Lexend', sans-serif;
    scroll-behavior: smooth;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        filter 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: blur(4px);
    will-change: transform, opacity, filter;
}

.reveal.reveal-up {
    transform: translateY(50px);
}

.reveal.reveal-down {
    transform: translateY(-50px);
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.reveal-scale {
    transform: scale(0.85);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Global Video Background Styles */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 34, 27, 0.4) 0%, rgba(10, 21, 17, 0.85) 100%);
    backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

.glass-nav {
    position: relative;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(18, 226, 140, 0.1);
    overflow: visible !important;
    transform: translateZ(0);
    /* Hardware acceleration for crisp edges */
}

.glass-nav::before {
    content: '';
    position: absolute;
    inset: -1px;
    /* Slight overlap to prevent sub-pixel gaps */
    z-index: -1;
    background: rgba(18, 226, 140, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: inherit;
    /* Pixel-perfect synchronization */
}

.glass-panel {
    background: rgba(16, 34, 27, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-grey {
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-glow {
    text-shadow: 0 0 15px rgba(18, 226, 140, 0.4);
}

.crosshair-cursor {
    cursor: crosshair;
}

/* Custom scrollbar - Hidden but scrollable */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* For Firefox */
* {
    scrollbar-width: none;
}

/* For IE and Edge */
* {
    -ms-overflow-style: none;
}

body,
html {
    overflow-x: hidden !important;
}

.swal2-html-container {
    overflow-x: hidden !important;
}

.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.scroll-section {
    scroll-snap-align: start;
    height: 100vh;
}

.text-glow {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.primary-glow {
    box-shadow: 0 0 20px rgba(18, 226, 140, 0.4);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #12e28c;
    border-radius: 10px;
}

/* Custom scrollbar for the horizontal section */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #1a3329;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #12e28c;
    border-radius: 10px;
}

.glass-card {
    background: rgba(16, 34, 27, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.z-depth-1 {
    transform: translateZ(20px);
}

.z-depth-2 {
    transform: translateZ(50px);
}

/* =====================
   TOP HEADER — logo left, join button right
   ===================== */
#top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
}

/* ── Header logo: breathing aura behind the logo ── */
#top-header .glass-nav>div>div:first-child {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

#top-header .glass-nav>div>div:first-child::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
            rgba(18, 226, 140, 0.45) 0%,
            rgba(18, 226, 140, 0.15) 45%,
            transparent 72%);
    animation: header-logo-aura 2.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes header-logo-aura {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

#top-header .glass-nav>div>div:first-child img,
header#top-header img {
    position: relative !important;
    z-index: 1 !important;
    filter: brightness(0) !important;
    /* Force black logo only in top header */
}

#top-header h2,
header#top-header .text-white {
    color: #0a1511 !important;
    /* Force dark text only in top header */
}

#top-header .ai-badge {
    border-color: rgba(10, 21, 17, 0.4) !important;
    background: rgba(10, 21, 17, 0.05) !important;
    color: #0a1511 !important;
}

/* Academy Info Specific overrides to WHITE */
#academy-info-overlay .ai-name {
    color: #ffffff !important;
}

#academy-info-overlay .ai-badge {
    color: #12e28c !important;
    border-color: rgba(18, 226, 140, 0.4) !important;
    background: rgba(18, 226, 140, 0.08) !important;
}

#academy-info-overlay .ai-logo-ring img {
    filter: none !important;
    /* Restore normal logo filter for the popup */
}

/* =====================
   NAV STYLES
   ===================== */

.nav-pill {
    padding: 3px 16px;
    min-width: 72px;
    border-radius: 9999px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 1;
    color: #0a1511 !important;
    /* Dark text for green background */
}

.nav-pill.text-primary {
    background: rgba(10, 21, 17, 0.12) !important;
    font-weight: 800;
}

.nav-pill:hover {
    background: rgba(10, 21, 17, 0.1);
}

/* Responsive visibility utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* Pre-animation state — nav.js will animate items in on DOMContentLoaded.
   Starting at opacity:0 here prevents the flash of nav content during load.
   Scoped to the bottom <nav> only — header's .glass-nav must stay visible. */
nav .glass-nav>* {
    opacity: 1;
    /* Ensure visibility always */
}

/* ----- Labels: always visible on all screens ----- */
.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}

@media (max-width: 480px) {
    .nav-label {
        font-size: 10px;
        display: block !important;
    }

    /* Slightly bigger icons on small screens */
    .nav-pill .material-symbols-outlined {
        font-size: 26px !important;
    }

    .nav-pill {
        padding: 4px 2px !important;
        min-width: 55px;
    }
}

/* ----- Icon size for all nav items ----- */
.nav-pill .material-symbols-outlined {
    font-size: 26px !important;
    color: inherit !important;
}

.nav-pill.text-primary .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    /* Filled icon for active state */
}

@media (max-width: 640px) {
    .nav-pill {
        padding: 2px 10px;
    }
}

@media (min-width: 641px) {
    #bottom-nav>.glass-nav {
        gap: 20px;
        padding: 4px 36px;
    }
}

/* =====================
   BOTTOM NAV CONTAINER  — replaces ALL inline styles on <nav> in every page
   ===================== */
#bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    pointer-events: none;
}

#bottom-nav>.glass-nav {
    position: relative;
    /* Base for absolute logo positioning */
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

@media (max-width: 640px) {
    #bottom-nav>.glass-nav {
        gap: 4px;
        padding: 4px 12px;
        width: 100%;
        justify-content: space-evenly;
    }
}

@media (max-width: 400px) {
    #bottom-nav {
        padding: 0 2px;
    }

    #bottom-nav>.glass-nav {
        gap: 2px;
        padding: 3px 4px;
    }
}

/* Tilted logo wrapper — absolutely centered */
.nav-logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    /* Let clicks fall through to the spacer if needed, but button re-enables */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: logo vertically centered within the nav bar */
@media (max-width: 640px) {
    .nav-logo-wrapper {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
    }

    .tilted-nav-btn {
        width: 70px !important;
        height: 70px !important;
        min-height: 70px !important;
        transform: rotate(45deg) !important;
    }

    .tilted-nav-btn img {
        width: 54px !important;
        height: 54px !important;
    }

    .tilted-nav-btn:hover {
        transform: rotate(45deg) scale(1.06) !important;
    }
}

/* Spacer for the central logo in the flex flow */
.nav-logo-spacer {
    width: 80px;
    height: 1px;
    flex-shrink: 0;
    pointer-events: none;
}


/* =====================
   CENTRAL LOGO BUTTON
   45-degree diamond tilt, black bg, glowing green border
   ===================== */

/* Allow the raised button to overflow the nav bar */
nav .glass-nav {
    overflow: visible !important;
}

.tilted-nav-btn {
    position: relative;
    width: 72px;
    height: 72px;
    min-height: 72px;
    flex-shrink: 0;
    pointer-events: auto;
    background: #0a0a0a;
    border: 2.5px solid #12e28c;
    border-radius: 12px;
    box-shadow:
        0 0 16px rgba(18, 226, 140, 0.6),
        0 0 40px rgba(18, 226, 140, 0.2),
        inset 0 0 12px rgba(18, 226, 140, 0.08);
    transform: rotate(45deg) translateY(-24px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    z-index: 50;
    margin: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Aura glow behind the diamond */
.tilted-nav-btn::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 18px;
    background: radial-gradient(ellipse at center,
            rgba(18, 226, 140, 0.35) 0%,
            rgba(18, 226, 140, 0.12) 45%,
            transparent 72%);
    animation: diamond-aura 2.8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes diamond-aura {

    0%,
    100% {
        opacity: 0.75;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

.tilted-nav-btn:hover {
    box-shadow:
        0 0 28px rgba(18, 226, 140, 0.9),
        0 0 64px rgba(18, 226, 140, 0.35),
        inset 0 0 20px rgba(18, 226, 140, 0.18);
    transform: rotate(45deg) translateY(-20px) scale(1.06);
}

/* Counter-rotate so the logo faces forward (upright) */
.tilted-nav-btn .inner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(-45deg);
}

.tilted-nav-btn img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: invert(61%) sepia(92%) saturate(400%) hue-rotate(107deg) brightness(1.1) contrast(1.1) !important;
    image-rendering: -webkit-optimize-contrast;
}

/* =====================
   "CLICK THE LOGO" BADGE
   Floats above the tilted diamond button
   ===================== */
.nav-logo-badge {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #12e28c !important;
    /* Solid pop for the badge */
    border: 1px solid rgba(10, 21, 17, 0.2);
    color: #0a1511 !important;
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
    animation: badge-pulse 2.4s ease-in-out infinite;
    z-index: 60;
}

@media (max-width: 640px) {
    .nav-logo-badge {
        top: -38px;
        /* Closer to the logo on mobile */
    }
}

.nav-logo-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #12e28c;
}

@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(-3px);
    }
}

/* =====================
   JOIN BUTTON — PILL SHAPE
   ===================== */
#nav-join-btn {
    background: rgba(18, 226, 140, 0.08);
    border: 1px solid rgba(18, 226, 140, 0.35);
    color: #12e28c !important;
    padding: 7px 20px;
}

#nav-join-btn:hover {
    background: rgba(18, 226, 140, 0.18);
    border-color: #12e28c;
}

@media (max-width: 640px) {
    #nav-join-btn {
        padding: 5px 8px;
        font-size: 9px;
    }

    /* Diamond on mobile */
    .tilted-nav-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        transform: rotate(45deg) translateY(-8px);
        margin: 0 2px;
    }

    .tilted-nav-btn img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .tilted-nav-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        transform: rotate(45deg) translateY(-4px);
        margin: 0 1px;
    }

    .tilted-nav-btn img {
        width: 26px;
        height: 26px;
    }
}

.tilted-nav-btn:hover {
    transform: rotate(45deg) translateY(-15px) scale(1.06);
}

.tilted-nav-btn img {
    width: 44px;
    /* Default desktop size */
    height: 44px;
}

.nav-join-btn-alt {
    display: none !important;
}

/* =====================
   ACADEMY INFO POPUP CARD
   ===================== */
#academy-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#academy-info-overlay.ai-visible {
    opacity: 1;
    pointer-events: auto;
}

#academy-info-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    /* mobile default */
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0d1f18 0%, #10221b 60%, #0a0a0a 100%);
    border: 1px solid rgba(18, 226, 140, 0.22);
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(18, 226, 140, 0.06),
        0 0 60px rgba(18, 226, 140, 0.1),
        0 40px 100px rgba(0, 0, 0, 0.7);
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    scrollbar-width: none;
}

#academy-info-card::-webkit-scrollbar {
    display: none;
}

#academy-info-overlay.ai-visible #academy-info-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ── Close button ── */
.ai-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 10;
}

.ai-close-btn:hover {
    background: rgba(18, 226, 140, 0.15);
    border-color: rgba(18, 226, 140, 0.5);
    color: #12e28c;
}

/* ── MOBILE layout: single column ── */
.ai-layout {
    display: flex;
    flex-direction: column;
}

/* ── Left panel (logo + name + trainer) ── */
.ai-left-panel {
    display: flex;
    flex-direction: column;
    padding: 36px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Mobile: logo-left / brand-right top row */
.ai-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-brand {
    flex: 1;
    text-align: left;
}

.ai-left-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(18, 226, 140, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Logo ring ── */
.ai-logo-ring {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-logo-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#12e28c 0deg 120deg, transparent 120deg 240deg, #12e28c 240deg 360deg);
    animation: ai-spin 6s linear infinite;
    opacity: 0.65;
}

.ai-logo-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #10221b;
}

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-logo-ring img {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: invert(61%) sepia(92%) saturate(400%) hue-rotate(107deg) brightness(1.08) contrast(1.1);
}

/* ── Brand (mobile: left-aligned inside brand-row) ── */
.ai-brand {
    flex: 1;
    text-align: left;
}

.ai-name {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 6px;
}

.ai-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(18, 226, 140, 0.45);
    background: rgba(18, 226, 140, 0.08);
    border-radius: 999px;
    color: #12e28c;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
}

/* ── Trainer block (inside left panel) ── */
.ai-trainer-wrap {
    width: 100%;
}

.ai-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #12e28c;
    margin: 0 0 9px;
}

.ai-info-block {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 18px;
}

.ai-trainer-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ai-trainer-creds {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    margin: 0;
}

.ai-trainer-creds span {
    display: block;
}

/* ── Right panel (contact + locations) ── */
.ai-right-panel {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ── Contacts grid — 2 columns on mobile & desktop ── */
.ai-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Contact row ── */
.ai-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: rgba(18, 226, 140, 0.06);
    border: 1px solid rgba(18, 226, 140, 0.18);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.ai-contact-row:hover {
    background: rgba(18, 226, 140, 0.12);
    border-color: rgba(18, 226, 140, 0.4);
    transform: translateX(3px);
}

.ai-contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(18, 226, 140, 0.12);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12e28c;
}

.ai-contact-icon .material-symbols-outlined {
    font-size: 22px !important;
}

.ai-contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ai-contact-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
}

.ai-contact-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile 2-col contact grid: keep row layout, normal fonts ── */
@media (max-width: 639px) {
    .ai-contacts-grid {
        gap: 8px;
    }

    /* Row layout: icon left, text right — card compacts naturally */
    .ai-contacts-grid .ai-contact-row {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
    }

    .ai-contacts-grid .ai-contact-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .ai-contacts-grid .ai-contact-icon .material-symbols-outlined {
        font-size: 17px !important;
    }

    /* Label stays small (metadata), value stays readable */
    .ai-contacts-grid .ai-contact-label {
        font-size: 9px;
    }

    .ai-contacts-grid .ai-contact-value {
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Hide chevron inside grid on all sizes — no space for it */
.ai-contacts-grid [style*="chevron_right"] {
    display: none !important;
}

/* ── Locations ── */
.ai-locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ai-location-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.ai-location-card:hover {
    border-color: rgba(18, 226, 140, 0.3);
    background: rgba(18, 226, 140, 0.04);
    transform: translateY(-2px);
}

/* number badge + map button in a row at the top */
.ai-loc-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ai-loc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(18, 226, 140, 0.15);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    color: #12e28c;
    flex-shrink: 0;
}

/* "View on Map" button — top-right of each location card */
.ai-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: rgba(18, 226, 140, 0.1);
    border: 1px solid rgba(18, 226, 140, 0.35);
    border-radius: 999px;
    color: #12e28c;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.ai-map-btn:hover {
    background: rgba(18, 226, 140, 0.2);
    border-color: #12e28c;
    transform: scale(1.06);
}

.ai-map-btn .material-symbols-outlined {
    font-size: 12px !important;
}

.ai-loc-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.ai-loc-address {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════════════
   DESKTOP: horizontal two-column card
   Breakpoint: 640px and above
   ════════════════════════════════════════════ */
@media (min-width: 640px) {
    #academy-info-card {
        max-width: 1020px;
        max-height: 88vh;
        overflow-y: visible;
    }

    .ai-layout {
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
    }

    /* LEFT — logo + name + trainer (fixed width) */
    .ai-left-panel {
        flex: 0 0 380px;
        width: 380px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        align-items: center;
        text-align: center;
        padding: 48px 34px 40px;
        justify-content: center;
        overflow: hidden;
        gap: 22px;
    }

    /* Desktop: logo above, brand centred — override mobile row */
    .ai-brand-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ai-brand {
        text-align: center;
        flex: unset;
    }

    .ai-left-panel::before {
        top: -80px;
        width: 380px;
        height: 240px;
    }

    /* Bigger logo on desktop */
    .ai-logo-ring {
        width: 100px;
        height: 100px;
    }

    .ai-logo-ring img {
        width: 74px;
        height: 74px;
    }

    .ai-name {
        font-size: 28px;
    }

    .ai-badge {
        font-size: 11px;
    }

    .ai-trainer-wrap {
        text-align: left;
    }

    .ai-section-label {
        font-size: 11px;
    }

    .ai-trainer-name {
        font-size: 22px;
    }

    .ai-trainer-creds {
        font-size: 13.5px;
        line-height: 1.9;
    }

    .ai-info-block {
        padding: 18px 20px;
    }

    /* RIGHT — contact + locations (fills remaining width) */
    .ai-right-panel {
        flex: 1;
        min-width: 0;
        padding: 40px 36px 40px;
        overflow-y: auto;
        scrollbar-width: none;
        gap: 26px;
    }

    .ai-right-panel::-webkit-scrollbar {
        display: none;
    }

    .ai-contact-label {
        font-size: 11px;
    }

    .ai-contact-value {
        font-size: 19px;
    }

    .ai-contact-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .ai-loc-name {
        font-size: 19px;
    }

    .ai-loc-address {
        font-size: 14px;
        line-height: 1.65;
    }

    .ai-locations-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ai-location-card {
        padding: 16px 16px 18px;
        gap: 10px;
    }

    .ai-map-btn {
        font-size: 10px;
        padding: 5px 11px;
    }

    .ai-map-btn .material-symbols-outlined {
        font-size: 13px !important;
    }

    /* ── Desktop: contacts grid restores row layout ── */
    .ai-contacts-grid {
        gap: 12px;
    }

    .ai-contacts-grid .ai-contact-row {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 15px 16px;
    }

    .ai-contacts-grid .ai-contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 11px;
    }

    .ai-contacts-grid .ai-contact-icon .material-symbols-outlined {
        font-size: 20px !important;
    }

    .ai-contacts-grid .ai-contact-value {
        font-size: 15px;
    }
}

/* Legacy Gallery Accordion Styles - Disabled for new Grid Layout
.gallery-accordion-container { ... }
.gallery-row { ... }
.gallery-item { ... }
*/

.gallery-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
    transform: translate(-50%, -50%) scale(1.05);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(16, 34, 27, 0.95), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
    /* delay until expanded */
}

.gallery-item:hover .gallery-content {
    opacity: 1;
    transform: translateY(0);
}


/* =====================
   FLOATING JOIN BUTTON
   ===================== */
.floating-join-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    background: #12e28c;
    color: #0a1511;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(18, 226, 140, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: floating-btn-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.floating-join-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 32px rgba(18, 226, 140, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.floating-join-btn .material-symbols-outlined {
    font-size: 32px !important;
    font-weight: 700;
}

@keyframes floating-btn-entrance {
    from {
        opacity: 0;
        transform: scale(0) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 640px) {
    .floating-join-btn {
        display: none !important;
        /* Hidden on mobile — lives in More menu instead */
    }
}

/* =====================
   MAIN FOOTER
   ===================== */
.main-footer {
    padding: 3rem 1.5rem 6rem;
    background: #0a1511;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-copyright strong {
    color: #12e28c;
    font-weight: 600;
}

.morpheus-credit {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.morpheus-credit span {
    color: rgba(18, 226, 140, 0.6);
    font-weight: 600;
}

@media (max-width: 640px) {
    .main-footer {
        padding: 2.5rem 1.5rem 8rem;
    }
}

/* =====================
   MORE MENU POPUP (Mobile)
   ===================== */
#more-menu-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: rgba(16, 34, 27, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(18, 226, 140, 0.3);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#more-menu-popup.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.more-menu-item:hover,
.more-menu-item.active {
    background: rgba(18, 226, 140, 0.15);
    color: #12e28c;
}

.more-menu-item .material-symbols-outlined {
    font-size: 22px;
}

.more-menu-item span:not(.material-symbols-outlined) {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Backdrop for More Menu */
#more-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
    display: none;
}

#more-menu-backdrop.active {
    display: block;
}