@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Main SaaS Colors */
    --blue-primary: #4EA5D9;
    --orange-secondary: #F97316;
    --green-success: #22C55E;
    --yellow-highlight: #FACC15;
    --purple-accent: #8B5CF6;
    --red-error: #EF4444;

    /* Neutrals */
    --bg-soft: #F8FAFC;
    --text-dark: #0F172A;
    --text-light: #334155;
    --border-brand: #E5E7EB;

    /* Legacy Fallbacks (mapped to new palette to prevent breaking existing classes) */
    --navy-orbit: var(--text-dark);
    --navy-surface: #1E293B;
    --text-main: var(--text-dark);
    --text-muted: var(--text-light);
    --teal-glow: var(--blue-primary);
    --orange-flare: var(--orange-secondary);
    --yellow-prestige: var(--yellow-highlight);
    --rose-pulse: var(--purple-accent);
    --blue-glow: var(--blue-primary);

    /* Gradients (SaaS Harmony) */
    --grad-main: linear-gradient(135deg, var(--blue-primary), var(--purple-accent));
    --grad-warm: linear-gradient(135deg, var(--orange-secondary), var(--yellow-highlight));
    --grad-glow: linear-gradient(90deg, var(--blue-primary), var(--purple-accent), var(--orange-secondary));

    /* Glass & Effects */
    --glass-white: rgba(255, 255, 255, 0.95);
    --glass-dark: rgba(15, 23, 42, 0.9);
    --shadow-premium: 0 10px 40px rgba(15, 23, 42, 0.05);
    --shadow-btn: 0 4px 14px 0 rgba(78, 165, 217, 0.39);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Multi-Tier Depth Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --shadow-glow-blue: 0 0 60px rgba(78, 165, 217, 0.15);
    --shadow-glow-orange: 0 0 60px rgba(249, 115, 22, 0.12);

    /* Pastel Tints for Section Backgrounds */
    --tint-blue: #F0F7FF;
    --tint-orange: #FFF7ED;
    --tint-purple: #F5F3FF;
    --tint-green: #F0FDF4;
    --tint-warm: #FEFCE8;
}

/* Global Animations System */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal-up {
    animation: revealUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Scroll-triggered reveal (applied via JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating micro-element animation */
@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes floatSlowReverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(10px) rotate(-2deg);
    }
}

/* Ambient pulse for background orbs */
@keyframes ambientPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Gentle shimmer for hero overlay */
@keyframes shimmerGlow {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Gradient text utility */
.gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bright variant for dark backgrounds (hero) */
.carousel-caption .gradient-text,
.banner-text .gradient-text {
    background: linear-gradient(135deg, #ffffff, #a8d8ea, var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section divider with color gradient */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--blue-primary), var(--purple-accent), var(--orange-secondary), transparent);
    margin: 0 60px;
    opacity: 0.2;
}

/* Tactile Grain Overlay (2% Opacity) */
.tactile-depth {
    position: relative;
}

.tactile-depth::after {
    display: none;
    /* Disabling legacy pattern to let gradients shine */
}

/* Background Gradient Animation Styles - Magic UI Inspired */
.gradients-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, #fce7f3 0%, #dbeafe 35%, #d1fae5 65%, #fef3c7 100%);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    pointer-events: none;
    opacity: 1;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    50% { background-position: 100% 50%; filter: hue-rotate(180deg); }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(30px, 10px) scale(1.05); }
}

.mesh-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: blobFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.mesh-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4EA5D9 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.mesh-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    top: 20%;
    right: -5%;
    animation-delay: -5s;
}

.mesh-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #F97316 0%, transparent 70%);
    bottom: -10%;
    left: 20%;
    animation-delay: -10s;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    font-size: 16px;
    position: relative;
}

/* Dot grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(139, 92, 246, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
}

:root {
    --background-color-start: #FAFBFE;
    --background-color-end: #EDF4FF;
    --first-color: 78, 165, 217;
    /* Original Blue */
    --second-color: 228, 87, 46;
    /* Original Orange */
    --third-color: 142, 68, 173;
    /* Original Purple */
    --fourth-color: 76, 175, 80;
    /* Original Green */
    --fifth-color: 244, 197, 66;
    /* Original Yellow */
    --pointer-color: 140, 100, 255;
    --size: 80%;
    --blending-value: hard-light;
}

/* Subtle dot pattern overlay on entire page for texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.02;
    /* Lower opacity to let gradient shine through */
    background-image: radial-gradient(circle, #334155 0.8px, transparent 0.8px);
    background-size: 20px 20px;
}

/* Ensure all direct body children sit above the dot pattern */
body>* {
    position: relative;
    z-index: 1;
}

/* Section Contrast System — tinted backgrounds + radial glows */
.section-tinted {
    background: transparent;
    /* Seamlessly sharing the body gradient */
    position: relative;
    overflow: hidden;
}

.section-tinted::before {
    display: none;
    /* Removed the top divider line for true seamlessness */
}

/* Warm tint for cards/pillars section */
.section-warm {
    background: transparent;
    /* Let body gradient show through for seamlessness */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 20px 0; /* Increased from 10px to 20px */
    z-index: 5;
}

.section-warm::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 87, 46, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 8s ease-in-out infinite;
}

.section-warm::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 165, 217, 0.07), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 10s ease-in-out infinite 2s;
}

/* Purple tint for special sections */
.section-purple {
    background: linear-gradient(180deg, var(--tint-purple) 0%, #ffffff 100%);
    position: relative;
}

/* Floating decorative dots */
.section-warm .container,
.section-tinted .container {
    position: relative;
    z-index: 1;
}

/* ===== AMBIENT ORB UTILITY ===== */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ===== STAT BANNER — Full-Width Impact Numbers ===== */
.stat-banner {
    background: linear-gradient(135deg, #0B1120 0%, #152040 50%, #0B1120 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

/* Colored top & bottom edge glow lines */
.stat-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-primary), var(--purple-accent), transparent);
    opacity: 0.5;
}

.stat-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-secondary), var(--yellow-highlight), transparent);
    opacity: 0.4;
}

.stat-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-banner-item {
    position: relative;
    padding: 10px;
}

/* Subtle divider between items */
.stat-banner-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(78, 165, 217, 0.3), transparent);
}

.stat-banner-number {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-banner-suffix {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-primary);
}

.stat-banner-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .stat-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-banner-number {
        font-size: 36px;
    }

    .stat-banner-item:nth-child(2)::after {
        display: none;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.committee-name {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Width Alignment: Standardized for extreme zoom and varied desktop stability */
.container {
    max-width: 1550px !important;
    /* Slightly wider to accommodate branding */
    width: 94% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 clamp(10px, 2vw, 30px) !important;
}

.header {
    background: transparent;
    position: relative;
    z-index: 1050;
}

/* Homepage Specific Header Layout */
.home-header .header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-header .header-logo {
    justify-content: flex-start;
    width: auto;
    flex-shrink: 0;
    /* Prevents the branding from being squeezed by the search/login group */
}



.header-top {
    padding: 10px 0;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered to fill the horizontal space and eliminate the "empty right side" */
}

.header-nav {
    padding: 8px 0;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-brand);
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(26, 43, 86, 0.05);
}

.header-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.02;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered globally */
}

/* Ensure the header top stays sticky on mobile since actions are there */
@media (max-width: 1200px) {
    .header-top {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}



.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    /* Lighter border */
    padding-left: clamp(15px, 1.5vw, 25px);
    transition: all 0.3s ease;
}

.committee-name {
    font-size: clamp(14px, 1.4vw, 24px);
    /* Slightly smaller minimum to ensure one line */
    font-weight: 800;
    margin: 0;
    color: var(--navy-orbit);
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap !important;
    /* Enforced one line */
}

.parent-body {
    display: none;
    /* Removed as per user request to streamline title */
}

.header .logo,
.header .logo-secondary {
    width: clamp(180px, 16vw, 280px);
    /* Fluid scaling for logos */
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-divider {
    width: 1px;
    height: clamp(50px, 6vw, 90px);
    background: rgba(0, 0, 0, 0.1);
    margin: 0 clamp(8px, 1vw, 20px);
}


@media (max-width: 1250px) {
    .home-header .header-top .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 15px;
    }

    .home-header .header-logo {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        /* Stack logos on tablet if needed */
    }

    .home-header .header-actions-group {
        width: 100%;
        justify-content: center;
        padding-bottom: 15px;
    }

    .logo-divider {
        display: none;
        /* Hide divider when stacked */
    }

    .branding-text {
        border-left: none;
        padding-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .header-top {
        padding: 10px 0;
    }

    .header .logo,
    .header .logo-secondary {
        width: 190px;
    }

    .logo-divider {
        height: 59px;
    }

    .branding-text {
        padding-left: 15px;
    }

    .committee-name {
        font-size: 15px !important;
    }

    .parent-body {
        font-size: 9px !important;
    }

    .desktop-menu {
        display: none;
    }
}


.menu ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    column-gap: 32px;
    /* Restored healthy gap */
}

.menu ul a {
    text-decoration: none;
    color: var(--navy-orbit);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

/* Nav Orbit Sequence */
.menu ul li:nth-child(1) a:hover {
    color: var(--teal-glow);
}

.menu ul li:nth-child(2) a:hover {
    color: var(--navy-surface);
}

.menu ul li:nth-child(3) a:hover {
    color: var(--orange-flare);
}

.menu ul li:nth-child(4) a:hover {
    color: var(--yellow-prestige);
}

.menu ul li:nth-child(5) a:hover {
    color: var(--rose-pulse);
}

.menu ul li:nth-child(6) a:hover {
    color: var(--teal-glow);
}

/* Signal Underline Effect */
.menu ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.menu ul a:hover::after {
    width: 100%;
}

.gradient-btn {
    padding: clamp(10px, 1vw, 12px) clamp(16px, 1.8vw, 28px);
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    color: #fff;
    border-radius: 10px;
    background: var(--grad-main);
    background-size: 200% 200%;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    text-decoration: none;
    cursor: pointer;
}

.gradient-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(78, 165, 217, 0.45);
    filter: brightness(1.08);
    color: #fff;
}

.gradient-btn .material-symbols-outlined {
    margin-right: 8px;
    font-size: 18px;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Header Layout System */
.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.desktop-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    /* Ensures buttons don't shrink during zoom/collision */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-controls {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    color: #322873;
    padding: 5px;
    cursor: pointer;
}

.menu-toggle span {
    font-size: 32px !important;
}

/* Mobile Search Behavior */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search {
    flex-shrink: 0;
    margin-left: 20px;
}

.search-input {
    width: 0;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
}

/* On Desktop: Search is always visible */
@media (min-width: 1201px) {
    .search-input {
        width: 180px;
        padding: 10px 40px 10px 20px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #f8f9fa;
        opacity: 1;
        pointer-events: all;
    }

    .search-input:focus {
        width: 240px;
        border-color: var(--teal);
        background: #fff;
        box-shadow: 0 4px 15px rgba(211, 41, 101, 0.1);
    }
}

/* On Mobile/Tablet: Search is icon-based toggle */
@media (max-width: 1200px) {
    .search-container.mobile-expanded .search-input {
        width: 220px;
        padding: 10px 45px 10px 20px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: #fff;
        opacity: 1;
        pointer-events: all;
        position: absolute;
        right: 0;
        z-index: 10;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #660024;
    font-size: 20px !important;
    cursor: pointer;
    z-index: 2;
}

/* Mobile Overlay (Premium Finish) */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 40, 115, 0.98);
    /* Deep institutional blue */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 5vw, 40px);
    transform: translateX(100%);
    /* Slide from right for modern feel */
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
}

.mobile-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo-group .logo,
.mobile-logo-group .logo-secondary {
    width: 190px;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.mobile-logo-group .logo-secondary {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.mb-committee {
    color: #fff;
    font-size: 14px;
    /* Scaled up for readability */
    font-weight: 800;
    line-height: 1.2;
    max-width: 200px;
}

.mb-parent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-overlay {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.close-overlay span {
    font-size: 40px !important;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.mobile-nav a:hover {
    opacity: 0.7;
}

/* Responsiveness Media Queries */
/* Updated Breakpoint for Two-Tier Header */
@media (max-width: 1200px) {
    .header-logo {
        display: flex;
        /* Keep branding visible on all zoom levels */
        gap: 12px;
    }

    .header-top {
        padding: 5px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .desktop-menu {
        display: none;
    }

    .header-nav {
        display: none;
        /* Hide the empty bottom tier on mobile as actions moved to top tier */
    }

    .header-nav-inner {
        justify-content: flex-end;
        /* Keep login/toggle right-aligned */
    }

    .mobile-controls {
        display: flex;
        align-items: center;
    }

    .search-container .search-input {
        width: 0;
        padding: 0;
        border: none;
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 1200px) {
    .menu ul {
        column-gap: 20px;
    }

    .gradient-btn {
        padding: 10px 20px;
    }

    .committee-name {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-inner {
        gap: 10px;
    }

    .search-input {
        width: 100px;
    }

    .search-input:focus {
        width: 140px;
    }

    .branding-text {
        display: flex;
        /* Restored visibility */
    }
}

@media (max-width: 1100px) {
    .search-container .search-input {
        width: 0;
        padding: 0;
        border: none;
        opacity: 0;
        pointer-events: none;
    }

    .search-container.mobile-expanded .search-input {
        width: 180px;
        padding: 10px 35px 10px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        opacity: 1;
        pointer-events: all;
        background: #fff;
        position: absolute;
        right: 0;
        top: -10px;
        z-index: 1;
    }

    .gradient-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    .header .logo,
    .header .logo-secondary {
        width: 172px;
    }

    .logo-divider {
        height: 53px;
    }
}

@media (max-width: 576px) {

    .header .logo,
    .header .logo-secondary {
        width: 145px;
    }

    .logo-divider {
        height: 45px;
    }

    .header-inner {
        gap: 5px;
    }
}

/* Hero Container (Stable Responsive) */
.hero-container {
    position: relative;
    width: 85%;
    margin: 0 auto 10px !important;
    /* Force absolute minimal bottom margin */
    padding: 0;
    z-index: 10;
    box-shadow: none !important;
    /* REmove shadow for seamless blending */
}

/* Gradient transition to next section */
.hero-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    z-index: 2;
    pointer-events: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.hero-container .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    /* Remove fixed height to prevent cropping; use aspect ratio of the main banner (1600x666) */
    aspect-ratio: 1600 / 666;
    background: #000;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MagicUI Backlight — Enhanced Logo-color glow behind hero */
.hero-container::before {
    content: '';
    position: absolute;
    inset: -50px;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 35%, rgba(78, 165, 217, 0.22), transparent 50%),
        radial-gradient(ellipse at 80% 55%, rgba(228, 87, 46, 0.18), transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(142, 68, 173, 0.12), transparent 40%),
        radial-gradient(ellipse at 60% 20%, rgba(76, 175, 80, 0.06), transparent 45%);
    filter: blur(35px);
    border-radius: 24px;
    pointer-events: none;
    animation: ambientPulse 5s ease-in-out infinite;
}

/* 2. KEEP IMAGE CLEAN - VERY SUBTLE OVERLAY FOR READABILITY ONLY */
.hero-container .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Soft dark overlay, NO heavy colors */
    z-index: 1;
    pointer-events: none;
}

.hero-container .carousel-item img,
.hero-container .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    position: relative;
    /* Ensure no native mix-blend-modes are contaminating the image */
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Ensure Text & Captions float above the dark overlay */
.hero-container .carousel-caption,
.hero-container .banner-text {
    z-index: 5 !important;
    position: relative;
}

/* ===== Quick Links Floating Sidebar (beside banner) ===== */
.quicklinks-sidebar {
    position: absolute;
    right: -65px;
    /* Moved further out to avoid carousel arrow overlap */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    overflow: visible;
    /* Ensure content is not clipped */
}

.ql-sidebar-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--navy-orbit);
    border: 1px solid var(--border-brand);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    /* Keep hidden to contain the label during transition */
    white-space: nowrap;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        background 0.3s ease;
    position: relative;
}

/* Vibrant Orbit Sequence for Sidebar */
.ql-sidebar-item:nth-child(1) {
    background: var(--teal-glow);
}

.ql-sidebar-item:nth-child(2) {
    background: var(--navy-surface);
}

.ql-sidebar-item:nth-child(3) {
    background: var(--orange-flare);
}

.ql-sidebar-item:nth-child(4) {
    background: var(--rose-pulse);
}

.ql-sidebar-item:nth-child(5) {
    background: var(--teal-glow);
}

.ql-sidebar-item:hover {
    width: 260px;
    /* Use a stable fixed width on hover to prevent glitches */
    height: auto;
    min-height: 48px;
    box-shadow: 0 15px 35px rgba(26, 43, 86, 0.2);
}

/* Responsive Quick Links Sidebar */
@media (max-width: 1350px) {
    .quicklinks-sidebar {
        display: none;
        /* Hide when it risks overlapping main content or causing overflow */
    }
}



.ql-sidebar-item i {
    font-size: 19px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ql-label {
    position: absolute;
    right: 48px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: normal;
    /* Always allow wrapping inside the absolute box */
    word-break: break-word;
    padding: 0 15px;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    /* Subtle slide-in effect */
    pointer-events: none;
}

.ql-sidebar-item:hover .ql-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0.3s;
    /* Wait for panel to open (0.4s total, 0.3s start) */
}

/* Responsive: hide on smaller screens */
@media (max-width: 1200px) {
    .quicklinks-sidebar {
        right: -48px;
    }
}

@media (max-width: 992px) {
    .quicklinks-sidebar {
        display: none;
    }
}


.banner {
    height: 470px;
    overflow: hidden;
    position: relative;
}

.banner video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    /* height: 700px; */
    object-fit: cover;
    z-index: 1;
}

.banner:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(78, 165, 217, 0.85), rgba(142, 68, 173, 0.9));
}

.banner-text {
    position: relative;
    z-index: 3;
    margin-top: 100px;
    color: #fff;
}

.banner-text h1 {
    font-size: 70px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 20px 0px;
    text-shadow: 0 4px 24px rgba(15, 23, 42, 0.3);
    letter-spacing: -0.04em;
}

.banner-text h3 {
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
}

.banner-text p {
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
    opacity: 0.9;
}


.blur-btn,
.blur-btn2 {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    /* SaaS geometry */
    border: 1px solid var(--blue-primary);
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.orange-btn {
    border-color: var(--orange-secondary) !important;
    color: var(--orange-secondary) !important;
}

.orange-btn:hover {
    background: var(--grad-warm) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(228, 87, 46, 0.3) !important;
}

.blur-btn:hover,
.blur-btn2:hover {
    background: var(--blue-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 165, 217, 0.15);
}

.blur-btn span {
    position: relative;
    top: 7px;
    margin-left: 10px;
}


.modern-card {
    position: relative;
    padding: 35px 25px;
    border-radius: 20px;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--blue-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Hover Shine Effect */
.modern-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
    z-index: 2;
}

.modern-card:hover::after {
    top: 50%;
    left: 50%;
}

/* Subtle inner gradient overlay for vibrancy */
.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(78, 165, 217, 0.08) 0%, transparent 50%, rgba(142, 68, 173, 0.06) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card h4 {
    font-weight: 800;
    z-index: 5;
    position: relative;
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 0px;
    color: #fff;
    letter-spacing: -0.02em;
}

.card-hover {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    padding: 30px 25px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Glass edge */
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.modern-card:hover .card-hover {
    bottom: 0;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.card-btn {
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
    transition: var(--transition);
}

.card-btn:hover {
    background: #fff;
    color: #111;
}

/* Content images removed for clean SaaS style */

/* Background Overlays Removed */

.knowmore {
    color: #fff;
    z-index: 2;
    position: absolute;
    bottom: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: solid 2px transparent;
    transition: var(--transition);
}

.knowmore:hover {
    color: #fbdace;
    border-bottom-color: #fbdace;
}

.knowmore span {
    position: relative;
    top: 5px;
}

.modern-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Interactive Card Inner Navigation */
.hover-main-view,
.hover-sub-view {
    position: absolute;
    inset: 0;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
}

.hover-main-view.active,
.hover-sub-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hover-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hover-list li {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    transition: var(--transition);
    line-height: 1.3;
}

.hover-list li span {
    flex: 1;
}

.hover-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: var(--blue-primary);
}

.hover-list li i {
    font-size: 12px;
    opacity: 0.5;
    transition: var(--transition);
}

.hover-list li:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.sub-view-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sub-view-header h6 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.sub-view-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.5s ease forwards;
}

.sub-view-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: justify;
}

.sub-view-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-primary);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    width: fit-content;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sub-view-cta:hover {
    background: transparent;
    border-color: var(--blue-primary);
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: #fff;
    color: #111;
}

.sub-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sub-mini-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none !important;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sub-mini-card i {
    font-size: 20px;
    color: var(--blue-primary);
}

.sub-mini-card span {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sub-mini-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: var(--blue-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Original Dark Image Layout Restored */
/* Logo-Color Card Accent System */
.card1 {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url(../images/1.jpg) center center;
    background-size: cover;
    border-top-color: var(--blue-primary);
    /* Blue — Trade */
}

.card2 {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url(../images/2.jpg) center center;
    background-size: cover;
    border-top-color: var(--orange-secondary);
    /* Orange — Services */
}

.card3 {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url(../images/3.jpg) center center;
    background-size: cover;
    border-top-color: var(--green-success);
    /* Green — Policy */
}

.card4 {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url(../images/4.jpg) center center;
    background-size: cover;
    border-top-color: var(--purple-accent);
    /* Purple — GCC */
}

.card5 {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%), url(../images/1.jpg) center center;
    background-size: cover;
    border-top-color: var(--yellow-highlight);
    /* Yellow — Capacity */
}

/* ===== HORIZONTAL ACCORDION PILLAR CARDS ===== */
.accordion-wrapper {
    display: flex;
    width: 100%;
    height: 420px;
    gap: 15px;
    margin-top: 20px;
}

.accordion-card {
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0; /* Removing padding to allow full-bleed background */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Brighter border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Much lighter shadow */
}

/* Gradient Overlay for Text Readability - Dynamic Tints */
.accordion-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    z-index: 2;
    transition: all 0.5s ease;
}

.card1:hover::after, .card1.active::after { background: linear-gradient(to top, rgba(59, 130, 246, 0.3) 0%, transparent 80%); }
.card2:hover::after, .card2.active::after { background: linear-gradient(to top, rgba(249, 115, 22, 0.3) 0%, transparent 80%); }
.card3:hover::after, .card3.active::after { background: linear-gradient(to top, rgba(34, 197, 94, 0.3) 0%, transparent 80%); }
.card4:hover::after, .card4.active::after { background: linear-gradient(to top, rgba(168, 85, 247, 0.3) 0%, transparent 80%); }
.card5:hover::after, .card5.active::after { background: linear-gradient(to top, rgba(234, 179, 8, 0.3) 0%, transparent 80%); }

.accordion-card:hover,
.accordion-card.active {
    flex: 4;
}

/* Horizontal Title Handling */
.accordion-card .card-title {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 850;
    color: #fff;
    text-align: center;
    z-index: 15;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

.accordion-card:hover .card-title,
.accordion-card.active .card-title {
    bottom: calc(100% - 80px); /* Move to top of expanded card */
    left: 30px;
    right: auto;
    text-align: left;
    font-size: 28px;
    padding: 0;
    text-transform: none;
    letter-spacing: -0.02em;
    max-width: 90%;
}

/* Full Content in Expanded State */
.accordion-card .full-content {
    position: relative;
    z-index: 10;
    padding: 30px;
    padding-top: 110px; /* Increased space for smoother title transition */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    height: 100%; /* Use full height but hide content */
    overflow: hidden;
}

.accordion-card:hover .full-content,
.accordion-card.active .full-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition-delay: 0.3s; /* Delay text until card is wide enough */
}

/* Sub-view Overrides for Accordion */
.accordion-card .card-hover {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    bottom: 0 !important;
    transition: opacity 0.4s ease;
}

.accordion-card .hover-main-view,
.accordion-card .hover-sub-view {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    display: none;
    transition: none !important;
    flex-direction: column;
}

/* Pillar Card CTA Buttons */
.sub-view-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: #1a202c !important;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.2);
}

.sub-view-cta:hover {
    transform: scale(1.05) translateX(5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: #f8fafc;
}

.back-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(-3px);
}

.accordion-card .hover-main-view.active,
.accordion-card .hover-sub-view.active {
    display: flex !important;
}

.accordion-card .hover-list li {
    font-size: 14px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}

/* Reusing number styles but adjusting position */
.accordion-card .number {
    font-size: 120px;
    right: 20px;
    top: 20px;
    opacity: 0.1;
    transition: all 0.8s ease;
    z-index: 1;
    line-height: 1;
}

.accordion-card.active .number {
    font-size: 180px;
    opacity: 0.2;
    top: -20px;
    right: -20px;
}

/* Mobile Responsive Accordion */
@media (max-width: 991px) {
    .accordion-wrapper {
        flex-direction: column;
        height: auto;
        gap: 12px;
    }

    .accordion-card {
        flex: none;
        width: 100%;
        height: 90px;
        min-height: 90px;
        max-height: 90px;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .accordion-card.active {
        max-height: 1500px;
        height: auto;
        min-height: 500px;
    }

    .accordion-card .card-title {
        position: absolute;
        bottom: auto;
        top: 45px;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 16px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
        letter-spacing: 0.02em;
    }

    .accordion-card.active .card-title {
        top: 30px;
        left: 20px;
        transform: none;
        text-align: left;
        font-size: 24px;
        max-width: 90%;
    }

    .accordion-card .full-content {
        padding: 70px 20px 30px 20px; /* Space for the title at top */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s; /* Delayed smooth entry */
    }

    .accordion-card.active .full-content {
        opacity: 1;
        transform: translateY(0);
    }

    .accordion-card .number {
        font-size: 80px !important; /* Smaller numbers on mobile */
        opacity: 0.1 !important;
        top: 10px !important;
        right: 15px !important;
    }

    .accordion-card .full-content h4 {
        display: none; /* Already handled by .card-title */
    }
}

.number {
    font-size: 160px;
    font-weight: 800;
    position: absolute;
    right: 20px;
    top: 50px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}

/* ===== MAP SECTION — DOMINANT FEATURE ===== */
.mapcontainer {
    background: linear-gradient(135deg, #0B1120 0%, #111B33 50%, #0B1120 100%);
    position: relative;
    padding: 70px;
    border-radius: 28px;
    border: 1px solid rgba(78, 165, 217, 0.2);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(78, 165, 217, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: visible;
}

/* Animated top-edge glow line */
.mapcontainer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-primary), var(--purple-accent), var(--orange-secondary), transparent);
    opacity: 0.8;
    animation: shimmerGlow 4s ease-in-out infinite;
}

/* Stronger radial glow behind map — dominant feel */
.mapcontainer::after {
    content: '';
    position: absolute;
    inset: -80px;
    z-index: -1;
    border-radius: 50px;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(78, 165, 217, 0.18), transparent 55%),
        radial-gradient(ellipse at 80% 60%, rgba(142, 68, 173, 0.14), transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(228, 87, 46, 0.08), transparent 45%);
    filter: blur(40px);
    pointer-events: none;
    animation: ambientPulse 6s ease-in-out infinite;
}

/* Stat Cards — Glassmorphism inside dark container */
.stat-grid {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    flex: 1;
    min-width: 100px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Color-coded top accent per stat card */
.stat-card:nth-child(1) {
    border-top: 3px solid var(--blue-primary);
}

.stat-card:nth-child(2) {
    border-top: 3px solid var(--orange-secondary);
}

.stat-card:nth-child(3) {
    border-top: 3px solid var(--green-success);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(78, 165, 217, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(78, 165, 217, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    font-family: "Poppins", sans-serif;
    display: inline;
    background: linear-gradient(135deg, #fff, var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.maptext h3 {
    color: #FFFFFF;
    /* High contrast for dark mode */
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.maptext small {
    display: block;
    color: var(--blue-primary);
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    margin-top: 40px;
    text-transform: uppercase;
}

.maptext p {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    /* Muted contrast for dark mode */
    margin-top: 30px;
    margin-bottom: 30px;
}

.blur-btn2 {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 50px; /* More modern rounded pill */
    border: none;
    background: linear-gradient(135deg, #4EA5D9 0%, #322873 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(50, 40, 115, 0.3);
    position: relative;
    overflow: hidden;
}

.blur-btn2::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.blur-btn2:hover::before {
    left: 100%;
}

.blur-btn2:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(50, 40, 115, 0.4);
    background: linear-gradient(135deg, #5fb6eb 0%, #3a2f8c 100%);
    color: #fff;
}

.blur-btn2 span {
    margin-left: 12px;
    font-size: 20px;
}

.orange-btn {
    background: linear-gradient(135deg, #F97316 0%, #C2410C 100%);
    box-shadow: 0 10px 25px rgba(194, 65, 12, 0.3);
    color: #fff !important; /* Ensure white text for high contrast */
}

.orange-btn:hover {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 15px 35px rgba(194, 65, 12, 0.4);
}

.footer-dark {
    position: relative;
    background: #0B1120;
    color: rgba(255, 255, 255, 0.5);
    /* Lighter text for luxury feel */
    font-size: 14px;
    border-top: 1px solid rgba(78, 165, 217, 0.1);
    padding-bottom: 30px;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Ensure visibility on dark background */
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--blue-primary);
    border-radius: 2px;
}

.footer-dark .col-lg-3 {
    padding-right: 30px;
}

.footer-dark .row {
    justify-content: space-between;
}


.footer-text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    font-weight: 400;
    max-width: 320px;
    /* Control line length for better distribution */
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-contact-item i {
    color: var(--blue-primary);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}


.text-blue {
    color: var(--blue-primary) !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background: var(--blue-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 165, 217, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}


.newsletter {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.newsletter input {
    border: none;
    padding: 8px;
    flex: 1;
    outline: none;
}

.newsletter button {
    background: #f59e0b;
    border: none;
    color: #fff;
    padding: 0 12px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
    margin: 30px 0 15px;
}

.footer-bottom {
    font-size: 13px;
    padding-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--blue-primary);
}

.footer-list a:hover,
.footer-link:hover {
    color: var(--blue-primary);
}



.events-section {}

.section-tag {
    display: inline-block;
    color: var(--blue-primary);
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(78, 165, 217, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.section-title {
    color: var(--text-dark);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
}

/* Gradient underline on section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--grad-main);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 100%;
}

.view-all-btn {
    background: linear-gradient(135deg, #45b498 0%, #2d7a67 100%);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(45, 122, 103, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(45, 122, 103, 0.3);
    background: linear-gradient(135deg, #53ccad 0%, #358f78 100%);
}

.event-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Subtle colored glow on hover */
.event-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 165, 217, 0.06), transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.event-card:hover::after {
    opacity: 1;
}

/* Logo-color accent rotation for event cards */
.col-lg-4:nth-child(1) .event-card {
    border-left-color: var(--blue-primary);
}

.col-lg-4:nth-child(2) .event-card {
    border-left-color: var(--orange-secondary);
}

.col-lg-4:nth-child(3) .event-card {
    border-left-color: var(--purple-accent);
}

.col-lg-4:nth-child(2) .event-card::after {
    background: radial-gradient(circle, rgba(228, 87, 46, 0.05), transparent 70%);
}

.col-lg-4:nth-child(3) .event-card::after {
    background: radial-gradient(circle, rgba(142, 68, 173, 0.05), transparent 70%);
}

.event-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    /* Back to balanced padding */
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--grad-main);
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.25);
}

.event-date span {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.event-date small {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.event-content h5 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
    padding-right: 80px;
    /* Increased to prevent overlap with date badge */
    line-height: 1.3;
    color: var(--text-dark);
}

.event-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    padding-right: 80px;
    /* Added padding to prevent overlap with date badge */
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-top: 15px;
    margin-bottom: 20px;
}

.event-meta i {
    color: var(--blue-primary);
}

.event-btn {
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    /* This pushes the button to the bottom of the flex card */
    background: var(--grad-main);
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 165, 217, 0.2);
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 165, 217, 0.35);
    color: #fff;
}


.quick-links {
    background: transparent;
    position: relative;
}

.section-title {
    font-weight: 700;
    color: #1b2b4b;
}

.quick-row {
    display: flex;
    gap: 20px;
}

.quick-col {
    flex: 1;
    min-width: 0;
}

.quick-card {
    display: block;
    background: #fff;
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-brand);
    text-decoration: none;
    color: var(--navy-surface);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient shimmer on hover */
.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-card:hover::before {
    opacity: 1;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(78, 165, 217, 0.3);
    color: var(--navy-surface);
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    background: var(--grad-main);
    box-shadow: 0 4px 12px rgba(78, 165, 217, 0.25);
}

/* Rotate icon gradient colors per quick-card */
.quick-col:nth-child(2) .quick-icon {
    background: var(--grad-warm);
    box-shadow: 0 4px 12px rgba(228, 87, 46, 0.2);
}

.quick-col:nth-child(3) .quick-icon {
    background: linear-gradient(135deg, var(--green-success), var(--blue-primary));
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.quick-col:nth-child(4) .quick-icon {
    background: linear-gradient(135deg, var(--purple-accent), var(--blue-primary));
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

.quick-col:nth-child(5) .quick-icon {
    background: linear-gradient(135deg, var(--yellow-highlight), var(--orange-secondary));
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.2);
}

.quick-card h6 {
    font-weight: 600;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* responsive */

@media (max-width: 992px) {
    .quick-row {
        flex-wrap: wrap;
    }

    .quick-col {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .quick-col {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .quick-col {
        flex: 0 0 100%;
    }
}

/* ===================================================
   STRUCTURAL REFINEMENT (RVO + FRRB + CCG Reference)
   =================================================== */

/* RVO-style section block wrapper for clean separation */
.section-block {
    padding: 60px 0;
}

.map-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Section divider now defined at top of file with multi-color gradient */

/* CCG-style Right Quick Access Panel */
.right-quick-access {
    position: fixed;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    background: var(--bg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px 0 0 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-width: 145px;
}

.rqa-header {
    background: var(--grad-main);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    text-align: center;
}

.rqa-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #4a1a6e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f0e8f8;
    transition: background 0.2s ease;
}

.rqa-item:last-child {
    border-bottom: none;
}

.rqa-item:hover {
    background: #f7f0fc;
    color: #771385;
}

.rqa-item i {
    font-size: 15px;
    color: #771385;
    flex-shrink: 0;
}

/* Hide quick access panel on mobile/tablet */
@media (max-width: 992px) {
    .right-quick-access {
        display: none;
    }
}

/* ===================================================
   Quick Links Horizontal Tabs Layout
   =================================================== */
.quick-links-tabs-section {
    margin-top: -10px;
    /* Reduced overlap to increase spacing from the banner */
    margin-bottom: 25px;
    /* Slightly more space below as well */
    position: relative;
    z-index: 100;
    /* Ensure it stays above other content */
}

.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.tab-pill {
    display: flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--bg-soft);
    color: var(--navy-orbit);
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--border-brand);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Solar Indicator Bars - Refined to prevent corner glitch */
.tab-pill::before {
    content: '';
    position: absolute;
    bottom: 0;
    /* Moved to bottom to avoid radius clipping */
    left: 20%;
    width: 60%;
    /* Centered and shorter for a premium look */
    height: 3px;
    background: transparent;
    transition: var(--transition);
    border-radius: 20px;
}

.tab-pill.navbar-area {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.is-sticky .navbar-area {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tab-pill.active {
    background: #fff;
    box-shadow: 0 15px 35px rgba(26, 43, 86, 0.15);
    transform: translateY(-2px);
}

.tab-pill:nth-child(1):hover::before {
    background: var(--teal-glow);
}

.tab-pill:nth-child(2):hover::before {
    background: var(--navy-orbit);
}

.tab-pill:nth-child(3):hover::before {
    background: var(--orange-flare);
}

.tab-pill:nth-child(4):hover::before {
    background: var(--rose-pulse);
}

.tab-pill:nth-child(5):hover::before {
    background: var(--teal-glow);
}

.tab-pill:hover {
    color: var(--navy-orbit);
}

.tab-pill i {
    font-size: 18px;
    transition: transform 0.3s ease;
}



/* Responsive Tabs: Horizontal Scroll on Mobile */
@media (max-width: 1100px) {
    .quick-links-tabs-section {
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 15px 10px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        gap: 12px;
    }

    .tabs-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Brave */
    }

    .quick-links-tabs-section {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .tab-pill {
        padding: 12px 20px;
        font-size: 14px;
    }
}
}

/* ===================================================
   SaaS Deep Spacing Overrides
   =================================================== */
.py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.pb-5 {
    padding-bottom: 60px !important;
}

.pt-5 {
    padding-top: 60px !important;
}

.mapcontainer {
    padding: 15px 50px !important;
}

.maptext {
    margin-top: -30px !important;
}

/* Map Tooltip Theming */
.jvm-tooltip {
    background: rgba(15, 23, 42, 0.9) !important;
    /* var(--text-dark) with opacity */
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    min-width: 200px !important;
}

.jvm-tooltip h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 4px 0 !important;
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.jvm-tooltip h5 {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--blue-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 15px !important;
    opacity: 0.8;
}

.jvm-tooltip p {
    font-size: 14px !important;
    margin: 0 0 6px 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.jvm-tooltip .tooltip-action {
    margin-top: 15px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
    color: var(--orange-secondary) !important;
    display: block !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Navigation Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown>a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    pointer-events: none;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown a {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--text-dark) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    white-space: normal !important;
    transition: var(--transition) !important;
}

.nav-dropdown a::after {
    display: none !important;
}

.nav-dropdown a:hover {
    color: var(--blue-primary) !important;
    background: rgba(78, 165, 217, 0.05);
    padding-left: 25px !important;
}

/* Premium Panel Dropdown (Grid Layout) */
.nav-panel {
    min-width: 200px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    padding: 4px !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    top: 100% !important;
    left: -15px !important; /* Shifted left to reduce visual gap */
    transform: translateY(15px);
}

.has-dropdown:hover .nav-panel {
    transform: translateY(0);
}

.nav-panel-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

/* Strict Horizontal Layout for Dropdown Items */
.nav-panel div.nav-panel-grid a.nav-panel-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 4px 6px !important; /* Reduced further from 6px 8px to 4px 6px */
    gap: 6px !important; /* Reduced further to 6px */
    width: 100% !important;
    background: transparent !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.nav-panel div.nav-panel-grid a.nav-panel-item:hover {
    background: #f1f5f9 !important;
    transform: translateX(5px) !important;
}

.nav-panel-item i {
    font-size: 16px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    color: var(--blue-primary);
}

/* Individual Icon Interaction States */
.nav-panel-item:nth-child(1) i {
    color: #2563eb !important;
}

.nav-panel-item:nth-child(1):hover i {
    background: #2563eb !important;
    color: #fff !important;
}

.nav-panel-item:nth-child(2) i {
    color: #7c3aed !important;
}

.nav-panel-item:nth-child(2):hover i {
    background: #7c3aed !important;
    color: #fff !important;
}

.nav-panel-item:nth-child(3) i {
    color: #ea580c !important;
}

.nav-panel-item:nth-child(3):hover i {
    background: #ea580c !important;
    color: #fff !important;
}

.nav-panel-item:nth-child(4) i {
    color: #16a34a !important;
}

.nav-panel-item:nth-child(4):hover i {
    background: #16a34a !important;
    color: #fff !important;
}

.nav-panel-item:nth-child(5) i {
    color: #d97706 !important;
}

.nav-panel-item:nth-child(5):hover i {
    background: #d97706 !important;
    color: #fff !important;
}

.nav-panel-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .nav-panel {
        min-width: 480px !important;
        left: auto !important;
        right: 0 !important;
        transform: translateY(15px);
    }

    .has-dropdown:hover .nav-panel {
        transform: translateY(0);
    }
}


/* Mobile Dropdown styles */
.mobile-has-dropdown>a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    padding-top: 10px;
    overflow: hidden;
    display: none;
}

.mobile-sub-menu.active {
    display: block;
}

.mobile-sub-menu li {
    margin-bottom: 15px !important;
}

.mobile-sub-menu a {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
}

.mobile-sub-menu a:hover {
    color: #fff !important;
    opacity: 1 !important;
}

/* --- Centered Navigation & Top-Tier Search --- */
.header-nav-inner {
    justify-content: center !important;
}

.desktop-menu {
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container.top-tier {
    display: flex !important;
    align-items: center;
    background: rgba(243, 244, 246, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    padding: 6px 18px;
    width: 250px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.search-container.top-tier:focus-within {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(23, 43, 77, 0.2);
}

.search-container.top-tier .search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100%;
    font-size: 14px;
    color: #1a2b56;
    padding: 4px 0;
}

.search-container.top-tier .search-icon {
    color: #1a2b56;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    margin-left: 8px;
}

.nav-search {
    display: none !important;
}

@media (max-width: 1200px) {
    .header-top-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-container.top-tier {
        width: 100%;
        max-width: 100%;
    }
}

/* ===================================================
   COMPREHENSIVE MOBILE & TABLET OVERHAUL
   =================================================== */

/* Tablet & Mobile Grid Fixes */
@media (max-width: 1024px) {
    .row>.col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 768px) {
    .row>.col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Prevent Horizontal Scroll */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

/* Base Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Horizontal Quick Links (Hidden on Desktop) */
/* Mobile Quick Links - Sequential Section */
.mobile-quick-links {
    display: none;
    padding: 10px 0 0 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

.mobile-quick-links .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mql-container-fix {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    position: relative;
    padding: 0 5px;
}

.mql-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: var(--navy-orbit);
    transition: all 0.2s ease;
    opacity: 0.3;
    /* Start dimmed */
    pointer-events: none;
}

.mql-prev,
.mql-next {
    position: static !important;
    /* Force natural flow */
    transform: none !important;
}

.mql-scroll-btn:active {
    transform: scale(0.9);
}

.mql-scroll-btn .material-symbols-outlined {
    font-size: 24px;
    font-weight: bold;
}

.mql-wrapper {
    flex: 1;
    /* Take all available space between arrows */
    display: flex;
    overflow-x: auto;
    padding: 15px 0 25px 0;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.mql-item {
    scroll-snap-align: start;
}

.mql-wrapper::-webkit-scrollbar {
    display: none;
}

.mql-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center align text and icon like others */
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    color: var(--navy-orbit) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mql-item i {
    font-size: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    flex-shrink: 0;
}

/* Match Sidebar Icon Backgrounds (Orbit Sequence) */
.mql-item:nth-child(1) i {
    background: var(--teal-glow);
}

.mql-item:nth-child(2) i {
    background: var(--navy-surface);
}

.mql-item:nth-child(3) i {
    background: var(--orange-flare);
}

.mql-item:nth-child(4) i {
    background: var(--rose-pulse);
}

.mql-item:nth-child(5) i {
    background: var(--teal-glow);
}

.mql-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* Tablet & Mobile Overrides */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Grid Stacking */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 991px) {
    .mobile-quick-links {
        display: block;
    }

    .quicklinks-sidebar {
        display: none !important;
    }

    .py-5,
    .pt-5,
    .pb-5 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Typography */
    .display-2 {
        font-size: 3rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    /* Map Section Centering */
    .mapcontainer {
        padding: 30px 15px !important;
        overflow: hidden !important;
    }

    .maptext {
        text-align: center;
        margin-top: 0 !important;
        margin-bottom: 40px;
    }

    .stat-grid {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .stat-card {
        flex: 1;
        min-width: 100px;
        padding: 15px !important;
    }

    #world-map {
        height: 400px !important;
    }
}

@media (max-width: 768px) {

    /* Full Width Mobile Stacking */
    .col-sm-4,
    .col-sm-8,
    .col-md-6,
    .col-lg-3,
    .col-lg-4,
    .col-lg-10 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .row>[class*="col-"] {
        margin-bottom: 25px;
    }

    /* FIXED Mobile Header - Single Row Layout */
    .header-top {
        padding: 5px 0 !important;
        position: sticky !important;
        top: 0;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-top-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        flex-wrap: nowrap !important;
    }

    .header-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        text-align: left !important;
    }

    .logo-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .branding-text,
    .logo-divider {
        display: none !important;
    }

    .logo,
    .logo-secondary {
        height: 52px !important;
        width: auto !important;
        display: block !important;
        max-width: 130px !important;
        object-fit: contain !important;
    }

    .header-actions-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 0 !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .header-actions {
        display: none !important;
    }

    /* Clean Icon Buttons */
    .search-icon,
    .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: var(--navy-orbit) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .search-container.top-tier {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
    }

    .search-container .search-input {
        display: none !important;
    }

    .search-icon {
        font-size: 26px !important;
    }

    .menu-toggle .material-symbols-outlined {
        font-size: 30px !important;
    }

    /* Hide Desktop Nav on Mobile */
    .header-nav {
        display: none !important;
    }

    /* Full-Width Mobile Hero */
    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .hero-container .carousel-inner {
        border-radius: 0 !important;
        aspect-ratio: 1600 / 666 !important;
        height: auto !important;
    }

    .banner-video,
    .carousel-item img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        background: transparent !important;
    }

    .carousel-indicators {
        bottom: 15px !important;
    }

    .carousel-item,
    .carousel-inner,
    .hero-container,
    .carousel {
        height: auto !important;
        background: transparent !important;
        min-height: unset !important;
    }

    .carousel-caption,
    .banner-text {
        display: none !important;
    }

    /* Remove Decorative Orbs on Mobile */
    .ambient-orb {
        display: none !important;
    }

    /* Pillar Cards full width */
    .modern-card {
        height: 380px !important;
        margin-bottom: 20px;
    }

    /* Map Section Expanded */
    .mapcontainer {
        padding: 25px 15px !important;
        overflow: hidden !important;
    }

    #world-map {
        height: 320px !important;
        padding-top: 10px !important;
    }

    .maptext h3 {
        font-size: 1.8rem !important;
    }

    .stat-grid {
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    /* Footer Centering */
    .footer-dark .col-md-6,
    .footer-dark .col-lg-3 {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
    }

    .social-icons {
        justify-content: center !important;
        display: flex;
    }
}

/* Touch Target Polish */
button,
.mql-item,
.blur-btn2,
.submit-btn,
a.knowmore {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .events-section .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 20px;
    }

    .view-all-btn {
        order: 2;
        margin-top: 10px;
    }

    .modern-card .knowmore {
        justify-content: center !important;
        width: 100%;
    }

    /* Clean header in mobile side menu */
    .overlay-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 30px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-branding-text {
        text-align: left !important;
        padding-left: 0 !important;
        border-left: none !important;
        display: flex !important;
        flex-direction: column !important;
        max-width: 90% !important;
    }

    .mb-committee {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #fff !important;
        line-height: 1.4 !important;
        display: block !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }

    .mb-parent {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin-top: 4px !important;
        text-transform: uppercase !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    /* Mobile Menu Search Styling */
    .mobile-menu-search {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .mobile-search-box {
        position: relative;
        width: 100%;
    }

    .mobile-search-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 14px 15px 14px 45px;
        color: #fff;
        font-size: 16px;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }

    .mobile-search-input:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    }

    .mobile-search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.5);
        font-size: 22px;
        pointer-events: none;
    }

    .mobile-nav ul {
        text-align: center !important;
    }

    .mobile-nav li {
        margin-bottom: 30px !important;
        list-style: none !important;
    }

    .mobile-nav a {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        display: inline-block !important;
    }

    /* ===================================================
       PART 1: Mobile Navigation Dropdown Spacing Fix
       =================================================== */

    /* Submenu container — compact vertical layout */
    .mobile-sub-menu {
        display: none;
        flex-direction: column !important;
        gap: 2px !important;
        padding: 8px 0 0 0 !important;
        margin: 8px 0 0 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
    }

    .mobile-sub-menu.active {
        display: flex !important;
    }

    /* Submenu items — reset excessive spacing */
    .mobile-sub-menu li {
        margin: 0 !important;
        padding: 4px 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    /* Submenu links — smaller than main menu for hierarchy */
    .mobile-sub-menu a {
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Prevent parent dropdown from stretching when submenu opens */
    .mobile-has-dropdown {
        margin-bottom: 20px !important;
    }

    /* ===================================================
       PART 2: Card Layout Fix (Reports, ITEC, Certificates)
       Force single column on mobile
       =================================================== */

    /* Force single column for report/ITEC/certificate card grids */
    .report-grid .row,
    .report-grid .row.gy-4,
    .sub-accordion-body-inner .row,
    .sub-accordion-body-inner .row.gy-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .report-grid .row>[class*="col-"],
    .sub-accordion-body-inner .row>[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 0 !important;
    }

    /* Ensure report cards fill full width with proper spacing */
    .report-card {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Image scaling within cards */
    .report-card .pdf-thumb-container img,
    .report-card .pdf-thumb-container canvas,
    .pdf-thumb {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
}

/* ============================================================
   LEGAL PAGES — Privacy Policy & Terms of Use
   ============================================================ */

/* Hero */
.legal-hero {
    padding: 160px 0 80px;
    background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 25%, #f0e7ff 50%, #e8f5ff 75%, #f0fdf4 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.legal-hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.legal-hero .legal-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-hero .legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Section Nav */
.legal-nav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 0;
}

.legal-nav-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}

.legal-nav-inner::-webkit-scrollbar {
    display: none;
}

.legal-nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.legal-nav-link:hover {
    background: rgba(78, 165, 217, 0.08);
    color: var(--blue-primary);
    border-color: rgba(78, 165, 217, 0.15);
}

/* Content Area */
.legal-content {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 60vh;
}

.legal-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 30px 35px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
}

/* Individual Sections */
.legal-section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.legal-section:nth-child(odd) .legal-section-num {
    background: rgba(78, 165, 217, 0.1);
    color: #4EA5D9;
}

.legal-section:nth-child(even) .legal-section-num {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.legal-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.legal-section p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 10px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 6px;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-primary);
    opacity: 0.5;
}

.legal-section a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.legal-section a:hover {
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero {
        padding: 130px 20px 60px;
    }

    .legal-hero h1 {
        font-size: 2.2rem;
    }

    .legal-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .legal-content {
        padding: 40px 0 40px;
    }

    .legal-nav {
        top: 60px;
    }

    .legal-section h2 {
        font-size: 1.15rem;
    }
}

/* ===== ECOSYSTEM PARTNERS CAROUSEL (Glass Theme) ===== */
/* ===== ECOSYSTEM PARTNERS SECTION (Tightened) ===== */
.partners-section {
    background: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.partners-section .vibrant-heading {
    margin-bottom: 15px !important;
}

.logo-carousel-wrapper {
    background: #ffffff; /* Moved white strip here */
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Make it full width even if container is smaller */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Gradient mask for smooth edges */
.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.logo-carousel-wrapper::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.logo-carousel-wrapper::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(200px * 14 + 50px * 14);
    animation: scrollLogos 40s linear infinite;
    gap: 50px;
}

.logo-item {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-card {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.partner-card img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: all 0.4s ease;
    mix-blend-mode: normal; /* Removed multiply since background is white now */
    filter: none; /* Let natural logos show */
}

/* Specific Fix for IFSCA */
.partner-card img[src*="ewNuuGnL"] {
    border-radius: 50%; 
    object-fit: cover;
    width: 80px; /* Reduced from 120px */
    height: 80px;
    mix-blend-mode: normal;
    filter: none;
}

.partner-card img[src*=".svg"] {
    mix-blend-mode: normal;
    filter: none;
}

.partner-card:hover img {
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 7 - 50px * 7)); }
}

/* ===== QUICK ACCESS SECTION (Sidebar Bar Style) ===== */
.quick-access-section {
    position: relative;
    z-index: 10;
    padding: 0 0 20px !important; /* Increased from 10px to 20px */
}

.ql-bar-item {
    display: flex !important;
    align-items: center;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 10px !important;
}

.ql-icon-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 22px;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2) !important; /* Semi-transparent icon box for depth */
}

/* Vibrant Tab Backgrounds */
.ql-blue { background: linear-gradient(135deg, #4EA5D9 0%, #322873 100%) !important; }
.ql-purple { background: linear-gradient(135deg, #8e44ad 0%, #5d2a71 100%) !important; }
.ql-orange { background: linear-gradient(135deg, #F97316 0%, #C2410C 100%) !important; }

/* Remove old specific icon box colors since the whole tab is colored */
.ql-blue .ql-icon-box, .ql-purple .ql-icon-box, .ql-orange .ql-icon-box { background: rgba(255, 255, 255, 0.2) !important; }

.ql-text-content {
    flex-grow: 1;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important; /* White text for contrast */
    line-height: 1.3 !important;
    padding: 0 20px !important;
    display: block !important;
    letter-spacing: -0.01em;
}

.ql-arrow-box {
    padding-right: 20px;
    color: rgba(255, 255, 255, 0.6); /* White arrow */
    transition: all 0.3s ease;
}

.ql-bar-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.ql-bar-item:hover .ql-arrow-box {
    color: #fff;
    transform: translateX(5px);
}

/* Specific Hover Glows - Subtler for light mode */
.ql-blue:hover { box-shadow: 0 12px 25px rgba(0, 119, 182, 0.15); }
.ql-purple:hover { box-shadow: 0 12px 25px rgba(142, 68, 173, 0.15); }
.ql-orange:hover { box-shadow: 0 12px 25px rgba(243, 156, 18, 0.15); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0 20px;
        margin-top: 20px;
    }
    .quick-access-section {
        padding-bottom: 30px !important;
    }
    .ql-bar-item {
        padding: 12px 18px;
    }
    .ql-label {
        font-size: 13px;
    }
    .logo-item {
        width: 160px;
        height: 80px;
    }
    .logo-track {
        width: calc(160px * 14 + 20px * 14);
        gap: 20px;
    }
    .partner-card {
        padding: 15px;
        border-radius: 16px;
    }
    @keyframes scrollLogos {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-160px * 7 - 20px * 7)); }
    }
}