/* ==========================================================================
   JZU Dom zdravlja Srbac — glavni stil
   Bootstrap 5.3 + vlastite komponente. Boje i font iz koncepta (idea/).
   ========================================================================== */

:root {
    --dz-red: #E53935;
    --dz-red-dark: #C62828;
    --dz-red-soft: #FDECEC;
    --dz-ink: #333333;
    --dz-ink-strong: #1F2A37;
    --dz-muted: #6B7280;
    --dz-bg-muted: #F6F7F9;
    --dz-border: #ECEEF1;
    --dz-footer: #1F2A37;
    --dz-radius: 14px;
    --dz-shadow: 0 6px 24px rgba(31, 42, 55, .07);
    --dz-shadow-hover: 0 12px 32px rgba(31, 42, 55, .12);
    --dz-header-h: 115px;   /* visina zaglavlja na desktopu — za ljepljive bočne trake */

    --bs-body-font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--dz-ink);
    --bs-body-bg: #fff;
    --bs-primary: var(--dz-red);
    --bs-primary-rgb: 229, 57, 53;
    --bs-link-color: var(--dz-red);
    --bs-link-color-rgb: 229, 57, 53;
    --bs-link-hover-color: var(--dz-red-dark);
    --bs-link-hover-color-rgb: 198, 40, 40;
}

body {
    font-size: .975rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--dz-ink-strong); font-weight: 600; }

.text-accent { color: var(--dz-red); }

.skip-link {
    position: absolute; left: 1rem; top: 1rem; z-index: 2000;
    background: #fff; padding: .5rem 1rem; border-radius: 8px;
}

:focus-visible { outline: 3px solid rgba(229, 57, 53, .45); outline-offset: 2px; }

/* ---------- Dugmad ---------- */
.btn-primary {
    --bs-btn-bg: var(--dz-red);
    --bs-btn-border-color: var(--dz-red);
    --bs-btn-hover-bg: var(--dz-red-dark);
    --bs-btn-hover-border-color: var(--dz-red-dark);
    --bs-btn-active-bg: var(--dz-red-dark);
    --bs-btn-active-border-color: var(--dz-red-dark);
    --bs-btn-focus-shadow-rgb: 229, 57, 53;
}

.btn-outline-dark {
    --bs-btn-color: var(--dz-ink-strong);
    --bs-btn-border-color: var(--dz-ink-strong);
    --bs-btn-hover-bg: var(--dz-ink-strong);
    --bs-btn-hover-border-color: var(--dz-ink-strong);
    background: #fff;
}

.btn-pill {
    border-radius: 999px;
    padding: .8rem 1.6rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: .5rem;
}
.btn-pill.btn-primary { box-shadow: 0 8px 20px rgba(229, 57, 53, .28); }

.btn-emergency {
    display: inline-flex; align-items: center; gap: .65rem;
    background: var(--dz-red); color: #fff;
    border-radius: 999px; padding: .45rem 1.1rem .45rem .9rem;
    box-shadow: 0 6px 18px rgba(229, 57, 53, .35);
    line-height: 1.1;
}
.btn-emergency:hover, .btn-emergency:focus { background: var(--dz-red-dark); color: #fff; }
.btn-emergency .ti { font-size: 1.35rem; }
.btn-emergency__text { display: flex; flex-direction: column; text-align: left; white-space: nowrap; }
.btn-emergency__text small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.btn-emergency__text strong { font-size: 1.15rem; font-weight: 700; }

/* Dugme za pismo (latinica / ćirilica) */
.btn-script {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 50%;
    background: #333333; color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .01em;
    box-shadow: 0 6px 18px rgba(51, 51, 51, .3);
}
.btn-script:hover, .btn-script:focus { background: #1f1f1f; color: #fff; }

.link-arrow {
    color: var(--dz-red); font-weight: 500; font-size: .875rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
}
.link-arrow .ti { transition: transform .2s ease; }
a:hover .link-arrow .ti, .link-arrow:hover .ti { transform: translateX(4px); }

/* ---------- Logo ---------- */
.logo { display: inline-block; }
.logo img { display: block; height: 68px; width: auto; }
.logo--light img { height: 84px; border-radius: 12px; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--dz-border);
}
/* backdrop-filter pravi containing block za position:fixed, pa bi odsjekao mobilni offcanvas meni → samo na desktopu */
@media (min-width: 1200px) {
    .site-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(8px); }
}
.site-header .navbar { padding-block: .8rem; }
.site-header .navbar-toggler { border: 0; font-size: 1.8rem; padding: .25rem .4rem; color: var(--dz-ink-strong); }
.site-header .navbar-toggler:focus { box-shadow: none; }

.site-header .nav-link {
    color: var(--dz-ink);
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .85rem !important;
    position: relative;
}
.site-header .nav-link:hover { color: var(--dz-red); }
.site-header .nav-link.active { color: var(--dz-red); }

@media (min-width: 1200px) {
    .site-header .nav-link.active::after {
        content: ""; position: absolute; left: 50%; bottom: -2px;
        width: 22px; height: 2px; background: var(--dz-red);
        transform: translateX(-50%); border-radius: 2px;
    }
}

@media (max-width: 1199.98px) {
    .site-header .nav-link { font-size: 1.05rem; padding: .85rem 0 !important; }
    .site-header .nav-item { border-bottom: 1px solid var(--dz-border); }
}

/* ---------- Podmeniji ---------- */
.nav-row { display: flex; align-items: center; justify-content: space-between; }

.submenu-toggle {
    border: 0; background: none; color: var(--dz-muted);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .2s ease, color .2s ease;
}
.submenu-toggle:hover, .has-sub.is-open .submenu-toggle { color: var(--dz-red); }
.has-sub.is-open .submenu-toggle .ti { transform: rotate(180deg); }
.submenu-toggle .ti { transition: transform .2s ease; }

.submenu { list-style: none; margin: 0; padding: .4rem; }
.submenu a {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .75rem; border-radius: 8px;
    color: var(--dz-ink); text-decoration: none; font-size: .875rem; line-height: 1.3;
    white-space: nowrap;
}
.site-header .nav-link { white-space: nowrap; }
.submenu a .ti { font-size: 1.2rem; color: var(--dz-red); flex-shrink: 0; }
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: var(--dz-red-soft); color: var(--dz-red); }

/* Desktop: padajući panel na hover / fokus / klik */
@media (min-width: 1200px) {
    .site-header .nav-item { position: relative; }
    .has-sub .nav-link { padding-right: .2rem !important; }
    .submenu-toggle { width: 22px; height: 28px; padding: 0; font-size: .9rem; margin-right: .35rem; }

    .submenu {
        position: absolute; top: calc(100% + 14px); left: 0; z-index: 1050;
        min-width: 260px;
        background: #fff; border: 1px solid var(--dz-border); border-radius: 12px;
        box-shadow: var(--dz-shadow-hover);
        opacity: 0; visibility: hidden; transform: translateY(6px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }
    .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* most za hover */
    .has-sub:hover > .submenu,
    .has-sub:focus-within > .submenu,
    .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
    .has-sub:hover .submenu-toggle .ti { transform: rotate(180deg); }
    .has-sub.is-dismissed:not(.is-open) > .submenu { opacity: 0; visibility: hidden; transform: translateY(6px); }
    .has-sub.is-dismissed:not(.is-open) .submenu-toggle .ti { transform: none; }

    .submenu { min-width: 240px; width: max-content; }
    .submenu--wide { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 .25rem; }
    .submenu--wide li:last-child { grid-column: 1 / -1; border-top: 1px solid var(--dz-border); margin-top: .3rem; padding-top: .3rem; }
    .submenu--wide li:last-child a { color: var(--dz-red); font-weight: 500; }

    /* zadnji podmeniji se otvaraju ulijevo da ne izađu iz ekrana */
    .navbar-nav > .nav-item:nth-last-child(-n+2) > .submenu { left: auto; right: 0; }
}

/* Mobilni: harmonika unutar offcanvas menija */
@media (max-width: 1199.98px) {
    .submenu-toggle { width: 44px; height: 44px; font-size: 1.25rem; }
    .submenu { display: none; padding: 0 0 .6rem .25rem; }
    .has-sub.is-open > .submenu { display: block; }
    .submenu a { font-size: .95rem; padding: .6rem .5rem; }
}

@media (max-width: 575.98px) {
    .logo img { height: 50px; }
    .btn-emergency { padding: .4rem .85rem .4rem .7rem; }
    .btn-emergency__text small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem);
    background: var(--dz-bg-muted);
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute; top: 0; right: 0; z-index: -2;
    width: 65%; height: 100%; object-fit: cover; object-position: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, 0) 70%);
}
.hero__content { max-width: 560px; position: relative; }
.hero__title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}
.hero__lead { font-size: 1.3rem; font-weight: 500; color: var(--dz-ink-strong); margin-bottom: .25rem; }
.hero__text { font-size: 1.05rem; color: var(--dz-ink); margin-bottom: 2rem; max-width: 380px; }

@media (max-width: 767.98px) {
    .hero__bg { width: 100%; }
    .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 65%, rgba(255, 255, 255, .7) 100%); }
}

/* ---------- Brze kartice ---------- */
.quick-cards { margin-top: -3.5rem; position: relative; z-index: 2; }

.feature-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--dz-shadow);
    text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--dz-shadow-hover); color: inherit; }
.feature-card__title { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.feature-card__text { font-size: .85rem; color: var(--dz-muted); margin-bottom: 1.1rem; flex-grow: 1; }

.icon-circle {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--dz-red-soft); color: var(--dz-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.85rem;
}

@media (max-width: 575.98px) {
    .feature-card { padding: 1.15rem 1rem; }
    .feature-card__title { font-size: .92rem; }
    .feature-card__text,
    .feature-card .link-arrow { display: none; }
    .feature-card__title { margin-bottom: 0; }
    .icon-circle { width: 48px; height: 48px; font-size: 1.35rem; }
    .service-grid { grid-template-columns: repeat(3, 1fr); gap: .65rem; }
    .service-tile { min-height: 96px; padding: 1rem .4rem; font-size: .75rem; }
    .service-tile .ti { font-size: 1.6rem; }
}

/* ---------- Sekcije ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--muted { background: var(--dz-bg-muted); }

.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; margin-bottom: 2rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: .35rem;
}
.section-title::before {
    content: ""; width: 28px; height: 3px; background: var(--dz-red); border-radius: 2px; flex-shrink: 0;
}
.section-sub { color: var(--dz-muted); margin: 0; font-size: .9rem; }

/* ---------- Vijesti ---------- */
.news-card {
    position: relative;
    background: #fff;
    border-radius: var(--dz-radius);
    overflow: hidden;
    box-shadow: var(--dz-shadow);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--dz-shadow-hover); }
.news-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dz-bg-muted); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-card__date { font-size: .78rem; color: var(--dz-muted); }
.news-card__title { font-size: 1.05rem; margin: .35rem 0 .6rem; line-height: 1.35; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--dz-red); }
.news-card__title, .news-card__excerpt {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.news-card__excerpt { font-size: .875rem; color: var(--dz-muted); margin-bottom: 1rem; }
.news-card__body .link-arrow { margin-top: auto; }

/* Vijest bez slike: blaga pozadina sa ikonom kategorije */
.news-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--dz-red-soft) 0%, #fff 100%);
    color: var(--dz-red);
}
.news-card__placeholder .ti { font-size: 3.5rem; opacity: .85; transition: transform .4s ease; }
.news-card:hover .news-card__placeholder .ti { transform: scale(1.08); }
.news-card__placeholder--rasporedi { background: linear-gradient(135deg, #E8ECF2 0%, #fff 100%); color: var(--dz-ink-strong); }
.news-card__placeholder--savjeti { background: linear-gradient(135deg, #E7F3E8 0%, #fff 100%); color: #2E7D32; }

.badge-cat {
    position: absolute; top: .9rem; left: .9rem;
    font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: var(--dz-red);
    padding: .3rem .65rem; border-radius: 6px;
}
.badge-cat--rasporedi { background: var(--dz-ink-strong); }
.badge-cat--savjeti { background: #2E7D32; }

/* ---------- Pretraga ---------- */
.site-search { position: relative; display: flex; flex: 1 1 340px; max-width: 460px; }
.site-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--dz-muted); pointer-events: none; }
.site-search .form-control {
    border-radius: 10px 0 0 10px; border: 1px solid var(--dz-border);
    padding: .8rem 1rem .8rem 2.6rem; font-size: .9rem; background: #fff;
}
.site-search .form-control:focus { border-color: var(--dz-red); box-shadow: 0 0 0 .2rem rgba(229, 57, 53, .15); }
.site-search .btn { border-radius: 0 10px 10px 0; padding-inline: 1.15rem; }

.site-search__results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
    background: #fff; border-radius: 12px; box-shadow: var(--dz-shadow-hover);
    border: 1px solid var(--dz-border); max-height: 340px; overflow-y: auto; padding: .35rem;
}
.site-search__results a {
    display: flex; gap: .8rem; align-items: center;
    padding: .6rem .75rem; border-radius: 8px;
    color: var(--dz-ink); text-decoration: none;
}
.site-search__results a:hover, .site-search__results a.is-active { background: var(--dz-red-soft); }
.site-search__results .ti { color: var(--dz-red); font-size: 1.15rem; }
.site-search__results small { display: block; color: var(--dz-muted); font-size: .75rem; }
.site-search__results mark { background: none; color: var(--dz-red); padding: 0; font-weight: 600; }
.site-search__empty { padding: .75rem; color: var(--dz-muted); font-size: .875rem; }

/* ---------- Službe (pločice) ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 1rem;
}
.service-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
    background: #fff; border-radius: 12px; border: 1px solid var(--dz-border);
    padding: 1.4rem .75rem; min-height: 116px; text-align: center;
    color: var(--dz-ink-strong); text-decoration: none; font-size: .82rem; font-weight: 500; line-height: 1.25;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-tile .ti { font-size: 2.4rem; color: var(--dz-red); }
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--dz-shadow); border-color: transparent; color: var(--dz-red); }

/* ---------- Zaglavlje podstranice ---------- */
.page-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    background: var(--dz-bg-muted);
    overflow: hidden;
    isolation: isolate;
}
.page-hero__bg {
    position: absolute; top: 0; right: 0; z-index: -2;
    width: 58%; height: 100%; object-fit: cover; object-position: center;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, var(--dz-bg-muted) 0%, var(--dz-bg-muted) 40%, rgba(246, 247, 249, .8) 50%, rgba(246, 247, 249, 0) 75%);
}
.page-hero .breadcrumb { font-size: .82rem; margin-bottom: 1rem; --bs-breadcrumb-divider: '›'; }
.page-hero .breadcrumb a { color: var(--dz-muted); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--dz-red); }
.page-hero .breadcrumb-item.active { color: var(--dz-ink-strong); }
.page-hero__content { max-width: 520px; }
.page-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.page-hero__lead { font-size: 1.05rem; margin: 0; }
.page-hero__lead::after { content: ""; display: block; width: 44px; height: 3px; background: var(--dz-red); border-radius: 2px; margin-top: 1.4rem; }

@media (max-width: 767.98px) {
    .page-hero__bg { width: 100%; }
    .page-hero::before { background: linear-gradient(180deg, rgba(246, 247, 249, .95) 0%, rgba(246, 247, 249, .88) 100%); }
}

/* ---------- Kontakt ---------- */
.emergency-strip { background: var(--dz-red); color: #fff; }
.emergency-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: 1.1rem 0; }
.emergency-strip__icon { font-size: 2rem; line-height: 1; }
.emergency-strip__text { flex: 1 1 260px; display: flex; flex-direction: column; font-size: .9rem; }
.emergency-strip__text strong { font-size: 1.05rem; font-weight: 600; }
.emergency-strip a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.emergency-strip a:not(.btn):hover { text-decoration: underline; }
.emergency-strip .btn { color: var(--dz-red); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }

.contact-card {
    background: #fff; border: 1px solid var(--dz-border); border-radius: var(--dz-radius);
    box-shadow: var(--dz-shadow); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.contact-card--muted { background: var(--dz-bg-muted); box-shadow: none; }
.contact-card__title { font-size: 1.25rem; margin-bottom: 1.5rem; }
.contact-card__subtitle {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1rem; margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--dz-border);
}
.contact-card__subtitle .ti { color: var(--dz-red); font-size: 1.25rem; }

.icon-circle--sm { width: 44px; height: 44px; font-size: 1.3rem; flex-shrink: 0; }
.contact-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list small { display: block; font-size: .75rem; color: var(--dz-muted); }
.contact-list a { color: var(--dz-ink-strong); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--dz-red); }

.hours-list { margin: 0; }
.hours-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--dz-border); font-size: .9rem; }
.hours-list > div:last-child { border-bottom: 0; }
.hours-list dt { font-weight: 400; color: var(--dz-ink); }
.hours-list dd { margin: 0; font-weight: 500; color: var(--dz-ink-strong); }

.phone-list__item {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
    background: #fff; border-radius: 10px; padding: .75rem 1rem; margin-bottom: .6rem; font-size: .9rem;
}
.phone-list__item .ti { color: var(--dz-red); font-size: 1.3rem; }
.phone-list__item a, .phone-list__number { font-weight: 600; color: var(--dz-ink-strong); text-decoration: none; white-space: nowrap; }
.phone-list__item a:hover { color: var(--dz-red); }
.phone-list__item--urgent { background: var(--dz-red); color: #fff; }
.phone-list__item--urgent .ti, .phone-list__item--urgent a, .phone-list__item--urgent a:hover { color: #fff; }
.phone-list__item--urgent a { font-size: 1.15rem; }

.map-card {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    background: #fff; border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); overflow: hidden;
}
.map-card__info { padding: clamp(1.5rem, 3vw, 2.5rem); align-self: center; }
.map-card__info p { margin: 1rem 0 1.5rem; }
.map-card__map { min-height: 360px; }
.map-card__map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 991.98px) {
    .map-card { grid-template-columns: 1fr; }
    .map-card__map, .map-card__map iframe { min-height: 300px; }
}

.dept-card {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    background: #fff; border: 1px solid var(--dz-border); border-radius: 12px; padding: 1rem 1.2rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.dept-card:hover { box-shadow: var(--dz-shadow); border-color: transparent; }
.dept-card > .ti { font-size: 2rem; color: var(--dz-red); flex-shrink: 0; }
.dept-card__name { display: block; font-weight: 500; color: var(--dz-ink-strong); text-decoration: none; line-height: 1.3; }
.dept-card__name:hover { color: var(--dz-red); }
.dept-card__phone { font-size: .875rem; color: var(--dz-muted); text-decoration: none; white-space: nowrap; }
.dept-card__phone:hover { color: var(--dz-red); }

.ambulance-card { background: #fff; border-radius: 12px; padding: 1.2rem 1.3rem; box-shadow: var(--dz-shadow); }
.ambulance-card__title { display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; margin-bottom: .35rem; }
.ambulance-card__title .ti { color: var(--dz-red); }
.ambulance-card__phone { display: inline-block; font-weight: 600; color: var(--dz-ink-strong); text-decoration: none; margin-bottom: .6rem; }
.ambulance-card__phone:hover { color: var(--dz-red); }
.ambulance-card__teams { margin: 0; font-size: .82rem; color: var(--dz-muted); }

/* ---------- Aktuelno (lista) ---------- */
.badge-cat--covid { background: #6B7280; }
.news-card__placeholder--covid { background: linear-gradient(135deg, #EEF0F3 0%, #fff 100%); color: #6B7280; }
.badge-cat.position-static { display: inline-block; text-decoration: none; }

.cat-tabs {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--dz-border);
}
.cat-tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--dz-border); background: #fff;
    color: var(--dz-ink-strong); font-size: .85rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cat-tab .ti { font-size: 1.05rem; color: var(--dz-red); }
.cat-tab__count { font-size: .72rem; color: var(--dz-muted); background: var(--dz-bg-muted); border-radius: 999px; padding: .05rem .5rem; }
.cat-tab:hover { border-color: var(--dz-red); color: var(--dz-red); }
.cat-tab.is-active { background: var(--dz-red); border-color: var(--dz-red); color: #fff; }
.cat-tab.is-active .ti { color: #fff; }
.cat-tab.is-active .cat-tab__count { background: rgba(255, 255, 255, .22); color: #fff; }
.cat-tab--archive { margin-left: auto; border-style: dashed; }
.cat-tab--archive .ti { color: var(--dz-muted); }

@media (max-width: 767.98px) {
    /* Na telefonu kategorije u jednom redu sa horizontalnim skrolom */
    .cat-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding-inline: 12px; scrollbar-width: none; }
    .cat-tabs::-webkit-scrollbar { display: none; }
    .cat-tab--archive { margin-left: 0; }
}

.archive-search, .archive-box {
    background: var(--dz-bg-muted); border-radius: var(--dz-radius); padding: 1.25rem 1.3rem; margin-bottom: 1.25rem;
}
.archive-box__title { display: block; font-size: .95rem; font-weight: 600; color: var(--dz-ink-strong); margin-bottom: .85rem; }
.archive-search__field { position: relative; display: flex; }
.archive-search__field > .ti { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--dz-muted); pointer-events: none; z-index: 1; }
.archive-search .form-control { border-radius: 10px 0 0 10px; padding: .6rem .75rem .6rem 2.4rem; border-color: var(--dz-border); font-size: .9rem; }
.archive-search .form-control:focus { border-color: var(--dz-red); box-shadow: 0 0 0 .2rem rgba(229, 57, 53, .15); }
.archive-search .btn { border-radius: 0 10px 10px 0; padding-inline: .9rem; }
.archive-search__hint { display: block; margin-top: .5rem; font-size: .75rem; color: var(--dz-muted); }

.year-list { margin: 0; }
.year-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .45rem .7rem; border-radius: 8px; color: var(--dz-ink-strong); text-decoration: none; font-size: .9rem;
}
.year-list a span { font-size: .75rem; color: var(--dz-muted); }
.year-list a:hover { background: #fff; color: var(--dz-red); }
.year-list a.is-active { background: #fff; color: var(--dz-red); font-weight: 600; box-shadow: inset 3px 0 0 var(--dz-red); }

/* Godine kao čipovi (bočna traka vijesti; na telefonu i u listi objava) */
.year-list--chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.year-list--chips a { gap: .4rem; background: #fff; padding: .35rem .7rem; font-size: .85rem; }
.year-list--chips a.is-active { box-shadow: inset 0 0 0 1px var(--dz-red); }
@media (max-width: 991.98px) {
    .news-archive .year-list { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
    .news-archive .year-list a { gap: .4rem; background: #fff; padding: .35rem .7rem; white-space: nowrap; }
    .news-archive .year-list a.is-active { box-shadow: inset 0 0 0 1px var(--dz-red); }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.results-bar__count { margin: 0; font-size: .875rem; color: var(--dz-muted); }
.results-bar__count strong { color: var(--dz-ink-strong); font-weight: 600; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filter-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--dz-red-soft); color: var(--dz-red); border-radius: 999px; padding: .25rem .7rem;
    font-size: .8rem; font-weight: 500; text-decoration: none;
}
.filter-chip:hover { background: var(--dz-red); color: #fff; }
.filter-reset { font-size: .8rem; color: var(--dz-muted); margin-left: .35rem; }

.news-featured {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: #fff; border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); overflow: hidden;
    margin-bottom: 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.news-featured:hover { transform: translateY(-4px); box-shadow: var(--dz-shadow-hover); }
.news-featured__media { aspect-ratio: 16 / 10; background: var(--dz-bg-muted); overflow: hidden; }
.news-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.news-featured__media .news-card__placeholder .ti { font-size: 4.5rem; }
.news-featured__body { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.news-featured__title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.3; margin: .75rem 0; }
.news-featured__title a { color: inherit; text-decoration: none; }
.news-featured__title a:hover { color: var(--dz-red); }
.news-featured__excerpt { color: var(--dz-muted); font-size: .9rem; margin-bottom: 1.1rem; }
@media (max-width: 767.98px) { .news-featured { grid-template-columns: 1fr; } }

.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .82rem; color: var(--dz-muted); }
.news-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.news-meta .ti { color: var(--dz-red); font-size: 1rem; }

.empty-state { text-align: center; padding: 3.5rem 1rem; background: var(--dz-bg-muted); border-radius: var(--dz-radius); }
.empty-state > .ti { font-size: 3rem; color: var(--dz-red); }
.empty-state h1, .empty-state h2 { font-size: 1.3rem; margin: .75rem 0 .35rem; }
.empty-state p { color: var(--dz-muted); margin-bottom: 1.25rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager__pages { display: flex; gap: .3rem; margin: 0; }
.pager__num, .pager__step {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 10px;
    border: 1px solid var(--dz-border); background: #fff; color: var(--dz-ink-strong);
    font-size: .875rem; font-weight: 500; text-decoration: none;
}
.pager__num:hover, .pager__step:hover { border-color: var(--dz-red); color: var(--dz-red); }
.pager__num.is-current { background: var(--dz-red); border-color: var(--dz-red); color: #fff; }
.pager__step.is-disabled { opacity: .4; pointer-events: none; }
.pager__gap { align-self: center; color: var(--dz-muted); padding: 0 .15rem; }
@media (max-width: 575.98px) {
    .pager__step span { display: none; }
    .pager__num, .pager__step { min-width: 36px; height: 36px; padding: 0 .5rem; }
}

/* ---------- Vijest ---------- */
.article-head { background: var(--dz-bg-muted); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.article-head .breadcrumb { font-size: .82rem; margin-bottom: 1.25rem; --bs-breadcrumb-divider: '›'; }
.article-head .breadcrumb a { color: var(--dz-muted); text-decoration: none; }
.article-head .breadcrumb a:hover { color: var(--dz-red); }
.article-head__inner { max-width: 820px; }
.article-head__title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 1rem 0 0; }
.article-head__title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--dz-red); border-radius: 2px; margin-top: 1.25rem; }

.article-cover { margin: 0 0 2rem; border-radius: var(--dz-radius); overflow: hidden; background: var(--dz-bg-muted); }
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: contain; }

.article-body { font-size: 1.02rem; line-height: 1.8; color: var(--dz-ink); }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul { padding-left: 1.2rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body li::marker { color: var(--dz-red); }
.article-body a { word-break: break-word; }

.article-block { margin-top: 2.5rem; }
.article-block__title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.article-block__title .ti { color: var(--dz-red); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery__item { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--dz-bg-muted); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.05); }

.attachment {
    display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; margin-bottom: .6rem;
    border: 1px solid var(--dz-border); border-radius: 12px; color: var(--dz-ink-strong); text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.attachment:hover { border-color: transparent; box-shadow: var(--dz-shadow); color: var(--dz-red); }
.attachment > .ti:first-child { font-size: 2rem; color: var(--dz-red); }
.attachment__name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.attachment__name small { display: block; font-weight: 400; font-size: .75rem; color: var(--dz-muted); }
.attachment__dl { font-size: 1.3rem; color: var(--dz-muted); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dz-border); }
.share__label { font-size: .85rem; color: var(--dz-muted); margin-right: .25rem; }
.share__btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--dz-bg-muted); color: var(--dz-ink-strong);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.share__btn:hover { background: var(--dz-red); color: #fff; }
.share__toast { font-size: .8rem; color: #2E7D32; margin-left: .5rem; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.article-nav__link {
    display: block; padding: 1rem 1.2rem; border-radius: 12px; background: var(--dz-bg-muted);
    color: var(--dz-ink-strong); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.4;
}
.article-nav__link small { display: flex; align-items: center; gap: .3rem; color: var(--dz-red); font-size: .75rem; font-weight: 500; margin-bottom: .3rem; }
.article-nav__link span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav__link:hover { background: var(--dz-red-soft); color: var(--dz-red); }
.article-nav__link--next { text-align: right; grid-column: 2; }
.article-nav__link--next small { justify-content: flex-end; }
@media (max-width: 575.98px) {
    .article-nav { grid-template-columns: 1fr; }
    .article-nav__link--next { grid-column: auto; }
}

.mini-list { margin: 0 0 1rem; }
.mini-list li + li { border-top: 1px solid var(--dz-border); }
.mini-list a { display: block; padding: .65rem 0; color: var(--dz-ink-strong); text-decoration: none; font-size: .875rem; line-height: 1.4; }
.mini-list a:hover span { color: var(--dz-red); }
.mini-list time { display: block; font-size: .72rem; color: var(--dz-muted); margin-bottom: .15rem; }
.mini-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 992px) { .article aside { position: sticky; top: calc(var(--dz-header-h) + 1.5rem); align-self: flex-start; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(17, 24, 39, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 7rem); max-height: calc(100vh - 4rem); border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: var(--dz-red); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (max-width: 575.98px) { .lightbox img { max-width: 100vw; } .lightbox__nav { bottom: 1rem; } }

@media print {
    .site-header, .site-footer, .share, .article-nav, .article aside, .section--muted, .breadcrumb { display: none !important; }
    .article-head { background: none; padding: 0; }
}

/* ---------- Službe ---------- */
.service-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--dz-border); border-radius: var(--dz-radius);
    padding: 1.6rem 1.5rem; box-shadow: var(--dz-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--dz-shadow-hover); }
.service-card__title { font-size: 1.1rem; margin: 1.1rem 0 .45rem; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card:hover .service-card__title a { color: var(--dz-red); }
.service-card__text { font-size: .875rem; color: var(--dz-muted); flex-grow: 1; margin-bottom: 1rem; }
.service-card__meta { font-size: .82rem; margin-bottom: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--dz-border); }
.service-card__meta li { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.service-card__meta .ti { color: var(--dz-red); font-size: 1rem; }

.service-facts { margin-top: -2rem; position: relative; z-index: 2; }
.fact-card {
    display: flex; align-items: flex-start; gap: .9rem;
    background: #fff; border: 1px solid var(--dz-border); border-radius: var(--dz-radius);
    box-shadow: var(--dz-shadow); padding: 1.1rem 1.25rem; font-size: .9rem;
}
.fact-card small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dz-muted); margin-bottom: .2rem; }
.fact-card strong { font-weight: 600; color: var(--dz-ink-strong); }
.fact-card__phone { font-weight: 600; color: var(--dz-ink-strong); text-decoration: none; }
.fact-card__phone:hover { color: var(--dz-red); }
.er-call + .service-facts { margin-top: 1.5rem; }

.service-about { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.5rem; }
.service-block { margin-bottom: 2.25rem; }
.service-block__title { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; margin-bottom: 1rem; }
.service-block__title .ti { color: var(--dz-red); font-size: 1.4rem; }
.text-muted-dz { color: var(--dz-muted); }

.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem 1.25rem; margin: 0; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.check-list .ti { color: var(--dz-red); font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }

.notice {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--dz-red-soft); border-left: 4px solid var(--dz-red); border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.3rem; margin-bottom: 2.25rem;
}
.notice > .ti { font-size: 1.6rem; color: var(--dz-red); flex-shrink: 0; }
.notice strong { display: block; color: var(--dz-ink-strong); margin-bottom: .3rem; }
.notice li { position: relative; padding-left: 1rem; margin-bottom: .3rem; }
.notice li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--dz-red); }
.notice p { margin: 0; }
.notice--muted { background: var(--dz-bg-muted); border-left-color: var(--dz-muted); }
.notice--muted > .ti { color: var(--dz-muted); }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem 1rem; margin: 0; }
.staff-card { text-align: center; }
.staff-card__photo {
    display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; margin-bottom: .65rem;
    background: var(--dz-bg-muted); box-shadow: var(--dz-shadow);
}
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.staff-card__photo:hover img { transform: scale(1.04); }
.staff-card__photo--empty {
    display: flex; align-items: center; justify-content: center; box-shadow: none;
    border: 1px dashed var(--dz-border); color: var(--dz-muted); font-size: 1.6rem; font-weight: 600;
}
.staff-card__photo--empty.is-doctor { background: var(--dz-red-soft); color: var(--dz-red); border-color: transparent; }
.staff-card strong { display: block; font-weight: 600; font-size: .8rem; color: var(--dz-ink-strong); line-height: 1.3; }
.staff-card small { display: block; font-size: .7rem; color: var(--dz-muted); line-height: 1.35; margin-top: .15rem; }
@media (max-width: 575.98px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }

.service-text { line-height: 1.75; }
.service-lead { font-weight: 600; color: var(--dz-ink-strong); }
.service-subtitle { font-size: 1rem; margin: 1.25rem 0 .75rem; }
.check-list--single { grid-template-columns: 1fr; margin-bottom: 1rem; }
.notice > p { margin: 0; }
.service-block .notice { margin-bottom: .75rem; }

.teams-table { border: 1px solid var(--dz-border); border-radius: 12px; }
.teams-table table { font-size: .875rem; }
.teams-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dz-muted); font-weight: 500; background: var(--dz-bg-muted); white-space: nowrap; }
.teams-table td, .teams-table th { padding: .7rem .9rem; border-color: var(--dz-border); }
.teams-table a { color: var(--dz-ink-strong); font-weight: 500; text-decoration: none; }
.teams-table a:hover { color: var(--dz-red); }
.teams-table tr:target td { background: var(--dz-red-soft); }
.team-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dz-red-soft); color: var(--dz-red); font-weight: 600; font-size: .8rem; }

.service-aside { margin-bottom: 1.25rem; padding: 1.4rem; }
.service-aside__phone { padding: .55rem 0; border-bottom: 1px dashed var(--dz-border); }
.service-aside__phone small { display: block; font-size: .75rem; color: var(--dz-muted); }
.service-aside__phone a { font-size: 1.15rem; font-weight: 600; color: var(--dz-ink-strong); text-decoration: none; }
.service-aside__phone a:hover { color: var(--dz-red); }
.service-aside .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.other-services { margin: 0; }
.other-services a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; color: var(--dz-ink-strong); text-decoration: none; font-size: .875rem; }
.other-services a:hover { background: #fff; color: var(--dz-red); }
.other-services .ti { color: var(--dz-red); font-size: 1.15rem; }

@media (max-width: 767.98px) {
    /* Tabela timova kao kartice na telefonu */
    .teams-table { border: 0; }
    .teams-table thead { display: none; }
    .teams-table table, .teams-table tbody, .teams-table tr, .teams-table td { display: block; width: 100%; }
    .teams-table tr { border: 1px solid var(--dz-border); border-radius: 12px; margin-bottom: .75rem; padding: .6rem .9rem; }
    .teams-table td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .teams-table td::before { content: attr(data-label); color: var(--dz-muted); font-size: .78rem; text-align: left; }
    .teams-table__no { justify-content: flex-start !important; align-items: center; font-weight: 600; color: var(--dz-ink-strong); margin-bottom: .2rem; }
    .teams-table__no::before { display: none; }
}

/* Liste u tekstu službi: bez ikonica, jedna stavka po redu */
.dot-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.dot-list li { position: relative; padding: .45rem 0 .45rem 2.25rem; line-height: 1.6; border-bottom: 1px solid var(--dz-border); }
.dot-list li:last-child { border-bottom: 0; }
.dot-list li::before { content: ""; position: absolute; left: 1.15rem; top: 1.05rem; width: 6px; height: 6px; border-radius: 50%; background: var(--dz-red); }
.dot-list--alert { background: var(--dz-red-soft); border-radius: 12px; padding: .35rem 1.1rem; }
.dot-list--alert li { border-bottom-color: rgba(229, 57, 53, .12); padding-left: 1.25rem; }   /* podloga već uvlači */
.dot-list--alert li::before { left: .15rem; }

.num-list { list-style: none; counter-reset: n; padding: 0; margin: 0 0 1rem; }
.num-list li { counter-increment: n; position: relative; padding: .45rem 0 .45rem 3.25rem; line-height: 1.6; border-bottom: 1px solid var(--dz-border); }
.num-list li:last-child { border-bottom: 0; }
.num-list li::before {
    content: counter(n); position: absolute; left: 1rem; top: .5rem;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--dz-ink-strong); color: #fff;
    font-size: .75rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
}

.stat-list { list-style: none; padding: 0; margin: 0; }
@media (min-width: 576px) {
    /* dvije kolone, popunjavaju se odozgo nadolje (1–3 lijevo, 4–6 desno) */
    .stat-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; column-gap: 2.5rem; }
    .stat-list li.is-col-end { border-bottom: 0; }
}
.stat-list li { display: flex; align-items: baseline; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--dz-border); }
.stat-list li:last-child { border-bottom: 0; }
.stat-list strong { min-width: 2rem; font-size: 1.15rem; font-weight: 700; color: var(--dz-red); text-align: right; }

/* Tim po zanimanjima */
.staff-group { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dz-muted); margin: 1.5rem 0 .85rem; }
.service-block__title + .staff-group { margin-top: .25rem; }
.staff-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 1rem .75rem !important; }   /* do 6 osoba u redu, u 2/3 sadržaja */
@media (max-width: 991.98px) { .staff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 767.98px) { .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 575.98px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Hitna pomoć */
.er-call { background: linear-gradient(135deg, var(--dz-red) 0%, var(--dz-red-dark) 100%); color: #fff; }
.er-call__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.75rem 0; }
.er-call__number { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.er-call__label { width: 100%; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.er-call__big { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; line-height: 1; color: #fff; text-decoration: none; }
.er-call__alt { font-size: 1.1rem; }
.er-call__alt a { color: #fff; font-weight: 600; text-decoration: none; }
.er-call__btn { color: var(--dz-red); font-weight: 700; font-size: 1rem; padding: .9rem 1.6rem; display: inline-flex; align-items: center; gap: .5rem; }

.er-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; margin: 0; }
.er-list li { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--dz-border); border-radius: 12px; padding: .75rem .9rem; font-size: .9rem; line-height: 1.4; }
.er-list .ti { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--dz-red-soft); color: var(--dz-red); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.call-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.call-steps li { counter-increment: step; display: flex; align-items: center; gap: .8rem; background: var(--dz-bg-muted); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; line-height: 1.4; }
.call-steps li::before { content: counter(step); width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--dz-ink-strong); color: #fff; font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.call-note { display: flex; gap: .5rem; font-size: .85rem; color: var(--dz-muted); }
.call-note .ti { color: var(--dz-red); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dz-footer); color: rgba(255, 255, 255, .78); padding-top: 3.5rem; font-size: .875rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.footer-contact li, .footer-phones li { display: flex; gap: .75rem; margin-bottom: .8rem; }
.footer-contact .ti, .footer-phones .ti { color: var(--dz-red); font-size: 1.25rem; margin-top: .1rem; }
.footer-phones strong { color: #fff; font-weight: 500; }
.footer-links li { margin-bottom: .45rem; }
.footer-social { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .1);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.footer-social a:hover { background: var(--dz-red); }
.footer-slogan { display: block; width: 190px; height: auto; }

/* Slogan na dnu mobilnog menija */
.offcanvas-slogan { display: block; width: 180px; height: auto; margin: 2rem auto 0; }
@media (min-width: 1200px) { .offcanvas-slogan { display: none; } }

.footer-bottom { margin-top: 2.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: rgba(255, 255, 255, .6); }
.footer-legal { display: flex; gap: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Vlastite ikone (u stilu Tabler Icons) ---------- */
/* RTG: grudni koš (kičma + rebra) u okviru snimka */
.ti-xray::before {
    content: "";
    display: inline-block;
    width: 1em; height: 1em;
    vertical-align: -.125em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M12 6v12'/%3E%3Cpath d='M12 8.5c-2.2 0-4 .6-5 2M12 8.5c2.2 0 4 .6 5 2M12 12c-2.2 0-4 .6-5 2M12 12c2.2 0 4 .6 5 2M12 15.5c-1.6 0-3 .4-3.8 1.4M12 15.5c1.6 0 3 .4 3.8 1.4'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M12 6v12'/%3E%3Cpath d='M12 8.5c-2.2 0-4 .6-5 2M12 8.5c2.2 0 4 .6 5 2M12 12c-2.2 0-4 .6-5 2M12 12c2.2 0 4 .6 5 2M12 15.5c-1.6 0-3 .4-3.8 1.4M12 15.5c1.6 0 3 .4 3.8 1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 575.98px) {
    .dept-card { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem .9rem; }
    .dept-card > .ti { font-size: 1.6rem; }
    .dept-card__name { font-size: .85rem; }
    .dept-card__phone { font-size: .75rem; white-space: normal; }
    .ambulance-card { padding: .95rem 1rem; }
}

/* Stranica službe: „Ostale službe" prati skrol (ispod zaglavlja, ne preko menija) */
@media (min-width: 992px) {
    .service-aside-nav { position: sticky; top: calc(var(--dz-header-h) + 1.5rem); z-index: 1; }
}

/* ===== Pronađite svog doktora ===== */
.doctor-list { margin: 0; display: grid; gap: 1.5rem; }
.doctor-row {
    background: #fff; border: 1px solid var(--dz-border); border-radius: var(--dz-radius); overflow: hidden;
    box-shadow: var(--dz-shadow); scroll-margin-top: calc(var(--dz-header-h) + 1rem);
}
.doctor-row:target { border-color: var(--dz-red); box-shadow: 0 0 0 3px rgba(229, 57, 53, .12); }
/* Zaglavlje kartice: obojena traka jasno odvaja timove */
.doctor-row__head {
    display: flex; align-items: center; gap: .9rem;
    background: var(--dz-bg-muted); border-bottom: 1px solid var(--dz-border); padding: 1rem 1.4rem;
}
.doctor-row__head .team-no { width: 46px; height: 46px; font-size: 1.15rem; font-weight: 700; flex-shrink: 0; background: var(--dz-red); color: #fff; }
.team-no--icon .ti { font-size: 1.3rem; }
.doctor-row__title { flex: 1; min-width: 0; }
.doctor-row__title h2 { font-size: 1.1rem; margin: 0 0 .15rem; }
.doctor-row__title h2 small { font-size: .85rem; font-weight: 400; color: var(--dz-muted); }
.doctor-row__title span { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--dz-muted); }
.doctor-row__title .ti { color: var(--dz-red); }
.doctor-row__call { white-space: nowrap; flex-shrink: 0; box-shadow: none; color: var(--dz-red); border-color: var(--dz-red); background: #fff; }
.doctor-row__call:hover, .doctor-row__call:focus-visible { color: #fff; background: var(--dz-red); border-color: var(--dz-red); }
.doctor-row__call .ti { margin-right: .35rem; }

.doctor-row__people {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem;
    padding: 1.25rem 1.4rem 0;
}
.doctor-row__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dz-muted); margin: 0 0 .6rem; }
.person { display: flex; align-items: center; gap: .8rem; }
.person + .person { margin-top: .7rem; }
.person strong { display: block; font-weight: 600; font-size: .95rem; color: var(--dz-ink-strong); line-height: 1.3; }
.person small { display: block; font-size: .8rem; color: var(--dz-muted); line-height: 1.35; }
.person__photo {
    width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--dz-bg-muted); display: flex; align-items: center; justify-content: center;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .3s ease; }
a.person__photo:hover img { transform: scale(1.08); }
.person__photo--empty { border: 1px dashed var(--dz-border); color: var(--dz-muted); font-size: .9rem; font-weight: 600; }
.person__photo--empty.is-doctor { background: var(--dz-red-soft); color: var(--dz-red); border-color: transparent; }

.doctor-row__hours { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; margin: 1.1rem 1.4rem 1.25rem; padding-top: .9rem; border-top: 1px dashed var(--dz-border); font-size: .85rem; color: var(--dz-muted); }
.doctor-row__hours > span { white-space: nowrap; }
.doctor-row__hours > span + span { margin-left: .9rem; }
.doctor-row__hours .ti { color: var(--dz-red); font-size: 1rem; }
.doctor-row__hours strong { color: var(--dz-ink-strong); font-weight: 500; }


@media (max-width: 767.98px) {
    .doctor-row__head { flex-wrap: wrap; padding: 1rem 1.1rem; }
    .doctor-row__people { padding: 1.1rem 1.1rem 0; }
    .doctor-row__hours { margin-inline: 1.1rem; }
    .doctor-row__call { width: 100%; justify-content: center; order: 3; }
    .doctor-row__people { grid-template-columns: 1fr; }
    .doctor-row__hours .ti { display: none; }
    .doctor-row__hours { flex-direction: column; align-items: flex-start; gap: .2rem; }
    .doctor-row__hours > span + span { margin-left: 0; }
}
button.filter-chip { border: 0; cursor: pointer; }
button.filter-reset { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; }

/* Konturno dugme: tamno sivo umjesto Bootstrapove plave */
.btn-outline-primary {
    --bs-btn-color: #333; --bs-btn-border-color: #333;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #333; --bs-btn-hover-border-color: #333;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #222; --bs-btn-active-border-color: #222;
    --bs-btn-focus-shadow-rgb: 51, 51, 51;
}

/* Timovi: blagi hover; pretraga i mjesto prate skrol */
.doctor-row { transition: border-color .2s ease, box-shadow .2s ease; }
.doctor-row:hover { border-color: rgba(229, 57, 53, .45); box-shadow: 0 10px 30px rgba(31, 42, 55, .1); }
@media (min-width: 992px) {
    .doctors-aside {
        position: sticky; top: calc(var(--dz-header-h) + 1.5rem);
        max-height: calc(100vh - var(--dz-header-h) - 3rem); overflow-y: auto; scrollbar-width: thin;   /* nizak ekran: skrol unutar sidebara */
    }
}

/* Sabijeniji sidebar na stranici doktora, da cijeli stane uz zaglavlje */
.doctors-aside .archive-search, .doctors-aside .archive-box { padding: 1rem 1.15rem; margin-bottom: 1rem; }
.doctors-aside .archive-box__title { margin-bottom: .6rem; }
.doctors-aside .year-list a { padding: .33rem .7rem; }

/* ===== Tekstualna stranica (stranica.php) ===== */
.page-block + .page-block { margin-top: 2.25rem; }
.page-block__title { font-size: 1.3rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--dz-red-soft); }
.page-meta { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--dz-muted); background: var(--dz-bg-muted); border-radius: 999px; padding: .25rem .8rem; margin-bottom: 1.25rem; }
.page-phone { font-size: .9rem; color: var(--dz-muted); margin: -.35rem 0 1rem; }
.page-phone a { font-weight: 600; color: var(--dz-ink-strong); text-decoration: none; }
.page-phone a:hover { color: var(--dz-red); }
.page-content .notice { margin: 1.25rem 0; }
.dot-list--links a { color: var(--dz-red); font-weight: 500; text-decoration: none; }
.dot-list--links a:hover { color: var(--dz-red); text-decoration: underline; }

.page-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.page-figures figure { margin: 0; }
.page-figures a { display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--dz-bg-muted); }
.page-figures img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.page-figures a:hover img { transform: scale(1.03); }
.page-figures figcaption { font-size: .82rem; color: var(--dz-muted); margin-top: .5rem; }
@media (max-width: 575.98px) { .page-figures { grid-template-columns: 1fr; } }

.profile { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.profile .service-text { font-size: 13pt; line-height: 1.85; }
.profile__photo { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--dz-shadow); }
.profile__photo img { width: 100%; height: auto; display: block; }
.profile__name { font-size: 1.15rem; margin: 0 0 .15rem; }
.profile__role { color: var(--dz-red); font-weight: 500; font-size: .9rem; margin-bottom: .9rem; }
@media (max-width: 575.98px) { .profile { grid-template-columns: 1fr; gap: 1rem; } .profile__photo { max-width: 150px; } }

.page-nav a.is-active { background: #fff; color: var(--dz-red); font-weight: 600; box-shadow: inset 3px 0 0 var(--dz-red); }

/* ===== Cjenovnik (blok „pricelist") i dokumenti za preuzimanje (blok „files") ===== */
.price-search { padding: 0; background: none; margin-bottom: 1.5rem; }
.price-search .form-control { border-radius: 10px; }
.price-empty { color: var(--dz-muted); }
.price-table + .price-table { margin-top: 3rem; }
.price-table__title { font-size: 1.05rem; margin: 0 0 .75rem; }
.price-table__title span { color: var(--dz-red); margin-right: .25rem; }
.price-table__table { margin: 0; font-size: .9rem; }
.price-table__table thead th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dz-muted); border-bottom-width: 1px; padding: .5rem .5rem .5rem 0; }
.price-table__table td { padding: .6rem .5rem .6rem 0; vertical-align: top; border-color: var(--dz-border); }
.price-table__code { width: 6.5rem; color: var(--dz-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table__price { width: 7rem; text-align: right; font-weight: 600; color: var(--dz-ink-strong); white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 0 !important; }
.price-table__price small { display: block; font-size: .72rem; font-weight: 400; color: var(--dz-muted); }
.price-table__group th { background: var(--dz-bg-muted); font-size: .8rem; font-weight: 600; color: var(--dz-ink-strong); padding: .5rem .75rem !important; }
.price-table__table tbody tr:not(.price-table__group):hover td { background: #fff7f7; }
.price-notes { margin-top: 2rem !important; }
.price-notes ol { padding-left: 1.1rem; font-size: .88rem; }
.price-notes li { padding-left: .2rem; margin-bottom: .4rem; }
.price-notes li::before { display: none; }
@media (max-width: 575.98px) {
    .price-table__code { display: none; }
}

.file-list { margin: 0; display: grid; gap: .6rem; }
.file-item {
    display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
    border: 1px solid var(--dz-border); border-radius: 12px; background: #fff;
    color: var(--dz-ink-strong); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.file-item:hover { border-color: rgba(229, 57, 53, .45); box-shadow: var(--dz-shadow); color: var(--dz-ink-strong); }
.file-item__type {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--dz-red-soft); color: var(--dz-red);
    display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.file-item__name { flex: 1; min-width: 0; font-weight: 500; font-size: .92rem; line-height: 1.4; }
.file-item__name small { display: block; font-weight: 400; font-size: .78rem; color: var(--dz-muted); margin-top: .1rem; }
.file-item > .ti { font-size: 1.3rem; color: var(--dz-red); flex-shrink: 0; }

/* Dokumenta */
.doc-row__type { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dz-red); margin-bottom: .15rem; }
.doc-list .file-item { padding: 1rem 1.25rem; }

/* Potpis izrade sajta u podnožju */
.footer-credit { margin-left: .5rem; padding-left: .6rem; border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-credit a { color: var(--dz-red); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { color: #ff6b66; text-decoration: underline; }
@media (max-width: 575.98px) { .footer-credit { display: block; margin: .35rem 0 0; padding: 0; border: 0; } }

/* Bočni meni: umjesto ikona diskretna strelica */
.other-services .ti-arrow-right { font-size: .95rem; color: var(--dz-muted); transition: transform .2s ease, color .2s ease; }
.other-services a:hover .ti-arrow-right, .other-services a.is-active .ti-arrow-right { color: var(--dz-red); transform: translateX(2px); }
