/*
 * Licej — premium header, navigacija i footer (IQ Media)
 * Lokacija na sajtu: wp-content/themes/astra-child/licej-hf.css
 * Učitava ga mu-plugin licej-unify.php: pregled uz ?licej_hf=1, za sve posle odobrenja (LICEJ_HF_LIVE).
 *
 * PRAVILO: tipografija se NE menja (font-family, font-size, font-weight, line-height, letter-spacing).
 * Boje identiteta: plava #0a4697, zlatna #e8b84b, crvena (CTA); dodata tamna plava (navy) za premium podloge.
 */

:root {
    --lhf-navy: #0b2148;
    --lhf-navy-deep: #081833;
    --lhf-blue: #0a4697;
    --lhf-gold: #e8b84b;
    --lhf-ink: #13213d;
    --lhf-cream: #f7f4ec;
    --lhf-line: rgba(11, 33, 72, 0.08);
}

/* ---------- HEADER: gornja traka ---------- */
.ast-above-header-bar {
    background: var(--lhf-navy) !important;
    border-bottom: 1px solid rgba(232, 184, 75, 0.35) !important;
}
.ast-above-header-bar,
.ast-above-header-bar .ast-header-html-5,
.ast-above-header-bar .ast-header-html-5 * {
    color: rgba(255, 255, 255, 0.86) !important;
}
.ast-above-header-bar a:hover {
    color: var(--lhf-gold) !important;
}

/* ---------- HEADER: glavna traka (i sticky kopija) ---------- */
.ast-primary-header-bar {
    background: #fff !important;
    border-bottom: 1px solid var(--lhf-line) !important;
}
#ast-fixed-header .ast-primary-header-bar,
.ast-header-sticked .ast-primary-header-bar {
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 8px 30px rgba(11, 33, 72, 0.10);
}
.ast-primary-header-bar .custom-logo {
    image-rendering: -webkit-optimize-contrast;
}

/* Glavni meni: tamnoplavi linkovi, zlatna linija ispod aktivne/hover stavke. */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    color: var(--lhf-ink) !important;
    position: relative;
    transition: color 0.2s ease;
}
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after {
    content: "";
    position: absolute;
    left: 0.9em;
    right: 0.9em;
    bottom: 12px;
    height: 2px;
    background: var(--lhf-gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
    color: var(--lhf-blue) !important;
}
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link::after,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link::after,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link::after {
    transform: scaleX(1);
}

/* Padajući meni: bela kartica sa zlatnim vrhom i senkom, bez sivih linija. */
@media (min-width: 922px) {
    .ast-builder-menu-1 .main-header-menu .sub-menu {
        background: #fff !important;
        border: 0 !important;
        border-top: 3px solid var(--lhf-gold) !important;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 22px 48px rgba(11, 33, 72, 0.16);
        padding: 8px 0 !important;
        min-width: 280px;
    }
    .ast-builder-menu-1 .main-header-menu .sub-menu .sub-menu {
        border-radius: 12px;
        top: -8px;
    }
    .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item {
        border: 0 !important;
    }
    .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link {
        color: var(--lhf-ink) !important;
        background: transparent !important;
        border: 0 !important;
        padding: 10px 22px !important;
        box-shadow: inset 3px 0 0 transparent;
        transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    }
    .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover > .menu-link,
    .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link {
        background: var(--lhf-cream) !important;
        color: var(--lhf-blue) !important;
        box-shadow: inset 3px 0 0 var(--lhf-gold);
    }
}

/* CTA u header-u: ista crvena, finija senka. */
.ast-header-button-1 .ast-custom-button,
.ast-header-button-4 .ast-custom-button {
    box-shadow: 0 6px 18px rgba(232, 17, 35, 0.18);
}

/* ---------- MOBILNI/TABLET HEADER I MENI ---------- */
@media (max-width: 921px) {
    .ast-mobile-header-wrap .ast-primary-header-bar {
        box-shadow: 0 1px 0 var(--lhf-line);
    }
    .ast-mobile-header-wrap .menu-toggle,
    .ast-mobile-header-wrap .menu-toggle:hover,
    .ast-mobile-header-wrap .menu-toggle:focus {
        border: 1px solid var(--lhf-line) !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: var(--lhf-navy) !important;
    }
    .ast-mobile-header-wrap .menu-toggle .ast-mobile-svg {
        fill: var(--lhf-navy) !important;
    }

    /* Bočni meni: ceo panel tamnoplav, beli linkovi, zlatni akcenti. */
    #ast-mobile-popup .ast-mobile-popup-inner,
    #ast-mobile-popup .ast-mobile-popup-content,
    #ast-mobile-popup .ast-mobile-popup-header {
        background: var(--lhf-navy) !important;
    }
    #ast-mobile-popup .ast-mobile-popup-inner {
        border-right: 3px solid var(--lhf-gold);
    }
    #ast-mobile-popup .menu-toggle-close,
    #ast-mobile-popup .menu-toggle-close .ast-svg-iconset svg,
    #ast-mobile-popup .menu-toggle-close svg {
        color: #fff !important;
        fill: #fff !important;
    }
    #ast-mobile-popup .main-header-menu,
    #ast-mobile-popup .main-header-menu .menu-item,
    #ast-mobile-popup .main-header-menu .sub-menu {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
    }
    #ast-mobile-popup .main-header-menu .menu-link {
        color: #fff !important;
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    #ast-mobile-popup .main-header-menu .sub-menu {
        background: rgba(255, 255, 255, 0.04) !important;
    }
    #ast-mobile-popup .main-header-menu .sub-menu .menu-link {
        color: rgba(255, 255, 255, 0.82) !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    #ast-mobile-popup .main-header-menu .menu-item.current-menu-item > .menu-link,
    #ast-mobile-popup .main-header-menu .menu-item.current-menu-ancestor > .menu-link,
    #ast-mobile-popup .main-header-menu .menu-link:hover {
        color: var(--lhf-gold) !important;
    }
    #ast-mobile-popup .ast-menu-toggle,
    #ast-mobile-popup .ast-menu-toggle svg,
    #ast-mobile-popup .dropdown-menu-toggle svg {
        color: #fff !important;
        fill: #fff !important;
        background: transparent !important;
    }
}

/* ---------- FOOTER ---------- */
#colophon .site-primary-footer-wrap {
    background: var(--lhf-navy) !important;
    background-image: none !important;
    border-top: 3px solid var(--lhf-gold);
    padding-top: 64px !important;
    padding-bottom: 48px !important;
}
#colophon .site-primary-footer-wrap,
#colophon .site-primary-footer-wrap p,
#colophon .site-primary-footer-wrap li {
    color: rgba(255, 255, 255, 0.78);
}
#colophon .widget-title {
    color: #fff !important;
    padding-bottom: 12px;
    margin-bottom: 18px;
    position: relative;
}
#colophon .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--lhf-gold);
    border-radius: 2px;
}
#colophon .site-primary-footer-wrap a {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
#colophon .site-primary-footer-wrap a:hover {
    color: var(--lhf-gold) !important;
}
#colophon .site-primary-footer-wrap ul {
    margin-left: 0;
    list-style: none;
}
#colophon .site-primary-footer-wrap ul li {
    padding: 4px 0;
}
/* Društvene mreže: kružne ikonice sa obrubom. */
#colophon .ast-footer-social-wrap .ast-builder-social-element {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
#colophon .ast-footer-social-wrap .ast-builder-social-element:hover {
    border-color: var(--lhf-gold) !important;
    background: rgba(232, 184, 75, 0.12) !important;
}
#colophon .ast-footer-social-wrap .ast-builder-social-element svg {
    width: 16px !important;
    height: 16px !important;
    fill: #fff !important;
}
/* Donja traka. */
#colophon .site-below-footer-wrap {
    background: var(--lhf-navy-deep) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#colophon .site-below-footer-wrap,
#colophon .site-below-footer-wrap * {
    color: rgba(255, 255, 255, 0.62) !important;
}
#colophon .site-below-footer-wrap a:hover {
    color: var(--lhf-gold) !important;
}

@media (max-width: 921px) {
    #colophon .site-primary-footer-wrap {
        padding-top: 48px !important;
        padding-bottom: 32px !important;
    }
    #colophon .site-footer-section {
        margin-bottom: 28px;
    }
}
@media (max-width: 544px) {
    #colophon .site-primary-footer-wrap .site-footer-section {
        text-align: center;
        align-items: center;
    }
    #colophon .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    #colophon .ast-footer-social-wrap,
    #colophon .footer-social-inner-wrap {
        justify-content: center;
    }
}

/* Dugme „na vrh”: zlatni krug umesto crvenog kvadrata. */
#ast-scroll-top {
    background: var(--lhf-gold) !important;
    color: var(--lhf-navy) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(11, 33, 72, 0.25);
}
#ast-scroll-top svg,
#ast-scroll-top .ast-icon svg {
    fill: var(--lhf-navy) !important;
}
