/* Custom Header Styles */

:root {
    --header-blue: #113E87;
    --header-red: #e10600;
}

/* ── Header Middle: Logo + Search + Socials ─────────────── */
.main-header .header-middle {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0;
}

.main-header .hm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-header .hm-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .hm-logo img {
    max-height: 75px;
    width: auto;
    display: block;
}

.main-header .hm-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search pill: "Search" text + icon with border-radius 25px */
.main-header .hm-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid #ccc;
    border-radius: 25px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.main-header .hm-search-pill:hover {
    border-color: var(--header-blue);
    color: var(--header-blue);
}

.main-header .hm-search-pill .hm-search-text {
    font-size: 14px;
}

/* Social icons */
.main-header .hm-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-header .hm-socials .hms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.main-header .hm-socials .hms:hover {
    opacity: 0.85;
}

.main-header .hm-socials .social-fb {
    background: #1877f2;
}

.main-header .hm-socials .social-tw {
    background: #000000;
}

.main-header .hm-socials .social-yt {
    background: #ff0000;
}

.main-header .hm-socials .social-wa {
    background: #25d366;
}

.main-header .hm-mobile-search {
    font-size: 20px;
    color: #333;
}

/* ── Navigation Bar ─────────────────────────────────────── */
.main-header .header-primary-nav {
    background: #fff;
    border-top: 1px solid #eeeeee;
    border-bottom: 5px solid var(--header-blue);
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header .nav-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}

.main-header .nav-container::-webkit-scrollbar {
    display: none;
}

.main-header .header-primary-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .header-primary-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.main-header .header-primary-nav ul li.active a,
.main-header .header-primary-nav ul li.current-cat a {
    color: var(--header-blue);
}

.main-header .header-primary-nav ul li.home-link.active a {
    background: var(--header-blue);
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.main-header .header-primary-nav ul li:not(.home-link) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--header-blue);
    transition: width 0.2s;
}

.main-header .header-primary-nav ul li:not(.home-link).active a::after,
.main-header .header-primary-nav ul li:not(.home-link):hover a::after {
    width: 100%;
}

/* ── Breaking News Bar (CSS scroll animation) ───────────── */
.main-header .breaking-news-bar {
    background: var(--header-red);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}

.main-header .breaking-label {
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.15);
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.main-header .breaking-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.main-header .breaking-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 12s linear infinite;
}

.main-header .breaking-ticker-inner:hover {
    animation-play-state: paused;
}

.main-header .bticker-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 40px 0 0;
    display: inline-block;
}

.main-header .bticker-item:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .main-header .hm-right .hm-search-pill .hm-search-text {
        display: none;
    }

    .main-header .hm-search-pill {
        padding: 7px 12px;
    }

    .main-header .hm-logo img {
        max-height: 45px !important;
    }

    /* On mobile, nav is hidden so stick the header-middle instead */
    .main-header .header-middle {
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .main-header .header-primary-nav {
        display: none !important;
        position: static;
    }

    .main-header .mobile-only {
        display: flex !important;
    }

    .main-header .hm-mobile-search {
        display: none !important;
    }
}

/* Hide legacy header */
#zmiilo {
    display: none !important;
}

/* ── Mobile Horizontal Scroll Nav ───────────────────────── */
.main-header .mobile-scroll-nav {
    display: none; /* Hidden on desktop by default */
    background: #fff;
    border-bottom: 2px solid #eeeeee;
    overflow: hidden;
}

.main-header .mobile-scroll-nav .msn-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0 8px;
    gap: 2px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.main-header .mobile-scroll-nav .msn-inner::-webkit-scrollbar {
    display: none;
}

.main-header .mobile-scroll-nav .msn-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: #333;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.main-header .mobile-scroll-nav .msn-item:hover {
    color: var(--header-blue, #113E87);
}

.main-header .mobile-scroll-nav .msn-item.msn-active {
    color: var(--header-blue, #113E87);
    border-bottom-color: var(--header-blue, #113E87);
}

.main-header .mobile-scroll-nav .msn-item i {
    font-size: 12px;
}

.main-header .mobile-scroll-nav .msn-item.msn-sub {
    font-size: 12px;
    opacity: 0.8;
    padding-left: 10px;
    border-left: 2px solid currentColor;
}

/* Show ONLY on tablet and mobile (≤1024px) */
@media (max-width: 1024px) {
    .main-header .mobile-scroll-nav {
        display: block;
    }
}

/* End of custom-header.css */