#gi-home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    color: white;
    font-family: "Segoe UI", Arial, sans-serif;
}
#gi-home-hero, #gi-home-hero * { box-sizing: border-box; }
#gi-home-hero .gi-stage { position: relative; aspect-ratio: 3; overflow: hidden; background: #171914; }
#gi-home-hero .gi-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .38s ease, visibility 0s linear .38s;
}
#gi-home-hero .gi-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
#gi-home-hero .gi-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.7vw, 30px);
    background: #fff;
    border-top: 1px solid #e7e9ed;
}
#gi-home-hero .gi-brand h2 { width: min(64%, 980px); line-height: 0; }
#gi-home-hero .gi-brand img { display: block; width: 100%; height: auto; }
#gi-home-hero .gi-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    padding: 7px 3px;
    color: #132949;
    border-bottom: 2px solid #6b9fd7;
    font: 600 clamp(16px, 1.15vw, 20px)/1.2 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}
#gi-home-hero .gi-explore:hover { border-color: #142a49; }
#gi-home-hero .gi-explore:focus-visible { outline-color: #132949; }
#gi-home-hero .gi-first {
    display: flex;
    align-items: center;
    background: linear-gradient(#0009, #0009), url('/wp-content/uploads/2026/07/karlovac.jpg') center / cover no-repeat;
}
#gi-home-hero .gi-copy { width: 76%; max-width: 1420px; margin: auto; }
#gi-home-hero h1, #gi-home-hero h2, #gi-home-hero p {
    margin: 0;
    font-family: inherit;
    font-style: normal;
    color: white;
    text-transform: none;
    letter-spacing: normal;
}
#gi-home-hero .gi-first h2 { font-size: clamp(32px,3.16vw,62px); font-weight: 400; line-height: 1.14; }
#gi-home-hero .gi-first p {
    margin: clamp(12px,1.5vw,26px) 0 clamp(12px,1.25vw,22px);
    font-size: clamp(16px,1.19vw,23px);
    font-weight: 400;
    line-height: 1.45;
}
#gi-home-hero .gi-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e31b23;
    padding: .9em 2.1em;
    min-height: 48px;
    font-size: clamp(15px,1.18vw,23px);
    font-weight: 400;
    line-height: 1.2;
    color: white;
    text-decoration: none;
}
#gi-home-hero .gi-cta:hover { background: #c51820; }
#gi-home-hero .gi-second { background: #1b1d18; }
#gi-home-hero .gi-banner { position: absolute; inset: 0; background: url('inicijativa.webp') center / 100% 100% no-repeat; }
#gi-home-hero .gi-hotspot { position: absolute; display: block; left: 11%; top: 54.14%; width: 20.95%; height: 11.6%; }
#gi-home-hero .gi-hotspot:hover { box-shadow: inset 0 0 0 2px white; }
#gi-home-hero .gi-pecat {
    position: absolute; right: 1.5%; top: 2.5%;
    width: clamp(64px, 7.05vw, 132px); height: auto;
    border-radius: 50%; pointer-events: none;
    box-shadow: 0 2px 9px #0004;
}
@media (min-width: 901px) {
    #gi-home-hero .gi-mobile-copy .gi-cta { display: none; }
    #gi-home-hero .gi-mobile-copy h1 {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
}
#gi-home-hero .gi-controls { display: flex; justify-content: center; align-items: center; padding: 3px 0; background: #f1f1f1; }
#gi-home-hero .gi-controls[hidden] { display: none; }
#gi-home-hero .gi-controls button {
    appearance: none; display: grid; place-items: center; width: 28px; min-width: 28px; height: 30px;
    margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer;
}
#gi-home-hero .gi-controls button::before {
    content: ""; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #74787b;
}
#gi-home-hero .gi-controls button[aria-current]::before { background: #303437; border-color: #303437; transform: scale(1.15); }
#gi-home-hero .gi-controls button:hover::before { border-color: #202427; }
#gi-home-hero .gi-controls button:focus-visible { outline: 2px solid #245b87; outline-offset: -3px; border-radius: 50%; }
#gi-home-hero :focus-visible { outline: 3px solid white; outline-offset: 3px; }
@media (max-width: 900px) {
    #gi-home-hero .gi-stage { aspect-ratio: auto; height: clamp(400px,calc(117vw - 36px),504px); }
    #gi-home-hero .gi-first { background-position: 53% center; }
    #gi-home-hero .gi-copy { width: calc(100% - 44px); padding-bottom: 24px; }
    #gi-home-hero .gi-brand { gap: 22px; padding-bottom: 24px; }
    #gi-home-hero .gi-brand h2 { width: min(96%, 680px); }
    #gi-home-hero .gi-pecat { right: 22px; top: auto; bottom: 29px; width: clamp(64px, 20vw, 86px); }
    #gi-home-hero .gi-first h2, #gi-home-hero .gi-mobile-copy h1 { font-size: clamp(31px,7.9vw,46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; }
    #gi-home-hero .gi-first p { font-size: 17px; line-height: 1.45; margin: 16px 0 21px; max-width: 40ch; }
    #gi-home-hero .gi-cta { font-size: 15px; padding: 14px 21px; min-height: 49px; font-weight: 600; }
    #gi-home-hero .gi-banner {
        bottom: 43%;
        background-image: linear-gradient(to bottom,transparent 66%,#1b1d18 100%), url('inicijativa-mobitel.webp');
        background-size: cover, cover;
        background-position: center, 50% 40%;
    }
    #gi-home-hero .gi-hotspot { display: none; }
    #gi-home-hero .gi-mobile-copy { position: absolute; inset: auto 22px 35px; display: block; }
    #gi-home-hero .gi-mobile-copy h1 { max-width: 19ch; margin: 0 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
    #gi-home-hero .gi-slide { transition: none; }
}

#gi-home-hero:has(.gi-news) .gi-stage { min-height: 405px; }
#gi-home-hero .gi-news {
    display: flex;
    align-items: center;
    background: #112131;
}
#gi-home-hero .gi-news-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 51%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 50%;
}
#gi-home-hero .gi-news-text { width: 49%; padding: 18px 3.5% 20px 5%; }
#gi-home-hero .gi-text-only .gi-news-text { width: min(95%, 970px); }
#gi-home-hero .gi-news-kicker {
    font: 700 13px/1.3 "Segoe UI", sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #e7d3b7;
}
#gi-home-hero .gi-news h2, #gi-home-hero .gi-news p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
#gi-home-hero .gi-news h2 {
    font: 700 clamp(27px, 3vw, 53px)/1.07 Georgia, serif;
    margin: 12px 0;
    -webkit-line-clamp: 3;
}
#gi-home-hero .gi-news p {
    font: 400 clamp(15px, 1.16vw, 19px)/1.45 "Segoe UI", sans-serif;
    margin: 0 0 18px;
    color: #eef0f1;
    -webkit-line-clamp: 3;
}
#gi-home-hero .gi-news .gi-cta { gap: 14px; }
@media (max-width: 900px) {
    #gi-home-hero:has(.gi-news) .gi-stage { min-height: 450px; }
    #gi-home-hero .gi-news { flex-direction: column; align-items: stretch; justify-content: center; }
    #gi-home-hero .gi-news-photo { position: relative; width: 100%; height: 40%; flex: none; }
    #gi-home-hero .gi-news-text { width: 100%; padding: 14px 20px; margin: auto 0; }
    #gi-home-hero .gi-news-kicker { font-size: 11px; }
    #gi-home-hero .gi-news h2 { font-size: clamp(24px, 5.7vw, 34px); margin: 6px 0; }
    #gi-home-hero .gi-news p { font-size: 14px; margin-bottom: 10px; }
    #gi-home-hero .gi-news .gi-cta { padding: 10px 14px; min-height: 44px; }
}
