/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}




/* ===== HEADER ===== */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0px solid #e0e0e0;
}

/* Header Top Bar - Desktop */
.header-top {
    border-bottom: 0px solid #e0e0e0;
    padding: 8px 0;
    position: relative;
    z-index: 10;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -70px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 11;
}

.social-icon {
    color: #004F9F;
    font-size: 15px;
    transition: color 0.2s ease;
    display: inline-flex;
    position: relative;
    z-index: 12;
}

.social-icon:hover {
    color: #003A75;
}

.imf-live-badge {
    background: #E31837;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Language Selector */
.lang-selector {
    background: none;
    border: none;
    color: #A0522D;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

.lang-selector i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.lang-selector.active i {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 20px;
    top: 100%;
    background: #fff;
    border: 0px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1001;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: #f5f5f5;
}

.header-top-right {
    position: relative;
}

/* ===== HEADER BRANDING - CENTERED LOGO ===== */
.header-branding {
    padding: 15px 0;
    border-bottom: 0px solid #e0e0e0;
}

.branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    
}



.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-bottom: 3px solid #e0e0e0;
    
}

.logo-text {
    font-size: 25px;
    font-weight: 900;
    color: #004F9F;
    letter-spacing: 3px;
}

/* Search - positioned on the right */
.search-section {
    display: flex;
    align-items: center;
    width: 250px;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-top: 70px;
}

.search-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    width: 100%;
}

.search-box input {
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 5px 0;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

/* ===== NAVIGATION - CENTERED WITH LANGUAGE ON RIGHT ===== */
.main-nav {
    border-top: 0px solid #e0e0e0;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-list {
    display: flex;
    gap: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #004F9F;
}

.nav-link i {
    font-size: 9px;
    color: #666;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Language selector in nav */
.nav-lang {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mega Dropdown */
.mega-dropdown {
    display: block;
    position: fixed;
    top: var(--header-bottom, 160px);
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 95vw;
    max-height: calc(100vh - var(--header-bottom, 160px) - 20px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.nav-item:hover .mega-dropdown,
.nav-item.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-grid {
    display: grid;
    gap: 30px;
}

.dropdown-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.dropdown-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.dropdown-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.dropdown-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.dropdown-col ul li {
    margin-bottom: 5px;
}

.dropdown-col ul li a {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: block;
    padding: 3px 0;
}

.dropdown-col ul li a:hover {
    color: #004F9F;
}

.country-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.country-letters a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #004F9F;
    background: #f5f5f5;
    border-radius: 0;
    transition: all 0.2s ease;
}

.country-letters a:hover {
    background: #004F9F;
    color: #fff;
}

.imf-live-badge-small {
    background: #E31837;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
}

.press-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-login {
    background: #004F9F;
    color: #fff;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.btn-register {
    background: #fff;
    color: #004F9F;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #004F9F;
    display: inline-block;
}

/* Mobile Menu Button */


.imf-word {
    font-weight: 600;
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-search {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== MOBILE NAV PANEL (NEW) ===== */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav-panel.show {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #333;
    text-transform: uppercase;
    position: relative;
}

.mobile-nav-link i {
    position: absolute;
    right: 24px;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-link i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

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

.mobile-dropdown-section {
    padding: 0;
}

.mobile-dropdown-section h4 {
    padding: 14px 24px 6px;
    margin-bottom: 0;
    font-size: 11px;
    color: #666;
    border-bottom: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-dropdown-section h5 {
    padding: 0 24px;
}

.mobile-dropdown-section p {
    padding: 0 24px;
}

.mobile-dropdown-section ul li a {
    display: block;
    padding: 12px 24px 12px 32px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.mobile-dropdown-section ul li:last-child a {
    border-bottom: none;
}

.mobile-dropdown-section ul li a:hover {
    color: #004F9F;
}

.mobile-dropdown-section .country-letters {
    padding: 8px 24px;
}

.mobile-dropdown-section .press-buttons {
    padding: 8px 24px 16px;
}

/* ===== HERO SECTION (STATIC) ===== */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
}

.hero-content h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

/* ===== NEWS GRID ===== */
.news-grid {
    padding: 40px 0;
    background: #fff;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-top: 15px;
    line-height: 1.3;
}

.separator {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.card-action {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #004F9F;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 3px;
}

.action-badge i {
    font-size: 13px;
}

.card-action p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

/* ===== SDR RATES ===== */
.sdr-rates {
    background: #004F9F;
    padding: 15px 0;
    text-align: center;
}

.sdr-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex-wrap: wrap;
}

.sdr-label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sdr-value {
    color: #fff;
}

.sdr-exchange {
    color: #fff;
}

.sdr-exchange i {
    color: #fff;
    margin-left: 5px;
    font-size: 10px;
}

/* ===== DATAMAPPER - WITH CHART BACKGROUND ===== */
.datamapper {
    padding: 40px 0;
    background: url("images/chart.png") center/cover no-repeat;
    text-align: left;
    position: relative;
    min-height: 320px;
}

.datamapper .container {
    position: relative;
    z-index: 2;
}

.datamapper-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.datamapper-left {
    flex: 1;
}

.datamapper-right {
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.datamapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 15px;
    color: #333;
    margin-bottom: 25px;
}

.datamapper-buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 20px;
    max-width: 500px;
}

.btn-dm {
    background: #004F9F;
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    border-radius: 3px;
}

.btn-dm:hover {
    background: #003A75;
}

.more-data-btn {
    background: #004F9F;
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
    display: inline-block;
    border-radius: 3px;
}

.more-data-btn:hover {
    background: #003A75;
}

/* ===== LATEST RELEASES ===== */
.latest-releases {
    padding: 40px 0;
    background: #f5f5f5;
}

.latest-releases h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-releases h2 i {
    color: #666;
    font-size: 22px;
}

.releases-list {
    border-top: 1px solid #e0e0e0;
}

.release-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.release-item a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.release-item a:hover {
    color: #004F9F;
}

.release-date {
    font-size: 12px;
    font-weight: 600;
    color: #004F9F;
    text-transform: uppercase;
}

.btn-more {
    display: inline-block;
    background: #004F9F;
    color: #fff;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-more:hover {
    background: #003A75;
}

/* ===== PUBLICATIONS ===== */
.publications {
    padding: 50px 0;
    background: #a8a8a8;
}

.publications h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pub-card {
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.pub-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pub-date {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    display: block;
    margin: 12px 0 8px;
    padding: 0 10px;
}

.pub-title {
    font-size: 14px;
    font-weight: 700;
    color: #004F9F;
    line-height: 1.4;
    padding: 0 10px 15px;
    display: block;
}

.pub-title:hover {
    color: #003A75;
    text-decoration: underline;
}

.pub-title-link {
    font-size: 14px;
    font-weight: 700;
    color: #004F9F;
    line-height: 1.4;
    padding: 0 10px 15px;
    display: block;
}

.pub-title-link:hover {
    color: #003A75;
    text-decoration: underline;
}

/* Banner Cards */
.banner-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    background: #fff;
    padding: 20px;
}

.banner-card {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.2s ease;
}

.banner-card:hover::before {
    background: rgba(0,0,0,0.3);
}

.banner-card span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== BANNER SECTION ===== */
.banner-section {
    padding: 40px 0;
    background: #fff;
}

/* ===== RESOURCES FOR ===== */
.resources-for {
    padding: 40px 0;
    background: #f5f5f5;
    text-align: center;
}

.resources-for h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.resources-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.resource-item i {
    font-size: 40px;
    color: #004F9F;
}

.resource-item span {
    font-size: 12px;
    font-weight: 600;
    color: #004F9F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-item:hover span {
    color: #003A75;
}

/* ===== TOPICS ===== */
.topics {
    padding: 40px 0;
    background: #fff;
}

.topics h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.topics-col {
    display: flex;
    flex-direction: column;
}

.topics-col a {
    font-size: 15px;
    color: #333;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.topics-col a:first-child {
    border-top: 1px solid #e0e0e0;
}

.topics-col a:hover {
    color: #004F9F;
    background: #f9f9f9;
}

.topics-footer {
    text-align: right;
    margin-top: 20px;
}

/* ===== ACCOUNTABILITY ===== */
.accountability {
    padding: 40px 0;
    background: #f5f5f5;
}

.accountability h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.accountability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.accountability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
}

.accountability-item i {
    font-size: 40px;
    color: #004F9F;
}

.accountability-item svg.acc-icon {
    width: 50px;
    height: 50px;
}

.accountability-item span {
    font-size: 12px;
    font-weight: 600;
    color: #004F9F;
    text-transform: uppercase;
    line-height: 1.4;
}

.accountability-item small {
    font-size: 13px;
    color: #333;
    margin-top: -5px;
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    padding: 50px 0 30px;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo-section {
    flex: 0 0 200px;
    padding-top: 10px;
}

.footer-imf-logo {
    width: 120px;
    height: 120px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    flex: 1;
    max-width: 900px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-col a {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.footer-links-col a:hover {
    color: #004F9F;
}

.footer-lang-col a {
    font-weight: 600;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-bottom-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-social a {
    color: #004F9F;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-bottom-social a:hover {
    color: #003A75;
}

.imf-live-badge-footer {
    background: #E31837;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.support-btn {
    background: #004F9F;
    font-size: 24px;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 79, 159, 0.4);
}

.floating-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #004F9F;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #003A75;
}

/* ===== FEEDBACK POPUP ===== */
.feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.feedback-overlay.show {
    display: block;
}

.feedback-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 400px;
    max-width: 90vw;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 2001;
    text-align: center;
}

.feedback-popup.show {
    display: block;
}

.feedback-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.feedback-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.feedback-popup h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.feedback-popup p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-feedback-yes {
    background: #004F9F;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-feedback-yes:hover {
    background: #003A75;
}

.btn-feedback-no {
    background: none;
    color: #004F9F;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-feedback-no:hover {
    color: #003A75;
}

.feedback-powered {
    display: block;
    margin-top: 20px;
    font-size: 11px;
    color: #999;
}

/* ===== MOBILE HEADER STRUCTURE (Hidden on Desktop) ===== */
.mobile-header-top {
    display: none;
}


/* ===== RESPONSIVE HERO TEXT ===== */
/* On tablet and mobile, move H2 text below the image */
@media (max-width: 1023px) {
    /* Remove header borders on tablet */
    .header, .header-top, .header-branding, .main-nav,
    .nav-list, .nav-list > .nav-item, .nav-item,
    .mobile-nav-panel, .mobile-nav-header, .mobile-nav-item {
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .nav-list.show {
        box-shadow: none !important;
    }

    .hero-section {
        height: auto;
        overflow: visible;
    }

    .hero-image-wrapper {
        height: 400px;
    }

    .hero-image-wrapper img {
        height: 100%;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 25px 20px;
        max-width: 100%;
        background: #ffffff00;
        margin: 0;
    }

    .hero-content h2 {
        color: #fff;
        font-size: 22px;
        text-shadow: none;
        text-align: center;
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    /* Remove header borders on mobile */
    .header, .header-top, .header-branding, .main-nav,
    .mobile-header-top, .mobile-header-row1, .mobile-header-row2,
    .nav-list, .nav-list > .nav-item, .nav-item,
    .mobile-nav-panel, .mobile-nav-header, .mobile-nav-item,
    .mobile-menu-close, .mobile-nav-close {
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .nav-list.show, .mobile-nav-panel.show {
        box-shadow: none !important;
    }

    .hero-image-wrapper {
        height: 300px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-content h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Remove header borders on small mobile */
    .header, .header-top, .header-branding, .main-nav,
    .mobile-header-top, .mobile-header-row1, .mobile-header-row2,
    .nav-list, .nav-list > .nav-item, .nav-item,
    .mobile-nav-panel, .mobile-nav-header, .mobile-nav-item,
    .mobile-menu-close, .mobile-nav-close {
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .nav-list.show, .mobile-nav-panel.show {
        box-shadow: none !important;
    }

    .hero-image-wrapper {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 16px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1023px) {
    /* Tablet fixes: logo spacing and mobile nav panel visibility */
    .header-top .container {
        margin-top: 0;
    }
    .header-branding {
        padding-top: 10px;
    }
    .mobile-nav-panel {
        display: block;
    }

    .header-branding .container {
        flex-direction: row;
        padding: 10px 20px;
        position: relative;
        min-height: 50px;
       font-weight: 1000;
    }

    .logo-section {
        flex: 1;
        justify-content: center;
    }

    .logo-text {
        font-size: 20px;
        letter-spacing: 1px;
        font-weight: 800;
    }

    .search-section {
        display: none;
    }

    .mobile-search {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-btn {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-container {
        justify-content: flex-end;
        padding: 0;
        min-height: 0;
    }

    .nav-list {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    }

    .nav-list.show {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile menu close button */
    .mobile-menu-close {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 0px solid #e0e0e0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .mobile-menu-close button {
        background: none;
        border: none;
        font-size: 22px;
        color: #333;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list > .nav-item {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-list > .nav-item > .nav-link {
        padding: 18px 24px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1.5px;
        justify-content: center;
        border-bottom: none;
        position: relative;
    }

    .nav-list > .nav-item > .nav-link i {
        position: absolute;
        right: 24px;
        font-size: 11px;
        transition: transform 0.3s ease;
    }

    .nav-item.active > .nav-link i {
        transform: rotate(180deg);
    }

    .mega-dropdown {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        padding: 0;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        max-height: none;
        top: auto;
        left: auto;
    }

    .nav-item.active .mega-dropdown {
        display: block;
    }

    .dropdown-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
        padding: 0;
    }

    .dropdown-col {
        padding: 0;
    }

    .dropdown-col h4 {
        padding: 14px 24px 6px;
        margin-bottom: 0;
        font-size: 11px;
        color: #666;
        border-bottom: none;
        letter-spacing: 1px;
    }

    .dropdown-col h5 {
        padding: 0 24px;
    }

    .dropdown-col p {
        padding: 0 24px;
    }

    .dropdown-col ul li a {
        padding: 12px 24px 12px 32px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
    }

    .dropdown-col ul li:last-child a {
        border-bottom: none;
    }

    .country-letters {
        padding: 8px 24px;
    }

    .press-buttons {
        padding: 8px 24px 16px;
    }

    .nav-lang {
        display: none;
    }

    .hero-section {
        height: 400px;
    }

    .hero-content {
        bottom: 50px;
        padding: 0 30px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .datamapper-content {
        flex-direction: column;
    }

    .datamapper-right {
        padding-top: 20px;
        align-self: flex-start;
    }

    .pub-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .publications h2 {
        font-size: 28px;
    }

    .banner-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accountability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo-section {
        flex: none;
        align-self: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ===== MOBILE HEADER - MATCHING REFERENCE IMAGE ===== */
@media (max-width: 767px) {
    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile header */
    .mobile-header-top {
        display: block;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Row 1: Social Icons + Language + Hamburger */
    .mobile-header-row1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-social-icons {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-social-icons::-webkit-scrollbar {
        display: none;
    }

    .mobile-social-icons .social-icon {
        font-size: 14px;
        color: #004F9F;
        flex-shrink: 0;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .mobile-lang-selector {
        background: none;
        border: none;
        color: #A0522D;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 4px 0;
        text-transform: uppercase;
    }

    .mobile-lang-selector i {
        font-size: 9px;
        transition: transform 0.2s ease;
    }

    .mobile-lang-selector.active i {
        transform: rotate(180deg);
    }

    .mobile-lang-dropdown {
        display: none;
        position: absolute;
        right: 50px;
        top: 35px;
        background: #fff;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        min-width: 150px;
        z-index: 1001;
    }

    .mobile-lang-dropdown.show {
        display: block;
    }

    .mobile-lang-dropdown a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
        color: #333;
        transition: background 0.2s ease;
    }

    .mobile-lang-dropdown a:hover,
    .mobile-lang-dropdown a.active {
        background: #f5f5f5;
    }

    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    .mobile-hamburger span {
        width: 22px;
        height: 2px;
        background: #333;
        transition: all 0.3s ease;
    }

    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Row 2: IMF LIVE badge + Search */
    .mobile-header-row2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-header-row2 .imf-live-badge {
        display: inline-flex;
        background: #E31837;
        color: #fff;
        padding: 3px 8px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .mobile-search-icon {
        background: none;
        border: none;
        color: #004F9F;
        font-size: 18px;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Row 3: Logo */
    .mobile-header-row3 {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 12px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-logo-text {
        font-size: 18px;
        font-weight: 800;
        color: #004F9F;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* Hide original desktop header elements on mobile */
    .header-branding,
    .main-nav {
        display: none;
    }

    /* Show mobile nav panel */
    .mobile-nav-panel {
        display: block;
    }

    /* Hero adjustments */
    .hero-section {
        height: 300px;
    }

    .hero-content {
        bottom: 40px;
        padding: 0 20px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .news-cards {
        grid-template-columns: 1fr;
    }

    .sdr-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .pub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .publications h2 {
        font-size: 24px;
    }

    .pub-date {
        font-size: 11px;
    }

    .pub-title, .pub-title-link {
        font-size: 12px;
    }

    .datamapper-buttons {
        grid-template-columns: 1fr;
    }

    .pub-carousel {
        gap: 15px;
    }

    .pub-card {
        flex: 0 0 150px;
    }

    .resources-grid {
        gap: 30px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .accountability-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 5px;
    }

    .footer-links-row a {
        border-right: none;
        padding: 3px 0;
    }

    .footer-lang {
        flex-wrap: wrap;
        gap: 15px;
    }

    .floating-buttons {
        bottom: 90px;
        right: 15px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .feedback-popup {
        width: 95vw;
        padding: 20px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-links-col a {
        font-size: 11px;
    }

    .footer-bottom-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mobile-social-icons .social-icon {
        font-size: 12px;
    }

    .mobile-lang-selector {
        font-size: 11px;
    }

    .mobile-logo-text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .hero-section {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 16px;
    }

    .card-action {
        flex-direction: column;
        gap: 8px;
    }

    .resource-item i {
        font-size: 30px;
    }

    .resource-item span {
        font-size: 10px;
    }

    .banner-card span {
        font-size: 16px;
    }
}


/* Logo image styling */
.logo-icon img,
img.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.footer-imf-logo img,
img.footer-imf-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.acc-icon img,
img.acc-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.feedback-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════ */
/* TAWK.TO LIVE CHAT WIDGET - Z-INDEX COMPATIBILITY              */
/* ════════════════════════════════════════════════════════════════ */
#tawkchat-container,
#tawkchat-minimized,
.tawk-min-container,
.tawk-max-container,
iframe[src*="tawk.to"],
iframe[id*="tawk"],
iframe[class*="tawk"] {
    z-index: 10000 !important;
}

.tawk-button,
.tawk-button-circle {
    z-index: 10001 !important;
}

/* ════════════════════════════════════════════════════════════════ */
/* END TAWK.TO LIVE CHAT WIDGET STYLES                             */
/* ════════════════════════════════════════════════════════════════ */