/* ═══════════════════════════════════════════════════════════════
   Navtarang Header Footer — Frontend CSS v2.0
   Font: system-ui (token-safe) | Icons: Font Awesome 6
   Mobile-first | No italic | 100% wide by default
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ──────────────────────────────────────────────────────── */
#nhf-header *,
#nhf-footer * {
    box-sizing: border-box;
    font-style: normal;
}

/* ── TOP BAR ─────────────────────────────────────────────────────────────*/
.nhf-top-bar {
    width: 100%;
    font-size: 12.5px;
    padding: 6px 0;
}
.nhf-top-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.nhf-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.nhf-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nhf-top-left .nhf-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.nhf-top-left .nhf-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.nhf-top-left a,
.nhf-top-right a {
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: opacity .2s;
}
.nhf-top-left a:hover,
.nhf-top-right a:hover { opacity: .7; }

/* Social icon circles */
.nhf-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    text-decoration: none !important;
    font-size: 13px;
    transition: opacity .2s, transform .15s, background .2s;
}
.nhf-social:hover {
    opacity: .85;
    transform: scale(1.15);
    background: rgba(255,255,255,.22);
}
.nhf-social i { pointer-events: none; }

/* ── MAIN BAR ─────────────────────────────────────────────────────────── */
.nhf-main-bar {
    width: 100%;
    padding: 14px 0;
}
.nhf-main-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.nhf-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.nhf-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit;
    line-height: 0;
}
.nhf-logo-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.nhf-logo-img {
    height: 56px;
    width: auto;
    object-fit: cover;
    display: block;
}
.nhf-logo-circle {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    font-style: normal;
}
.nhf-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nhf-brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.1;
    font-style: normal;
}
.nhf-brand-sub {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: .85;
    font-weight: 600;
    font-style: normal;
}
.nhf-right-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.nhf-right-heading {
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
}
.nhf-right-sub {
    font-size: 13px;
    opacity: .75;
    font-weight: 400;
    font-style: normal;
}

/* ── NAV BAR ──────────────────────────────────────────────────────────── */
.nhf-nav-bar { width: 100%; }
.nhf-nav-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: visible; /* Allow dropdown to escape nav bar */
}
.nhf-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    overflow: visible; /* Must be visible so dropdown submenu is not clipped */
}
/* Scrollable wrapper if nav links overflow — use a clip wrapper instead */
.nhf-nav-scroll-wrap {
    display: flex;
    align-items: stretch;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    overflow-y: visible;
}
.nhf-nav-scroll-wrap::-webkit-scrollbar { display: none; }

.nhf-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 13px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    font-style: normal;
    transition: color .18s, background .18s;
}
.nhf-nav-item:hover,
.nhf-nav-item.active {
    background: rgba(255,255,255,.08);
}
.nhf-nav-icon {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
}
.nhf-nav-icon i { pointer-events: none; }

/* Dropdown (Navtarang Apps) */
.nhf-nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}
.nhf-nav-dropdown-trigger {
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nhf-nav-caret {
    margin-left: 6px;
    font-size: 11px;
    opacity: .85;
}
.nhf-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: transparent; /* Set by inline style from admin settings */
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    display: none;
    flex-direction: column;
    z-index: 50;
}
.nhf-nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none !important;
    color: inherit;
    white-space: nowrap;
}
.nhf-nav-subitem:hover {
    background: rgba(255,255,255,.08);
}
.nhf-nav-subitem-disabled {
    opacity: .7;
    cursor: not-allowed;
}
.nhf-nav-dropdown:focus-within .nhf-nav-submenu,
.nhf-nav-dropdown:hover .nhf-nav-submenu,
.nhf-nav-dropdown.open .nhf-nav-submenu {
    display: flex;
}

/* Radio button */
.nhf-radio-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .3px;
    transition: opacity .2s, transform .1s;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
    margin: 6px 0 6px 8px;
}
.nhf-radio-btn:hover  { opacity: .85; transform: scale(1.03); }
.nhf-radio-btn:active { transform: scale(.97); }

/* Hamburger */
.nhf-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 14px;
    flex-shrink: 0;
    align-self: center;
}
.nhf-hamburger span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nhf-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nhf-hamburger.open span:nth-child(2) { opacity: 0; }
.nhf-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BREAKING NEWS TICKER ─────────────────────────────────────────────── */
.nhf-breaking-bar {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 38px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    position: relative;
}
.nhf-breaking-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    margin: 0 0 0 12px;
    line-height: 1;
    /* border-radius set via inline style from PHP */
}
.nhf-breaking-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
/* Fade-in mask on left edge of ticker */
.nhf-breaking-track-wrap::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 30px;
    background: inherit;
    z-index: 1;
    pointer-events: none;
}
.nhf-breaking-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    letter-spacing: .2px;
}
.nhf-breaking-track span {
    display: inline-block;
}
.nhf-bn-dot {
    opacity: .6;
    margin: 0 2px;
}
.nhf-bn-gap {
    display: inline-block;
}
.nhf-bn-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.nhf-bn-link:hover {
    text-decoration: underline;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.nhf-footer { width: 100%; }
.nhf-footer-main {
    width: 100%;
    margin: 0 auto;
    padding: 48px 20px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
}
.nhf-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.nhf-footer-col p {
    margin: 0 0 9px;
    font-size: 13.5px;
    line-height: 1.65;
    opacity: .82;
    font-style: normal;
}
.nhf-footer-col ul { list-style: none; margin: 0; padding: 0; }
.nhf-footer-col ul li { margin-bottom: 8px; }
.nhf-footer-col ul li a {
    font-size: 13.5px;
    text-decoration: none;
    transition: color .18s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-style: normal;
}
.nhf-footer-col ul li a i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    opacity: .7;
}
.nhf-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.nhf-footer-contact p i { margin-top: 3px; opacity: .7; flex-shrink: 0; }

.nhf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px 0;
}
.nhf-footer-bottom-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    opacity: .7;
    font-style: normal;
}
.nhf-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}
.nhf-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    font-size: 13px;
    text-decoration: none;
    transition: opacity .2s, transform .15s, background .2s;
}
.nhf-footer-social a:hover {
    opacity: .85;
    transform: scale(1.12);
    background: rgba(255,255,255,.2);
}

/* ── TABLET ≤ 960px ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .nhf-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .nhf-brand-name  { font-size: 24px; }
    .nhf-right-heading { font-size: 16px; }
    .nhf-right-text { flex: 1; }
}

/* ── MOBILE ≤ 640px ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
    /* Top bar stacks */
    .nhf-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .nhf-top-right { gap: 8px; }

    /* Main bar wraps */
    .nhf-main-inner { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
    .nhf-brand { gap: 10px; }
    .nhf-logo-circle { width: 44px; height: 44px; font-size: 22px; }
    .nhf-logo-img    { height: 44px; }
    .nhf-brand-name  { font-size: 21px; }
    .nhf-brand-sub   { font-size: 9px; letter-spacing: 1.5px; }
    .nhf-right-heading { font-size: 14px; }
    .nhf-right-sub     { font-size: 11px; }
    .nhf-right-text    { text-align: right; }

    /* Show hamburger */
    .nhf-hamburger { display: flex; }

    /* Mobile nav */
    .nhf-nav-inner { flex-wrap: wrap; }
    .nhf-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        overflow: visible;
    }
    .nhf-nav.open { display: flex; }
    .nhf-nav-item {
        width: 100%;
        padding: 13px 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        font-size: 13px;
    }

    .nhf-nav-dropdown { width: 100%; flex-direction: column; }
    .nhf-nav-submenu {
        position: static;
        min-width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.06);
        box-shadow: none;
        background: transparent; /* Set by inline style from admin settings */
    }
    .nhf-nav-dropdown-trigger {
        width: 100%;
        justify-content: flex-start;
    }
    .nhf-nav-dropdown.open .nhf-nav-submenu { display: flex; }

    .nhf-radio-btn { margin: 6px 10px 6px auto; padding: 8px 12px; font-size: 12px; }

    /* Footer single column */
    .nhf-footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 20px;
    }
    .nhf-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ── VERY SMALL ≤ 380px ──────────────────────────────────────────────── */
@media (max-width: 380px) {
    .nhf-brand-name    { font-size: 18px; }
    .nhf-right-heading { font-size: 12px; }
    .nhf-radio-btn .nhf-radio-txt { display: none; }
    .nhf-radio-btn {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
    }
}
