﻿/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
    background: linear-gradient(90deg, #2a0508 0%, var(--banner-maroon-dark) 100%);
    font-size: 0.73rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    position: relative;
    z-index: 1001;
}

.top-bar a:not(.lang-btn) {
    color: #fff;
    text-decoration: none;
    margin-right: 14px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.6px;
    padding: 2px 0;
    position: relative;
}
.top-bar a:not(.lang-btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold-light);
    transition: width 0.3s ease;
}
.top-bar a:not(.lang-btn):hover { color: var(--gold-light); }
.top-bar a:not(.lang-btn):hover::after { width: 100%; }

.top-bar .social-icons {
    display: inline-flex;
    align-items: center;
    border-left: 1px solid rgba(201,168,76,0.3);
    padding-left: 14px;
    gap: 6px;
}
.top-bar .social-icons a {
    margin-right: 0;
    font-size: 0.95rem;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition-bounce);
}
.top-bar .social-icons a:hover {
    background: #f3f2ee;
    color: var(--bank-maroon) !important;
    border-color: #ffffff;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    border-left: 1px solid rgba(201,168,76,0.3);
    padding-left: 14px;
    margin-left: 6px;
    gap: 6px;
}
.lang-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}
.lang-btn.active, .lang-btn:hover { color: var(--gold-light); }
.lang-divider { color: rgba(255,255,255,0.3); font-size: 0.75rem; pointer-events: none; }


/* ============================================================
   NEW HEADER NAVBAR  (.nh-* = new-header)
============================================================ */

.nh-navbar {
    background: linear-gradient(135deg, #751526 0%, #b61a2c 40%, #d0223c 70%, #751526 100%);
    border-bottom: 3px solid #cca44b;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;
}
.nh-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.2);
}
.nh-navbar > .container {
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
}


/* ── Brand ─────────────────────────────────────────────────── */
.nh-brand {
    display: flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none !important;
    flex-shrink: 0;
}

.nh-logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
    transition: transform 0.3s ease;
}
.nh-brand:hover .nh-logo-img {
    filter: none;
    transform: scale(1.02);
}


/* ── Nav list ───────────────────────────────────────────────── */
.nh-nav {
    gap: 0;
    height: 100%;
    align-items: stretch;
}

.nh-item {
    display: flex;
    align-items: stretch;
    position: relative;
}
.nh-item + .nh-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(201,168,76,0.3);
    pointer-events: none;
}

/* ── Nav link (icon + label) ─────────────────────────────── */
.nh-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 13px !important;
    color: rgba(255,255,255,0.82) !important;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    font-size: 0.66rem !important;
    font-weight: 600;
    min-width: 66px;
    gap: 5px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    position: relative;
    border: none !important;
    background: transparent !important;
}

.nh-link i {
    font-size: 1.18rem;
    color: #fff;
    transition: transform 0.25s ease, color 0.25s ease;
    line-height: 1;
}

.nh-link > span {
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}
/* Two-line label (Social Activities) */
.nh-link > span.nh-wrap {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

/* Gold underline bar */
.nh-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: #cca44b !important;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease !important;
    display: block !important;
}

.nh-link:hover {
    color: #e8c96a !important;
    background: rgba(255,255,255,0.05) !important;
}
.nh-link:hover i {
    transform: translateY(-3px);
    color: #CCA44B;
}
.nh-link:hover::after { transform: scaleX(1) !important; }

.nh-link.active-page {
    color: #e8c96a !important;
    background: rgba(201,168,76,0.1) !important;
}
.nh-link.active-page i { color: #CCA44B; }
.nh-link.active-page::after { transform: scaleX(1) !important; }

/* Strip Bootstrap's default dropdown caret */
.nh-link.dropdown-toggle::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


/* ── Dropdown menus ─────────────────────────────────────────── */
.nh-item .dropdown-menu {
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 0 0 1px rgba(201,168,76,0.1);
    border-radius: 0 0 12px 12px;
    padding: 8px 0;
    border-top: 3px solid #cca44b;
    background: #f3f2ee;
    min-width: 200px;
    margin-top: 0;
}

.nh-item .dropdown-item {
    padding: 9px 22px;
    font-weight: 500;
    color: #000;
    transition: all 0.2s ease;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nh-item .dropdown-item::before {
    content: '';
    width: 0;
    height: 2px;
    background: #5a101d;
    transition: width 0.25s ease;
    flex-shrink: 0;
}
.nh-item .dropdown-item:hover {
    background: rgba(90,16,29,0.04);
    color: #5a101d;
    padding-left: 28px;
}
.nh-item .dropdown-item:hover::before { width: 10px; }

/* Hover-open on desktop */
@media (min-width: 1200px) {
    .nh-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nh-item .dropdown-menu {
        display: block;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.22s ease, transform 0.22s ease;
        pointer-events: none;
    }
}


/* ── Toggler ────────────────────────────────────────────────── */
.nh-navbar .navbar-toggler {
    border-color: rgba(201,168,76,0.5);
    transition: all 0.25s ease;
}
.nh-navbar .navbar-toggler:hover { border-color: #cca44b; }
.nh-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1399px) {
    .nh-logo-img    { height: 68px; }
    .nh-link        { min-width: 60px; padding: 10px 10px !important; font-size: 0.63rem !important; }
}

@media (max-width: 1199px) {
    .nh-logo-img    { height: 58px; }
}

/* Mobile: collapsed nav */
@media (max-width: 1199px) {
    .nh-navbar { padding: 6px 0; }

    /* Stack items vertically */
    .nh-nav {
        padding: 10px 0 14px;
        border-top: 1px solid rgba(201,168,76,0.25);
        margin-top: 8px;
    }
    .nh-item {
        display: block;
    }
    .nh-item + .nh-item::before { display: none; }

    .nh-link {
        flex-direction: row !important;
        justify-content: flex-start !important;
        min-width: unset;
        padding: 10px 18px !important;
        gap: 12px;
        font-size: 0.8rem !important;
    }
    .nh-link i { font-size: 1.1rem; }
    .nh-link::after { display: none !important; }

    .nh-item .dropdown-menu {
        position: static !important;
        border-top: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,0.06);
        padding: 0 0 4px 46px;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .nh-item .dropdown-item {
        color: rgba(255,255,255,0.72);
        font-size: 0.8rem;
        padding: 7px 14px;
    }
    .nh-item .dropdown-item::before { background: #cca44b; }
    .nh-item .dropdown-item:hover {
        background: rgba(255,255,255,0.05);
        color: #e8c96a;
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    .nh-logo-img    { height: 48px; }
}

@media (max-width: 479px) {
    .nh-logo-img    { height: 40px; }
}

