/* ==========================================================================
   ZD Šentjur – oblikovni sistem (prototip)
   Tokeni so pripravljeni tako, da se 1:1 prenesejo v Elementor Global Colors
   / Global Fonts (glej docs/02-elementor-nastavitve.md).
   ========================================================================== */

:root {
  /* Barve */
  --c-primary: #0B3D6E;        /* Primarna – temno modra (logotip) */
  --c-primary-dark: #082C50;   /* Hover / footer */
  --c-secondary: #1F6FB8;      /* Sekundarna – zdravstvena modra */
  --c-secondary-light: #E6F0FA;/* Svetlo modro ozadje ikon/kartic */
  --c-red: #D7282F;            /* Nujno: 112, opozorila */
  --c-red-light: #FDECEC;
  --c-green: #1B7F3B;          /* Pozitiven status */
  --c-green-light: #E3F5E9;
  --c-amber: #9A5B00;          /* Omejeno */
  --c-amber-light: #FFF3DD;
  --c-bg: #F4F7FB;             /* Ozadje strani */
  --c-row-alt: #E4EBF4;        /* Izmenjujoča podlaga sklopov v tabelah (čakalne dobe) */
  --c-surface: #FFFFFF;
  --c-text: #1B2431;
  --c-muted: #55657A;
  --c-border: #D9E2EC;
  --c-focus: #FFB300;

  /* Tipografija */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-base: 1.125rem;         /* 18px – kot zd-ms.si (uk-text-large); orodje za dostopnost spreminja font-size na <html> */
  --lh: 1.55;

  /* Razmiki / mreža */
  --container: 1400px;         /* kot zd-ms.si (uk-container-large): 1400 px vsebine */
  --gutter: 40px;              /* notranji odmik kot zd-ms.si: 40 / 30 / 15 px */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 61, 110, .06), 0 4px 16px rgba(11, 61, 110, .06);
  --shadow-lg: 0 8px 32px rgba(11, 61, 110, .14);
}

html { font-size: 100%; scroll-behavior: smooth; }
html[data-fs="large"] { font-size: 112.5%; }
html[data-fs="xlarge"] { font-size: 125%; }
html[data-contrast="high"] { --c-bg:#fff; --c-muted:#2b3644; --c-border:#8a97a8; --c-secondary:#0B3D6E; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-secondary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { color: var(--c-primary); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 1.5rem 0; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fokus – jasno viden (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 8px; }

.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; min-height: 44px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-secondary-light); }
.btn-red { background: var(--c-red); color: #fff; }
.btn-red:hover { background: #b51f25; color: #fff; }
.btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: .9rem; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-primary); flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo-text { line-height: 1.05; font-weight: 800; letter-spacing: .04em; font-size: .95rem; text-transform: uppercase; }
.logo-text small { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: .12em; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.main-nav > ul > li > a { display: inline-block; padding: .6rem .75rem; text-decoration: none; color: var(--c-text); font-weight: 600; border-radius: var(--radius-sm); font-size: .95rem; }
.main-nav > ul > li > a:hover { background: var(--c-secondary-light); color: var(--c-primary); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--c-primary); box-shadow: inset 0 -3px 0 var(--c-red); border-radius: 0; }

.header-tools { display: flex; align-items: center; gap: .3rem; }
.tool-btn { background: none; border: 1px solid transparent; font: inherit; font-weight: 700; color: var(--c-primary); padding: .35rem .5rem; min-width: 36px; min-height: 36px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tool-btn:hover { background: var(--c-secondary-light); }
.tool-btn .ico { width: 22px; height: 22px; }

.badge-112 {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  background: var(--c-red); color: #fff; border-radius: var(--radius-sm); padding: .4rem .8rem; min-width: 72px; min-height: 52px; line-height: 1; flex-shrink: 0;
}
.badge-112 strong { font-size: 1.45rem; font-weight: 800; }
.badge-112 span { font-size: .6rem; font-weight: 700; letter-spacing: .06em; margin-top: .2rem; }
.badge-112:hover { background: #b51f25; color: #fff; }

.menu-toggle { display: none; }

/* Mobilni meni (panel) */
.mobile-nav { display: none; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav { background: #fff; border-top: 1px solid var(--c-border); box-shadow: var(--shadow-lg); }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0; }
.mobile-nav a { display: block; padding: .9rem var(--gutter); text-decoration: none; color: var(--c-text); font-weight: 600; border-bottom: 1px solid var(--c-border); }
.mobile-nav a[aria-current="page"] { color: var(--c-primary); background: var(--c-secondary-light); }
.mobile-nav .sub a { padding-left: calc(var(--gutter) + 1.2rem); font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .875rem; margin: 1.2rem 0 .8rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li + li::before { content: "›"; color: var(--c-muted); margin-right: .35rem; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb [aria-current] { color: var(--c-primary); font-weight: 600; }


/* Iskalno polje */
.search-form { display: flex; background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); padding: .3rem; max-width: 640px; }
.search-form input { flex: 1; border: 0; background: transparent; font: inherit; padding: .7rem 1.2rem; min-width: 0; color: var(--c-text); }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--c-focus); }
.search-form button { border: 0; background: var(--c-primary); color: #fff; border-radius: 999px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.search-form button:hover { background: var(--c-primary-dark); }
.search-form button .ico { width: 22px; height: 22px; }
.search-form.compact { box-shadow: none; border: 1px solid var(--c-border); }
.search-form.compact button { width: 42px; height: 42px; }

/* ---------- Hero: nova fotografija čez celotno širino (levi rob že zbledi v belo), besedilo v modri ---------- */
.hero { position: relative; color: var(--c-primary); background: #eef4fb; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero > .container { width: 100%; position: relative; z-index: 2; }
.hero-inner { max-width: 560px; padding: 4.5rem 0 5rem; }
.hero h1 { color: var(--c-primary); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); margin-bottom: .7rem; text-wrap: balance; }
.hero p { font-size: 1.2rem; margin-bottom: 1.8rem; color: var(--c-primary); opacity: .9; }
.hero .search-form { border: 1px solid var(--c-border); }
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-media .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,244,251,.92) 0%, rgba(238,244,251,.6) 28%, rgba(238,244,251,0) 48%); pointer-events: none; }
@media (max-width: 1100px) { .hero-inner { max-width: 480px; } .hero-media::before { background: linear-gradient(90deg, rgba(238,244,251,.95) 0%, rgba(238,244,251,.75) 40%, rgba(238,244,251,0) 65%); } }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; width: 100%; height: 280px; }
  .hero-media .hero-img { object-position: 70% center; }
  .hero-media::before { background: linear-gradient(180deg, rgba(238,244,251,0) 75%, #eef4fb 100%); }
  .hero-inner { max-width: none; padding: 1.2rem 0 2.8rem; }
}

/* ---------- Hitre kartice ---------- */
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -2.4rem; position: relative; z-index: 2; }
.quick-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1rem 1.1rem; text-align: center; text-decoration: none; color: var(--c-text);
  border: 1px solid var(--c-border); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--c-text); }
.quick-card .ico-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; }
.quick-card .ico-wrap .ico { width: 28px; height: 28px; }
.quick-card.is-red .ico-wrap { background: var(--c-red-light); color: var(--c-red); }
.quick-card strong { color: var(--c-primary); font-size: 1rem; }
.quick-card span { font-size: .8rem; color: var(--c-muted); line-height: 1.35; }

/* ---------- Sekcije / kartice ---------- */
.section { padding: 2.5rem 0; }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.card-head h2, .card-head h3 { margin: 0; }
.link-more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.two-col-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }

/* Novice */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 96px 1fr 24px; gap: 1rem; align-items: start; padding: .9rem 0; border-top: 1px solid var(--c-border); }
.news-item:first-child { border-top: 0; }
.news-item time { font-size: .85rem; color: var(--c-muted); padding-top: .15rem; }
.news-item a { color: var(--c-text); font-weight: 600; text-decoration: none; }
.news-item a:hover { color: var(--c-primary); text-decoration: underline; }
.news-item p { margin: .2rem 0 0; font-size: .9rem; color: var(--c-muted); }
.news-item .ico { width: 20px; height: 20px; color: var(--c-muted); margin-top: .3rem; }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 4px; background: var(--c-secondary-light); color: var(--c-primary); margin-right: .5rem; vertical-align: middle; }
.tag.red { background: var(--c-red-light); color: var(--c-red); }
.tag.green { background: var(--c-green-light); color: var(--c-green); }
.tag.amber { background: var(--c-amber-light); color: var(--c-amber); }
.tag.grey { background: #EEF1F5; color: var(--c-muted); }

/* Hitri kontakti */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--c-border); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .ico { width: 22px; height: 22px; color: var(--c-secondary); flex-shrink: 0; margin-top: .15rem; }
.contact-list strong { display: block; color: var(--c-primary); }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--c-primary); }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { font-size: .85rem; color: var(--c-muted); }

/* Trak nujna pomoč */
.emergency-strip { background: var(--c-red-light); border: 1px solid #F5C2C4; border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.emergency-strip .num { font-size: 2rem; font-weight: 800; color: var(--c-red); line-height: 1; }
.emergency-strip p { margin: 0; }

/* ---------- Footer ---------- */
.footer-links { background: var(--c-primary); color: #fff; padding: 1.8rem 0; }
.footer-links .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer-links a { color: #fff; text-decoration: none; display: flex; gap: .8rem; align-items: flex-start; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-links .ico { width: 28px; height: 28px; flex-shrink: 0; opacity: .9; }
.footer-links strong { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-links span { font-size: .85rem; opacity: .85; }
.site-footer { background: #fff; border-top: 1px solid var(--c-border); padding: 1.8rem 0 1.2rem; font-size: .9rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 1.5rem; align-items: start; }
.footer-main .logo img { height: 44px; }
.footer-main h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: .5rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: .35rem; }
.footer-main a { color: var(--c-text); text-decoration: none; }
.footer-main a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: .82rem; }
.footer-bottom a { color: var(--c-muted); margin-right: 1rem; }
.social { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--c-secondary-light); color: var(--c-primary); align-items: center; justify-content: center; }
.social .ico { width: 20px; height: 20px; }

/* ---------- Mobilna spodnja vrstica ---------- */
.bottom-nav { display: none; }

/* ---------- Podstran ---------- */
.page-header { padding: .5rem 0 1.5rem; }
.page-header p.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 720px; margin: 0; }
.page-header--image { background: var(--c-primary); color: #fff; position: relative; overflow: hidden; padding: 2.2rem 0 2.4rem; margin-bottom: 1.5rem; }
.page-header--image h1, .page-header--image .lead { color: #fff; }
.page-header--image .breadcrumb a, .page-header--image .breadcrumb [aria-current], .page-header--image .breadcrumb li::before { color: #cfe0f3; }
.page-header--image .hero-img { opacity: .35; }
.page-header--image .container { position: relative; z-index: 1; }

.content { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem; }
.content h2 { margin-top: 1.5rem; }
.content h2:first-child { margin-top: 0; }
.content table th, .content table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.content table th { background: var(--c-secondary-light); color: var(--c-primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table-wrap { overflow-x: auto; }

.sidebar > * + * { margin-top: 1.2rem; }
.sidebar .card { padding: 1.1rem 1.2rem; }
.sidebar h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.event { display: grid; grid-template-columns: 52px 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--c-border); }
.event:first-of-type { border-top: 0; padding-top: 0; }
.event .date { background: var(--c-secondary-light); color: var(--c-primary); border-radius: var(--radius-sm); text-align: center; padding: .35rem 0; line-height: 1.1; }
.event .date b { display: block; font-size: 1.3rem; }
.event .date span { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.event a { font-weight: 600; text-decoration: none; color: var(--c-text); }
.event a:hover { color: var(--c-primary); text-decoration: underline; }
.event small { display: block; color: var(--c-muted); font-size: .82rem; }

.notice { border-left: 4px solid var(--c-secondary); background: var(--c-secondary-light); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1rem 0; }
.notice.red { border-color: var(--c-red); background: var(--c-red-light); }
.notice.green { border-color: var(--c-green); background: var(--c-green-light); }
.notice.amber { border-color: var(--c-amber); background: var(--c-amber-light); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Iskalnik ambulant ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; align-items: start; }
.finder-controls { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.finder-controls .search-form { max-width: none; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; align-items: center; }
.filters select { font: inherit; padding: .55rem 2.2rem .55rem .8rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D6E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 16px; appearance: none; min-height: 42px; color: var(--c-text); }
.filters label { font-weight: 600; font-size: .9rem; }
.filters .reset { margin-left: auto; background: none; border: 0; color: var(--c-secondary); font: inherit; font-weight: 600; cursor: pointer; padding: .4rem; }
.filters .reset:hover { text-decoration: underline; }
.result-info { margin: 1rem 0 .6rem; color: var(--c-muted); font-size: .9rem; }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.result-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; grid-template-columns: 48px minmax(0,1fr) 19rem 24px; gap: 1rem; align-items: center; position: relative; transition: border-color .15s, box-shadow .15s; }
.result-card:hover, .result-card:focus-within { border-color: var(--c-secondary); box-shadow: var(--shadow); }
.result-card .ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; }
.result-card .ico-wrap .ico { width: 26px; height: 26px; }
.result-card h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.result-card h3 a { color: var(--c-primary); text-decoration: none; }
.result-card h3 a::after { content: ""; position: absolute; inset: 0; }
.result-card h3 a:hover { text-decoration: underline; }
.result-card .meta { font-size: .9rem; color: var(--c-muted); margin: 0; }
.result-card .meta span + span::before { content: " · "; }
.result-card .contact { font-size: .9rem; display: grid; gap: .25rem; position: relative; z-index: 1; }
.result-card .contact a { color: var(--c-text); text-decoration: none; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.result-card .contact a:hover { color: var(--c-primary); text-decoration: underline; }
.result-card .contact .ico { width: 16px; height: 16px; color: var(--c-secondary); }
.result-card .arrow { width: 24px; height: 24px; color: var(--c-muted); }
.result-card .status { margin-top: .4rem; }
.result-card[hidden] { display: none; }
.result-empty { padding: 2rem; text-align: center; color: var(--c-muted); background: #fff; border: 1px dashed var(--c-border); border-radius: var(--radius); }

.finder-side .card { padding: 1.1rem 1.2rem; }
.finder-side h2 { font-size: 1rem; margin-bottom: .6rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { margin: .2rem 0; }
.check-list label { display: flex; gap: .6rem; align-items: center; font-size: .92rem; cursor: pointer; padding: .2rem 0; }
.check-list input { width: 18px; height: 18px; accent-color: var(--c-primary); }

/* ---------- Stran ambulante ---------- */
.amb-hero { display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem; }
.amb-hero .ico-wrap { width: 72px; height: 72px; border-radius: 16px; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; }
.amb-hero .ico-wrap .ico { width: 38px; height: 38px; }
.amb-hero h1 { margin-bottom: .2rem; }
.amb-hero .meta { color: var(--c-muted); margin: 0; }
.amb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.info-box { background: var(--c-bg); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.info-box h2 { font-size: 1rem; margin-bottom: .6rem; }
.info-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; }
.info-box dt { color: var(--c-muted); font-size: .9rem; }
.info-box dd { margin: 0; font-weight: 500; }
.urnik { width: 100%; }
.urnik th, .urnik td { padding: .5rem .6rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.urnik th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.urnik td.time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.urnik tr.today td { background: var(--c-secondary-light); }
/* Razpored dela po datumih: prvi stolpec je daljši (dan + datum), poudarjena je cela vrstica */
.urnik.razpored th[scope="row"] { white-space: nowrap; font-weight: 600; }
.urnik.razpored tr.today th, .urnik.razpored tr.today td { background: var(--c-secondary-light); }
.urnik td.closed { color: var(--c-muted); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.team li { display: flex; gap: .7rem; align-items: center; }
.team .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.team small { display: block; color: var(--c-muted); }

/* ---------- Dejavnosti (pregled) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--c-text); display: flex; gap: 1rem; align-items: flex-start; transition: box-shadow .15s, border-color .15s; }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--c-secondary); color: var(--c-text); }
.service-card .ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.service-card .ico-wrap .ico { width: 26px; height: 26px; }
.service-card strong { color: var(--c-primary); display: block; margin-bottom: .2rem; }
.service-card span { font-size: .9rem; color: var(--c-muted); }

/* ---------- Čakalne dobe / odsotnosti tabele ---------- */
.data-table { width: 100%; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.data-table th { background: var(--c-secondary-light); color: var(--c-primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table a { font-weight: 600; }

.group-title { display: flex; align-items: center; gap: .7rem; margin: 2rem 0 .8rem; }
.group-title .ico { width: 26px; height: 26px; color: var(--c-secondary); }

/* ---------- Kontakt ---------- */
/* statični zemljevid lokacije (brez vdelave Google Zemljevidov – privolitev ni potrebna) */
.map-static { margin: 0; }
.map-static img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--c-border); display: block; }
.map-static figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }

.map-placeholder { background: var(--c-secondary-light); border-radius: var(--radius); min-height: 280px; display: grid; place-items: center; color: var(--c-primary); font-weight: 600; text-align: center; padding: 1rem; }

/* ---------- Placeholder (CKZ) ---------- */
.placeholder-banner { border: 2px dashed var(--c-amber); background: var(--c-amber-light); color: var(--c-amber); padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1.2rem; }

/* ---------- Odzivnost ---------- */
@media (max-width: 1199px) { :root { --gutter: 30px; } }
@media (max-width: 1100px) {
  .quick-cards { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1150px) {
  .main-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .two-col, .two-col-sidebar, .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-side { order: 1; }
  .finder-side .card.filters-card { display: none; }
  .footer-links .grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 44px minmax(0,1fr) 24px; }
  .result-card .contact { grid-column: 2; }
  .result-card .arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 640px) {
  :root { --gutter: 15px; }
  body { padding-bottom: 72px; }
  .header-inner { min-height: 64px; gap: .6rem; }
  .logo img { height: 40px; }
  .badge-112 { min-width: 60px; min-height: 44px; padding: .3rem .5rem; }
  .badge-112 strong { font-size: 1.2rem; }
  .quick-cards { grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: -1.5rem; }
  .quick-card { padding: 1rem .6rem .9rem; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-links .grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .content { padding: 1.3rem; }
  .news-item { grid-template-columns: 1fr 24px; }
  .news-item time { grid-column: 1 / -1; }
  .amb-hero { grid-template-columns: 56px 1fr; }
  .amb-hero .ico-wrap { width: 56px; height: 56px; }

  .bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--c-primary); z-index: 60; padding: .4rem 0 max(.4rem, env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { color: #fff; text-decoration: none; font: inherit; font-size: .72rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .35rem 0; background: none; border: 0; cursor: pointer; min-height: 52px; }
  .bottom-nav .ico { width: 24px; height: 24px; }
  .bottom-nav [aria-current="page"] { background: rgba(255,255,255,.14); border-radius: 8px; margin: 0 .3rem; }
}

@media print {
  .site-header, .bottom-nav, .footer-links, .hero, .quick-cards, .sidebar, .finder-side { display: none !important; }
  body { background: #fff; }
  .content, .card { border: 0; box-shadow: none; }
}

/* ---------- Popravki po pregledu ---------- */
html { overflow-x: clip; }
.link-more { display: inline-flex; align-items: center; gap: .3rem; }
.link-more .ico { width: 18px; height: 18px; }
.contact-list div > a, .contact-list div > strong { display: block; }
.main-nav > ul > li > a { white-space: nowrap; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; padding: .6rem .7rem; }
.mobile-nav > ul > li > a, .mobile-nav .m-row > a { text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.result-card .contact { min-width: 250px; }
.mobile-nav .mobile-tools { display: flex; gap: .4rem; padding: .8rem var(--gutter); border-bottom: 1px solid var(--c-border); align-items: center; }
.mobile-nav .mobile-tools span { font-size: .85rem; color: var(--c-muted); margin-right: auto; }
@media (max-width: 640px) {
  .header-tools .tool-btn[data-fs-set] { display: none; }
  .header-tools .tool-btn.contrast { display: inline-flex; }
}
@media (min-width: 1381px) { .mobile-nav .mobile-tools { display: none; } }


@media (max-width: 1380px) { .main-nav > ul > li > a { font-size: .95rem; padding: .6rem .5rem; letter-spacing: .02em; } .header-tools .tool-btn[data-fs-set] { display: none; } .header-inner { gap: 1rem; } }

/* ---------- Hitre kartice: velika ikona levo, besedilo desno, večje pisave ---------- */
.quick-card { flex-direction: row; align-items: center; text-align: left; gap: 1.1rem; padding: 1.4rem 1.3rem; }
.quick-card .ico-wrap { width: 76px; height: 76px; border-radius: 16px; flex-shrink: 0; }
.quick-card .ico-wrap .ico { width: 42px; height: 42px; }
.quick-card .text strong { font-size: 1.3rem; line-height: 1.2; display: block; margin-bottom: .25rem; }
.quick-card .text span { font-size: 1rem; line-height: 1.35; }
.quick-card .text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
@media (max-width: 1100px) { .quick-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .quick-cards { grid-template-columns: 1fr; gap: .8rem; }
  .quick-card { padding: 1.1rem 1.1rem; gap: .9rem; }
  .quick-card .ico-wrap { width: 60px; height: 60px; }
  .quick-card .ico-wrap .ico { width: 34px; height: 34px; }
  .quick-card .text strong { font-size: 1.15rem; }
  .quick-card .text span { font-size: .95rem; }
}

/* ---------- Kompakten hero podstrani (ista fotografija, nižji) ---------- */
.page-hero { position: relative; background: #eef4fb; min-height: 260px; display: flex; align-items: center; overflow: hidden; margin-bottom: 2rem; }
.page-hero > .container { width: 100%; position: relative; z-index: 2; }
.page-hero .breadcrumb { margin: 0 0 .6rem; }
.page-hero .breadcrumb a, .page-hero .breadcrumb li::before { color: var(--c-muted); }
.page-hero h1 { color: var(--c-primary); margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); max-width: 720px; text-wrap: balance; }
.page-hero .lead { color: var(--c-primary); opacity: .9; font-size: 1.1rem; max-width: 640px; margin: .6rem 0 0; }
.page-hero__kicker { margin: 0; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-secondary); }
.page-hero .hero-media { position: absolute; inset: 0; z-index: 1; }
.page-hero .hero-media .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.page-hero .hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,244,251,.75) 0%, rgba(238,244,251,.45) 30%, rgba(238,244,251,0) 55%); pointer-events: none; }
.page-hero + .container .page-header { display: none; }
@media (max-width: 900px) {
  .page-hero { min-height: 200px; margin-bottom: 1.5rem; }
  .page-hero .hero-media .hero-img { object-position: 75% 40%; }
  .page-hero .hero-media::before { background: linear-gradient(90deg, rgba(238,244,251,.97) 0%, rgba(238,244,251,.9) 55%, rgba(238,244,251,.45) 100%); }
}
@media (max-width: 640px) { .page-hero { min-height: 170px; } .page-hero .container { padding-block: 1.2rem; } }

/* ---------- Mega meni (po vzoru zd-ms.si) ---------- */
.main-nav > ul > li { position: static; display: flex; align-items: center; }
.main-nav .mega-toggle { background: none; border: 0; padding: .4rem .2rem; margin-left: -.35rem; color: var(--c-primary); cursor: pointer; display: inline-flex; border-radius: 6px; }
.main-nav .mega-toggle .ico { width: 18px; height: 18px; transition: transform .15s; }
.main-nav .mega-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.main-nav li.has-mega.is-open > a, .main-nav li.has-mega:hover > a { color: var(--c-primary); background: var(--c-secondary-light); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-border); box-shadow: 0 16px 40px rgba(11,61,110,.18); z-index: 60; }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 2.5rem; padding: 2rem var(--gutter) 2.2rem; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.mega__inner--dej { grid-template-columns: 260px 300px minmax(0, 1fr) 240px; gap: 2rem; }
.mega__intro { padding-right: 2rem; border-right: 1px solid var(--c-border); }
.mega__title { display: block; font-size: 1.6rem; font-weight: 800; color: var(--c-primary); text-decoration: none; margin-bottom: .5rem; }
.mega__title:hover { text-decoration: underline; }
.mega__intro p { color: var(--c-muted); font-size: .95rem; margin-bottom: 1rem; }
.mega__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 0 0 .6rem; font-weight: 700; }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links li { border-top: 1px solid var(--c-border); }
.mega__links li:first-child { border-top: 0; }
.mega__links a { display: block; padding: .55rem .5rem; color: var(--c-text); font-weight: 600; text-decoration: none; border-radius: 6px; }
.mega__links a:hover, .mega__links a:focus-visible { color: var(--c-primary); background: var(--c-secondary-light); }
.mega__tabs { list-style: none; margin: 0; padding: 0; }
.mega__tab { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 8px; color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mega__tab .ico { width: 20px; height: 20px; color: var(--c-secondary); flex-shrink: 0; }
.mega__tab:hover, .mega__tab.is-active, .mega__tab:focus-visible { background: var(--c-primary); color: #fff; }
.mega__tab:hover .ico, .mega__tab.is-active .ico, .mega__tab:focus-visible .ico { color: #fff; }
.mega__list h3 { font-size: 1.05rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--c-secondary-light); }
.mega__list ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.mega__list li { break-inside: avoid; }
.mega__list a { display: block; padding: .4rem .5rem; text-decoration: none; color: var(--c-text); font-weight: 600; border-radius: 6px; line-height: 1.25; }
.mega__list a small { display: block; font-weight: 400; color: var(--c-muted); font-size: .8rem; }
.mega__list a:hover, .mega__list a:focus-visible { background: var(--c-secondary-light); color: var(--c-primary); }
.ico-sm { display: inline-block; width: 14px; height: 14px; vertical-align: middle; opacity: .7; margin-left: .2rem; }
@media (max-width: 1500px) { .mega__inner--dej { grid-template-columns: 220px 260px minmax(0, 1fr) 200px; gap: 1.5rem; } }
@media (max-width: 1150px) { .mega { display: none !important; } }

/* ---------- Podmeni razdelka v sidebarju (kot zd-ms.si) ---------- */
.section-nav h2 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--c-secondary); }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav a { display: block; padding: .45rem .6rem; color: var(--c-text); font-weight: 600; text-decoration: none; border-radius: 6px; font-size: 1rem; }
.section-nav a:hover { background: var(--c-secondary-light); color: var(--c-primary); }
.section-nav a[aria-current="page"] { background: var(--c-primary); color: #fff; }

/* ---------- Prenesena vsebina (data/pages) ---------- */
.prose h2 { margin-top: 1.6rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2rem; font-size: 1.15rem; }
.prose h4 { margin-top: 1rem; }
/* Naslov, ki je v celoti povezava (branje se nadaljuje na drugi strani) – barva, podčrtaj in puščica, da se loči od navadnega naslova */
.prose h2 > a, .prose h3 > a { color: var(--c-secondary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.prose h2 > a::after, .prose h3 > a::after { content: "\2192"; margin-left: .4rem; text-decoration: none; display: inline-block; }
.prose h2 > a:hover, .prose h3 > a:hover { color: var(--c-primary); }
.prose ul { margin: .4rem 0 1rem; }
.prose li { margin: .25rem 0; }
.prose a[href$=".pdf"]::before { content: "PDF"; display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .04em; background: var(--c-red-light); color: var(--c-red); border-radius: 4px; padding: .1rem .35rem; margin-right: .45rem; vertical-align: middle; }
.prose table { margin: .5rem 0 1.2rem; }
.prose td, .prose th { padding: .5rem .7rem; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose th { background: var(--c-secondary-light); color: var(--c-primary); }
.prose tr td:first-child strong { color: var(--c-primary); }
.service-grid--2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem; }
@media (max-width: 640px) { .service-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Novice in dogodki: večji naslovi in izvlečki ---------- */
.news-item { padding: 1.1rem 0; gap: 1.2rem; }
.news-item time { font-size: .95rem; padding-top: .3rem; }
.news-item a { font-size: 1.25rem; line-height: 1.3; color: var(--c-primary); }
.news-item .tag { margin-bottom: .35rem; }
.news-item p { font-size: 1.05rem; color: var(--c-text); margin-top: .35rem; line-height: 1.5; }
.news-item .ico { width: 24px; height: 24px; margin-top: .45rem; }
.sidebar .news-item a { font-size: 1.1rem; }
.sidebar .news-item p { font-size: .9rem; color: var(--c-muted); }
.event { grid-template-columns: 60px 1fr; gap: 1rem; padding: .9rem 0; }
.event .date { padding: .45rem 0; }
.event .date b { font-size: 1.5rem; }
.event .date span { font-size: .75rem; }
.event a { font-size: 1.15rem; line-height: 1.3; color: var(--c-primary); }
.event small { font-size: .95rem; margin-top: .2rem; }
.card article.card .event a, .events-full h2 { font-size: 1.4rem; }
.dogodki-page .event p { font-size: 1.05rem; }
.sidebar .event a { font-size: 1.05rem; }
.sidebar .event small { font-size: .88rem; }

/* ---------- Večje ikone, naslovi in podnaslovi na vseh karticah ---------- */
.service-card { padding: 1.5rem 1.4rem; gap: 1.2rem; align-items: center; }
.service-card .ico-wrap { width: 72px; height: 72px; border-radius: 16px; }
.service-card .ico-wrap .ico { width: 40px; height: 40px; }
.service-card strong { font-size: 1.25rem; line-height: 1.25; margin-bottom: .3rem; }
.service-card span span, .service-card > span > span { font-size: 1rem; line-height: 1.4; }
.service-grid { gap: 1.2rem; }

.result-card { padding: 1.2rem 1.3rem; grid-template-columns: 64px minmax(0,1fr) 21rem 28px; gap: 1.2rem; } /* stalna širina stolpca: kontakti vseh kartic se poravnajo v isti navpičnici */
.result-card .ico-wrap { width: 64px; height: 64px; border-radius: 14px; }
.result-card .ico-wrap .ico { width: 34px; height: 34px; }
.result-card h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.result-card .meta { font-size: 1rem; }
.result-card .contact { font-size: 1rem; gap: .35rem; }
.result-card .contact .ico { width: 18px; height: 18px; }
.result-card .arrow { width: 28px; height: 28px; }
.result-card .tag { font-size: .75rem; }

.amb-hero .ico-wrap { width: 88px; height: 88px; border-radius: 20px; }
.amb-hero .ico-wrap .ico { width: 48px; height: 48px; }
.amb-hero .meta { font-size: 1.1rem; }

.contact-list .ico { width: 28px; height: 28px; }
.contact-list a, .contact-list strong { font-size: 1.1rem; }
.contact-list span { font-size: .95rem; }
.info-box h2 { font-size: 1.15rem; }
.card-head h2 { font-size: 1.6rem; }
.sidebar h2, .sidebar .card-head h2 { font-size: 1.2rem; }
.footer-links .ico { width: 34px; height: 34px; }
.footer-links strong { font-size: .9rem; }
.footer-links span { font-size: .95rem; }
.group-title .ico { width: 32px; height: 32px; }
.team .avatar { width: 44px; height: 44px; font-size: .95rem; }
.event .date, .quick-card .ico-wrap { flex-shrink: 0; }

@media (max-width: 960px) {
  .result-card { grid-template-columns: 56px minmax(0,1fr) 28px; }
}
@media (max-width: 640px) {
  .service-card .ico-wrap { width: 60px; height: 60px; }
  .service-card .ico-wrap .ico { width: 34px; height: 34px; }
  .service-card strong { font-size: 1.15rem; }
  .result-card { grid-template-columns: 52px minmax(0,1fr) 24px; padding: 1rem; }
  .result-card .ico-wrap { width: 52px; height: 52px; }
  .result-card .ico-wrap .ico { width: 28px; height: 28px; }
  .result-card h3 { font-size: 1.15rem; }
}
.two-col-sidebar .service-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .two-col-sidebar .service-grid { grid-template-columns: 1fr; } }

/* Hero podstrani: nova slika (3:1) – prikaži celotno stavbo, poravnano desno */
.page-hero { min-height: 300px; background: #f2f7fc; }
.page-hero .hero-media .hero-img { object-fit: contain; object-position: right center; }
.page-hero .hero-media::before { background: linear-gradient(90deg, rgba(242,247,252,1) 0%, rgba(242,247,252,.9) 25%, rgba(242,247,252,0) 50%); }
@media (max-width: 900px) { .page-hero { min-height: 220px; } .page-hero .hero-media .hero-img { object-fit: cover; object-position: 80% center; } .page-hero .hero-media::before { background: linear-gradient(90deg, rgba(242,247,252,.97) 0%, rgba(242,247,252,.85) 50%, rgba(242,247,252,.35) 100%); } }
.page-hero { background: linear-gradient(180deg, #e8f2fe 0%, #d5ecfe 25%, #cce8fd 50%, #cfeafd 75%, #dfeffe 100%); }
.page-hero .hero-media::before { background: none; }
.page-hero .breadcrumb a, .page-hero .breadcrumb li::before { color: #3d5570; }
.figure { margin: 0 0 1rem; }
.figure img { border-radius: var(--radius); width: 100%; height: auto; }
.figure figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .4rem; }
.figure--right { float: right; max-width: 46%; margin: 0 0 1rem 1.5rem; }
.cert-row { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.cert-row img { width: auto; height: 110px; }
@media (max-width: 640px) { .figure--right { float: none; max-width: 100%; margin: 0 0 1rem; } }

/* ---------- Glava: modra podlaga, bel tekst, besedilni logotip ---------- */
.site-header { background: var(--c-primary); border-bottom: 0; }
.header-inner { min-height: 88px; }
.logo { color: #fff; }
.logo-text { font-size: 1.25rem; letter-spacing: .06em; line-height: 1; }
.logo-text small { font-size: 1.6rem; letter-spacing: .16em; margin-top: .15rem; }
.main-nav > ul > li > a { color: #fff; }
.main-nav > ul > li > a:hover, .main-nav li.has-mega.is-open > a, .main-nav li.has-mega:hover > a { background: rgba(255,255,255,.14); color: #fff; }
.main-nav > ul > li > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.main-nav .mega-toggle { color: #fff; }
.main-nav .mega-toggle:hover { background: rgba(255,255,255,.14); }
.tool-btn { color: #fff; }
.tool-btn:hover { background: rgba(255,255,255,.14); }
.badge-112 { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.mega { border-top: 0; }
.mobile-nav { border-top: 1px solid rgba(255,255,255,.2); }
.skip-link { background: #fff; color: var(--c-primary); }
.site-header :focus-visible { outline-color: #FFB300; }
.logo--footer { color: var(--c-primary); }
.logo--footer .logo-text { font-size: 1.05rem; }
.logo--footer .logo-text small { font-size: 1.3rem; }
@media (max-width: 640px) {
  .logo-text { font-size: 1rem; }
  .logo-text small { font-size: 1.25rem; }
  .header-inner { min-height: 68px; }
}

/* Hero podstrani: stavba poravnana z desnim robom vsebine (pod gumbom 112), ne z robom okna */
.page-hero .hero-media { right: max(var(--gutter), calc((100% - var(--container)) / 2)); }
@media (max-width: 900px) { .page-hero .hero-media { right: 0; } }

/* ---------- Hitre kartice na naslovnici: večje ---------- */
.quick-cards { gap: 1.4rem; margin-top: -3rem; }
.quick-card { padding: 2rem 1.8rem; gap: 1.4rem; min-height: 150px; border-radius: 16px; }
.quick-card .ico-wrap { width: 92px; height: 92px; border-radius: 20px; }
.quick-card .ico-wrap .ico { width: 52px; height: 52px; }
.quick-card .text strong { font-size: 1.55rem; margin-bottom: .35rem; }
.quick-card .text span { font-size: 1.1rem; line-height: 1.4; }
@media (max-width: 1500px) {
  .quick-card { padding: 1.6rem 1.4rem; gap: 1.1rem; }
  .quick-card .ico-wrap { width: 80px; height: 80px; }
  .quick-card .ico-wrap .ico { width: 44px; height: 44px; }
  .quick-card .text strong { font-size: 1.35rem; }
  .quick-card .text span { font-size: 1.02rem; }
}
@media (max-width: 640px) {
  .quick-card { padding: 1.2rem 1.1rem; min-height: 0; }
  .quick-card .ico-wrap { width: 64px; height: 64px; }
  .quick-card .ico-wrap .ico { width: 36px; height: 36px; }
  .quick-card .text strong { font-size: 1.25rem; }
  .quick-card .text span { font-size: 1rem; }
}

/* ---------- Hero na vstopni strani: slika se ob nalaganju počasi zmanjšuje navznoter (zoom-out) ---------- */
@keyframes hero-zoom-out { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero .hero-media { overflow: hidden; }
.hero .hero-media .hero-img { transform-origin: 70% 50%; animation: hero-zoom-out 9s cubic-bezier(.22,.61,.36,1) both; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero .hero-media .hero-img { animation: none; transform: none; } }

/* ---------- Mega meni: večje pisave in ikone ---------- */
.mega__inner { font-size: 1.1rem; padding: 2.4rem var(--gutter) 2.6rem; }
.mega__title { font-size: 1.9rem; }
.mega__intro p { font-size: 1.05rem; }
.mega__h { font-size: .9rem; }
.mega__links a { font-size: 1.15rem; padding: .7rem .6rem; }
.mega__tab { font-size: 1.1rem; padding: .6rem .8rem; gap: .75rem; }
.mega__tab .ico { width: 28px; height: 28px; }
.mega__list h3 { font-size: 1.25rem; }
.mega__list a { font-size: 1.1rem; padding: .5rem .6rem; }
.mega__list a small { font-size: .9rem; }
.mega__inner--dej { grid-template-columns: 280px 340px minmax(0, 1fr) 260px; }
@media (max-width: 1500px) { .mega__inner--dej { grid-template-columns: 240px 300px minmax(0, 1fr) 220px; } .mega__links a, .mega__tab, .mega__list a { font-size: 1.02rem; } }
.mobile-nav > ul > li > a, .mobile-nav .m-row > a { font-size: 1.15rem; }
.mobile-nav .sub a { font-size: 1.05rem; }
.mega__inner--dej { grid-template-columns: 260px 320px minmax(0, 1fr) 240px; }
.mega__list ul { column-gap: 1.5rem; }

/* Mega meni Dejavnost brez hitrih povezav: 3 stolpci */
.mega__inner--dej { grid-template-columns: 300px 340px minmax(0, 1fr); }
@media (max-width: 1500px) { .mega__inner--dej { grid-template-columns: 250px 300px minmax(0, 1fr); } }

/* ---------- Spustni meni: nikoli pod rob zaslona ---------- */
/* Glava je sticky, panel je absoluten v njej, zato se del pod robom zaslona brez tega ne da prikazati.
   Na nizkih zaslonih (prenosniki 1366 x 768, FHD pri 125 % povečavi, večja pisava) se panel stisne,
   če je kljub temu previsok, pa se po njem drsa. */
.mega { max-height: calc(100vh - var(--header-h, 88px)); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 940px) {
  .mega__inner { padding-top: 1.2rem; padding-bottom: 1.4rem; }
  .mega__inner--dej { gap: 1.6rem; }
  .mega__title { font-size: 1.45rem; margin-bottom: .3rem; }
  .mega__intro p { font-size: .95rem; margin-bottom: .8rem; }
  .mega__h { margin-bottom: .35rem; }
  .mega__tab { padding: .32rem .7rem; font-size: .98rem; gap: .6rem; }
  .mega__tab .ico { width: 22px; height: 22px; }
  .mega__links a { padding: .42rem .5rem; }
  .mega__list h3 { margin-bottom: .4rem; padding-bottom: .35rem; }
  .mega__list a { padding: .3rem .5rem; }
}
@media (max-height: 760px) {
  .mega__inner { padding-top: .9rem; padding-bottom: 1rem; }
  .mega__tab { padding: .22rem .6rem; font-size: .92rem; }
  .mega__tab .ico { width: 20px; height: 20px; }
  .mega__links a, .mega__list a { font-size: .95rem; padding: .26rem .5rem; }
}

/* ---------- Ploščici čakalnih dob na vstopni strani (namesto hitrih kontaktov) ---------- */
.wait-tiles { display: grid; gap: 1rem; }
.wait-tile { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.3rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-primary); transition: box-shadow .2s, border-color .2s, transform .2s; }
.wait-tile:hover, .wait-tile:focus-visible { border-color: var(--c-secondary); box-shadow: var(--shadow); transform: translateY(-2px); }
.wait-tile .wait-ico { width: 84px; height: 63px; flex-shrink: 0; }
.wait-tile span { display: flex; flex-direction: column; gap: .2rem; }
.wait-tile strong { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.wait-tile:hover strong { text-decoration: underline; }
.wait-tile small { font-size: .95rem; color: var(--c-muted); }
/* ploščici čakalnih dob: fiksna, enaka višina */
.wait-tiles { grid-auto-rows: 1fr; }
.wait-tile { min-height: 136px; box-sizing: border-box; }

/* ---------- Noga: modra kot glava, večji fonti ---------- */
.site-footer { background: var(--c-primary); color: #fff; border-top: 0; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer .muted, .site-footer .small { color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-main { gap: 2rem; }
.footer-main h3 { font-size: .85rem; letter-spacing: .08em; color: rgba(255,255,255,.7); margin-bottom: .8rem; }
.footer-main li { margin-bottom: .55rem; font-size: .95rem; line-height: 1.5; }
.footer-main a { color: #fff; }
.footer-main a:hover, .footer-main a:focus-visible { color: #fff; text-decoration: underline; }
.logo--footer { color: #fff; }
.logo--footer .logo-text { font-size: 1.25rem; }
.logo--footer .logo-text small { font-size: 1.55rem; }
.site-footer .social { width: 48px; height: 48px; background: rgba(255,255,255,.14); color: #fff; }
.site-footer .social:hover { background: rgba(255,255,255,.26); }
.site-footer .social .ico { width: 24px; height: 24px; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72); font-size: .875rem; }
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Zavihki (toggle) v izvirnih besedilih ---------- */
.prose details.toggle { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; margin: .75rem 0; }
.prose details.toggle + details.toggle { margin-top: .5rem; }
.prose details.toggle summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 700; color: var(--c-primary); line-height: 1.35; }
.prose details.toggle summary::-webkit-details-marker { display: none; }
.prose details.toggle summary .ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--c-secondary); transition: transform .2s; }
.prose details.toggle[open] summary .ico { transform: rotate(180deg); }
.prose details.toggle summary:hover { background: var(--c-bg); border-radius: var(--radius); }
.prose details.toggle summary:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; border-radius: var(--radius); }
.prose details.toggle[open] summary { border-bottom: 1px solid var(--c-border); }
.prose .toggle__body { padding: 1rem 1.25rem 1.25rem; }
.prose .toggle__body > :first-child { margin-top: 0; }
.prose .toggle__body > :last-child { margin-bottom: 0; }
/* nova slika podstrani: levi rob se mehko zlije z ozadjem heroja */
.page-hero .hero-media .hero-img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
@media (min-width: 901px) {
  /* slika je široka natanko toliko kot njena vsebina (ne raztegnjena čez ves hero), zato maska deluje na njenem dejanskem levem robu */
  .page-hero .hero-media .hero-img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; object-fit: fill; }
}

/* ---------- Logotip: ZDRAVSTVENI DOM (verzalke, večje) / Šentjur (male črke, manjše) ---------- */
.logo-text { font-size: 1.6rem; letter-spacing: .05em; line-height: 1; }
.logo-text small { text-transform: none; font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; margin-top: .2rem; }
.logo--footer .logo-text { font-size: 1.45rem; }
.logo--footer .logo-text small { font-size: 1.1rem; }
@media (max-width: 1380px) { .logo-text { font-size: 1.3rem; } .logo-text small { font-size: 1rem; } }

/* ---------- Logotip naročnika (bela slikovna različica, EKG) v glavi in nogi ---------- */
.logo { display: inline-flex; align-items: center; }
.logo .logo-img { display: block; height: 44px; width: auto; }
.logo--footer.logo .logo-img { height: 52px; }
@media (max-width: 1380px) { .logo .logo-img { height: 40px; } }
@media (max-width: 1150px) { .logo .logo-img { height: 38px; } }
@media (max-width: 480px)  { .logo .logo-img { height: 30px; } }

/* ---------- Naslovnica: Novice + Obvestila (dve kategoriji prispevkov) ---------- */
.news-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.news-split .news-item { grid-template-columns: 1fr; gap: .2rem; }
.news-split .news-item time { font-size: .9rem; }
.news-split .news-item .ico { display: none; }
.news-split .news-item a { font-size: 1.15rem; }
.news-split .news-item p { font-size: 1rem; }
.news-card--obvestilo .card-head h2 { color: var(--c-red); }
@media (max-width: 900px) { .news-split { grid-template-columns: 1fr; } }

/* ---------- Referenčna ambulanta (na strani glavne ambulante) ---------- */
.ref-amb { margin-top: 2rem; padding: 1.4rem 1.5rem 1.5rem; background: var(--c-bg); border: 1px solid var(--c-border); border-left: 5px solid var(--c-secondary); border-radius: var(--radius); }
.ref-amb h2 { margin-top: 0; }
.ref-amb__who { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.ref-amb .table-wrap { background: #fff; border-radius: var(--radius); }

/* ---------- Odsotnosti in nadomeščanja na strani ambulante ---------- */
.ods-amb { margin-top: 2rem; }
.ods-table td.num { white-space: nowrap; }
.ods-table tr.is-active td { background: #fff3f3; }
.ods-table .tag.red { margin-left: .4rem; vertical-align: middle; }

/* kartice podstrani: do 3 v eni vrsti (O zavodu: Kontakt, Uprava, Zgodovina) */
.two-col-sidebar .service-grid--3, .service-grid--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 1.5rem; }
@media (max-width: 900px) { .two-col-sidebar .service-grid--3, .service-grid--3 { grid-template-columns: 1fr; } }
.service-grid--3 .service-card { align-items: center; }
.service-grid--3 .service-card strong { font-size: 1.35rem; }

/* ---------- Uprava: seznam z ikonami ---------- */
.prose .uprava-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.prose .uprava-list li { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.prose .uprava-list .uprava-ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--c-secondary-light); color: var(--c-primary); display: grid; place-items: center; }
.prose .uprava-list .uprava-ico svg { width: 30px; height: 30px; }
.prose .uprava-list h3 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--c-muted); font-weight: 600; }
.prose .uprava-list p { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--c-primary); }
.doc-links { columns: 2; gap: 2rem; padding-left: 1.2rem; margin: 0 0 1.5rem; }
.doc-links li { margin-bottom: .4rem; break-inside: avoid; }
@media (max-width: 640px) { .doc-links { columns: 1; } }

/* Čakalne dobe: skupine po dejavnostih */
.data-table.cd-table thead th { background: var(--c-primary); color: #fff; }
.data-table.cd-table .group-row th { background: var(--c-primary); color: #fff; font-size: 1.05rem; text-transform: none; letter-spacing: 0; padding: .7rem 1rem; }
.data-table.cd-table .group-row th .ico { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: .5rem; color: #fff; }

/* alineje z vezajem (izvirno besedilo) – strnjen seznam brez praznih vrstic */
.prose .dash-list { list-style: none; padding-left: 1.2rem; margin: .4rem 0 1rem; }
.prose .dash-list li { position: relative; margin: 0 0 .25rem; }
.prose .dash-list li::before { content: "–"; position: absolute; left: -1.2rem; color: var(--c-secondary); }
/* noga: ikoni pred telefonom in e-pošto */
.footer-main li.with-ico { display: flex; align-items: flex-start; gap: .55rem; }
.footer-main li.with-ico .ico { margin-top: .2rem; }
.footer-main li.with-ico .ico { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.8); }

/* ---------- Kazalo strani ---------- */
.kazalo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; margin-bottom: 2rem; }
.kazalo--amb { grid-template-columns: repeat(4, 1fr); }
.kazalo__col h2 { font-size: 1.25rem; margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 2px solid var(--c-secondary-light); }
.kazalo__col h2 a { text-decoration: none; color: var(--c-primary); }
.kazalo__col h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--c-primary); }
.kazalo__col ul { list-style: none; margin: 0; padding: 0; }
.kazalo__col li { margin: 0 0 .35rem; padding-left: 1rem; position: relative; }
.kazalo__col li::before { content: "›"; position: absolute; left: 0; color: var(--c-secondary); }
.kazalo__col a { text-decoration: none; color: var(--c-text); }
.kazalo__col a:hover { color: var(--c-primary); text-decoration: underline; }
@media (max-width: 1000px) { .kazalo, .kazalo--amb { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kazalo, .kazalo--amb { grid-template-columns: 1fr; } }
.kazalo { grid-template-columns: repeat(4, 1fr); }
.kazalo__col--wide { grid-column: span 2; }
.kazalo__col--wide ul { columns: 2; gap: 2rem; }
.kazalo__col li { break-inside: avoid; }
@media (max-width: 1000px) { .kazalo { grid-template-columns: repeat(2, 1fr); } .kazalo__col--wide { grid-column: span 2; } }
@media (max-width: 600px) { .kazalo { grid-template-columns: 1fr; } .kazalo__col--wide { grid-column: auto; } .kazalo__col--wide ul { columns: 1; } }

/* noga: 3 stolpci (logotip + kontakt | Informacije | Povezave) + Facebook */
.footer-main--3 { grid-template-columns: 1.3fr 1fr 1fr auto; }
.footer-contact { list-style: none; margin: 1rem 0 0; padding: 0; }
.footer-contact li { margin-bottom: .5rem; }
@media (max-width: 900px) { .footer-main--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main--3 { grid-template-columns: 1fr; } }

/* ---------- Certifikata nad nogo (naslovnica) ---------- */
.certs { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; padding: 1.5rem 0 2.5rem; }
.certs img { height: 96px; width: auto; display: block; }
.certs__link { display: inline-block; opacity: .9; transition: opacity .2s; }
.certs__link:hover { opacity: 1; }
@media (max-width: 600px) { .certs { gap: 2rem; } .certs img { height: 72px; } }
/* certifikata v desnem stolpcu pod 112 */
.certs { justify-content: space-around; gap: 1.5rem; padding: 1.6rem 1rem 0; }
.certs img { height: 84px; }

/* ---------- Portala eZdravje pod certifikatoma (naslovnica) ---------- */
.portals { display: flex; justify-content: space-around; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.1rem 1rem 0; }
.portals__link { display: inline-block; opacity: .9; transition: opacity .2s; }
.portals__link:hover { opacity: 1; }
.portals img { height: 58px; width: auto; display: block; }
@media (max-width: 600px) { .portals { gap: 1.2rem; } }

/* ---------- Anketa o zadovoljstvu: širok gumb na naslovnici ---------- */
.survey-cta { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.4rem; padding: 1.15rem 1.3rem; background: var(--c-primary); color: #fff; border-radius: var(--radius); text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.survey-cta:hover, .survey-cta:focus-visible { background: var(--c-primary-dark); box-shadow: var(--shadow); transform: translateY(-2px); }
.survey-cta:hover strong { text-decoration: underline; }
.survey-cta__ico { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.survey-cta__ico .ico { width: 28px; height: 28px; display: block; }
.survey-cta__t { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.survey-cta strong { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.survey-cta small { font-size: .95rem; color: rgba(255, 255, 255, .85); }
/* puščica »naprej« je pseudoelement, da je enaka v prototipu in v Elementorju */
.survey-cta::after { content: ""; flex: 0 0 auto; margin-left: auto; width: 11px; height: 11px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); opacity: .85; }
@media (max-width: 420px) { .survey-cta { gap: .9rem; padding: 1rem 1.1rem; } .survey-cta__ico { width: 46px; height: 46px; } .survey-cta strong { font-size: 1.15rem; } }

/* ---------- CKZ ---------- */
.ckz-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ckz-nav a { padding: .5rem .95rem; border: 1px solid var(--c-border); border-radius: 999px; text-decoration: none; color: var(--c-primary); font-weight: 600; font-size: .95rem; background: #fff; }
.ckz-nav a:hover { border-color: var(--c-secondary); background: var(--c-secondary-light); }
.ckz-nav a[aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.ckz-hero { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.ckz-hero img { width: 100%; height: 340px; object-fit: cover; display: block; }
.ckz-slogan { font-weight: 800; color: var(--c-secondary); text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; }
.ckz-intro { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.ckz-intro__foto img, .ckz-sklop__foto img, .ckz-delavnica__foto img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.ckz-sklopi-nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: 1.5rem; font-size: .95rem; }
.ckz-sklopi-nav a { color: var(--c-secondary); }
.ckz-sklop { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.ckz-sklop__head { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.ckz-sklop__head h2 { margin-top: 0; }
.ckz-sklop__foto img { aspect-ratio: 4 / 3; object-fit: cover; }
.ckz-izvajalci { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.ckz-delavnice { display: grid; gap: 1rem; margin-top: 1.2rem; }
.ckz-delavnica { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: start; padding: 1.2rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.ckz-delavnica h3 { margin: 0 0 .2rem; font-size: 1.2rem; color: var(--c-primary); }
.ckz-delavnica .ckz-obseg { margin: 0 0 .6rem; font-weight: 600; color: var(--c-secondary); }
.ckz-delavnica p { margin: 0 0 .5rem; }
.ckz-delavnica__foto img { aspect-ratio: 4 / 3; object-fit: cover; }
.ckz-urnik td.num { white-space: nowrap; }
.ckz-kontakt dd a { font-weight: 600; }
@media (max-width: 760px) { .ckz-intro, .ckz-sklop__head, .ckz-delavnica { grid-template-columns: 1fr; } .ckz-hero img { height: 220px; } }

/* hero: ime zavoda nad sloganom */
.hero .hero-kicker { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-secondary); margin: 0 0 .6rem; opacity: 1; }
.hero h1 { margin-bottom: 1.6rem; }

/* CKZ: modre kartice programov (bela ikona in besedilo) */
.service-card--blue { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.service-card--blue .ico-wrap { background: rgba(255,255,255,.14); color: #fff; }
.service-card--blue strong, .service-card--blue span span { color: #fff; }
.service-card--blue span span { opacity: .88; }
.service-card--blue:hover, .service-card--blue:focus-visible { background: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }
.service-card--blue:hover strong { color: #fff; }
.ckz-title { margin: 0 0 .5rem; }
.ckz-title + .ckz-sklop { margin-top: 1rem; border-top: 0; padding-top: .5rem; }

/* Delavnice: glava sklopa kot moder trak (brez fotografije), belo besedilo */
.ckz-sklop__head--blue { display: block; background: var(--c-primary); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.ckz-sklop__head--blue h2 { color: #fff; margin: 0 0 .5rem; }
.ckz-sklop__head--blue p, .ckz-sklop__head--blue li { color: #fff; }
.ckz-sklop__head--blue .small { opacity: .92; }
.ckz-sklop__head--blue a { color: #fff; text-decoration: underline; }
.ckz-sklop__head--blue .ckz-izvajalci { margin: .3rem 0 .6rem; }
/* delavnica brez fotografije: besedilo čez celo širino; ožji zasloni: slika nad besedilom */
.ckz-delavnica--nofoto { grid-template-columns: 1fr; }
.ckz-delavnica--foto-desno { grid-template-columns: minmax(0, 1fr) 200px; }
.ckz-delavnica--foto-desno .ckz-delavnica__foto { order: 2; }
@media (max-width: 1150px) { .ckz-delavnica { grid-template-columns: 1fr; } .ckz-delavnica__foto { max-width: 320px; } }

/* CKZ – tabela pogovornih ur: kompaktnejša, manjši font, zebra */
.ckz-urnik { font-size: .92rem; }
.ckz-urnik th, .ckz-urnik td { padding: .5rem .7rem; }
.ckz-urnik td.num { font-size: .9rem; font-weight: 500; }
.ckz-urnik td:first-child strong { font-size: .95rem; }
.ckz-urnik td:first-child .small { font-size: .8rem; }
.ckz-urnik tbody tr:nth-child(even) td { background: var(--c-bg); }
.ckz-intro--nofoto { grid-template-columns: 1fr; }
/* CKZ podstrani: večji razmik med naslovom in vsebino */
.ckz-title { margin: 0 0 1.5rem; }
.ckz-title + .ckz-sklop { margin-top: 0; padding-top: 0; }
/* CKZ podstrani: uvodne fotografije enake velikosti (320 × 213 px, razmerje 3:2, obrez na sredino) */
.ckz-intro__foto img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
/* Delavnice: modri trak sklopa – hover kot pri karticah programov */
.ckz-sklop__head--blue { transition: background .2s; }
.ckz-sklop__head--blue:hover { background: var(--c-secondary); }
/* alineje: brez praznih vrstic, če vsebujejo odstavke */
.prose li > p { margin: 0; }
.prose li > p + p { margin-top: .3rem; }
/* politika zasebnosti: kontaktna tabela brez robov, strnjene vrstice */
.prose .kontakt-tabela { border: 0; background: transparent; }
.prose .kontakt-tabela td { border: 0; padding: .4rem 1.5rem .4rem 0; vertical-align: top; line-height: 1.6; }
.prose .kontakt-tabela td { line-height: 1.45; padding-top: 0; }
.prose .kontakt-tabela strong { display: inline-block; margin-bottom: .15rem; }
.prose a.link-missing { color: var(--c-muted); text-decoration: line-through dotted; cursor: help; }

/* gumbi s pomembnimi povezavami na vrhu strani dejavnosti */
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1.8rem; }
.btn-nav { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-size: 1rem; padding: .75rem 1.15rem; }
.btn-nav .ico { width: 18px; height: 18px; }
.btn-nav:hover, .btn-nav:focus-visible { background: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }
/* gumbi na vrhu strani dejavnosti: enaka velikost (mreža), zaobljenost kot v podmeniju (8 px) */
.btn-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.btn-nav { border-radius: 8px; justify-content: space-between; min-height: 56px; padding: .7rem 1.1rem; text-align: left; }
@media (max-width: 640px) { .btn-row { grid-template-columns: 1fr; } }
/* imenik: naslovne vrstice sklopov */
/* čakalne dobe: storitve iste ambulante so en sklop – močnejša ločnica in zrak nad novo ambulanto */
.cd-table tr.amb-start > td { border-top: 2px solid var(--c-border); padding-top: 1.15rem; }
.cd-table tbody tr.amb-alt > td { background: var(--c-row-alt); }
.data-table .group-row th { background: var(--c-secondary-light); color: var(--c-primary); font-size: 1.05rem; text-transform: none; letter-spacing: 0; padding: .7rem 1rem; }
.tag--sm { font-size: .7rem; padding: .15rem .5rem; margin-left: .4rem; vertical-align: middle; background: var(--c-secondary-light); color: var(--c-primary); }

/* ---------- Novice / obvestila: arhiv in posamezen prispevek ---------- */
.tag.blue { background: var(--c-secondary-light); color: var(--c-primary); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: start; padding: 0 0 1.2rem; border-bottom: 1px solid var(--c-border); }
.post-card:last-child { border-bottom: 0; padding-bottom: 0; }
.post-card__img { display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--c-secondary-light); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-primary); }
.post-card__ph .ico { width: 40px; height: 40px; opacity: .6; }
.post-card__meta { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: .85rem; color: var(--c-muted); }
.post-card__body h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .4rem; }
.post-card__body h2 a { color: var(--c-primary); text-decoration: none; }
.post-card__body h2 a:hover { text-decoration: underline; }
.post-card__body p { margin: 0 0 .6rem; color: var(--c-text); }
.post-card__body .link-more { font-size: .95rem; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } .post-card__img { aspect-ratio: 16 / 9; } }
.post__head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: .3rem 0 1rem; color: var(--c-primary); text-wrap: balance; }
.post__img { margin: 0 0 1.5rem; border-radius: 10px; overflow: hidden; }
.post__img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.post__body figure { margin: 1.2rem 0; }
.post__body figure img, .post__body > p > img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.post__body .post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.post__body .post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.post__foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.post__more { margin-top: 1.5rem; }
.post__more h2 { font-size: 1.15rem; margin: 0 0 .4rem; }

/* ---------- Mobilni popravki (22. 9. 2026): brez vodoravnega drsenja ---------- */
.content, .finder-main, .two-col > *, .two-col-sidebar > * { min-width: 0; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .header-inner { gap: .4rem; }
  .logo .logo-img { height: 28px; }
  .badge-112 { min-width: 48px; padding: .3rem .45rem; }
  .badge-112 span { display: none; }
  .header-tools { gap: .15rem; }
}
.info-grid > * { min-width: 0; }
select { max-width: 100%; }
.table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) { .info-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .result-card .contact { min-width: 0; }
  .result-card .contact a { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Mobilni meni: zložljivi podmeniji, panel čez zaslon (22. 9. 2026) ---------- */
.mobile-nav { position: fixed; left: 0; right: 0; top: var(--header-h, 68px); bottom: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 5rem; }
body.nav-open { overflow: hidden; }
.mobile-nav .m-row { display: flex; align-items: center; width: 100%; min-height: 60px; border-bottom: 1px solid var(--c-border); }
.mobile-nav button.m-row { background: none; border: 0; border-bottom: 1px solid var(--c-border); font: inherit; font-weight: 600; color: var(--c-text); text-align: left; cursor: pointer; padding: 0; }
.mobile-nav button.m-row:hover, .mobile-nav button.m-row:focus-visible { background: var(--c-secondary-light); color: var(--c-primary); }
.mobile-nav .m-row__ico { flex: 0 0 56px; display: grid; place-items: center; color: var(--c-primary); }
.mobile-nav .m-row__ico .ico { width: 30px; height: 30px; transition: transform .15s; }
.mobile-nav button.m-row[aria-expanded="true"] .m-row__ico .ico { transform: rotate(180deg); }
.mobile-nav button.m-row[aria-expanded="true"] { color: var(--c-primary); }
.mobile-nav .m-row__t { flex: 1; min-width: 0; padding: .9rem var(--gutter) .9rem .4rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav .m-row--plain > a { flex: 1; min-width: 0; border-bottom: 0; display: flex; align-items: center; min-height: 60px; padding-left: calc(56px + .4rem); }
.mobile-nav .sub { background: var(--c-bg); padding: 0; }
.mobile-nav .sub a { min-height: 52px; display: flex; align-items: center; font-weight: 500; padding-left: calc(56px + .4rem); }
.mobile-nav .sub li:last-child a { border-bottom: 1px solid var(--c-border); }
.mobile-nav .sub__all { font-weight: 600; color: var(--c-primary); }
.mobile-nav .m-row--plain > a[aria-current="page"], .mobile-nav .sub a[aria-current="page"] { color: var(--c-primary); background: var(--c-secondary-light); }
.menu-toggle { min-width: 46px; min-height: 46px; padding: 0; }
.menu-toggle .ico { width: 32px; height: 32px; }
.bottom-nav [data-menu-toggle] .ico { width: 28px; height: 28px; }
/* zaprt meni: samo hamburger; odprt: samo X (pravila morajo biti za velikostmi) */
[data-menu-toggle] .ico--menu { display: block; }
[data-menu-toggle] .ico--close { display: none; }
[data-menu-toggle][aria-expanded="true"] .ico--menu { display: none; }
[data-menu-toggle][aria-expanded="true"] .ico--close { display: block; }

/* ---------- Glava podstrani na telefonu: nižja slika, naslov na ozadju, brez uvodnega besedila ---------- */
@media (max-width: 640px) {
  .page-hero { display: block; min-height: 0; margin-bottom: 1.2rem; }
  .page-hero .hero-media { position: relative; inset: auto; height: 120px; }
  .page-hero .hero-media .hero-img { height: 120px; object-position: center 45%; }
  .page-hero .hero-media::before { display: none; }
  .page-hero > .container { padding-block: .8rem 1rem; }
  .page-hero .breadcrumb { margin-bottom: .35rem; font-size: .8rem; }
  .page-hero .breadcrumb ol { flex-wrap: nowrap; }
  .page-hero .breadcrumb li { white-space: nowrap; }
  .page-hero .breadcrumb li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .page-hero__kicker { font-size: .9rem; }
  .page-hero h1 { font-size: 1.45rem; line-height: 1.25; }
  .page-hero .lead { display: none; }
}

/* ---------- Kartice ambulant na telefonu: ikona na začetku, besedilo čez celo širino ---------- */
@media (max-width: 640px) {
  .result-card { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1rem 1.1rem; }
  .result-card .ico-wrap { width: 40px; height: 40px; border-radius: 10px; }
  .result-card .ico-wrap .ico { width: 22px; height: 22px; }
  .result-card > div, .result-card .contact { grid-column: 1; }
  .result-card .contact { font-size: 1rem; gap: .4rem; }
  .result-card .contact a { white-space: normal; overflow-wrap: normal; }
  .result-card .arrow { display: none; }
  .result-card h3 { font-size: 1.25rem; }
  .result-card .meta { font-size: 1rem; }
}

/* ---------- Stranska vrstica (iskalnik, dogodki, obvestila) na telefonu ni prikazana ---------- */
@media (max-width: 640px) { .sidebar { display: none; } }

/* ---------- Telefon: gumbi razdelka (obvestila, pravila, obrazci, bolniški stalež) pod seznam ambulant ---------- */
@media (max-width: 640px) {
  .content:has(> .btn-row):has(.result-list, .zd-results) { display: flex; flex-direction: column; }
  .content:has(.result-list, .zd-results) > .btn-row { order: 5; margin: 1.5rem 0 0; }
}

/* ---------- Telefon: stran posamezne ambulante (ikona nad imenom, brez gumbov, enotni naslovi) ---------- */
@media (max-width: 640px) {
  .amb-hero { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .amb-hero .ico-wrap { width: 44px; height: 44px; border-radius: 10px; }
  .amb-hero .ico-wrap .ico { width: 24px; height: 24px; }
  .amb-actions { display: none; }
  .info-box h2, .info-box > h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); margin-bottom: .5rem; }
}

/* ---------- Naslovnica: ime zavoda v heroju samo na telefonu (kot v Elementorju) ---------- */
.hero .hero-brand { display: none; color: var(--c-primary); font-size: clamp(1.7rem, 1.3rem + 2.4vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; margin: 0 0 1rem; }
@media (max-width: 1024px) { .hero .hero-kicker, .hero #hero-title { display: none; } }
@media (max-width: 767px) { .hero .hero-brand { display: block; } }
@media (max-width: 767px) {
  .hero { position: relative; --hero-media-h: 280px; }
  .hero > .container { position: static; }
  .hero .hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 61, 110, .42); pointer-events: none; }
  .hero .hero-brand { position: absolute; top: 0; left: 0; right: 0; height: var(--hero-media-h); margin: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-start; text-align: left; padding: 0 var(--gutter); color: #fff; }
}

/* ---------- Strani ambulant: več zraka nad naslovi razdelkov ---------- */
.content:has(> .amb-hero) > h2, .content:has(> .amb-hero) > section > h2 { margin-top: 2.5rem; }
.content:has(> .amb-hero) > .amb-hero + h2 { margin-top: 1.5rem; }
