/*
Theme Name: Dubrava Portal
Theme URI: https://www.dubrava.hr
Author: Dubrava Development Team
Author URI: https://www.dubrava.hr
Description: Custom WordPress theme for dubrava.hr - Portal Zagrebačke Dubrave. Features dark/light mode, responsive design, and custom widgets for transport and calendar integration.
Version: 5.0.23
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dubrava
Tags: news, magazine, dark-mode, custom-widgets, responsive

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ── SITE HEADER ─────────────────────────────────────────────── */
.site-header { width: 100%; }

.header-banner {
  width: 100%;
  height: 115px;
  background: url('https://www.dubrava.hr/wp-content/uploads/2026/01/header-dubrava.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0;
}
.header-banner-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.header-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}
.header-site-name {
  font-family: 'Oswald', sans-serif;
 font-size: 29px;
 /*  font-size: 29px;*/
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  text-decoration: none;
  display: block;
  letter-spacing: 1px;
}
.header-site-name .hn-white { color: #ffffff; }
.header-site-name .hn-blue  { color: #3e96fd; }

.header-tagline {


font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
  display: block !important;
  width: max-content !important;
  max-width: 90% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  background-color: #0556a9 !important;
  color: #fff !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  font-size: 11px;
  line-height: 1 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);


}
/*
.header-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
  display: block;
display: block !important;
    width: max-content !important; 
    max-width: 90% !important;   
    margin-left: 0 !important;     
    margin-right: auto !important;
    background-color: #222 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  
  */
  
}
/* Styling the Site Tagline into a Pill */
.site-description, .tagline {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: #ffffff !important;           /* White text */
    padding: 5px 15px;                 /* Space inside the pill */
    border-radius: 50px;               /* This creates the pill shape */
    font-size: 14px;                   /* Adjust size as needed */
    font-weight: 600;                  /* Makes it slightly bold */
    margin-top: 10px;
    text-transform: uppercase;         /* Optional: makes it look more like a badge */
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Subtle depth */
}

/* Nav bar */
.site-nav {
  background: linear-gradient(135deg, #004c97 0%, #003a75 100%);
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: stretch; padding: 0 20px;
}

/* Top-level items */
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 11px; height: 46px;
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255,255,255,.9); text-decoration: none;
  position: relative; white-space: nowrap;
  transition: color 0.2s;
}

/* Animated underline */
.nav-menu > li > a::before {
  content: '';
  position: absolute; bottom: 0; left: 11px; right: 11px; height: 3px;
  background: #3e96fd;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
}
.nav-menu > li > a:hover::before,
.nav-menu > li:hover > a::before { transform: scaleX(1); }
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { color: #fff; }

/* Chevron arrow — pure CSS, no HTML characters */
.nav-menu > li.has-sub > a::after,
.nav-menu > li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 13px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s;
  display: inline-block;
  margin-left: 3px;
  line-height: 1;
}
.nav-menu > li.has-sub:hover > a::after,
.nav-menu > li.menu-item-has-children:hover > a::after {
  transform: translateY(3px);
  opacity: 1;
}

/* Dropdown */
.nav-menu li ul,
.nav-menu li .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute; top: 100%; left: 0;
  background: #1a1a1a;
  min-width: 220px; list-style: none;
  padding: 6px 0; margin: 0; z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  border-top: none;
  border-radius: 0 0 6px 6px;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
/* Invisible bridge fills the pixel gap so hover doesn't break */
.nav-menu > li.has-sub > ul::before,
.nav-menu > li.menu-item-has-children > .sub-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}
.nav-menu li:hover > ul,
.nav-menu li:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown items */
.nav-menu li ul li,
.nav-menu li .sub-menu li {
  position: relative;
  border-bottom: 1px solid #2a2a2a;
}
.nav-menu li ul li:last-child,
.nav-menu li .sub-menu li:last-child { border-bottom: none; }
.nav-menu li ul li a,
.nav-menu li .sub-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500;
  letter-spacing: 0.5px; color: #aaa;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-left: 3px solid transparent;
}
.nav-menu li ul li a::before,
.nav-menu li .sub-menu li a::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  opacity: 0;
  color: #3e96fd;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-4px);
  flex-shrink: 0;
}
.nav-menu li ul li a:hover,
.nav-menu li .sub-menu li a:hover {
  background: rgba(62,150,253,.08);
  color: #fff;
  padding-left: 18px;
  border-left-color: #3e96fd;
}
.nav-menu li ul li a:hover::before,
.nav-menu li .sub-menu li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

body.light .nav-menu li ul,
body.light .nav-menu li .sub-menu {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
}
body.light .nav-menu li ul li,
body.light .nav-menu li .sub-menu li { border-bottom-color: #eee; }
body.light .nav-menu li ul li a,
body.light .nav-menu li .sub-menu li a { color: #444; }
body.light .nav-menu li ul li a:hover,
body.light .nav-menu li .sub-menu li a:hover {
  background: rgba(0,76,151,.06);
  color: #004c97;
  border-left-color: #004c97;
}
body.light .nav-menu li ul li a:hover::before,
body.light .nav-menu li .sub-menu li a:hover::before { color: #004c97; }

.nav-right { display: flex; align-items: center; gap: 6px; padding-left: 16px; }
.nav-btn {
  background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer;
  padding: 8px 10px; font-size: 16px; display: flex; align-items: center;
  border-radius: 4px; transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-subscribe {
  background: #3e96fd;
  border: none;
  color: #fff; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 20px;
  border-radius: 4px; cursor: pointer; margin-left: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(62,150,253,.4);
}
.nav-subscribe:hover {
  background: #5aaeff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(62,150,253,.5);
}

/* ── SITE FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #111; border-top: 2px solid #004c97;
  padding: 28px 20px 20px; margin-top: 40px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-logo-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #242424;
}
.footer-logo-img { width: 110px; height: auto; opacity: 0.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 0; margin-bottom: 18px; }
.footer-links a { font-size: 12px; color: #555; text-decoration: none; padding: 3px 8px 3px 0; transition: color 0.15s; }
.footer-links a:hover { color: #3e96fd; }
.footer-links a:not(:last-child)::after { content: '·'; margin-left: 8px; color: #333; }
.footer-copy { font-size: 11px; color: #3a3a3a; border-top: 1px solid #1e1e1e; padding-top: 14px; }
.footer-copy a { color: #4a4a4a; text-decoration: none; }
.footer-copy a:hover { color: #3e96fd; }

body.light .site-footer { background: #1e2030; }
body.light .footer-links a { color: #777; }
body.light .footer-copy { color: #555; }

/* ── Variables — dark default ──────────────────────────────── */
:root {
  --blue:        #004c97;
  --blue-hover:  #003570;
  --blue-bright: #3b8fe7;
  --accent:      #3e96fd;

  --bg:          #1c1c1c;
  --bg2:         #222;
  --bg3:         #2a2a2a;
  --bg4:         #323232;
  --border:      #383838;
  --text:        #e4e4e4;
  --text-muted:  #999;
  --text-dim:    #777;
  --card-bg:     #262626;
  --radius:      6px;
  --gap:         18px;
}

body.light {
  --bg:       #f4f3f0;
  --bg2:      #ffffff;
  --bg3:      #ffffff;
  --bg4:      #eef0f3;
  --border:   #dde1e8;
  --text:     #1a1a2e;
  --text-muted: #666;
  --text-dim:   #888;
  --card-bg:  #ffffff;
  --blue-bright: #1a5fa8;
  --accent:      #1a5fa8;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; transition: background 0.3s, color 0.3s; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--blue-bright); }
img { display: block; max-width: 100%; height: auto; }


/* ── Section title ─────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
  padding-bottom: 0;
  gap: 12px;
}
.section-title .label {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  border-bottom: 3px solid var(--blue-bright);
  padding-bottom: 10px;
  margin-bottom: -2px;
  display: inline-block;
  line-height: 1;
}
.section-title .more {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
}
.section-title .more:hover { color: var(--blue-bright); }

/* ── BREAKING NEWS TICKER ───────────────────────────────────── */
.ticker-bar {
  background: #111;
  border-left: 4px solid #e63946;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
}
.ticker-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: #e63946;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 2px;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-items {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 4s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ticker-items.paused { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0 32px 0 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.ticker-item::after {
  content: '·';
  margin-left: 32px;
  color: rgba(255,255,255,.3);
}
.ticker-item:hover { color: #3e96fd; }
.ticker-pause {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  font-size: 10px;
  width: 24px; height: 24px;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}
.ticker-pause:hover { background: rgba(255,255,255,.1); color: #fff; }
@keyframes ticker-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
body.light .ticker-bar { background: #1a1a1a; }

/* ── Page structure ─────────────────────────────────────────── */
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 32px 20px 0; }

/* Rows 1 & 2 — full width */
.section-gap { margin-bottom: 40px; }

/* Row 3 — feed + sidebar grid */
.row3-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

/* ── ROW 1: Hero + Istaknuto ───────────────────────────────── */
.row1 {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero { border-radius: 0; }

/* Vertical separator */
.istaknuto-panel {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  border-left: 1px solid var(--border);
  margin-left: 20px;
}

/* Pill label for Istaknuto — same as standard .label */
.section-title .label-pill {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  border-bottom: 3px solid var(--blue-bright);
  padding-bottom: 10px;
  margin-bottom: -2px;
  display: inline-block;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  display: block;
  color: inherit;
}
.hero-img { height: 530px; object-fit: cover; transition: transform 0.5s ease; width: 100%; }
.hero:hover .hero-img { transform: scale(1.025); }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 100px 26px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 50%, transparent 100%);
}
.hero-cat {
  display: inline-block; background: var(--blue); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; margin-bottom: 9px;
}
.hero-title {
  font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero:hover .hero-title { color: var(--blue-bright); }
.hero-excerpt { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: 8px; }
.hero-date { font-size: 13px; color: rgba(255,255,255,.6); }

/* Istaknuto panel */
.istaknuto-panel { display: flex; flex-direction: column; }

.ist-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background 0.15s;
  border-radius: 4px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
}
.ist-card:first-of-type { padding-top: 0; }
.ist-card:last-of-type { border-bottom: none; padding-bottom: 0; }
.ist-card:hover { background: var(--bg3); }
.ist-thumb { width: 100px; height: 77px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ist-body { flex: 1; min-width: 0; }
.ist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; gap: 6px; }
.ist-cat {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue-bright);
}
.ist-date { font-size: 11px; color: var(--text-dim); white-space: nowrap; flex-shrink: 0; }
.ist-title {
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500;
  line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ist-card:hover .ist-title { color: var(--blue-bright); }

/* ── ROW 2: 4 category columns ─────────────────────────────── */
.row2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.cat-col {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-bright);
}

/* Pill label for category section titles */
.cat-col .section-title .label {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 5px 14px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1;
  margin-bottom: 0;
  border-bottom: none;
}

.cat-article {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.cat-article:first-of-type { padding-top: 0; }
.cat-article:last-of-type { border-bottom: none; padding-bottom: 0; }
.cat-left { display: flex; flex-direction: column; align-items: center; gap: 0; flex-shrink: 0; }
.cat-thumb { width: 100px; height: 75px; object-fit: cover; border-radius: 3px; display: block; }
.cat-date { font-size: 10px; color: var(--text-dim); white-space: nowrap; display: block; margin-bottom: 3px; }
.cat-body { flex: 1; min-width: 0; }
.cat-title {
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500;
  line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-article:hover .cat-title { color: var(--blue-bright); }

/* ── ROW 3: Najnovije feed ──────────────────────────────────── */
.feed-article {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  border-radius: 6px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background 0.15s;
}
.feed-article:first-of-type { padding-top: 0; }
.feed-article:hover { background: var(--bg3); }
.feed-thumb { width: 200px; height: 140px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.feed-body { flex: 1; min-width: 0; }
.feed-cat {
  display: inline-block;
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; background: var(--blue);
  padding: 2px 8px; border-radius: 2px;
  margin-bottom: 6px;
}
.feed-title {
  font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 600;
  line-height: 1.25; color: var(--text); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-article:hover .feed-title { color: var(--blue-bright); }
.feed-snippet {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-date { font-size: 13px; color: var(--text-dim); margin-top: 5px; display: block; }

/* ── SEARCH RESULTS ─────────────────────────────────────────── */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 30px;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  margin-top: 16px;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.pagination a:hover {
  background: var(--bg4);
  color: var(--blue-bright);
  border-color: var(--blue-bright);
}
.pagination .current {
  background: var(--blue-bright);
  color: #fff;
  border-color: var(--blue-bright);
  font-weight: 600;
}
.pagination .dots {
  background: transparent;
  border: none;
  color: var(--text-dim);
}
.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* ── SPORTS CLUBS CAROUSEL ──────────────────────────────────── */
.sports-clubs-carousel {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.sports-clubs-track {
  display: flex;
  gap: 15px;
  animation: scroll-logos 30s linear infinite;
  will-change: transform;
}
.sports-clubs-track:hover {
  animation-play-state: paused;
}
.sports-club-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}
.sports-club-item:hover {
  transform: scale(1.15);
  opacity: 1;
}
.sports-club-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.sports-club-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(1) contrast(1.1);
  transition: filter 0.3s ease;
}
.sports-club-item:hover img {
  filter: brightness(1.1) contrast(1.2);
}

/* Auto-scroll animation - scrolls exactly half (18 logos) for seamless loop */
@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-80px * 18 - 15px * 18));
  }
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-bright);
  overflow: hidden;
}

.sidebar-block-title {
  font-family: 'Oswald', sans-serif; font-size: 21px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-bright);
  border-bottom: 3px solid var(--blue-bright);
  padding: 14px 16px 11px;
  display: inline-block;
  margin-bottom: 0;
  line-height: 1;
}
.sidebar-block-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── Search Form ────────────────────────────────────────────── */
.search-form {
  padding: 14px;
}

.search-form-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  padding: 10px 42px 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-field::placeholder {
  color: var(--text-muted);
}

.search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue-bright);
  border: none;
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #fff;
}

.search-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-50%) scale(1.05);
}

.search-submit:active {
  transform: translateY(-50%) scale(0.98);
}

.search-submit svg {
  display: block;
}

/* ── Transport accordion ────────────────────────────────────── */
.acc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; user-select: none;
}
.acc-header:hover { background: var(--bg4); }
.acc-label {
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.5px; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.acc-label svg { vertical-align: middle; flex-shrink: 0; }
.acc-icon { font-size: 10px; color: var(--blue-bright); transition: transform 0.3s ease; }
.acc-icon.open { transform: rotate(180deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg2);
}
.acc-body.open { max-height: 2000px; }
.acc-inner {}

/* Bus & tram — whole row is the link */
.line-list { padding: 0; }
.line-item {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-muted);
  transition: background 0.15s;
}
.line-item:last-child { border-bottom: none; }
.line-item:hover { background: var(--bg4); color: var(--text); }
.line-num {
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--blue-bright); min-width: 57px; flex-shrink: 0;
  text-align: center; padding: 8px 0;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.line-name { font-size: 12px; padding: 7px 10px; flex: 1; line-height: 1.3; transition: padding-left 0.2s; }
.line-item:hover .line-name { padding-left: 14px; }
.line-item:hover .line-num { color: #fff; }

/* Section label inside bus list */
.line-group {
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); padding: 8px 14px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: block;
}
body.light .line-group { background: var(--bg4); }
body.light .line-item:hover .line-num { color: #003570; }

/* Night line styling */
.line-item.night .line-num { color: #7b9fd4; }
.line-item.night .line-name { font-style: italic; }

/* ── MOBILE HAMBURGER MENU ──────────────────────────────────── */
.mobile-menu-toggle {
  display: none !important; /* Hidden by default on desktop */
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
  margin-left: 12px;
  order: 999; /* Ensure it's always last/rightmost */
}
.mobile-menu-toggle:hover { color: #fff; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #1a1a1a;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,.3);
}
.mobile-menu-panel.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: linear-gradient(135deg, #004c97 0%, #003a75 100%);
}
.mobile-menu-header span {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 28px;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-nav {
  padding: 8px 0;
}
.mobile-menu-nav > li {
  list-style: none;
  border-bottom: 1px solid #2a2a2a;
}
.mobile-menu-nav > li > a {
  display: block;
  padding: 14px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ddd;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-nav > li > a:hover {
  background: rgba(62,150,253,.1);
  color: #fff;
}

.mobile-menu-nav .menu-item-has-children > a {
  position: relative;
  padding-right: 45px;
}
.mobile-menu-nav .menu-item-has-children > a::after {
  content: '›';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.3s;
}
.mobile-menu-nav .menu-item-has-children.open > a::after {
  transform: translateY(-50%) rotate(90deg);
}

.mobile-menu-nav .sub-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #0d0d0d;
}
.mobile-menu-nav .menu-item-has-children.open > .sub-menu {
  display: block;
}
.mobile-menu-nav .sub-menu li a {
  display: block;
  padding: 12px 20px 12px 40px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #aaa;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.mobile-menu-nav .sub-menu li a:hover {
  background: rgba(62,150,253,.08);
  color: #3e96fd;
  padding-left: 48px;
}

body.light .mobile-menu-panel {
  background: #ffffff;
}
body.light .mobile-menu-header {
  border-bottom-color: #e0e0e0;
}
body.light .mobile-menu-nav > li {
  border-bottom-color: #e0e0e0;
}
body.light .mobile-menu-nav > li > a {
  color: #333;
}
body.light .mobile-menu-nav .sub-menu {
  background: #f5f5f5;
}
body.light .mobile-menu-nav .sub-menu li a {
  color: #666;
  border-bottom-color: #e0e0e0;
}

/* ── Vlakovi — exact live site CSS, adapted for dark/light ─── */
.route-container { display: table; width: 100%; border-collapse: collapse; padding: 0; box-sizing: border-box; }
.route-row { display: table-row; border-bottom: 1px solid var(--border); }
.route-cell { display: table-cell; border: 0; vertical-align: middle; padding: 0; }
.route-cell-left  { text-align: left; }
.route-cell-center { text-align: center; font-size: 14px; color: var(--text-muted); }
.route-cell-right { text-align: right; }
.route-cell-arrow {
  text-align: center; font-size: 22px; font-weight: bold; width: 36px; padding: 0;
  color: var(--text-dim);
}
.cell-link {
  display: block; padding: 9px 8px 9px 24px;
  text-decoration: none; color: var(--accent);
  box-sizing: border-box; font-size: 16px;
  font-weight: 500;
}
.route-cell-right .cell-link { padding: 9px 24px 9px 8px; }
.cell-link:hover { background-color: var(--bg4); color: var(--blue-bright); }
.route-divider { border: none; margin: 2px 10px; }

/* Arrow pulse animation */
@keyframes arrowPulse {
  0%   { transform: translateX(0);    opacity: 1; }
  40%  { transform: translateX(10px); opacity: 0; }
  41%  { transform: translateX(-4px);  opacity: 0; }
  70%  { transform: translateX(0);    opacity: 1; }
  100% { transform: translateX(0);    opacity: 1; }
}
/* Left link hovered → animate left arrow (next sibling) */
.route-cell-left:hover + .route-cell-arrow {
  animation: arrowPulse 1.1s ease-in-out infinite;
  color: var(--blue-bright);
}
/* Right link hovered → animate right arrow (previous sibling via row hover trick) */
.route-cell-right:hover {
  --right-hovered: 1;
}
.route-row:has(.route-cell-right:hover) .route-cell-center + .route-cell-arrow {
  animation: arrowPulse 1.1s ease-in-out infinite;
  color: var(--blue-bright);
}

/* ── Kalendar (Google Calendar) ─────────────────────────────── */
.cal-loading {
  padding: 16px; text-align: center; font-size: 12px; color: var(--text-muted);
  font-family: 'Oswald', sans-serif; letter-spacing: 1px;
}
.cal-error { padding: 12px 16px; font-size: 12px; color: #e06c6c; }

.cal-event {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.cal-event:last-of-type { border-bottom: none; }
.cal-event:hover { background: var(--bg4); }

.cal-date-box {
  background: var(--blue); border-radius: 5px;
  width: 40px; flex-shrink: 0; text-align: center; padding: 5px 0;
}
.cal-day { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: #fff; line-height: 1; display: block; }
.cal-mon { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); display: block; }

.cal-body { flex: 1; min-width: 0; }
.cal-name { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3; display: block; }
.cal-event:hover .cal-name { color: var(--blue-bright); }
.cal-time { font-size: 12px; color: var(--text-dim);  margin-top: 2px; display: block; }

/* ── Month label inside calendar ────────────────────────────── */
.cal-month-sep {
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); padding: 8px 14px 4px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
body.light .cal-month-sep { background: var(--bg4); }

/* ── BREADCRUMBS (for Single Post & Pages) ──────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep {
  color: var(--text-dim);
  font-size: 11px;
}
.breadcrumbs .current {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}
.breadcrumbs .bc-home {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── SINGLE POST LAYOUT ─────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

/* ── Article ─────────────────────────────────────────────────── */
.article-header { margin-bottom: 24px; }

.article-cat {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.article-title {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta-item svg { flex-shrink: 0; }
.article-meta-item a { color: var(--text-muted); }
.article-meta-item a:hover { color: var(--accent); }

.article-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: block;
}
.article-img-caption {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 28px;
  font-style: italic;
}

/* ── Article body ────────────────────────────────────────────── */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 28px 0;
  padding: 14px 20px;
  background: var(--bg3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--text); font-weight: 600; }

/* ── Article tags ────────────────────────────────────────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tags-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
  margin-right: 4px;
}
.tag-pill {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Share bar ───────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn.fb   { background: #1877f2; color: #fff; }
.share-btn.wa   { background: #25d366; color: #fff; }
.share-btn.cp   { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Related articles ────────────────────────────────────────── */
.related-section { margin-top: 40px; }
.related-title {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  border-bottom: 3px solid var(--blue-bright);
  padding-bottom: 10px;
  margin-bottom: -2px;
  display: inline-block;
  line-height: 1;
}
.related-head {
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.related-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.related-card-body { padding: 12px 14px 14px; }
.related-card-cat {
  font-family: 'Oswald', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 5px; display: block;
}
.related-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px; font-weight: 600;
  line-height: 1.3; color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-card-title { color: var(--accent); }
.related-card-date { font-size: 11px; color: var(--text-dim); margin-top: 8px; display: block; }

/* ── Map Template ────────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Fix body and html overflow issues */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Fix header */
  .header-banner {
    height: 90px;
  }
  .header-site-name {
    font-size: 36px;
  }
  .header-tagline {
    font-size: 8px;
    letter-spacing: 2px;
  }

  /* Navigation - hide desktop menu, show hamburger */
  .nav-inner {
    justify-content: flex-end;
  }
  .nav-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important; /* Override desktop display: none */
  }
  .nav-subscribe { display: none; }
  .nav-right {
    padding-left: 8px;
  }

  /* Fix page wrap */
  .page-wrap {
    padding: 12px 12px 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Fix ticker */
  .ticker-bar {
    height: auto;
    min-height: 34px;
  }
  .ticker-inner {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ticker-label {
    margin-right: 0;
    margin-bottom: 4px;
  }
  .ticker-items {
    animation-duration: 2s !important;
  }

  /* Row 1: stack hero + istaknuto vertically */
  .row1 {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero {
    order: 1;
    width: 100%;
  }
  .hero-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }
  .hero-title { font-size: 22px; }
  .hero-excerpt { display: none; }
  .hero-overlay {
    padding: 60px 16px 16px;
  }

  /* Istaknuto: title moves above hero on mobile, cards stack normally */
  .istaknuto-panel {
    order: 2;
    flex-direction: column;
    overflow: visible;
    gap: 0;
    padding-bottom: 0;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }
  .ist-card {
    flex-direction: row;
    min-width: unset;
    max-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    width: 100%;
  }
  .ist-card:last-of-type { border-bottom: none; }
  .ist-thumb {
    width: 80px;
    height: 56px;
    flex-shrink: 0;
  }
  .ist-title { font-size: 14px; }

  /* Row 2: 2 columns on tablet, 1 on small */
  .row2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Category columns */
  .cat-col {
    width: 100%;
    max-width: 100%;
  }
  .cat-article {
    width: 100%;
  }

  /* Row 3: stack feed + sidebar */
  .row3-wrap {
    display: block;
  }

  /* Add spacing between feed and sidebar */
  .feed-col {
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Feed: smaller thumbs */
  .feed-article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 14px 0;
  }
  .feed-thumb {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
  }
  .feed-title { font-size: 16px; }
  .feed-snippet { display: none; }
  .feed-body {
    flex: 1;
    min-width: 0;
  }

  /* Section titles smaller */
  .section-title .label { font-size: 17px; }

  /* Single post */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-title { font-size: 26px; }
  .article-hero-img {
    height: 260px;
    width: 100%;
  }
  .article-meta {
    gap: 12px;
  }
  .article-meta-item {
    font-size: 12px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Fix breadcrumbs */
  .breadcrumbs {
    font-size: 11px;
    gap: 4px;
  }
  .breadcrumbs .current {
    max-width: 200px;
  }

  /* Sidebar */
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
  .sidebar-block {
    width: 100%;
  }

  /* Pagination - prevent line breaks on mobile */
  .pagination {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Fix footer */
  .footer-links {
    font-size: 11px;
  }
  .footer-links a {
    padding: 3px 6px 3px 0;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile adjustments */

  /* Header */
  .header-banner {
    height: 80px;
  }
  .header-site-name {
/*    font-size: 32px;*/
     font-size: 20px;
  }
  .header-tagline {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  /* Hero */
  .hero-img {
    height: 200px;
  }
  .hero-title {
    font-size: 18px;
  }
  .hero-overlay {
    padding: 50px 12px 12px;
  }

  /* Featured thumbs */
  .ist-thumb {
    width: 70px;
    height: 50px;
  }
  .ist-title {
    font-size: 13px;
  }

  /* Category columns - already single column */
  .cat-col {
    padding: 12px 10px;
  }
  .cat-thumb {
    width: 80px;
    height: 60px;
  }

  /* Feed: even smaller */
  .feed-thumb {
    width: 90px;
    height: 68px;
  }
  .feed-title {
    font-size: 15px;
  }
  .feed-body {
    font-size: 14px;
  }

  /* Single post */
  .article-title {
    font-size: 22px;
  }
  .article-hero-img {
    height: 220px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 20px;
  }
  .article-body h3 {
    font-size: 18px;
  }

  /* Share bar */
  .share-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .share-btn {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Related posts - single column */
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Section titles */
  .section-title .label {
    font-size: 16px;
  }

  /* Breadcrumbs */
  .breadcrumbs {
    font-size: 10px;
  }
  .breadcrumbs .current {
    max-width: 150px;
  }
}

/* ── Map Fix ───────────────────────────────────────────────── */
.geocoded-map {
  z-index: 0;
}



/*----- Kontakt Fix-----------*/

/* ── WPForms labels direct fix ── */

/* Dark mode (default) */
body:not(.light) .wpforms-field-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

body:not(.light) .wpforms-field-sublabel {
    color: rgba(255, 255, 255, 0.55) !important;
}

body:not(.light) .wpforms-field input,
body:not(.light) .wpforms-field textarea {
    color: rgba(255, 255, 255, 0.75) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Light mode */
body.light .wpforms-field-label {
    color: rgba(0, 0, 0, 0.85) !important;
}

body.light .wpforms-field-sublabel {
    color: rgba(0, 0, 0, 0.55) !important;
}

body.light .wpforms-field input,
body.light .wpforms-field textarea {
    color: rgba(0, 0, 0, 0.7) !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}




/* Admin edit bar - light/dark aware */
.admin-edit-bar {
    background: var(--bg2);
    border-bottom: 2px solid var(--blue-bright);
    padding: 8px 16px;
    text-align: right;
}

.admin-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-bright);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--blue-bright);
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-edit-link:hover {
    background: var(--blue-bright);
    color: #fff;
    
    
    
    
    
    
    
    
    /* ─── Related Pages Section ─────────────────────────────── */
.related-pages-section {
    padding: 40px 20px;
    background: var(--bg1);
    border-top: 3px solid var(--blue-bright);
}

.related-pages-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-bright);
    letter-spacing: 1px;
    margin: 0 0 24px 0;
    text-transform: uppercase;
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
}

/* Card */
.related-page-card {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--bg4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.related-page-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.related-page-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg3);
    flex-shrink: 0;
}

.related-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-page-card:hover .related-page-thumb img {
    transform: scale(1.04);
}

.related-page-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #888);
}

/* Body */
.related-page-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.related-page-name {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, inherit);
    line-height: 1.3;
}

.related-page-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted, #888);
    margin: 0;
    flex: 1;
}

.related-page-more {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-bright);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 600px) {
    .related-pages-grid {
        grid-template-columns: 1fr;
    }
    .related-page-thumb {
        height: 160px;
    }
}
 