/* ============================================
   NOVOBRDO — MAIN STYLESHEET
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1C4F4A;
  --blue-soft: #4E8C86;
  --blue-light: rgba(28, 79, 74, 0.1);
  --blue-dark: #155248;
  --secondary: #FC6719;
  --secondary-dark: #D55510;
  --secondary-light: rgba(252, 103, 25, 0.1);
  --tertiary: #f4f3ee;
  --text: #1a1a1a;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #ffffff;
  --bg-hero: var(--tertiary, #FBEBD6);
  --black: #111111;
  --barva-jss: #487F4A;
  --barva-jss-bg: rgba(72, 127, 74, 0.12);
  --barva-ssrs: #F97316;
  --barva-ssrs-bg: rgba(249, 115, 22, 0.12);
  --barva-sssnb: #10B981;
  --barva-sssnb-bg: rgba(16, 185, 129, 0.12);
  /* aliasi za združljivost */
  --tag-jss: var(--barva-jss);
  --tag-ssrs: var(--barva-ssrs);
  --tag-sssnb: var(--barva-sssnb);
  --radius: 12px;
  --header-h: 72px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a[href^="mailto:"], a[href^="http"] { color: var(--secondary); }
a[href^="mailto:"]:hover, a[href^="http"]:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: var(--blue);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-small { font-size: 11px; color: var(--text-muted); font-weight: 500; transition: color 0.35s ease; }
.logo-big { font-size: 26px; font-weight: 800; color: var(--blue); transition: color 0.35s ease; }
.site-header.scrolled .logo-small { color: rgba(255,255,255,0.7); }
.site-header.scrolled .logo-big { color: #fff; }

.main-nav {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.35s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-link:hover { color: var(--black); }
.nav-link.active {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--secondary);
  border-radius: 0;
  padding-bottom: 4px;
}
.site-header.scrolled .nav-link { color: rgba(255,255,255,0.85); }
.site-header.scrolled .nav-link:hover { color: #fff; }
.site-header.scrolled .nav-link.active {
  color: #fff;
  border-bottom-color: var(--secondary);
}

.btn-kontakt {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  background: transparent;
  border: 2px solid var(--secondary);
  padding: 5px 14px;
  border-radius: 120px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.35s ease, border-color 0.35s ease;
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-kontakt:hover { background: var(--secondary-light); }
.site-header.scrolled .btn-kontakt {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}
.site-header.scrolled .btn-kontakt:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-nav .nav-link.active { border-bottom-color: var(--text); }
.site-header.scrolled .mobile-nav .nav-link,
.site-header.scrolled .mobile-nav .nav-link:hover,
.site-header.scrolled .mobile-nav .nav-link.active { color: var(--text); }

/* ============================================
   HITRI KONTAKT PASICA
   ============================================ */
.kontakt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.kontakt-overlay.open { display: block; }

.kontakt-pasica {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #fff;
  z-index: 201;
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  padding: 40px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.kontakt-pasica.open { transform: translateX(0); }

.kontakt-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.kontakt-close:hover { color: var(--text); }

.kontakt-pasica h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--blue);
}
.kontakt-intro {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Hitri kontakti — vsebina */
.hk-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid var(--blue-light);
}
.hk-group:first-of-type { border-top: none; padding-top: 4px; margin-top: 16px; }
.hk-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 8px;
}
.hk-row + .hk-row { border-top: 1px dotted var(--border); }
.hk-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hk-name-link { color: var(--secondary); }
.hk-name-link:hover { text-decoration: underline; }
.hk-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.hk-tel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.hk-tel:hover { text-decoration: underline; }
.hk-tel-urgent { font-size: 15px; }
a.hk-tel[href^="mailto:"] { color: var(--text); }
.hk-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.hk-novice-btn { font-size: 13px; padding: 9px 24px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 120px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-primary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { border-color: var(--blue-dark); color: var(--blue-dark); background: var(--blue-light); }
.btn-outline-secondary { color: var(--secondary); border-color: var(--secondary); }
.btn-outline-secondary:hover { border-color: var(--secondary-dark); color: var(--secondary-dark); background: var(--secondary-light); }

/* ============================================
   HERO
   ============================================ */
.hero-wrap {
  background-color: var(--bg-hero);
  background-image: linear-gradient(
    to right,
    rgba(0,0,0,0.05) calc((100% - 1200px) / 2 + 480px),
    transparent calc((100% - 1200px) / 2 + 480px)
  );
  border: none;
}
.hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
.hero-left {
  padding: 60px 40px 60px 24px;
}
.hero-label {
  font-size: clamp(20px, 2.3vw, 34px);
  font-weight: 400;
  color: var(--secondary);
  letter-spacing: normal;
  text-transform: lowercase;
  line-height: 1.0;
}
.hero-title {
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.0;
  margin: 0 0 16px;
}
.hero-desc {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* OBVESTILA */
.hero-right {
  min-height: 400px;
  padding: 40px 24px 48px 40px;
  position: relative;
  min-width: 0;
}

.obvestila-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.obvestila-title-row { display: flex; align-items: center; }
.obvestila-label {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  letter-spacing: 0.08em;
}
.filter-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.tag-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.tag-btn.active, .tag-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.tag-btn[data-filter="JSS MOL"]:hover,
.tag-btn[data-filter="JSS MOL"].active {
  background: var(--barva-jss-bg);
  border-color: transparent;
  color: var(--barva-jss);
}
.tag-btn[data-filter="SSRS"]:hover,
.tag-btn[data-filter="SSRS"].active {
  background: var(--barva-ssrs-bg);
  border-color: transparent;
  color: var(--barva-ssrs);
}

.obvestila-list { display: flex; flex-direction: column; gap: 0; }

.obvestilo-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1.5px dotted rgba(28, 79, 74, 0.3);
  animation: fadeIn 0.4s ease;
}
.obvestilo-item:last-child { border-bottom: none; }

.obvestilo-datum {
  text-align: center;
  flex-shrink: 0;
}
.datum-day {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: rgba(28, 79, 74, 0.15);
}
.datum-month {
  font-size: 11px;
  font-weight: 400;
  color: rgba(28, 79, 74, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.obvestilo-content { min-width: 0; }
.obvestilo-tags { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.obvestilo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--text-secondary); margin-top: 2px; margin-bottom: 10px; }
.obvestilo-item.featured .obvestilo-meta { margin-bottom: 30px; }
.meta-part { display: inline-flex; align-items: center; gap: 3px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: none;
}
.tag-jss-mol { color: var(--barva-jss); background: var(--barva-jss-bg); }
.tag-ssrs { color: var(--barva-ssrs); background: var(--barva-ssrs-bg); }
.tag-sssnb { color: var(--barva-sssnb); background: var(--barva-sssnb-bg); }

.obvestilo-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.obvestilo-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}
.opis-link {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.opis-link:hover { color: var(--secondary-dark); }
.opis-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 12px 0;
}
.opis-bullets {
  list-style: none;
  padding-left: 0;
  margin: 4px 0;
}
.opis-bullets li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 2px;
  white-space: normal;
}
.opis-bullets li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.obvestilo-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--secondary);
  padding: 8px 20px;
  border-radius: 120px;
  transition: background 0.2s;
}
.obvestilo-link:hover { background: var(--secondary-dark); }
.obvestilo-link-sec {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  border: none;
  padding: 5px 14px;
  border-radius: 120px;
  background: var(--blue-light);
  transition: background 0.2s;
  white-space: nowrap;
}
.obvestilo-link-sec:hover { background: rgba(56,102,255,0.18); }
.obvestilo-item-footer { display: flex; justify-content: flex-end; margin-top: 6px; }
.meta-part svg { color: var(--secondary); flex-shrink: 0; }

.obvestilo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-template-columns: unset;
}
.obvestilo-row-datum {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 52px;
}
.obvestilo-row-naslov {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obvestilo-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.obvestilo-item:not(.featured) {
  grid-template-columns: 52px 1fr auto;
  align-items: center;
}
.obvestilo-item:not(.featured) .obvestilo-tags .tag {
  font-size: 9px;
  padding: 1px 5px;
}
.obvestilo-item:not(.featured) > .obvestilo-link-sec {
  font-size: 11px;
  padding: 3px 10px;
}
.obvestilo-inline-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.obvestilo-inline-row .obvestilo-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
}
.obvestilo-inline-row .obvestilo-meta {
  flex-shrink: 0;
  margin: 0;
  white-space: normal;
  flex-wrap: wrap;
}

.obvestilo-item.featured {
  grid-template-columns: 72px 1fr;
  padding: 22px 0 28px;
}
.obvestilo-item.featured .datum-day { font-size: 38px; }
.obvestilo-item.featured .datum-month { font-size: 14px; }
.obvestilo-item.featured .obvestilo-title { font-size: 26px; }
.obvestilo-item.featured .obvestilo-tags .tag { font-size: 9px; padding: 1px 5px; }
.obvestilo-item.featured .obvestilo-desc {
  font-size: 15px;
}

.loading-msg {
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
}

/* ============================================
   KOLEDAR
   ============================================ */
.section-koledar {
  background: var(--bg);
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  gap: 16px;
}
.section-title-row .section-title {
  margin-bottom: 0;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 32px;
}
.calendar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover { border-color: var(--blue); color: var(--blue); }
.cal-month-label {
  font-size: 18px;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
}

.calendar-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-hero);
}
.cal-header span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 12px;
  text-align: left;
  border-right: 1px solid var(--border);
}
.cal-header span:last-child { border-right: none; }

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day {
  min-height: 90px;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.other-month .cal-day-num { color: var(--border); }
.cal-day.today { background: var(--blue-light); }
.cal-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cal-events { display: flex; flex-direction: column; gap: 2px; }
.cal-event {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.blue { background: #DBEAFE; color: var(--blue); }
.cal-event.orange { background: #FEF3C7; color: #D97706; }
.cal-event.red { background: #FEE2E2; color: #DC2626; }
.cal-event.green { background: #D1FAE5; color: #059669; }

/* Google Calendar embed */
.gcal-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}
.gcal-embed iframe {
  width: 100%;
  height: 640px;
  display: block;
}
.gcal-mobile { display: none; }

@media (max-width: 768px) {
  .gcal-desktop { display: none; }
  .gcal-mobile { display: block; }
  .gcal-mobile iframe { height: 500px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: #fff;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .btn { align-self: flex-start; }
.footer-col .logo-small { color: rgba(255,255,255,0.5); font-size: 10px; }
.footer-col .logo-big { font-size: 22px; color: #fff; }
.footer-col .logo { display: inline-flex; }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-top: 10px; margin-bottom: 0; }
.footer-contact-links { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.footer-contact-links a { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-contact-links a.bold { font-weight: 700; color: rgba(255,255,255,0.8); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.2s; line-height: 1.4; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col p.white { color: #fff; font-weight: 700; }

.footer-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-logos a { display: inline-flex; }
.footer-logos img { height: 28px; width: auto; opacity: 1; filter: brightness(0) invert(1); }
.footer-partner-text { font-size: 10px; color: rgba(255,255,255,0.3); line-height: 1.4; }

.novice-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; align-items: flex-start; }
.novice-success { color: #6EE7B7; font-size: 14px; font-weight: 600; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.footer-bottom-links a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.2s; white-space: nowrap; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .obvestilo-inline-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .obvestilo-inline-row .obvestilo-meta { white-space: normal; flex-wrap: wrap; }

  .main-nav { display: none; }
  .hamburger { display: flex; margin-left: 0; }
  .btn-kontakt { margin-left: auto; }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .hero-wrap {
    background-image: none;
  }
  .hero-left {
    background: rgba(0,0,0,0.05);
    padding: 40px 20px 32px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hero-desc { max-width: 100%; }
  .hero-right {
    padding: 32px 20px 48px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hero-label { font-size: 28px; }
  .hero-title { font-size: clamp(36px, 10vw, 52px); }

  .obvestila-header { flex-direction: column; align-items: flex-start; }
  .obvestila-label { align-self: flex-start; }

  .section-koledar { padding: 40px 16px; }
  .cal-day { min-height: 60px; padding: 6px; }
  .cal-event { display: none; }
  .cal-event:first-child { display: block; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0; }
}

@media (max-width: 480px) {
  :root { --header-h: 68px; }
  .site-footer { padding-top: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:last-child { margin-top: 16px; }
  .hero-btns .btn { text-align: center; }
  .kontakt-pasica { width: 100vw; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .btn-kontakt { font-size: 11px; padding: 4px 10px; }
}

/* ============================================
   SHARED PAGE STYLES (used across all pages)
   ============================================ */

/* Legal pages */
.legal-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-inner h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 10px;
}
.legal-inner h2:first-child { margin-top: 0; }
.legal-inner h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 6px;
}
.legal-inner p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-inner ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-inner ul li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 4px;
}
.legal-inner a { color: var(--secondary); }
.legal-inner a:hover { text-decoration: underline; }

/* Page hero/intro banner */
.page-hero {
  background: var(--bg-hero);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tab switcher */
.tab-switcher {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 40px;
  padding: 4px;
  width: fit-content;
  box-shadow: 0 0 0 1.5px var(--border);
  position: relative;
}
.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--secondary);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn {
  padding: 10px 28px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.tab-btn.active { color: #fff; }
.tab-btn:not(.active):hover { color: var(--text); }

/* Hero z lebdečim tab switcherjem */
.hero-with-tabs {
  padding-bottom: 32px;
  position: relative;
  overflow: visible;
}
.hero-with-tabs .tab-switcher {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  margin: 0;
  z-index: 10;
  box-shadow: 0 0 0 1.5px var(--border), 0 6px 24px rgba(0,0,0,0.10);
}
.hero-tabs-main { padding-top: 28px; }

/* Tab content animacija */
.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Content container */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Sidebar layout */
.sidebar-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
}
.sidebar-label {
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: block;
}
.sidebar-link {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.sidebar-link:hover { background: var(--bg-hero); }
.sidebar-link.active { background: var(--blue-light); }
.sidebar-link-title { font-weight: 800; font-size: 15px; color: var(--blue); }
.sidebar-link-sub { font-size: 13px; color: var(--text); font-weight: 400; line-height: 1.4; margin-top: 3px; }

/* Photo placeholder */
.photo-placeholder {
  background: var(--bg-hero);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .tab-switcher { width: 90%; }
  .tab-btn { padding: 8px 16px; font-size: 13px; flex: 1; text-align: center; }
}
@media (max-width: 600px) {
  .hero-with-tabs .tab-switcher {
    left: 24px;
    right: 24px;
    width: auto;
    transform: translateY(50%);
    justify-content: space-around;
  }
}
