/* Ensure sticky header works everywhere by avoiding overflow: hidden on html/body */
html {
    overflow-x: clip;
    overflow-y: visible;
}

body {
    font-family: 'Mukta', sans-serif !important;
    margin: 0;
    background: #fff;
    padding-top: 0;
    overflow: visible;
}

/* WordPress Admin Bar Support - When user is logged in */
/* Removed padding-top here as WP already adds margin-top to html */

body.admin-bar .header-bottom {
    top: 32px !important;
    /* Stick below admin bar */
}

/* Mobile admin bar adjustments */
@media screen and (max-width: 782px) {

    body.admin-bar .header-bottom {
        top: 46px !important;
        /* Stick below mobile admin bar */
    }
}

/* Ensure Mukta font is applied to text elements but preserve icon fonts */
*:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fat):not([class*="dashicons"]):not(.dashicons) {
    font-family: 'Mukta', sans-serif !important;
}

/* Specific overrides for common elements while preserving icons */
p,
div:not([class*="fa-"]):not(.fa):not([class*="dashicons"]):not(.dashicons),
span:not([class*="fa-"]):not(.fa):not([class*="dashicons"]):not(.dashicons),
h1,
h2,
h3,
h4,
h5,
h6,
a:not([class*="fa-"]):not(.fa):not([class*="dashicons"]):not(.dashicons),
li:not([class*="fa-"]):not(.fa):not([class*="dashicons"]):not(.dashicons),
ul,
ol {
    font-family: 'Mukta', sans-serif !important;
}

/* WordPress Admin Bar Protection */
#wpadminbar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

#wpadminbar * {
    font-family: inherit !important;
}

/* Ensure WordPress dashicons work properly */
.dashicons,
.dashicons-before:before {
    font-family: "dashicons" !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    vertical-align: top !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure Font Awesome icons use their proper font and styling */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.fat,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Specific Font Awesome brand icons */
.fab {
    font-weight: 400 !important;
}

/* Regular Font Awesome icons */
.far {
    font-weight: 400 !important;
}

/* Prevent body scroll when mobile menu is open */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.header-top {
    padding: 0;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
}

.header-top .container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 20px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.logo-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
}

.logo-img img,
.logo-img a img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    display: block;
}

@media (max-width: 600px) {
    .logo-img {
        width: 100%;
        max-width: 100%;
    }
}

.header-bottom {
    background: #139a8a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 48px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Remove overflow: hidden to ensure sticky works correctly on all browsers */
}

/* Adjust admin bar offset for desktop */
body.admin-bar .header-bottom {
    top: 32px !important;
}

/* Adjust admin bar offset for mobile/tablet where admin bar is taller */
@media screen and (max-width: 782px) {
    body.admin-bar .header-bottom {
        top: 46px !important;
    }
}

.header-bottom .container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .header-bottom .container {
        padding: 0.05rem 1rem !important;
    }

    .header-bottom {
        min-height: 24px !important;
    }

    .header-bottom.compact {
        min-height: 24px !important;
    }

    .header-bottom.compact .container {
        padding: 0.05rem 1rem !important;
    }
}



.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-left .nav-link {
    color: #fff !important;
    font-size: 1.4rem;
    padding: 0.3rem;
    transition: all 0.3s ease;
}

.nav-left .nav-link:hover {
    transform: scale(1.05);
}

.hamburger {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.1rem;
}


/* Remove underlines from all links */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Full-screen mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Use viewport height for better control */
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

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

/* Desktop sidebar menu */
@media (min-width: 701px) {
    .mobile-menu-overlay {
        width: 400px;
        background: rgba(0, 0, 0, 0.98);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-logo {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-logo:hover {
    transform: scale(1.05);
}

.mobile-menu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.mobile-menu-logo a {
    color: #139a8a;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Mukta', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
    background: linear-gradient(135deg, #1f0715, #139a8a);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(130, 42, 78, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-menu-close: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: left 0.5s;
}

.mobile-menu-close:hover:before {
    left: 100%;
}

.mobile-menu-close:hover {
    background: linear-gradient(135deg, #606060, #c41e3a);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(160, 17, 21, 0.5);
}

.mobile-menu-content {
    padding: 25px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mobile-menu-item-content:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(160, 17, 21, 0.2), rgba(160, 17, 21, 0.1));
    transition: width 0.3s ease;
    z-index: 0;
}

.mobile-menu-item-content:hover:before {
    width: 100%;
}

.mobile-menu-item-content a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    font-family: 'Mukta', sans-serif;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-menu-item-content:hover a {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateX(8px);
}

.mobile-menu-item>a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    flex: 1;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Mukta', sans-serif;
    position: relative;
    z-index: 1;
}

.mobile-menu-item>a:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateX(8px);
}

/* Dropdown toggle button styling for desktop */
.mobile-menu-item .dropdown-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    font-family: 'Mukta', sans-serif;
}

.mobile-menu-item .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-item.expanded .dropdown-toggle {
    transform: rotate(180deg);
    background: rgba(160, 17, 21, 0.3);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(160, 17, 21, 0.3);
}

/* Submenu styling for desktop */
.mobile-menu-submenu {
    display: none;
    padding: 0 25px 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

.mobile-menu-submenu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 6px;
    margin: 3px 0;
    font-family: 'Mukta', sans-serif;
}

.mobile-menu-submenu a:last-child {
    border-bottom: none;
}

.mobile-menu-submenu a:hover {
    color: #fff;
    background: rgba(160, 17, 21, 0.2);
    padding-left: 25px;
    text-decoration: none;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-submenu a:before {
    content: "•";
    color: #606060;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
}

.mobile-menu-social {
    position: static;
    width: auto;
    background: linear-gradient(135deg, rgba(130, 42, 78, 0.8), rgba(45, 10, 31, 0.8));
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding: 1rem 0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.mobile-menu-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu-social a:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(130, 42, 78, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-social a:nth-child(1):hover {
    background: linear-gradient(135deg, #1877f2, #165ed0);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.mobile-menu-social a:nth-child(2):hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.mobile-menu-social a:nth-child(3):hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.mobile-menu-social a:nth-child(4):hover {
    background: linear-gradient(135deg, #25d366, #1da851);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.mobile-menu-social a:nth-child(5):hover {
    background: linear-gradient(135deg, #ff0050, #e91e63);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

.mobile-menu-social a: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: left 0.5s;
}

.mobile-menu-social a:hover:before {
    left: 100%;
}

/* Desktop backdrop */
.desktop-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.desktop-backdrop.active {
    display: block;
    opacity: 1;
}

/* Hide backdrop on mobile */
@media (max-width: 700px) {
    .desktop-backdrop {
        display: none !important;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-menu a.active,
.nav-menu a:hover {
    background: #606060;
}

.nav-menu .dropdown {
    position: relative;
}

/* Add invisible bridge to prevent dropdown from disappearing */
.nav-menu .dropdown:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9;
}

.nav-menu .dropdown>a {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-menu .dropdown>a: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: left 0.5s;
}

.nav-menu .dropdown:hover>a:before {
    left: 100%;
}

.nav-menu .dropdown i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu .dropdown:hover i,
.nav-menu .dropdown.open i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(130, 42, 78, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    border: 1px solid rgba(130, 42, 78, 0.1);
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #000;
    padding: 0.5rem 1.2rem;
    display: block;
    background: transparent;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-bottom: 1px solid rgba(130, 42, 78, 0.08);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, rgba(160, 17, 21, 0.1), rgba(160, 17, 21, 0.05));
    color: #606060;
    padding-left: 1.5rem;
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 #606060;
}

.dropdown-content a:hover:before {
    width: 100%;
}

.dropdown-content a:active {
    transform: translateX(1px);
}

/* Dropdown show states */
.nav-menu .dropdown.open .dropdown-content {
    display: block;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.nav-icons a {
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-icons a:hover {
    color: #606060;
}

.nav-right {
    margin-left: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    padding: 0 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    width: auto;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.news-btn {
    background: #139a8a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Mukta', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 36px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.news-btn:hover {
    background: #606060;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.english-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 36px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.english-text:hover {
    background: #606060;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

/* Mobile devices - same logic as desktop: logo scrolls away, menu sticks */
@media (max-width: 600px) {

    /* Show logo on mobile - smaller size */
    .header-top {
        display: flex !important;
        position: relative !important;
        z-index: 1001;
        padding: 0 !important;
    }

    .header-top .container {
        padding: 3px 10px !important;
    }

    .logo-img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Keep header-bottom visible and sticky on mobile */
    .header-bottom {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        min-height: 40px !important;
        overflow: visible !important;
    }

    /* Adjust admin bar offset for mobile */
    body.admin-bar .header-bottom {
        top: 46px !important;
    }

    /* Single row layout on mobile */
    .header-bottom .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.3rem 0.8rem !important;
        overflow: visible !important;
    }

    /* Nav left: hamburger + home */
    .nav-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
    }

    /* Hide desktop nav menu items on mobile (use hamburger) */
    .nav-menu {
        display: none !important;
    }

    /* Hide social icons on mobile */
    .nav-icons {
        display: none !important;
    }

    /* Nav right: search, news, english */
    .nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* Smaller buttons for mobile */
    .search-btn {
        height: 30px !important;
        min-width: 30px !important;
        padding: 0 0.4rem !important;
        font-size: 0.85rem !important;
    }

    .news-btn {
        height: 30px !important;
        padding: 0 0.6rem !important;
        font-size: 0.85rem !important;
    }

    .english-text {
        height: 30px !important;
        padding: 0 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .hamburger {
        font-size: 1.3rem !important;
        padding: 0.1rem !important;
    }

    .nav-left .nav-link {
        font-size: 1.2rem !important;
        padding: 0.1rem !important;
    }

    /* Hide the separate mobile header - using main header instead */
    .mobile-header {
        display: none !important;
    }

    /* Keep mobile menu overlay functional */
    .mobile-menu-overlay {
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block !important;
    }

    /* Hide desktop backdrop since not needed */
    .desktop-backdrop {
        display: none !important;
    }

    /* No extra body padding needed - header is in normal flow */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.admin-bar {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}



@media (max-width: 1100px) {
    .nav-menu {
        gap: 0.7rem;
    }
}

@media (max-width: 900px) {
    .header-bottom .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.3rem 20px;
    }

    .nav-left,
    .nav-icons,
    .nav-right {
        margin: 0;
    }

    .nav-right {
        margin-left: auto;
    }
}

/* Tablet view - show header but with mobile-like styling */
@media (max-width: 700px) and (min-width: 601px) {
    .header-bottom {
        min-height: 32px !important;
    }

    .header-bottom .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.2rem 1rem !important;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-left .nav-link {
        color: #fff !important;
        font-size: 1.4rem;
        padding: 0.1rem;
        transition: all 0.3s ease;
    }

    .nav-left .nav-link:hover {
        transform: scale(1.05);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: #139a8a;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100vw;
        z-index: 100;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-icons {
        display: none;
    }

    .nav-right {
        margin-left: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .search-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 1rem;
        padding: 0;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        height: 28px;
        width: auto;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .search-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .news-btn {
        background: #139a8a;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        padding: 0 0.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        font-family: 'Mukta', sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        height: 28px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .news-btn:hover {
        background: #606060;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .english-text {
        color: #fff;
        font-size: 0.9rem;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.1);
        padding: 0 0.5rem;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
        height: 28px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .english-text:hover {
        background: #606060;
        transform: scale(1.05);
        color: #fff !important;
    }
}

/* Desktop hover functionality for dropdown */
@media (min-width: 701px) {
    .nav-menu .dropdown:hover .dropdown-content {
        display: block;
    }

    .nav-menu .dropdown:hover>a {
        background: #606060;
    }
}

.nav-menu .dropdown.open .dropdown-content {
    display: block;
}