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

body {
    font-family: Arial, sans-serif;
}

/* Force white background on all wrapper elements */
.lwc-6raprfhcujs,
.community_byo-scoped-header-and-footer__header-content,
.component-wrapper-spacer,
.lwc-2ge5gsv3nr1,
.cb-outputRichText-container {
    background-color: white !important;
    overflow: visible !important;
    position: relative;
}

/* Top Banner */
.top-banner {
    background-color: #00205b;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-banner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uncdf-link {
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.uncdf-link:hover {
    opacity: 0.9;
    color: white !important;
}

.uncdf-link:visited {
    color: white !important;
}

.uncdf-link:active {
    color: white !important;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-link {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.7;
    color: white !important;
}

.social-link:visited {
    color: white !important;
}

.social-link:active {
    color: white !important;
}

.social-link i {
    color: white !important;
}

.divider {
    color: #6b7280;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.inactive {
    color: #9ca3af;
}

.lang-btn.inactive:hover {
    color: white;
}

/* Main Header */
.main-header {
    background-color: white !important;
    position: sticky;
    top: 28px;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    height: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: white !important;
}

/* Navigation */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-item {
    position: relative;
}

.nav-button {
    background: none;
    border: none;
    color: #00205b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    text-decoration: none;
}

.nav-button:hover {
    color: #009edb;
}

.nav-link {
    text-decoration: none !important;
}

/* Font Awesome Chevron Styling */
.fa-chevron-down {
    color: #e85d1c;
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

/* Desktop: Rotate on hover */
.nav-item:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile: Rotate when dropdown is active */
.mobile-nav-button.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    width: 256px;
    background-color: white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 12px 0;
    z-index: 1100;
}

.nav-right .dropdown {
    left: auto;
    right: 0;
}

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

.dropdown a {
    display: block;
    padding: 12px 24px;
    color: #009edb !important;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown a:hover {
    background-color: #f9fafb;
    color: #00205b !important;
}

.dropdown a:visited {
    color: #009edb !important;
}

.dropdown a:active {
    color: #009edb !important;
}

/* Logo Center */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    padding: 15px 40px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uncdf-logo {
    height: 80px !important;
    width: auto !important;
    display: block;
}

/* Search Button */
.search-btn {
    background: none;
    border: none;
    color: #00205b;
    cursor: pointer;
    padding: 8px;
}

.search-btn:hover {
    color: #009edb;
}

.search-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    font-size: 20px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #00205b;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
}

.mobile-toggle:hover {
    color: #009edb;
}

.menu-icon {
    width: 28px;
    height: 28px;
    font-size: 24px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    background-color: white !important;
    padding: 16px 24px;
    z-index: 999;
    position: relative;
}

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

.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #00205b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    text-align: left;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: #009edb;
}

.mobile-nav-button {
    width: 100%;
    background: none;
    border: none;
    color: #00205b;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.mobile-dropdown {
    display: none;
    padding-left: 16px;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown a {
    display: block;
    padding: 8px 0;
    color: #00205b;
    text-decoration: none;
}

.mobile-dropdown a:hover {
    color: #009edb;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-center {
        position: static;
        transform: none;
    }
}

#heroSection::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px; /* Extends halfway through KPI cards */
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above gradient */
#heroSection > div {
    position: relative;
    z-index: 2;
}

.year-nav-btn {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-style: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    color: #ffffff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 32px;
    padding: 0;
    margin: 0;
    outline: none;
}

.year-nav-btn:hover {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(0, 0, 0, 0.7);
    transform: scale(1.15);
}

.year-nav-btn:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(0.95);
}

.year-nav-btn:focus {
    outline: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.year-nav-btn i {
    font-weight: 900;
    color: inherit;
}

.year-selector-section {
    position: relative;
    z-index: 3;
}

.kpi-section {
    position: relative;
    z-index: 3;
}