/**
 * BMA Custom Header Styles
 * Inspired by BollywoodLife.com
 */

/* Tier 1: Utility Bar */
.bma-header-tier-1 {
    background-color: #480094;
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

.bma-tier-1-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bma-utility-left, .bma-utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bma-social-icons a {
    color: #ffffff !important;
    margin-right: 12px;
    transition: color 0.3s;
}

.bma-social-icons a:hover {
    color: #F2C200 !important;
}

.bma-social-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.bma-social-cta svg {
    width: 14px;
    height: 14px;
}

.bma-social-cta--facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff !important;
}

.bma-social-cta--instagram:hover {
    background-color: #E4405F;
    border-color: #E4405F;
    color: #fff !important;
}

.bma-social-cta--youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #fff !important;
}

.bma-social-cta:hover {
    color: #F2C200;
    border-color: #F2C200;
}

.bma-lang-toggle .lang-item {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.bma-lang-toggle .lang-item.active {
    font-weight: bold;
    color: #F2C200;
}

.bma-lang-separator {
    margin: 0 5px;
    color: rgba(255,255,255,0.5);
}

/* Tier 2: Branding Band */
.bma-header-tier-2 {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
}

.bma-tier-2-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.bma-brand-center {
    flex: 1;
    text-align: center;
}

.bma-logo-wrap .custom-logo-link img {
    max-height: 58px;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bma-site-icon {
    max-height: 58px;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bma-site-tagline {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.bma-search-right {
    position: absolute;
    right: 0;
}

.bma-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 15px;
    background: #f9f9f9;
}

.bma-search-field {
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 13px;
    width: clamp(140px, 18vw, 200px);
    outline: none;
}

.bma-search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.bma-search-submit svg {
    width: 16px;
    height: 16px;
    fill: #666;
}

/* Tier 3: Navigation Rail */
.bma-header-tier-3 {
    background: #480094; /* Fallback */
    background: linear-gradient(90deg, #ff2494 0%, #ff5b8e 100%);
    padding: 0;
    z-index: 1000;
    position: relative;
}

.bma-header-tier-3.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bma-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.bma-menu-container {
    width: 100%;
}

.bma-tier-3-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.bma-main-navigation {
    width: 100%;
    display: flex;
    align-items: center;
}

.bma-mobile-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding: 0 15px;
}

.bma-nav-menu--mobile-inline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    flex: 1;
}

.bma-nav-menu--mobile-inline::-webkit-scrollbar {
    display: none;
}
.bma-nav-menu--mobile-inline {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bma-nav-menu--mobile-inline > li > a {
    padding: 12px 6px;
    white-space: nowrap;
}

.bma-mobile-more {
    position: relative;
    flex: 0 0 auto;
}

.bma-mobile-more-toggle {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    cursor: pointer;
    user-select: none;
}

.bma-mobile-more-toggle::-webkit-details-marker {
    display: none;
}

.bma-menu-container--mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #480094;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1200;
}

.bma-mobile-more[open] .bma-menu-container--mobile-dropdown {
    display: block;
}

.bma-nav-menu--mobile-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bma-nav-menu--mobile-dropdown > li > a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.bma-nav-menu--mobile-dropdown > li:last-child > a {
    border-bottom: 0;
}

.bma-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 8px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.bma-home-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Archive Page Styles */
.newsx-archive-page-header {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeeee;
}

.newsx-archive-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #292929;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.newsx-archive-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #480094;
}

.newsx-archive-description {
    font-size: 16px;
    color: #67737e;
    line-height: 1.6;
    max-width: 800px;
}

@media (max-width: 768px) {
    .newsx-archive-page-header {
        padding: 30px 0;
    }
    
    .newsx-archive-title {
        font-size: 24px;
    }
}

.bma-home-text {
    /* Optional: hide text on desktop if icon is enough, but user asked for "home button" */
}

.bma-nav-menu > li > a:hover {
    color: #F2C200;
}

.bma-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #F2C200;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.bma-nav-menu > li > a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.bma-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .bma-search-right {
        position: static;
        margin-top: 15px;
    }
    
    .bma-tier-2-inner {
        flex-direction: column;
    }

    .bma-mobile-toggle {
        display: flex;
    }

    .bma-menu-container {
        display: none;
        width: 100%;
        background:#480094; /* Fallback */
;
    }

    .bma-menu-container.is-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1100;
    }

    .bma-desktop-nav {
        display: none;
    }

    .bma-mobile-nav {
        display: flex;
    }

    .bma-nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .bma-nav-menu > li {
        width: 100%;
    }

    .bma-nav-menu > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 768px) {
    .bma-tier-1-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .bma-logo-wrap {
        padding: 0 12px;
        box-sizing: border-box;
    }
    
    .bma-utility-left, .bma-utility-right {
        justify-content: center;
    }
}
