/*
 * Licej — v2: premium gornja traka, meni, kontakt traka, mobilna akciona traka, dugmad, početna (IQ Media)
 * Lokacija na sajtu: wp-content/themes/astra-child/licej-v2.css
 * Učitava ga mu-plugin licej-unify.php: pregled uz ?licej_v2=1, za sve posle odobrenja (LICEJ_V2_LIVE).
 * Dolazi posle ostalih slojeva i ima prednost nad njima.
 *
 * PRAVILO: tipografija se NE menja (font-family, font-size, font-weight, line-height, letter-spacing).
 */

:root {
    --v2-navy: #0b2148;
    --v2-navy-2: #12305f;
    --v2-blue: #0a4697;
    --v2-gold: #e8b84b;
    --v2-gold-2: #d9a63a;
    --v2-red: #c8102e;
    --v2-red-2: #a50d25;
    --v2-cream: #f7f4ec;
    --v2-line: rgba(11, 33, 72, 0.08);
    --v2-wa: #25d366;
    --v2-shadow: 0 10px 30px rgba(11, 33, 72, 0.08);
    --v2-shadow-lg: 0 22px 50px rgba(11, 33, 72, 0.14);
}

/* Zamenjeni elementi iz ranijih slojeva. */
.lr-social-float,
.lr-script,
.lhf-wa-float {
    display: none !important;
}

/* =========================================================
   1. GORNJA TRAKA: kontakt levo · poruka u sredini · pismo desno
   ========================================================= */
.ast-above-header-bar .site-above-header-wrap {
    position: relative;
}
@media (min-width: 922px) {
    .ast-above-header-bar .site-above-header-wrap,
    .ast-above-header-bar .ast-builder-grid-row {
        min-height: 42px;
    }
}
.v2-topbar-left,
.v2-topbar-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}
.v2-topbar-left {
    left: 24px;
}
.v2-topbar-right {
    right: 24px;
}
.v2-topbar-left a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.86) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.v2-topbar-left a:hover {
    color: var(--v2-gold) !important;
}
.v2-topbar-left svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.v2-topbar-left .is-wa svg {
    fill: var(--v2-wa);
}
@media (max-width: 1100px) {
    .v2-topbar-left .v2-label {
        display: none;
    }
}
@media (max-width: 921px) {
    .v2-topbar-left,
    .v2-topbar-right {
        display: none;
    }
}

/* Prekidač pisma: segmentirana kontrola sa ikonicom. */
.v2-script {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 184, 75, 0.45);
}
.v2-script svg {
    width: 14px;
    height: 14px;
    margin: 0 4px 0 6px;
    fill: var(--v2-gold);
    flex: 0 0 auto;
}
.v2-script a {
    padding: 3px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.v2-script a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}
.v2-script a.is-active {
    background: var(--v2-gold);
    color: var(--v2-navy) !important;
}

/* Gornja traka, raspored kao na primeru vlasnika (2026-11-24):
 * levo pismo kao tekstualne kartice (aktivno: zlatna linija), desno telefon i WhatsApp (diskretno dugme sa zelenom tačkom). */
@media (min-width: 922px) {
    .v2-topbar-right {
        left: 40px !important;
        right: auto !important;
    }
    .v2-topbar-left {
        right: 40px !important;
        left: auto !important;
        gap: 18px;
    }
    .v2-topbar-right .v2-script {
        background: transparent;
        border: 0;
        padding: 0;
        gap: 0;
    }
    .v2-topbar-right .v2-script svg {
        display: none;
    }
    .v2-topbar-right .v2-script a {
        position: relative;
        padding: 6px 0;
        margin: 0 12px;
        border-radius: 0;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.62) !important;
    }
    .v2-topbar-right .v2-script a:first-of-type {
        margin-left: 0;
    }
    .v2-topbar-right .v2-script a + a::before {
        content: "";
        position: absolute;
        left: -13px;
        top: 50%;
        width: 1px;
        height: 12px;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.28);
    }
    .v2-topbar-right .v2-script a:hover {
        color: #fff !important;
    }
    .v2-topbar-right .v2-script a.is-active {
        color: #fff !important;
        background: transparent !important;
    }
    .v2-topbar-right .v2-script a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--v2-gold);
    }
    .v2-topbar-left .v2-label {
        display: inline !important;
    }
    .v2-topbar-left a:not(.is-wa) svg {
        fill: rgba(255, 255, 255, 0.86);
    }
    .v2-topbar-left .is-wa {
        padding: 4px 14px 4px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.06);
    }
    .v2-topbar-left .is-wa:hover {
        border-color: rgba(232, 184, 75, 0.6);
    }
    .v2-topbar-left .is-wa svg {
        display: none;
    }
    .v2-topbar-left .is-wa::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--v2-wa);
        box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
    }
}

/* Pismo desno, pored kontakta (2026-11-24): grupa pisma („Ћир | Lat”) je ugnežđena u desnu kontakt grupu.
 * Poruka u gornjoj traci je tačno u sredini (≥1270 px); između 1270 i 1599 px broj telefona je samo ikonica
 * (broj u title), da se poruka ne preklapa sa kontaktom. 1100–1269 px: poruka levo; ispod 1100 px sakrivena. */
@media (min-width: 922px) {
    .ast-above-header-bar .site-header-above-section-center {
        justify-content: center !important;
    }
    .ast-above-header-bar .ast-header-html-5,
    .ast-above-header-bar .ast-header-html-5 p {
        text-align: center !important;
        margin: 0 !important;
    }
    .v2-topbar-left .v2-topbar-right {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        margin-left: 4px;
        padding-left: 18px;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
    }
}
@media (min-width: 922px) and (max-width: 1599px) {
    .v2-topbar-left > a:not(.is-wa) .v2-label {
        display: none !important;
    }
}
@media (min-width: 922px) and (max-width: 1269px) {
    .ast-above-header-bar .site-header-above-section-center {
        justify-content: flex-start !important;
    }
    .ast-above-header-bar .ast-header-html-5,
    .ast-above-header-bar .ast-header-html-5 p {
        text-align: left !important;
    }
}
@media (min-width: 922px) and (max-width: 1099px) {
    .ast-above-header-bar .ast-header-html-5 {
        visibility: hidden;
    }
}

/* =========================================================
   2. GLAVNI MENI (desktop)
   ========================================================= */
@media (min-width: 922px) {
    #masthead .ast-primary-header-bar .site-primary-header-wrap .ast-builder-grid-row {
        min-height: 80px;
    }
    .ast-builder-menu-1 .main-header-menu {
        gap: 4px;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
        border-radius: 8px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link {
        background: var(--v2-cream);
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after {
        bottom: 8px;
    }
    /* Razdelnik i odmak pre dugmeta „Упиши се”. */
    .site-header-primary-section-right .ast-header-button-1 {
        margin-left: 12px;
        padding-left: 22px;
        border-left: 1px solid var(--v2-line);
    }
    /* „Смерови и профили”: padajući meni u dve kolone (14 stavki). */
    .ast-builder-menu-1 .main-header-menu > .menu-item:nth-child(2) > .sub-menu {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        min-width: 560px !important;
        padding: 12px !important;
        column-gap: 8px;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item:nth-child(2) > .sub-menu > .menu-item > .menu-link {
        border-radius: 8px;
        border-top: 0 !important;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item:nth-child(2) > .sub-menu > .menu-item {
        border-bottom: 1px solid rgba(11, 33, 72, 0.05) !important;
    }
    /* Svi padajući meniji: mekši ulaz. */
    .ast-builder-menu-1 .main-header-menu .sub-menu {
        border-radius: 0 0 14px 14px !important;
        box-shadow: var(--v2-shadow-lg) !important;
    }
}

/* =========================================================
   3. PREMIUM DUGMAD (svuda)
   ========================================================= */
.elementor-button,
.ast-custom-button,
.lhf-drawer-cta,
.lhf-drawer-btn {
    border-radius: 8px !important;
    min-height: 48px;
    padding: 13px 26px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
a.elementor-button:hover,
.ast-custom-button:hover {
    transform: translateY(-1px);
}
.elementor-button.uael-post__read-more {
    min-height: 0;
    padding: 0 !important;
    transform: none !important;
}
/* Primarno: dubinski gradijent, svetla ivica, senka, strelica. */
a.elementor-button[href*="/prijavi-se"],
.ast-header-button-1 .ast-custom-button,
.ast-header-button-4 .ast-custom-button,
.lhf-drawer-cta,
.v2-mbar .is-primary {
    background: linear-gradient(180deg, #d4153a 0%, var(--v2-red) 55%, #b30d29 100%) !important;
    border-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(200, 16, 46, 0.28) !important;
}
a.elementor-button[href*="/prijavi-se"]:hover,
.ast-header-button-1 .ast-custom-button:hover,
.ast-header-button-4 .ast-custom-button:hover,
.lhf-drawer-cta:hover {
    background: linear-gradient(180deg, #c11233 0%, var(--v2-red-2) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px rgba(200, 16, 46, 0.34) !important;
}
a.elementor-button[href*="/prijavi-se"] .elementor-button-text::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}
a.elementor-button[href*="/prijavi-se"]:hover .elementor-button-text::after {
    transform: translateX(3px);
}
/* Sekundarno (poziv, vodič): zlatni gradijent, ikonica slušalice. */
a.elementor-button[href^="tel:"],
a.elementor-button[href$=".pdf"] {
    background: linear-gradient(180deg, #f0c862 0%, var(--v2-gold) 60%, var(--v2-gold-2) 100%) !important;
    border-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 20px rgba(217, 166, 58, 0.30) !important;
}
a.elementor-button[href^="tel:"]:hover,
a.elementor-button[href$=".pdf"]:hover {
    background: linear-gradient(180deg, #e8bd52 0%, var(--v2-gold-2) 100%) !important;
}
a.elementor-button[href^="tel:"] .elementor-button-text::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================================================
   4. KONTAKT TRAKA SA STRANE (desktop/tablet): jedna mirna traka, sve ikonice iste veličine
      (telefon i WhatsApp prvi, zlatne ikonice; ispod razdelnik i mreže, bele ikonice)
   ========================================================= */
.v2-dock {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 97;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(11, 33, 72, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 184, 75, 0.35);
    box-shadow: 0 10px 26px rgba(8, 24, 51, 0.22);
}
.v2-dock-main,
.v2-dock-social {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.v2-dock-social {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.v2-dock a {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}
.v2-dock a:hover,
.v2-dock a:focus-visible {
    background: rgba(232, 184, 75, 0.18) !important;
}
.v2-dock a svg {
    width: 18px !important;
    height: 18px !important;
    fill: #fff !important;
}
.v2-dock-main a svg {
    fill: var(--v2-gold) !important;
}
/* Natpis koji izlazi pri prelasku mišem (telefon, WhatsApp). */
.v2-dock-main a .v2-tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--v2-navy);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.v2-dock-main a:hover .v2-tip,
.v2-dock-main a:focus-visible .v2-tip {
    opacity: 1;
    transform: translate(0, -50%);
}
#ast-scroll-top {
    right: 26px !important;
    bottom: 26px !important;
}
html.ast-off-canvas-active .v2-dock {
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   5. TELEFON: bez donje trake — upis, poziv i WhatsApp su u meniju; header: logo + ☰
   ========================================================= */
.v2-mbar {
    display: none !important;
}
@media (max-width: 767px) {
    .v2-dock {
        display: none !important;
    }
    .ast-mobile-header-wrap .ast-header-button-1,
    .ast-mobile-header-wrap .ast-header-button-4 {
        display: none !important;
    }
    #ast-scroll-top {
        right: 18px !important;
        bottom: 18px !important;
    }
    /* Zaglavlje na telefonu: logo levo, meni (☰) skroz desno. */
    .ast-mobile-header-wrap .ast-primary-header-bar .ast-builder-grid-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    .ast-mobile-header-wrap .ast-primary-header-bar .site-header-primary-section-right {
        display: none !important;
    }
    .ast-mobile-header-wrap .ast-primary-header-bar .site-header-primary-section-center {
        margin-left: auto;
        justify-content: flex-end;
    }
    /* Prekidač pisma u zaglavlju mobilnog menija. */
    #ast-mobile-popup .ast-mobile-popup-header {
        gap: 10px;
    }
    #ast-mobile-popup .lhf-drawer-brand img {
        height: 30px !important;
    }
    #ast-mobile-popup .ast-mobile-popup-header .v2-script {
        margin-left: auto;
        margin-right: 10px;
    }
    #ast-mobile-popup .ast-mobile-popup-header .v2-script svg {
        display: none;
    }
    #ast-mobile-popup .ast-mobile-popup-header .v2-script a {
        padding: 4px 10px;
    }
}
/* Meni na telefonu: mirnije — ikonice poziva i WhatsApp-a zlatne, bez zelene. */
#ast-mobile-popup .lhf-drawer-btn svg,
#ast-mobile-popup .lhf-drawer-btn.is-wa svg {
    fill: var(--v2-gold) !important;
}

/* =========================================================
   6. POČETNA: doterivanje sekcija (bez izmene sadržaja)
   ========================================================= */
/* Traka prednosti ispod hero-a: lebdeća bela kartica. */
@media (min-width: 1025px) {
    :is(.elementor-11, .elementor-6357) .elementor-element-af455ae > .e-con-inner {
        position: relative;
        z-index: 3;
        margin-top: -64px;
        padding: 30px 18px !important;
        background: #fff;
        border-radius: 18px;
        box-shadow: var(--v2-shadow-lg);
        border-top: 3px solid var(--v2-gold);
    }
}
/* Kartice profila i ostale kartice: meka senka, fina ivica, podizanje na hover. */
:is(.elementor-11, .elementor-6357) .elementor-element-acd40fa .e-con-inner > .e-con,
:is(.elementor-11, .elementor-6357) .elementor-element-0e66f2b,
:is(.elementor-11, .elementor-6357) .elementor-element-049b133 .e-con:has(> .elementor-widget-uael-infobox) {
    background-color: #fff;
    box-shadow: var(--v2-shadow) !important;
    border: 1px solid var(--v2-line) !important;
    border-radius: 16px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
:is(.elementor-11, .elementor-6357) .elementor-element-acd40fa .e-con-inner > .e-con:hover,
:is(.elementor-11, .elementor-6357) .elementor-element-049b133 .e-con:has(> .elementor-widget-uael-infobox):hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg) !important;
}
/* Partneri: ujednačeni, prigušeni logotipi; boja na hover. */
:is(.elementor-11, .elementor-6357) .elementor-element-d7862db img {
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
:is(.elementor-11, .elementor-6357) .elementor-element-d7862db img:hover {
    filter: none;
    opacity: 1;
}
/* Vesti: kartice sa senkom i podizanjem. */
:is(.elementor-11, .elementor-6357) .uael-post__inner-wrap {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: var(--v2-shadow);
    border: 1px solid var(--v2-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
:is(.elementor-11, .elementor-6357) .uael-post__inner-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg);
}
/* Završni poziv: kartica sa zlatnom ivicom. */
:is(.elementor-11, .elementor-6357) .elementor-element-c983c52 .e-con:has(> .elementor-widget-button) {
    border-radius: 16px;
}
@media (prefers-reduced-motion: reduce) {
    .v2-dock-main a,
    a.elementor-button,
    :is(.elementor-11, .elementor-6357) .e-con,
    :is(.elementor-11, .elementor-6357) .uael-post__inner-wrap {
        transition: none !important;
        transform: none !important;
    }
}
