 :root {
     --academy-teal: #1a7a91;
     --academy-gold: #fbc02d;
     --glass-bg: rgba(255, 255, 255, 0.9);
 }

        html,
        body {
            overflow-x: hidden;
            /* THE FIX: Prevents horizontal scrolling */
            width: 100%;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #f8fafb;
        }

        /* --- Navbar Desktop & Layout Styling --- */
        .navbar-custom {
            background: var(--glass-bg);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 0.8rem 0;
            transition: all 0.3s ease;
            width: 100%;
        }

        /* Ensure the container doesn't bleed out */
        .navbar-custom .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Animated Gradient Text with Mobile Scaling */
        .brand-text {
            font-weight: 800;
            /* Scales font between 1rem and 1.3rem based on screen width */
            font-size: clamp(1rem, 4vw, 1.3rem);
            color: var(--academy-teal);
            background: linear-gradient(90deg, var(--academy-teal), var(--academy-gold), var(--academy-teal));
            background-size: 200% auto;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shine 4s linear infinite;
            margin-left: 12px;
            white-space: nowrap;
        }

        @keyframes shine {
            to {
                background-position: 200% center;
            }
        }

        /* --- Mobile Sidebar (Offcanvas) --- */
        .offcanvas {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-left: none;
            /* THE FIX: Prevents sidebar from being wider than small screens */
            max-width: 80% !important;
        }

        .offcanvas-header {
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 1.5rem 1.2rem;
        }

        .offcanvas-body {
            padding: 1.5rem 1.2rem;
            overflow-x: hidden;
        }

        /* Mobile Nav Links */
        .sidebar-nav .nav-link {
            font-size: 1.1rem;
            font-weight: 600;
            color: #334155 !important;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .sidebar-nav .nav-link:hover {
            color: var(--academy-teal) !important;
            padding-left: 10px;
        }

        .sidebar-nav .nav-link::after {
            content: '→';
            opacity: 0;
            transition: 0.3s;
        }

        .sidebar-nav .nav-link:hover::after {
            opacity: 1;
        }

        /* --- Custom Hamburger Menu --- */
        .navbar-toggler {
            border: none;
            padding: 0;
            background: transparent;
        }

        .navbar-toggler:focus {
            outline: none;
            box-shadow: none;
        }

        .toggler-icon {
            width: 30px;
            height: 2px;
            background-color: var(--academy-teal);
            display: block;
            margin: 6px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        /* --- Desktop Nav Link Underlines --- */
        @media (min-width: 992px) {
            .nav-link {
                margin: 0 10px;
                font-weight: 600;
                position: relative;
            }

            .nav-link::before {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 0;
                width: 0;
                height: 2px;
                background: var(--academy-gold);
                transition: 0.3s;
            }

            .nav-link:hover::before {
                width: 100%;
            }
        }

        /* --- Utility for small phones --- */
        @media (max-width: 350px) {
            .brand-text {
                font-size: 0.9rem;
                margin-left: 5px;
            }
        }


 




/* --- Footer Variables --- */
:root {
    --footer-bg: #030a12;
    --teal-academy: #1a7a91;
    --gold-academy: #fbc02d;
}

/* --- Main Footer Container --- */
.footer-executive {
    background-color: var(--footer-bg);
    color: white;
    padding-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* --- Floating CTA Card --- */
.footer-cta-card {
    background: linear-gradient(135deg, var(--teal-academy) 0%, #0d4e5d 100%);
    border-radius: 30px;
    margin-top: -160px; /* Floating effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.btn-gold-footer {
    background-color: var(--gold-academy);
    color: #000 !important;
    border-radius: 15px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    font-weight: 700;
}

.btn-gold-footer:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(251, 192, 45, 0.3);
}

/* --- Branding & Icons --- */
.footer-logo {
    max-height: 60px;
    filter: brightness(1.2);
}

.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: 0.3s;
}

.social-circle:hover {
    background: var(--gold-academy);
    color: #000 !important;
    transform: translateY(-5px) rotate(8deg);
}

/* --- Navigation Links --- */
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-academy);
    transform: translateX(8px);
}

.text-gold { color: var(--gold-academy) !important; }
.footer-divider { border-color: rgba(255, 255, 255, 0.08); }

/* --- Mobile Alignment & Responsive Fixes --- */
@media (max-width: 991px) {
    .footer-executive {
        padding-top: 140px; /* Space for the floating card */
    }
    
    .footer-cta-card {
        margin-top: -180px;
        text-align: center;
    }

    /* Centering Logo Column */
    .footer-brand-col {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center !important;
    }

    /* Centering Contact Column */
    .footer-contact-col {
        text-align: center !important;
    }

    .footer-contact-col .d-flex {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .footer-cta-card h3 { font-size: 1.5rem; }
    .col-6 { text-align: center; } /* Centers Academy & Programs links */
    .footer-links a:hover { transform: scale(1.05); } /* No slide on tiny screens */
}