/* ========================================
   PREMIUM HEADER STYLES
   ======================================== */

#nav-top.header-top-premium {
    background-color: #ffffff;
    padding: 20px 0 10px 0;
    border-bottom: none;
}

.top-bar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.top-bar-left .social-links-new {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.top-bar-left .social-links-new li a {
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.top-bar-left .social-links-new li a:hover {
    color: #ed1c24;
}

.top-bar-center .logo-new img {
    max-height: 50px;
    width: auto;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.top-buttons {
    display: flex;
    gap: 10px;
}

.btn-buy-issue {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #000;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-buy-issue:hover {
    background-color: #000;
    color: #fff;
}

.btn-subscribe-new {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #ed1c24;
    color: #ed1c24;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-subscribe-new:hover {
    background-color: #ed1c24;
    color: #fff;
}

.btn-search-new {
    background: none;
    border: none;
    padding: 5px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.top-bar-sub {
    margin-top: 10px;
}

.sub-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 20px;
    /* Ensure space even if small */
}

.sub-nav-links li a.sub-nav-link {
    color: #333 !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 10px;
}

.sub-nav-links li a.sub-nav-link:hover {
    color: #ed1c24 !important;
}

/* Main Nav Premium */
.nav-main-premium {
    background-color: #ffffff;
    border-top: none;
    border-bottom: none;
    padding: 0;
    height: 40px !important;
    min-height: 40px !important;
    z-index: 1000;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.nav-main-premium .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-main-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-hamburger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none;
    /* Hide by default, show on mobile */
}

@media (max-width: 991px) {
    .btn-hamburger {
        display: block;
    }
}

.nav-home-icon {
    color: #000;
    display: flex;
    align-items: center;
    padding: 0 5px;
    background: none !important;
    height: 40px;
}

.nav-home-icon:hover {
    color: #ed1c24 !important;
    background: none !important;
}

.nav-home-icon svg {
    width: 20px;
    height: 20px;
    fill: #1a1a1a !important;
    color: #1a1a1a !important;
}

.nav-main-center .navbar-nav {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main-center {
    flex: 1;
    justify-content: center;
}

@media (min-width: 992px) {
    .show-on-desktop {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .nav-main-center.navbar-collapse:not(.show) {
        display: none !important;
    }
}

.nav-main-center .nav-link,
.nav-main .navbar-nav .nav-link {
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0 12px !important;
    height: 40px !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    line-height: 40px !important;
}

.nav-main-center .nav-link:hover {
    color: #ed1c24 !important;
}

.nav-main-center .nav-link i {
    color: #ed1c24 !important;
    font-size: 10px;
    margin-top: 2px;
}

.nav-main-right .dropdown-languages .nav-link {
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 40px;
}

.nav-main-right .dropdown-languages .nav-link i,
.arrow-red {
    color: #ed1c24 !important;
    font-size: 10px;
}

/* Search Form Styling */
.top-bar-right .search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
}

.top-bar-right .search-form.active {
    display: block;
}

.top-bar-right .search-form form {
    display: flex;
    gap: 5px;
}

.top-bar-right .search-form .form-control {
    flex: 1;
    height: 40px;
}

/* Language Dropdown Adjustment */
.nav-main-right .dropdown-languages .dropdown-menu {
    border-radius: 0;
    margin-top: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-main-right .dropdown-languages .dropdown-item {
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
}

.nav-main-right .dropdown-languages .dropdown-item.selected {
    color: #ed1c24;
}

/* End of premium styles */

/* Fix for icons */
.icon-facebook:before {
    font-family: "vr-icons" !important;
}

.icon-instagram:before {
    font-family: "vr-icons" !important;
}

.icon-twitter:before {
    font-family: "vr-icons" !important;
}

.icon-youtube:before {
    font-family: "vr-icons" !important;
}

.icon-arrow-down:before {
    font-family: "vr-icons" !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .top-bar-main {
        flex-direction: column;
        gap: 15px;
    }

    .sub-nav-links {
        flex-wrap: wrap;
    }
}

/* Mobile Header Redesign */
/* Mobile Header Redesign */
.header-mobile-container {
    background: #fff;
    width: 100%;
    z-index: 1040;
}

.dark-mode .header-mobile-container {
    background: #111;
}

/* Force override any container constraints */
.header-mobile-container .header-mobile {
    height: auto !important;
    min-height: 60px;
    padding: 10px 15px;
    display: block !important;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

/* Utility to ensure flex display */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.gap-2 {
    gap: 10px !important;
}

/* LIVE Button Styling */
.btn-live-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #ed1c24 !important;
    border-radius: 20px;
    color: #ed1c24 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-decoration: none !important;
    background: transparent !important;
    white-space: nowrap;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-live-mobile .dot {
    width: 6px;
    height: 6px;
    background-color: #ed1c24 !important;
    border-radius: 50%;
    display: inline-block;
}

/* Theme Toggle */
.btn-theme-toggle-mobile {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #222 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1050;
}

.btn-theme-toggle-mobile svg {
    color: currentColor;
    display: block;
    width: 22px;
    height: 22px;
}

/* Hamburger */
.mobile-menu-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 5px;
    display: flex !important;
    align-items: center;
}

/* Dark Mode Specifics */
.dark-mode .btn-theme-toggle-mobile {
    color: #fff !important;
}

.dark-mode .btn-live-mobile {
    color: #ff4d4d !important;
    border-color: #ff4d4d !important;
}

.dark-mode .btn-live-mobile .dot {
    background-color: #ff4d4d !important;
}

.dark-mode .mobile-menu-button svg {
    stroke: #fff !important;
    fill: #fff !important;
}

/* Scrollable Menu - Critical fix for vertical stacking */
.mobile-nav-scroll {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: block !important;
    padding-top: 5px;
    /* Add some spacing from the border */
}

.dark-mode .mobile-nav-scroll {
    background: #111;
    border-top-color: #222;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

/* Targeted selector to override any defaults */
.mobile-nav-scroll ul,
.mobile-nav-scroll ul.nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 20px;
    padding: 12px 15px !important;
    margin: 0 !important;
    list-style: none !important;
    width: auto;
}

.mobile-nav-scroll li,
.mobile-nav-scroll .nav-item {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mobile-nav-scroll .nav-link {
    padding: 0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    display: block !important;
    white-space: nowrap !important;
    background: none !important;
}

.dark-mode .mobile-nav-scroll .nav-link {
    color: #ccc !important;
}

.mobile-nav-scroll .nav-link:hover,
.mobile-nav-scroll .nav-link:active {
    color: #ed1c24 !important;
}

/* Specific visibility fix for buttons */
.btn-theme-toggle-mobile svg,
.mobile-menu-button svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Logo is visible and sized correctly */
.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
}

/* ensure proper spacing */
.col-8.d-flex.justify-content-end .gap-2 {
    gap: 15px !important;
}

/* LIVE button adjustments to match screenshot */
.btn-live-mobile {
    margin-right: 5px;
    padding: 3px 10px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    letter-spacing: 0.5px;
}

/* Force Icon Visibility in Light Mode (White Header) */
.btn-theme-toggle-mobile,
.mobile-menu-button {
    color: #000000 !important;
    opacity: 1 !important;
    display: inline-flex !important;
    visibility: visible !important;
    z-index: 9999 !important;
}

.btn-theme-toggle-mobile svg {
    fill: #000000 !important;
    stroke: none !important;
    display: block !important;
    width: 24px;
    height: 24px;
}

/* Force stroke on lines for hamburger */
.mobile-menu-button svg {
    stroke: #000000 !important;
    fill: none !important;
    display: block !important;
    width: 28px;
    height: 28px;
}

.mobile-menu-button svg line {
    stroke: #000000 !important;
    stroke-width: 2px !important;
}

/* Force Icon Visibility in Dark Mode (Dark Header) */
.dark-mode .btn-theme-toggle-mobile,
.dark-mode .mobile-menu-button {
    color: #ffffff !important;
}

.dark-mode .btn-theme-toggle-mobile svg {
    fill: #ffffff !important;
    stroke: none !important;
}

/* Hamburger uses stroke in SVG */
.dark-mode .mobile-menu-button svg {
    stroke: #ffffff !important;
    fill: none !important;
}

.dark-mode .mobile-menu-button svg line {
    stroke: #ffffff !important;
}

/* Ensure Logo is visible and sized correctly */
.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
}

/* ensure proper spacing */
.col-8.d-flex.justify-content-end .gap-2 {
    gap: 15px !important;
}

/* ========================================
   DESKTOP DARK MODE FIXES
   ======================================== */
.dark-mode #nav-top.header-top-premium {
    background-color: #000000 !important;
    border-bottom: none !important;
}

/* FIX SOCIAL ICONS */
.dark-mode .top-bar-left .social-links-new li a {
    color: #aaaaaa !important;
}

.dark-mode .top-bar-left .social-links-new li a:hover {
    color: #ed1c1d !important;
}

/* FIX BUTTONS "LIVE RADIO" & "WORLD EDITION" */
.dark-mode .btn-buy-issue,
.dark-mode .btn-subscribe-new {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dark-mode .btn-buy-issue:hover,
.dark-mode .btn-subscribe-new:hover {
    background-color: #ed1c1d !important;
    border-color: #ed1c1d !important;
    color: #ffffff !important;
}

/* FIX SEARCH ICON */
.dark-mode .btn-search-new {
    color: #ffffff !important;
}

/* FIX MAIN NAV BAR (BELOW LOGO) */
.dark-mode .nav-main-premium {
    background-color: #111111 !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* FIX MAIN NAV LINKS */
.dark-mode .nav-main-center .nav-link,
.dark-mode .nav-main .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .nav-main-center .nav-link:hover,
.dark-mode .nav-main .navbar-nav .nav-link:hover {
    color: #ed1c1d !important;
}

/* FIX HOME ICON */
.dark-mode .nav-home-icon svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.dark-mode .nav-home-icon:hover svg {
    fill: #ed1c1d !important;
    color: #ed1c1d !important;
}

/* FIX LANGUAGE DROPDOWN */
.dark-mode .nav-main-right .dropdown-languages .nav-link {
    color: #ffffff !important;
}

/* FIX DESKTOP DARK MODE TOGGLE */
.btn-theme-mode {
    background: transparent;
    border: none;
    padding: 5px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-theme-mode:hover {
    color: #ed1c1d;
}

.btn-theme-mode svg {
    width: 20px;
    height: 20px;
}

.dark-mode .btn-theme-mode {
    color: #ffffff;
}

.dark-mode .btn-theme-mode:hover {
    color: #ed1c1d;
}

.form-switch-mode {
    display: flex;
    align-items: center;
}

/* MOBILE HEADER OVERLAP FIX */
@media (max-width: 991px) {
    body {
        padding-top: 100px !important;
        /* Adjust to match actual header height */
    }

    .dark-mode #header {
        background-color: #0f0f0f !important;
        margin-bottom: 0 !important;
    }
}

.dark-mode #header {
    background-color: #0f0f0f !important;
}