/* ===== CLEAN NEW HEADER STYLES ===== */

/* TOPBAR - WEATHER SECTION */
section.topbar {
    background: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
    font-size: 14px;
    padding: 8px 0 !important;
}

section.topbar .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.topbar {
    background: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
}

.news-info-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.news-info-list li {
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #333 !important;
    font-size: 13px !important;
}

.news-info-list li i {
    color: #c41c3e;
    font-size: 14px;
}

/* HEADER MIDDLE - LOGO, SOCIAL, SEARCH */
.header-middle {
    background: #fff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
}

.header-middle .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-middle .row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.header-middle [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.header-middle .row > div:first-child {
    padding-left: 0 !important;
}

.header-middle .row > div:last-child {
    padding-right: 0 !important;
}

.header-middle .col-12 {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-middle .col-12.text-center {
    justify-content: center;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}

.header-social a {
    margin-right: 0 !important;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-social a:hover {
    color: #c41c3e !important;
}

.site-logo {
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}

.site-logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.header-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

/* Authentication Links */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-link:hover {
    color: #fff !important;
    background: #c41c3e;
    border-color: #c41c3e;
}

.auth-link i {
    font-size: 14px;
}

.login-link {
    border-color: #c41c3e;
    color: #c41c3e !important;
}

.login-link:hover {
    background: #c41c3e;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #c41c3e;
    background: none;
    color: #c41c3e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-weight: 600;
}

.profile-btn:hover {
    background: #c41c3e;
    color: #fff;
}

.profile-btn i {
    font-size: 16px;
}

.username {
    font-size: 12px;
    font-weight: 600;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
    margin-top: 5px;
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.profile-menu a:first-child {
    border-radius: 4px 4px 0 0;
}

.profile-menu a:last-child {
    border-radius: 0 0 4px 4px;
}

.profile-menu a:hover {
    background: #f8f8f8;
    color: #c41c3e !important;
    padding-left: 22px;
}

.profile-menu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}

.search-btn {
    background: none !important;
    border: none !important;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    padding: 0 !important;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #c41c3e !important;
}

.search-form {
    display: none;
    margin-top: 10px;
    position: absolute;
    right: 0;
    top: 60px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    width: 400px;
    border-radius: 4px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #c41c3e;
}

/* MAIN NAVIGATION MENU */
.main-menu-area {
    background: #fff !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    position: relative;
}

.main-menu-area .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.main-nav ul {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}

.main-nav ul li {
    list-style: none !important;
}

.main-nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: #222 !important;
    transition: color 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    padding: 5px 0;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    color: #c41c3e !important;
}

.main-nav {
    position: relative;
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 10px;
}

.mobile-menu-toggle:hover {
    color: #c41c3e;
}

/* BREAKING NEWS SECTION */
.breaking-news {
    background: #111 !important;
    color: #fff !important;
    padding: 10px 0 !important;
    overflow: hidden !important;
}

.breaking-news .container {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breaking-label {
    background: #c41c3e;
    padding: 4px 12px;
    margin-right: 15px;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

.ticker-move a {
    color: #fff;
    margin-right: 50px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.ticker-move a:hover {
    color: #eee;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #c41c3e;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    border: none;
}

#back-to-top:hover {
    background: #a50f21;
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Tablet and smaller desktop */
@media only screen and (max-width: 992px) {
    .main-nav ul {
        gap: 20px !important;
    }

    .main-nav ul li a {
        font-size: 12px;
    }

    .search-form input {
        width: 350px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .header-auth {
        gap: 8px;
    }

    .auth-link,
    .profile-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .auth-link i,
    .profile-btn i {
        font-size: 13px;
    }

    .username {
        font-size: 11px;
    }
}

/* Mobile landscape */
@media only screen and (max-width: 768px) {
    .news-info-list {
        gap: 8px !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
    }

    .news-info-list li {
        font-size: 11px;
        flex: 0 0 auto;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .header-middle {
        padding: 10px 0 !important;
    }

    .header-middle .row {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .header-middle .col-12 {
        flex: 0 1 auto !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .header-middle .col-12.text-center {
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    .header-social {
        gap: 8px;
    }

    .header-social a {
        font-size: 16px;
    }

    .header-auth {
        gap: 6px;
    }

    .auth-link,
    .profile-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .auth-link span,
    .username {
        display: none;
    }

    .auth-link i,
    .profile-btn i {
        font-size: 14px;
    }

    .site-logo img {
        max-height: 45px;
    }

    .search-btn {
        font-size: 16px;
    }

    .search-form {
        right: 0;
        top: 70px;
        width: 95vw;
        max-width: 500px;
    }

    .search-form input {
        width: 100%;
    }

    /* Mobile Navigation */
    .main-nav ul {
        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #fff;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .main-nav ul.show {
        display: flex !important;
    }

    .main-nav ul li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav ul li a {
        padding: 12px 20px;
        font-size: 14px;
        display: block;
        color: #333 !important;
    }

    .main-nav ul li a:hover {
        background: #f8f8f8;
        color: #c41c3e !important;
    }

    .breaking-label {
        font-size: 12px;
        padding: 3px 8px;
        margin-right: 10px;
    }

    .ticker-move {
        animation: ticker 45s linear infinite;
    }

    .ticker-move a {
        font-size: 13px;
        margin-right: 30px;
    }

    /* Mobile Menu Toggle - SHOW hamburger on mobile */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Mobile portrait */
@media only screen and (max-width: 480px) {
    .topbar {
        padding: 6px 0 !important;
    }

    .news-info-list {
        gap: 6px !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }

    .news-info-list li {
        font-size: 10px;
        flex: 0 0 auto;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .header-middle {
        padding: 8px 0 !important;
    }

    .header-middle .row {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .header-middle .col-12 {
        flex: 0 1 auto !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .header-middle .col-12.text-center {
        flex: 0 0 auto !important;
        justify-content: center;
    }

    .header-social {
        gap: 4px;
    }

    .header-social a {
        font-size: 14px;
    }

    .site-logo img {
        max-height: 35px;
    }

    .header-auth {
        gap: 5px;
    }

    .auth-link,
    .profile-btn {
        padding: 5px 8px;
        font-size: 10px;
        border: none;
    }

    .auth-link span,
    .username {
        display: none;
    }

    .auth-link i,
    .profile-btn i {
        font-size: 14px;
        color: #c41c3e;
    }

    .profile-btn {
        border: 1px solid #c41c3e;
    }

    .profile-menu {
        right: -10px;
        min-width: 150px;
    }

    .search-btn {
        font-size: 14px;
    }

    .search-form {
        width: 95vw;
        max-width: 500px;
        left: auto;
        right: 0;
        top: 60px;
    }

    .search-form input {
        width: 100%;
        font-size: 13px;
    }

    .main-nav ul li a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .breaking-news {
        padding: 8px 0 !important;
    }

    .breaking-label {
        font-size: 11px;
        padding: 2px 6px;
        margin-right: 8px;
    }

    .ticker-move a {
        font-size: 12px;
        margin-right: 20px;
    }

    #back-to-top {
        width: 35px;
        height: 35px;
        line-height: 35px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}