@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 {
    display: none;
}

@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 {
    display: 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: #ffffff;
    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: #233459 !important;
    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-placeholder {
    position: relative;
    z-index: 9999 !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;
    gap: 20px;
}

.header-top-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-top-center {
    flex: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.header-top-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.header-top-left a {
    display: block;
}

.header-top-center .committee-name {
    margin: 0;
    white-space: normal;
    /* Allow wrap on smaller screens if needed */
    text-align: center;
}

.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 {
    width: clamp(140px, 12vw, 220px);
    height: auto;
    object-fit: contain;
}

.header .logo-secondary {
    width: clamp(140px, 12vw, 220px);
    height: auto;
    object-fit: contain;
}

.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: 30px;
    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: row;
        /* Keep horizontal but maybe wrap if too tight */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-top-left,
    .header-top-center,
    .header-top-right {
        flex: none;
        width: auto;
    }

    .header-top-center {
        order: -1;
        /* Move title to top if wrapped */
        width: 100%;
    }
}

@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;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.desktop-menu {
    display: flex;
    justify-content: center;
}

.nav-search {
    position: absolute !important;
    right: 20px !important;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    z-index: 1001;
    /* Above sticky header z-index 999 */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.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);
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Unified nav-search styling handled above */

.search-input {
    width: 180px;
    padding: 8px 35px 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: #f8f9fa;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: all;
}

.search-input:focus {
    width: 220px;
    background: #fff;
    border-color: var(--blue-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* On Desktop: Search is always visible */
/* Desktop Specific Overrides removed to use unified search styling above */

/* 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: #233459;
    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: #233459 !important;
    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 {
    display: none;
    /* Removed shadow to prevent interference with banner text */
}

.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,
.banner-img {
    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 {
    display: none;
    /* Removed overlay to restore full image brightness */
}

.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 */
}

/* ===== MERGE & CYCLE DECK — PILLAR CARDS ===== */
.board {
    --dw: 18.8%;
    --dh: 420px;
    --dg: 1.5%;
    position: relative;
    width: 100%;
    height: var(--dh);
    margin-top: 20px;
}

.deck-card {
    position: absolute;
    top: 0;
    width: var(--dw);
    height: var(--dh);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: auto !important;
}

/* Theme Backgrounds & Gradients - Brighter & More Vibrant set */
.deck-card.card1 {
    background-image: linear-gradient(to bottom, rgba(14, 165, 233, 0.6), rgba(3, 105, 161, 0.8)), url('../images/1.jpg');
}

.deck-card.card2 {
    background-image: linear-gradient(to bottom, rgba(16, 185, 129, 0.6), rgba(5, 150, 105, 0.8)), url('../images/2.jpg');
}

.deck-card.card3 {
    background-image: linear-gradient(to bottom, rgba(245, 158, 11, 0.6), rgba(217, 119, 6, 0.8)), url('../images/3.jpg');
}

.deck-card.card4 {
    background-image: linear-gradient(to bottom, rgba(249, 115, 22, 0.6), rgba(234, 88, 12, 0.8)), url('../images/4.jpg');
}

.deck-card.card5 {
    background-image: linear-gradient(to bottom, rgba(239, 68, 68, 0.6), rgba(185, 28, 28, 0.8)), url('../images/pillar_cards/pillar5.png');
}

/* Make every child non-intercepting so the card itself takes the click */
.deck-card>* {
    pointer-events: none !important;
}

.deck-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    /* Using background-image on card for better control */
    z-index: 2;
    transition: all 0.5s ease;
    pointer-events: none;
}

.deck-card:hover .deck-overlay {
    background: rgba(255, 255, 255, 0.1);
}

/* Deck Card Positions — Spread State */
.deck-card[data-index="1"] {
    left: 0;
}

.deck-card[data-index="2"] {
    left: calc(1 * (var(--dw) + var(--dg)));
}

.deck-card[data-index="3"] {
    left: calc(2 * (var(--dw) + var(--dg)));
}

.deck-card[data-index="4"] {
    left: calc(3 * (var(--dw) + var(--dg)));
}

.deck-card[data-index="5"] {
    left: calc(4 * (var(--dw) + var(--dg)));
}

/* Card Title */
.deck-card .card-title {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Card Number */
.deck-card .number {
    font-size: 110px;
    /* Scaled to fit fully in frame */
    font-weight: 850;
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgba(255, 255, 255, 0.3);
    /* Slightly more visible as requested */
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    transition: all 0.8s ease;
    letter-spacing: -0.05em;
}

/* === STACKED STATE === */
.board.is-stacked .deck-card {
    left: 0 !important;
    width: var(--dw) !important;
    /* Keep original size from spread state */
    box-shadow: -3px 0px 15px rgba(0, 0, 0, 0.15);
}

.board.is-stacked .deck-card:not(.active)[data-index="1"] {
    transform: translate(-6px, 6px) rotate(-3deg);
    z-index: 1;
}

.board.is-stacked .deck-card:not(.active)[data-index="2"] {
    transform: translate(-3px, 3px) rotate(-1.5deg);
    z-index: 2;
}

.board.is-stacked .deck-card:not(.active)[data-index="3"] {
    transform: translate(0, 0) rotate(0deg);
    z-index: 3;
}

.board.is-stacked .deck-card:not(.active)[data-index="4"] {
    transform: translate(3px, -3px) rotate(1.5deg);
    z-index: 4;
}

.board.is-stacked .deck-card:not(.active)[data-index="5"] {
    transform: translate(6px, -6px) rotate(3deg);
    z-index: 5;
}

.board.is-stacked .deck-card.active {
    transform: translate(0, 0) scale(1.03);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.board.is-stacked .deck-card:not(.active) .card-title,
.board.is-stacked .deck-card:not(.active) .number {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* === DETAILS PANEL === */
.details-panel {
    position: absolute;
    top: 0;
    left: calc(var(--dw) + 20px);
    /* Space out relative to card size */
    width: calc(100% - var(--dw) - 20px);
    height: var(--dh);
    /* Dynamic Theme Variables */
    --theme-color: var(--blue-primary);
    --theme-bg: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
    --theme-border: rgba(15, 23, 42, 0.08);

    background: var(--theme-bg);
    border-radius: 20px;
    padding: 15px 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--theme-border);
    opacity: 0;
    visibility: hidden;
    /* Fully hide to prevent click blocking */
    pointer-events: none;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0s;
    display: flex;
    /* Restore flex for animation support */
    flex-direction: column;
    overflow: hidden;
    z-index: 6;
}

/* Theme Mappings matched to Pillar Card Gradients */
.details-panel[data-theme="1"] {
    /* Blue - Trade & Market Integration */
    --theme-color: #0284c7;
    --theme-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --theme-border: rgba(2, 132, 199, 0.15);
}

.details-panel[data-theme="2"] {
    /* Green - Global Services & Professional Mobility */
    --theme-color: #059669;
    --theme-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --theme-border: rgba(5, 150, 105, 0.15);
}

.details-panel[data-theme="3"] {
    /* Amber - Policy, Multilateral & Government Affairs */
    --theme-color: #d97706;
    --theme-bg: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    --theme-border: rgba(217, 119, 6, 0.15);
}

.details-panel[data-theme="4"] {
    /* Orange - GCC & Emerging Global Ecosystems */
    --theme-color: #ea580c;
    --theme-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    --theme-border: rgba(234, 88, 12, 0.15);
}

.details-panel[data-theme="5"] {
    /* Red - Capacity Building Programs */
    --theme-color: #dc2626;
    --theme-bg: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    --theme-border: rgba(220, 38, 38, 0.15);
}

/* Reset global card-hover conflict */
.details-panel .card-hover {
    position: relative !important;
    height: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    transform: none !important;
    transition: none !important;
    display: block !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

.board.is-stacked .details-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.3s;
}

.panel-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: hidden;
    /* Prevent scrolling as per user request */
    padding-right: 0;
    margin-bottom: 0;
}

/* Ensure JS block becomes flex */
.panel-content[style*="display: block"],
.panel-content[style*="display:block"] {
    display: flex !important;
}

.panel-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--theme-color);
    margin: 0 0 5px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

/* Hover list inside panel */
.details-panel .hover-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.details-panel .hover-list li {
    font-size: 15px;
    padding: 18px 20px;
    background: #fff;
    /* Light background */
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    color: #334155;
    /* Dark text */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.details-panel .hover-list li:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--theme-color);
    transform: translateX(10px);
}

.details-panel .hover-list li span {
    color: #1e293b;
    font-weight: 700;
}

.details-panel .hover-list li i {
    color: var(--theme-color);
    font-size: 14px;
}

/* Sub-views in panel */
.details-panel .hover-main-view,
.details-panel .hover-sub-view {
    display: none;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.details-panel .hover-main-view.active,
.details-panel .hover-sub-view.active {
    display: block;
}

.details-panel .sub-view-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    /* Minimized */
}

.details-panel .sub-view-header h6 {
    color: #1e293b;
    /* Dark text */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.details-panel .back-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-color) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.details-panel .back-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(-3px);
}

.details-panel .sub-view-description {
    color: #475569;
    /* Dark muted text */
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.details-panel .sub-view-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #fff;
    color: #1a202c !important;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.details-panel .sub-view-cta:hover {
    transform: scale(1.05) translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.details-panel .sub-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 5px;
}

.details-panel .sub-mini-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px 20px;
    background: #fff;
    /* Light background */
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    color: #1e293b;
    /* Dark text */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
    min-height: 80px;
}

.details-panel .sub-mini-card:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--theme-color);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.details-panel .sub-mini-card i {
    font-size: 40px;
    /* Even larger icon */
    color: var(--theme-color);
    flex-shrink: 0;
}

.details-panel .sub-mini-card img {
    width: 50px;
    /* Even larger general logos */
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Specific override for Invest India to make it even more prominent */
.details-panel .sub-mini-card img[alt="Invest India"] {
    width: 90px;
    height: auto;
}

.details-panel .sub-mini-card span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #334155;
}

/* Reset Button */
.deck-reset-btn {
    margin-top: auto;
    padding: 10px 20px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--theme-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.deck-reset-btn:hover {
    background: #e2e8f0;
    transform: translateX(-3px);
}

/* ===== MOBILE RESPONSIVE (< 768px) ===== */
@media (max-width: 768px) {
    .board {
        --dw: 90vw;
        --dh: 150px;
        width: 100%;
        height: auto;
        min-height: 550px;
    }

    .deck-card {
        left: 5vw !important;
        width: var(--dw);
        height: var(--dh);
    }

    .deck-card[data-index="1"] {
        top: 0;
    }

    .deck-card[data-index="2"] {
        top: 80px;
        z-index: 2;
    }

    .deck-card[data-index="3"] {
        top: 160px;
        z-index: 3;
    }

    .deck-card[data-index="4"] {
        top: 240px;
        z-index: 4;
    }

    .deck-card[data-index="5"] {
        top: 320px;
        z-index: 5;
    }

    .deck-card .card-title {
        font-size: 15px;
        padding: 15px 15px;
    }

    .deck-card .number {
        font-size: 80px;
        right: 10px;
        top: 10px;
    }

    /* Mobile Stacked State */
    .board.is-stacked .deck-card {
        top: 10px !important;
        left: 5vw !important;
        height: var(--dh);
    }

    .board.is-stacked .deck-card:not(.active)[data-index="1"] {
        transform: translate(-3px, 3px) rotate(-2deg);
    }

    .board.is-stacked .deck-card:not(.active)[data-index="2"] {
        transform: translate(-1px, 1px) rotate(-1deg);
    }

    .board.is-stacked .deck-card:not(.active)[data-index="3"] {
        transform: translate(0, 0) rotate(0deg);
    }

    .board.is-stacked .deck-card:not(.active)[data-index="4"] {
        transform: translate(1px, -1px) rotate(1deg);
    }

    .board.is-stacked .deck-card:not(.active)[data-index="5"] {
        transform: translate(3px, -3px) rotate(2deg);
    }

    /* Mobile Details Panel */
    .details-panel {
        top: calc(var(--dh) + 30px);
        left: 5vw;
        width: 90vw;
        height: auto;
        min-height: 300px;
        padding: 25px 20px;
        transform: translateY(40px);
    }

    .board.is-stacked {
        min-height: calc(var(--dh) + 380px);
    }

    .board.is-stacked .details-panel {
        transform: translateY(0);
    }

    .panel-heading {
        font-size: 1.4rem;
    }

    .details-panel .sub-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== NUMBER BASE STYLE ===== */
.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: #FFFFFF;
    position: relative;
    padding: 40px 35px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Remove dark mode glows */
.mapcontainer::before,
.mapcontainer::after {
    display: none;
}

/* Stat Cards — Glassmorphism inside dark container */
.stat-grid {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px 12px;
    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: 1px solid rgba(78, 165, 217, 0.2);
}

.stat-card:nth-child(2) {
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.stat-card:nth-child(3) {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-card:hover {
    background: #F8FAFC;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 32px;
    font-weight: 850;
    font-family: "Poppins", sans-serif;
    display: inline;
}

.stat-card:nth-child(1) .stat-number {
    color: #3B82F6;
}

.stat-card:nth-child(2) .stat-number {
    color: #10B981;
}

.stat-card:nth-child(3) .stat-number {
    color: #EF4444;
}

.stat-suffix {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-primary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #64748B;
    margin-top: 5px;
    font-weight: 600;
}

.maptext h3 {
    color: #233459;
    font-size: 38px;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.maptext small {
    display: block;
    color: #52B788;
    font-weight: 800;
    letter-spacing: 5px;
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.maptext p {
    font-size: 16px;
    font-weight: 400;
    color: #475569;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blur-btn2 {
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    background: #F48C06;
    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: 800;
    box-shadow: 0 10px 25px rgba(244, 140, 6, 0.25);
    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: #031e44;
    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 !important;
    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.5;
    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);
}



.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: 16px;
    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: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    color: #1E293B !important;
    font-family: 'Inter', sans-serif !important;
    min-width: 220px !important;
}

.jvm-tooltip h2 {
    font-size: 24px !important;
    font-weight: 850 !important;
    margin: 0 0 6px 0 !important;
    color: #0F172A !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -0.02em !important;
}

.jvm-tooltip h5 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #10B981 !important;
    /* Green matching selected regions */
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    opacity: 1 !important;
}

.jvm-tooltip p {
    font-size: 15px !important;
    margin: 0 0 8px 0 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.jvm-tooltip .tooltip-action {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    font-weight: 800 !important;
    color: #F48C06 !important;
    display: block !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !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: 15px !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;
}

/* Removed redundant hide rule */

@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 SECTION (Scrolling Box Format) ===== */
.partners-section {
    background: transparent;
    padding: 40px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.logo-carousel-wrapper {
    background: transparent;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* 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, rgba(248, 250, 252, 1) 0%, transparent 100%);
}

.logo-carousel-wrapper::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, rgba(248, 250, 252, 1) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    gap: 30px;
    animation: scrollLogos 60s linear infinite;
    width: max-content;
}

.partner-box {
    background: #ffffff;
    /* Multi-color gradient border using background-clip technique */
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--grad-glow);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 16px;
    width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    /* Reduced from 20px */
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.partner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    filter: brightness(0.98);
    /* Subtle feedback since border is always colorful */
}

.partner-box img {
    width: 200px;
    /* Standardized bounding box width */
    height: 95px;
    /* Standardized bounding box height */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
    transition: transform 0.4s ease;
}

/* Animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-310px * 13));
    }

    /* Width (280) + Gap (30) */
}

/* Pause on hover removed per request */
.logo-track:hover {
    animation-play-state: paused;
}

/* Specific Fix for Circular Logos - Now handled by general normalization */
.partner-box img[src*="ewNuuGnL"] {
    border-radius: 50%;
}

.presence-text {
    color: #233459;
    font-weight: 600;
    line-height: 1.4;
}

.presence-text strong {
    font-weight: 800;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .partner-box {
        width: 180px;
        height: 90px;
        padding: 15px;
    }

    .partner-box img {
        width: 140px;
        height: 60px;
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-210px * 13));
        }
    }
}

.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 OPTIMIZATIONS — MAX-WIDTH 768px
   All desktop styles are untouched. Only mobile fixes below.
   ============================================================ */
@media (max-width: 768px) {

    /* ── GLOBAL ── */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* ── REDUCE HEAVY BLUR EFFECTS FOR PERFORMANCE ── */
    .mesh-blob {
        display: none;
    }

    .gradients-container {
        display: none;
    }

    /* ── HEADER / NAVIGATION ── */
    .header-top {
        padding: 8px 0;
    }

    .home-header .header-top .container {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    .header-top-left,
    .header-top-right {
        flex: 0 0 auto;
        width: auto;
    }

    .header-top-center {
        flex: 1 1 auto;
        order: 0;
        width: auto;
    }

    .header .logo,
    .header .logo-secondary {
        width: 110px !important;
    }

    .committee-name {
        font-size: 11px !important;
        white-space: normal !important;
        line-height: 1.2;
        text-align: center;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        padding: 8px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav {
        display: none;
    }

    /* ── MOBILE OVERLAY MENU ── */
    .mobile-overlay {
        padding: 20px 20px;
        overflow-y: auto;
    }

    .overlay-header {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .mb-committee {
        font-size: 13px;
        max-width: 180px;
    }

    .mb-parent {
        font-size: 10px;
    }

    .close-overlay span {
        font-size: 32px !important;
    }

    .mobile-menu-search {
        margin-bottom: 20px;
    }

    .mobile-search-box {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px 14px;
        gap: 10px;
    }

    .mobile-search-input {
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 15px;
        width: 100%;
    }

    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .mobile-search-icon {
        color: rgba(255, 255, 255, 0.6);
        font-size: 20px !important;
    }

    .mobile-nav ul {
        text-align: left;
    }

    .mobile-nav li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav>ul>li:last-child {
        border-bottom: none;
    }

    .mobile-nav a {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px;
        min-height: 48px;
    }

    .mobile-nav a .material-symbols-outlined {
        font-size: 18px !important;
        opacity: 0.6;
        transition: transform 0.3s ease;
    }

    .mobile-sub-menu {
        list-style: none;
        padding: 0 0 8px 16px;
        margin: 0;
        display: none;
    }

    .mobile-sub-menu.active {
        display: block;
    }

    .mobile-sub-menu li {
        border-bottom: none;
        margin-bottom: 0;
    }

    .mobile-sub-menu a {
        font-size: 14px;
        font-weight: 500;
        padding: 10px 4px;
        min-height: 40px;
        opacity: 0.85;
    }

    /* ── HERO / BANNER ── */
    .hero-container {
        width: 100% !important;
        margin: 0 0 8px !important;
        border-radius: 0;
    }

    .hero-container .carousel-inner {
        border-radius: 0;
        aspect-ratio: 16 / 9;
    }

    .hero-container::before,
    .hero-container::after {
        display: none;
    }

    .carousel-caption {
        padding: 0 16px 20px;
        bottom: 10px;
        left: 0;
        right: 0;
        text-align: left;
    }

    .carousel-caption h1.display-2 {
        font-size: clamp(22px, 7vw, 36px) !important;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .carousel-caption .lead {
        font-size: 13px;
        opacity: 0.9;
        margin-bottom: 0;
    }

    .carousel-indicators {
        bottom: 8px;
    }

    /* ── SECTION SPACING ── */
    .section-warm {
        padding: 10px 0;
    }

    .section-block {
        padding: 30px 0;
    }

    .py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .pt-5 {
        padding-top: 30px !important;
    }

    .pb-5 {
        padding-bottom: 30px !important;
    }

    /* ── SECTION TITLES ── */
    .section-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .section-tag {
        font-size: 10px;
        padding: 4px 12px;
    }

    /* ── PILLAR DECK CARDS — physical deck animation on mobile ── */

    .board {
        position: relative !important;
        width: 100% !important;
        height: 420px !important;
        /* 5 cards * 76px + 4 * 10px gaps */
        min-height: unset !important;
        display: block !important;
        margin-top: 10px;
        transition: height 0.4s ease;
    }

    .deck-card {
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
        height: 76px !important;
        border-radius: 14px !important;
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden;
        transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }

    /* Spread State (Vertical) */
    .deck-card[data-index="1"] {
        top: 0 !important;
    }

    .deck-card[data-index="2"] {
        top: 86px !important;
    }

    .deck-card[data-index="3"] {
        top: 172px !important;
    }

    .deck-card[data-index="4"] {
        top: 258px !important;
    }

    .deck-card[data-index="5"] {
        top: 344px !important;
    }

    .deck-card .card-title {
        font-size: 13px;
        font-weight: 700;
        padding: 0 56px 0 16px;
        text-align: left;
        z-index: 5;
        position: relative;
        line-height: 1.3;
        letter-spacing: 0;
        text-transform: uppercase;
        bottom: auto !important;
    }

    .deck-card .number {
        font-size: 64px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.22;
    }

    /* === STACKED STATE (Mobile) === */
    .board.is-stacked {
        height: auto !important;
        min-height: 400px !important;
        padding-top: 100px !important;
        /* Space for the stacked absolute cards */
    }

    /* All cards stack at the top */
    .board.is-stacked .deck-card {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

    /* Subtle rotations to look like a physical deck */
    .board.is-stacked .deck-card:not(.active)[data-index="1"] {
        transform: translate(-3px, 3px) rotate(-2deg) !important;
        z-index: 1 !important;
    }

    .board.is-stacked .deck-card:not(.active)[data-index="2"] {
        transform: translate(-1.5px, 1.5px) rotate(-1deg) !important;
        z-index: 2 !important;
    }

    .board.is-stacked .deck-card:not(.active)[data-index="3"] {
        transform: translate(0, 0) rotate(0deg) !important;
        z-index: 3 !important;
    }

    .board.is-stacked .deck-card:not(.active)[data-index="4"] {
        transform: translate(1.5px, -1.5px) rotate(1deg) !important;
        z-index: 4 !important;
    }

    .board.is-stacked .deck-card:not(.active)[data-index="5"] {
        transform: translate(3px, -3px) rotate(2deg) !important;
        z-index: 5 !important;
    }

    .board.is-stacked .deck-card.active {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28) !important;
        transform: scale(1.02) !important;
        z-index: 10 !important;
    }

    /* Fade out text on inactive stacked cards to keep it clean */
    .board.is-stacked .deck-card:not(.active) .card-title,
    .board.is-stacked .deck-card:not(.active) .number {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Details Panel */
    .details-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 260px !important;
        padding: 18px 16px !important;
        border-radius: 14px !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: -1 !important;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .board.is-stacked .details-panel {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        /* Rely on board's padding-top to prevent margin collapse */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 1 !important;
        transition-delay: 0.1s !important;
    }

    .panel-heading {
        font-size: 1.05rem;
    }

    .details-panel .hover-list li {
        font-size: 13px;
        padding: 11px 12px;
        margin-bottom: 7px;
    }

    .details-panel .sub-mini-card {
        padding: 12px 16px;
        height: 64px;
        /* Fixed height for uniformity */
        gap: 12px;
        align-items: center;
    }

    .details-panel .sub-mini-card i {
        font-size: 24px;
        width: 40px;
        text-align: center;
    }

    .details-panel .sub-mini-card img {
        width: 40px;
        height: 30px;
        object-fit: contain;
    }

    /* Override Invest India specific sizing for mobile consistency */
    .details-panel .sub-mini-card img[alt="Invest India"] {
        width: 50px !important;
        height: 30px !important;
    }

    .deck-reset-btn {
        width: auto;
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 15px;
    }

    /* ── STAT BANNER ── */
    .stat-banner {
        padding: 24px 0;
    }

    .stat-banner-number {
        font-size: 30px;
    }

    .stat-banner-suffix {
        font-size: 22px;
    }

    .stat-banner-label {
        font-size: 11px;
        letter-spacing: 1px;
    }

    /* ── EVENTS SECTION ── */
    .events-section .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .event-card {
        margin-bottom: 16px;
        padding: 20px 16px;
    }

    .event-content h5 {
        font-size: 16px;
        padding-right: 70px;
        line-height: 1.3;
    }

    .event-content p {
        font-size: 13px;
        padding-right: 70px;
    }

    .event-date {
        top: 16px;
        right: 14px;
        padding: 6px 10px;
    }

    .event-date span {
        font-size: 16px;
    }

    .event-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }

    .event-btn {
        font-size: 13px;
        padding: 9px 18px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .view-all-btn {
        font-size: 13px;
        padding: 9px 20px;
    }

    /* ── QUICK LINKS TABS ── */
    .quick-links-tabs-section {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .tabs-wrapper {
        gap: 8px;
        padding: 10px 18px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .tab-pill {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ── QUICK ACCESS LINKS (blue/purple/orange bar) ── */
    .quick-access-section {
        padding: 0 0 16px !important;
    }

    .ql-bar-item {
        padding: 12px 14px !important;
        border-radius: 14px;
        min-height: 54px;
    }

    .ql-icon-box {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 10px;
    }

    .ql-text-content {
        font-size: 13px !important;
        padding: 0 12px !important;
        line-height: 1.3 !important;
    }

    /* ── MODERN CARDS ── */
    .modern-card {
        min-height: 280px;
        padding: 24px 18px;
        margin-bottom: 16px;
    }

    .modern-card h4 {
        font-size: 20px;
    }

    .modern-card p {
        font-size: 14px;
    }

    /* ── MAP SECTION ── */
    .map-section {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .mapcontainer {
        padding: 20px 16px !important;
        border-radius: 16px;
    }

    .maptext {
        margin-top: 0 !important;
        margin-bottom: 20px;
    }

    .maptext h3 {
        font-size: 28px;
    }

    .maptext p {
        font-size: 14px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .mapcontainer .row {
        flex-direction: column;
    }

    .mapcontainer .col-sm-4,
    .mapcontainer .col-sm-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #world-map {
        height: 260px !important;
        margin-top: 12px;
    }

    .stat-grid {
        gap: 10px;
        margin-top: 16px;
    }

    .stat-card {
        padding: 16px 10px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-suffix {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .blur-btn2 {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    /* ── PARTNERS CAROUSEL ── */
    .partners-section {
        padding: 20px 0;
        margin-top: 0;
    }

    .logo-item {
        width: 140px;
        height: 60px;
    }

    /* ── SECTION DIVIDER ── */
    .section-divider {
        margin: 0 18px;
    }

    /* ── FOOTER ── */
    .footer-dark {
        padding-bottom: 20px;
    }

    .footer-dark .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .footer-dark .row {
        flex-direction: column;
    }

    .footer-dark .col-lg-3,
    .footer-dark .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-right: 0 !important;
        margin-bottom: 28px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-text {
        font-size: 13px;
        line-height: 1.5;
        max-width: 100%;
    }

    .footer-list li {
        margin-bottom: 8px;
    }

    .footer-list a {
        font-size: 13px;
    }

    .footer-contact-item {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .social-icons {
        margin-top: 16px !important;
    }

    .social-icons a {
        font-size: 18px;
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
        text-align: center;
    }

    .footer-links {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links a {
        margin-left: 0;
        font-size: 12px;
    }

    .footer-divider {
        margin: 20px 0 12px;
    }

    /* ── BANNER TEXT (inner page banners) ── */
    .banner {
        height: 220px;
    }

    .banner-text {
        margin-top: 50px;
    }

    .banner-text h1 {
        font-size: 30px;
    }

    .banner-text h3 {
        font-size: 22px;
    }

    .banner-text p {
        font-size: 15px;
    }

    /* ── BUTTONS — bigger tap targets ── */
    .blur-btn,
    .blur-btn2,
    .gradient-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ── AMBIENT ORBS — disable on mobile ── */
    .ambient-orb {
        display: none;
    }

    /* ── VIBRANT HEADING ── */
    .vibrant-heading {
        font-size: 20px !important;
    }

    /* ── SCROLL REVEAL — no stagger lag on mobile ── */
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}


/* Isolated Deep-Tiered Navigation Implementation */
.has-tiered {
    position: relative;
}

.has-tiered>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Level 1 Base for Global Initiatives */
.tiered-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    display: block !important;
}

/* Standard Dropdown Fix (About, Upcoming Events) */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 4000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
}

.has-dropdown:hover>.nav-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.nav-dropdown li {
    width: 100%;
    list-style: none;
}

.nav-dropdown a {
    display: block !important;
    padding: 12px 25px !important;
    color: #233459 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-dropdown a:hover {
    background: var(--tint-blue);
    color: var(--blue-primary) !important;
}

/* Tiered Hover Show Logic */
.has-tiered:hover>.tiered-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Tiered Link Styling */
.tiered-menu li {
    position: relative;
    list-style: none;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.tiered-menu a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px !important;
    color: #233459 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.tiered-menu a:hover {
    background: var(--tint-blue);
    color: var(--blue-primary) !important;
}

.tiered-menu a i {
    font-size: 12px;
    margin-left: 15px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

/* Sub-Level Positioning (Tier 2 Flyout) */
.has-flyout>.tiered-menu.level-2 {
    top: 0;
    left: 100%;
    transform: translateX(15px);
    opacity: 0;
    visibility: hidden;
    display: block !important;
}

.has-flyout:hover>.tiered-menu.level-2 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Level 3 IN-PLACE Interaction (Accordion style extending downwards) */
/* Keeps level-3 open if hovering on it OR if hovering on any sibling item below it */
.level-3 {
    position: static !important;
    display: none !important;
    /* STRICTLY HIDDEN BY DEFAULT */
    width: 100%;
    background: rgba(78, 165, 217, 0.05) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 10px 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

li.has-flyout:hover>.level-3,
li.has-flyout:has(~ li:hover)>.level-3 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

li.has-flyout:hover>a i,
li.has-flyout:has(~ li:hover)>a i {
    transform: rotate(90deg);
}

.level-3 a {
    padding: 8px 25px 8px 45px !important;
    font-size: 13px !important;
    opacity: 0.8;
    text-transform: none !important;
}

.level-3 a:hover {
    opacity: 1;
    background: transparent !important;
    color: var(--blue-primary) !important;
}

/* Mobile Consistency */
@media (max-width: 1200px) {

    .tiered-menu,
    .nav-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        display: none !important;
        padding-left: 20px !important;
        min-width: 100% !important;
    }

    .active {
        display: block !important;
    }

    .nav-dropdown a,
    .tiered-menu a {
        white-space: normal !important;
    }
}


/* Mega Sub Menu Styling */
.has-mega-sub {
    position: relative;
}

.mega-sub-menu {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 5px 0 10px 0;
    border-left: 1px solid rgba(78, 165, 217, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-sub-menu li a {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    padding: 2px 0 !important;
}

.mega-sub-menu li a:hover {
    color: #4EA5D9 !important;
    transform: translateX(3px) !important;
}

.mega-links>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mega-links>li>a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-mega-sub:hover>a i {
    transform: rotate(90deg);
}