/* Izgled "Stari sajt" (skin s): CSS starog sajta DOSLOVNO (sajt/index.php, sajt/delovi/*.html). Ne menjati rucno; vidi tests/test_site_stari.php. */
/* ==== sajt/index.php ==== */
/* ================================================================
   STOSS SUBOTICA — Moderan dizajn 2025 (stss.rs paleta)
================================================================ */

:root {
  --blue:     #004a8f;
  --blue2:    #003d78;
  --red:      #d71920;
  --navy:     #192a3d;
  --text:     #192a3d;
  --muted:    #5a6a7e;
  --border:   #dce6f0;
  --white:    #ffffff;
  --bg:       #fafbfc;
  --font:     'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--navy); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.65; min-height: 100vh; }
td, th { background-color: transparent; font-family: var(--font); }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ──────────────────────────────────────────────── */
#site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
#header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 48px;
}
#logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; margin-right: 24px; }
#logo:hover { text-decoration: none; }
#logo-icon { display: flex; align-items: center; }
#logo-img { height: 72px; width: auto; display: block; }
#logo-text { line-height: 1.2; }
#logo-text strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
#logo-text span   { display: block; font-size: 11px; color: var(--muted); letter-spacing: .5px; }

/* ── NAV ─────────────────────────────────────────────────── */
#nav-toggle { display: none; }
#navigation { flex: 1; }
#main-nav { display: flex; list-style: none; height: 80px; align-items: center; margin: 0; padding: 0; }
#main-nav > li { position: relative; height: 80px; display: flex; align-items: center; }
#main-nav > li > a {
  display: flex; align-items: center;
  height: 80px; padding: 0 12px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s;
}
#main-nav > li > a:hover { color: var(--red); text-decoration: none; }
#main-nav > li.cur > a   { color: var(--red); border-bottom-color: var(--red); }

/* Dropdown */
#main-nav li ul {
  display: none; position: absolute;
  top: 80px; left: 0;
  background: var(--white);
  min-width: 210px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  z-index: 300;
}
#main-nav li:hover > ul { display: block; }
#main-nav li ul li { display: block; }
#main-nav li ul li a {
  display: block; padding: 11px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s, padding-left .12s;
}
#main-nav li ul li:last-child a { border-bottom: none; }
#main-nav li ul li a:hover { background: #f0f5fb; color: var(--blue); padding-left: 22px; text-decoration: none; }

/* ── MAIN GRID ───────────────────────────────────────────── */
#main {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  align-items: start; background: var(--bg);
}

/* ── CONTENT ─────────────────────────────────────────────── */
#content { padding: 18px 20px 28px; min-width: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
#sidebar {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg); padding: 20px 16px;
}
.sidebar-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-bottom: 14px;
}
.sidebar-block-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: var(--blue); padding: 10px 16px;
}
.sponsor-item {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.sponsor-item:last-child { border-bottom: none; }
.sponsor-item:hover { background: #f5f8fc; }
.sponsor-item img { max-height: 60px; width: auto; }

/* ── NEWSBLOCK ───────────────────────────────────────────── */
.newsblock {
  background: var(--white);
  border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 16px 20px 14px; margin-bottom: 12px;
  transition: border-left-color .2s, box-shadow .2s;
  animation: fadeUp .3s ease backwards;
}
.newsblock:hover { border-left-color: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.newsblock:nth-child(1) { animation-delay: .04s; }
.newsblock:nth-child(2) { animation-delay: .10s; }
.newsblock:nth-child(3) { animation-delay: .16s; }

.newsblock--featured {
  border: 2px solid var(--blue); border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0,74,143,.10);
}
.newsblock--featured:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(0,74,143,.15); }

/* Samo blagi pomak (bez providnosti): vesti su uvek vidljive, cak i kad se animacija ne pokrene. */
@keyframes fadeUp {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .newsblock { animation: none; }
}

.vestSlika { margin: 4px 18px 8px 0; border: 1px solid var(--border); border-radius: 4px; max-width: 200px; }
.vestSlika--featured { max-width: 340px; margin: 4px 28px 12px 0; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.10); }

.news-meta { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px; }
.newsblock--featured .news-meta { font-size: 12px; }

.news-title { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.news-title--featured { font-size: 38px; font-weight: 700; line-height: 1.15; margin-bottom: 14px; }

.news-body { font-size: 15px; color: var(--text); line-height: 1.7; }
.news-body p { margin: 2px 0; }
.news-body p:empty { display: none; }
.news-body a { color: var(--blue); }
.news-body a:hover { color: var(--red); }
.news-body table { border-collapse: collapse; font-size: 13px; }
.news-body td, .news-body th { padding: 5px 10px; vertical-align: top; color: #333; }
.news-body img, .article-body img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(25,42,61,.18); transition: opacity .2s; }
/* Inline slike — poštuj text-align (center/left/right) iz baze */
.news-body p > a.highslide,
.news-body span > a.highslide { display: inline !important; }
.news-body p > a.highslide > img,
.news-body span > a.highslide > img { display: inline !important; vertical-align: top; }
.news-body a.highslide:hover img { opacity: .88; }
.news-body iframe { display: inline-block; max-width: 100%; vertical-align: top; }
.news-body p:has(iframe) { margin: 8px 0; }

.news-more { text-align: right; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.news-more a {
  font-size: 13px; font-weight: 700;
  color: var(--white); background: var(--blue);
  padding: 6px 14px; border-radius: 4px; transition: background .15s;
}
.news-more a:hover { background: var(--blue2); text-decoration: none; }

.news-archive-link { text-align: right; margin-top: 8px; }
.news-archive-link a {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 5px; transition: all .15s;
}
.news-archive-link a:hover { color: var(--text); border-color: var(--blue); text-decoration: none; }

/* ── PAGE HEADING ────────────────────────────────────────── */
.page-heading {
  font-size: 28px; font-weight: 700; color: var(--blue);
  position: relative; padding-bottom: 12px; margin-bottom: 20px;
}
.page-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--red);
}

/* ── CMS CONTENT ─────────────────────────────────────────── */
.cms-content { color: var(--text); font-size: 15px; line-height: 1.75; }
.cms-content h2, .cms-content h3 { color: var(--blue); margin: 16px 0 8px; }
.cms-content a { color: var(--blue); }
.cms-content ul { padding-left: 20px; margin: 8px 0; }

/* ── ARTICLE ─────────────────────────────────────────────── */
.article-full { max-width: 760px; }
.article-meta { font-size: 11px; font-weight: 600; color: var(--red); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.article-title { font-size: 32px; font-weight: 700; color: var(--blue); line-height: 1.2; margin-bottom: 16px; }
.article-hero { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-body { color: var(--text); font-size: 15px; line-height: 1.75; }
.article-body p { margin: 10px 0; }
.article-body p:empty { display: none; }
.article-body a { color: var(--blue); }
.article-body td, .article-body th { padding: 5px 10px; vertical-align: top; color: #333; }
.article-back { margin-top: 28px; }
.article-back a { color: var(--muted); font-size: 13px; }
.article-back a:hover { color: var(--text); }

/* ── TABELE — bgcolor iz baze ────────────────────────────── */
.news-body table, .article-body table { border-collapse: collapse; font-size: 13px; margin: 8px 0; }

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-item { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; display: block; transition: border-color .2s, transform .2s; }
.gallery-item:hover { border-color: var(--red); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 140px; object-fit: cover; }
.gallery-caption { padding: 8px 10px; font-size: 11px; color: var(--muted); }

/* ── SEARCH FORM ─────────────────────────────────────────── */
.search-form { display: flex; gap: 10px; margin-bottom: 20px; }
.search-form input {
  flex: 1; background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 10px 14px; color: var(--text);
  font-size: 13px; font-family: var(--font); outline: none; transition: border-color .15s;
}
.search-form input:focus { border-color: var(--blue); }
.search-form button {
  background: var(--blue); color: var(--white); border: none;
  border-radius: 6px; padding: 10px 20px; font-family: var(--font);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.search-form button:hover { background: var(--blue2); }

/* ── CLUBS TABLE ─────────────────────────────────────────── */
.clubs-table-wrap { overflow-x: auto; }
.clubs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clubs-table thead th {
  background: var(--navy); color: rgba(255,255,255,.7);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 14px;
  border-bottom: 2px solid var(--border); text-align: left;
}
.clubs-table tbody tr { border-bottom: 1px solid var(--border); }
.clubs-table tbody tr:hover { background: #f0f5fb; }
.clubs-table tbody td { padding: 10px 14px; color: var(--muted); }
.clubs-table tbody td strong { color: var(--text); }
.clubs-table tbody td a { color: var(--blue); }

/* ── ARCHIVE ─────────────────────────────────────────────── */
.archive-list { display: flex; flex-direction: column; gap: 2px; }
.archive-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; background: var(--white);
  border: 1px solid var(--border); border-radius: 4px;
  transition: border-color .15s, background .15s; color: var(--text);
}
.archive-item:hover { border-color: var(--blue); background: #f0f5fb; }
.archive-date { font-size: 14px; color: var(--red); font-weight: 600; white-space: nowrap; min-width: 90px; }
.archive-title { font-size: 14px; font-weight: 500; }

/* ── EMPTY / SUCCESS ─────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); font-size: 15px; }

/* ── KONTAKT ─────────────────────────────────────────────── */
.contact-hero {
  background: var(--blue); padding: 28px 32px 24px;
  margin: -18px -20px 0;
}
.contact-hero-title {
  font-size: 42px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .5px;
}
.contact-info { text-align: center; padding: 24px 16px 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.contact-org  { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.contact-addr { font-size: 17px; color: var(--muted); margin: 3px 0; line-height: 1.6; }
.contact-email { display: inline-block; margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--blue); }
.contact-email:hover { color: var(--red); }
.contact-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.contact-map iframe { display: block !important; width: 100% !important; }

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer { width: 100%; background: var(--navy); border-top: 4px solid var(--red); }
.footer-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 22px 48px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand strong { font-size: 15px; font-weight: 700; color: var(--white); text-transform: uppercase; display: block; margin-bottom: 2px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.45); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; }
.footer-nav a {
  font-size: 13px; color: rgba(255,255,255,.65);
  padding: 4px 12px; border-right: 1px solid rgba(255,255,255,.15);
  white-space: nowrap; transition: color .15s;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 12px 48px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── HIGHSLIDE ───────────────────────────────────────────── */
#highslide-container { position: relative; }

/* ── GRADSKA LIGA CARD ───────────────────────────────────── */
.liga-card {
  padding: 12px 14px;
}
.liga-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.liga-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.liga-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.liga-date {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}
.liga-link:hover {
  background: #e8f0fb;
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
.liga-text { flex: 1; }
.liga-icon { font-size: 14px; flex-shrink: 0; }
.liga-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* ================================================================
   RESPONSIVE — mobilni i tablet
================================================================ */

/* ── TABLET (do 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  #header-inner { padding: 0 24px; }
  #main { grid-template-columns: 1fr 260px; }
  .footer-inner { padding: 20px 24px 16px; }
  .footer-bottom { padding: 12px 24px; }
}

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

  /* Header — logo i hamburger */
  #header-inner { padding: 0 16px; height: 64px; position: relative; }
  #logo-img { height: 52px; }
  #logo-text strong { font-size: 14px; }
  #logo-text span { display: none; }

  /* Nav — hamburger meni */
  #nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
  }
  #nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
  }
  #nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle.open span:nth-child(2) { opacity: 0; }
  #nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #navigation {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 400;
  }
  #navigation.open { display: block; }

  #main-nav { flex-direction: column; height: auto; align-items: stretch; }
  #main-nav > li { height: auto; border-bottom: 1px solid var(--border); }
  #main-nav > li > a {
    height: auto; padding: 14px 20px;
    font-size: 14px; border-bottom: none; margin-bottom: 0;
  }
  #main-nav > li.cur > a { background: #f0f5fb; border-bottom: none; border-left: 3px solid var(--red); }
  #main-nav li ul {
    display: block !important;
    position: static;
    border: none; border-top: 1px solid var(--border);
    box-shadow: none;
    background: #f8fafb;
  }
  #main-nav li ul li a { padding: 10px 20px 10px 32px; font-size: 13px; }

  /* Main — jednostubacni layout */
  #main { grid-template-columns: 1fr; }
  #content { padding: 16px; }

  /* Sidebar ispod vesti */
  #sidebar {
    border-left: none;
    border-top: 2px solid var(--border);
    padding: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar-block { margin-bottom: 0; flex: 1; min-width: 140px; }
  .sidebar-block-title { font-size: 10px; padding: 8px 12px; }
  .sponsor-item { padding: 10px 12px; }
  .sponsor-item img { max-height: 45px; }
  /* Liga card na mobilnom — puna sirina, datum ostaje vidljiv */
  .sidebar-block--liga { min-width: 100%; flex-basis: 100%; }
  .liga-card { padding: 10px 12px; }
  .liga-link { font-size: 12px; padding: 6px 8px; }
  .liga-date { font-size: 10px; }

  /* Vesti */
  .newsblock { padding: 14px; }
  .newsblock--featured { padding: 16px; }
  .news-title { font-size: 18px; }
  .news-title--featured { font-size: 24px; }
  .vestSlika { max-width: 120px; margin: 3px 12px 6px 0; }
  .vestSlika--featured { max-width: 160px; }

  /* YouTube iframe — puna sirina na mobilnom */
  .news-body iframe { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }

  /* Page heading */
  .page-heading { font-size: 24px; }

  /* Kontakt */
  .contact-hero { padding: 20px 16px; margin: -16px -16px 0; }
  .contact-hero-title { font-size: 32px; }
  .contact-org { font-size: 20px; }
  .contact-addr { font-size: 15px; }
  .contact-email { font-size: 16px; }
  .contact-map iframe { height: 280px !important; }

  /* Footer */
  #site-footer { border-top: 3px solid var(--red); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 16px 16px; }
  .footer-nav { flex-direction: column; gap: 0; width: 100%; }
  .footer-nav a { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 10px 0; font-size: 14px; }
  .footer-nav a:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; padding: 12px 16px; }

  /* Archive */
  .archive-item { flex-wrap: wrap; gap: 4px; }
  .archive-date { min-width: auto; }

  /* Tabele u vestima — scroll horizontalno */
  .news-body table, .article-body table { display: block; overflow-x: auto; }
}

/* ── MALI MOBILNI (do 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  #logo-text strong { font-size: 13px; }
  .news-title--featured { font-size: 20px; }
  .vestSlika, .vestSlika--featured { float: none !important; max-width: 100%; margin: 0 0 10px 0; width: 100%; }
  .newsblock--featured { padding: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   NOVO 2026-10 — gornja traka, zaglavlje/meni i podnozje u kolonama
================================================================ */

/* ── GORNJA TRAKA ────────────────────────────────────────── */
#top-bar { background: var(--navy); color: #c9daee; font-size: 13px; }
#top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px; height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#top-bar a { color: #c9daee; text-decoration: none; }
#top-bar a:hover { color: var(--white); text-decoration: none; }
.top-bar-links { display: flex; align-items: center; gap: 20px; }
#top-bar .top-bar-igraj { display: inline-flex; align-items: center; gap: 8px; color: #ffd166; font-weight: 600; min-width: 0; }
#top-bar .top-bar-igraj strong { font-weight: 700; color: #ffd166; white-space: nowrap; }
#top-bar .top-bar-igraj .pod { color: #c9daee; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#top-bar .top-bar-igraj svg { display: block; flex-shrink: 0; }
#top-bar .top-bar-igraj:hover strong, #top-bar .top-bar-igraj:hover .pod { color: var(--white); }
#top-bar .top-bar-yt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
#top-bar .top-bar-yt svg { display: block; transition: transform .15s; }
#top-bar .top-bar-yt:hover svg { transform: scale(1.1); }

/* ── ZAGLAVLJE: naziv i meni ─────────────────────────────── */
/* Plava traka menija na svim stranicama; logo, naziv i hamburger su beli. */
body { background: #f2f5f9; }
#site-header { background: var(--blue); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
#logo-text strong { color: var(--white); }
#logo-text strong em { font-style: normal; color: #ff6b72; }
#logo-img { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
#nav-toggle span { background: var(--white); }

@media (min-width: 769px) {
  #header-inner { height: 64px; }
  #logo { margin-right: 24px; }
  #logo-img { height: 50px; }
  #logo-text strong { font-size: 19px; line-height: 1.15; }
  #main-nav, #main-nav > li, #main-nav > li > a { height: 64px; }
  #main-nav { justify-content: flex-end; }
  #main-nav > li > a {
    font-size: 14px; font-weight: 600; letter-spacing: .3px;
    text-transform: none; padding: 0 18px; color: var(--white);
  }
  #main-nav > li > a:hover { color: var(--white); background: rgba(255,255,255,.10); border-bottom-color: rgba(255,255,255,.55); }
  #main-nav > li.cur > a { color: var(--white); background: rgba(255,255,255,.14); border-bottom-color: var(--red); }
  #main-nav > li > a.has-sub::after { content: '\25BE'; margin-left: 6px; font-size: 11px; color: #c9daee; }
  #main-nav li ul { top: 64px; min-width: 220px; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
  #main-nav li:focus-within > ul { display: block; }
  /* Naslovna: logo i naziv su u banneru, pa ih zaglavlje ne ponavlja (ostale stranice i telefon ih zadrzavaju). */
  #site-header.ima-hero #logo { display: none; }
  #site-header.ima-hero #main-nav { justify-content: center; }
}

/* ── PODNOZJE U KOLONAMA ─────────────────────────────────── */
.pf-grid {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 36px 48px 22px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px;
}
.pf-brand strong { display: block; color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pf-brand strong em { font-style: normal; color: #ff6b72; }
.pf-brand p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.6; margin: 0; }
.pf-col h4 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 12px; }
.pf-col ul { list-style: none; margin: 0; padding: 0; }
.pf-col li { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.5; padding: 3px 0; }
.pf-col a { color: rgba(255,255,255,.78); text-decoration: none; }
.pf-col a:hover { color: var(--white); text-decoration: underline; }
.pf-bottom {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 14px 48px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.pf-bottom a { color: rgba(255,255,255,.7); }
.pf-bottom a:hover { color: var(--white); }

@media (max-width: 1024px) {
  #top-bar-inner { padding: 0 24px; }
  .pf-grid { grid-template-columns: 1fr 1fr 1fr; padding: 28px 24px 18px; }
  .pf-brand { grid-column: 1 / -1; }
  .pf-bottom { padding: 14px 24px; }
}
@media (max-width: 768px) {
  #top-bar-inner { padding: 0 16px; height: 36px; }
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 24px 16px 16px; }
  .pf-bottom { padding: 12px 16px; flex-direction: column; gap: 4px; text-align: center; }
  /* Meni na telefonu: podmeni ispod naziva grupe (stavka je flex u redu, pa je ranije islo pored) */
  #main-nav > li { flex-wrap: wrap; }
  #main-nav > li > a { flex: 1 1 100%; }
  #main-nav li ul { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 480px) {
  .top-bar-igraj .pod { display: none; }
}

/* ── DESNA KOLONA: vise prostora izmedju blokova (samo racunar i tablet) ── */
@media (min-width: 769px) {
  #sidebar .sidebar-block { margin-bottom: 28px; box-shadow: 0 2px 10px rgba(0,50,100,.10); }
}

/* ── GRADSKA LIGA: kompaktan blok (A liga i B liga u po jednom redu) ── */
.liga-kompakt { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.liga-kompakt .liga-red { display: flex; align-items: center; gap: 6px; }
.liga-kompakt .liga-oznaka {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--white); background: var(--blue); border-radius: 5px;
  padding: 6px 8px; min-width: 58px; text-align: center; white-space: nowrap;
}
.liga-kompakt .liga-link { display: block; flex: 1; text-align: center; padding: 6px 4px; font-size: 12.5px; font-weight: 600; line-height: 1.2; gap: 0; }
.liga-kompakt .liga-azur { font-size: 11px; color: var(--muted); text-align: left; line-height: 1.3; white-space: nowrap; }
.liga-kompakt .liga-azur span { font-weight: 700; color: var(--red); white-space: nowrap; }

/* ── VESTI IZ CMS-a: ujednacena velicina slova i crvena saveza (poravnanje iz CMS-a ostaje) ── */
.news-body [style*="font-size"], .article-body [style*="font-size"] { font-size: inherit !important; }
.news-body [style*="#ff0000"], .article-body [style*="#ff0000"] { color: var(--red) !important; }

/* ── PRISTUPACNOST: link za preskakanje, vidljiv fokus, vece mete za dodir na telefonu ── */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--white); color: var(--blue); font-weight: 700; padding: 10px 14px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.3); text-decoration: none; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 3px; }
@media (max-width: 768px) {
  #top-bar a { min-height: 44px; display: inline-flex; align-items: center; }
  .liga-kompakt .liga-link { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
/* ==== sajt/delovi/hero-baner.html ==== */
.hb { position: relative; max-width: 1160px; width: calc(100% - 40px); margin: 16px auto 0; background: #04070c; overflow: hidden; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,40,90,.25); }
.hb-slika, .hb-slika img { display: block; width: 100%; height: auto; }
.hb-sadrzaj { position: absolute; left: 40px; top: 0; bottom: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); max-width: 52%; color: #fff; }
.hb-logo { height: clamp(64px, 11vw, 124px); width: auto; flex-shrink: 0; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.hb-naziv { font-size: clamp(24px, 3.8vw, 44px); font-weight: 700; line-height: 1.12; margin: 0; color: #fff; }
.hb-naziv em { font-style: normal; color: #ff6b72; }
/* Telefon: baner se ne prikazuje (opterecuje prikaz) i ne preuzima se velika slika (vidi <source> dole). */
@media (max-width: 768px) {
  .hb { display: none; }
}
/* ==== sajt/delovi/rezultati-uzivo.html ==== */
.uz-red { max-width: 1200px; width: 100%; margin: 0 auto; padding: 16px 20px 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg); }
.uz-pl { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; color: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 2px 10px rgba(0,50,100,.18); transition: transform .15s, box-shadow .15s; }
.uz-pl:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,50,100,.28); color: #fff; text-decoration: none; }
.uz-pl:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.uz-pl.uz-liga { background: linear-gradient(135deg, #004a8f, #0a64b8); }
.uz-pl.uz-turniri { background: linear-gradient(135deg, #a8121a, #d71920); }
.uz-ik { flex: 0 0 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.uz-ik svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uz-tx { flex: 1; min-width: 0; }
.uz-bedz { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; margin-bottom: 3px; }
.uz-bedz i { width: 8px; height: 8px; border-radius: 50%; background: #7cff9b; box-shadow: 0 0 0 0 rgba(124,255,155,.7); animation: uz-puls 1.8s infinite; }
@keyframes uz-puls { 70% { box-shadow: 0 0 0 8px rgba(124,255,155,0); } 100% { box-shadow: 0 0 0 0 rgba(124,255,155,0); } }
.uz-nas { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 0; }
.uz-pod { font-size: 13px; color: rgba(255,255,255,.88); margin-top: 2px; line-height: 1.35; }
.uz-str { flex: 0 0 auto; font-size: 22px; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .uz-bedz i { animation: none; }
  .uz-pl { transition: none; }
  .uz-pl:hover { transform: none; }
}
@media (max-width: 768px) {
  .uz-red { grid-template-columns: 1fr; gap: 12px; padding: 12px 16px 0; }
  .uz-pl { padding: 14px 16px; gap: 14px; }
  .uz-ik { flex-basis: 46px; height: 46px; }
  .uz-nas { font-size: 18px; }
}
/* ==== sajt/delovi/partneri-saveza.html ==== */
.pg-mreza { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.pg-mreza a { display: flex; align-items: center; justify-content: center; height: 56px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pg-mreza a:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0,74,143,.15); text-decoration: none; }
.pg-mreza a.pg-tamna { background: var(--navy); border-color: var(--navy); }
.pg-mreza a.pg-tamna:hover { border-color: var(--blue); }
.pg-mreza a.pg-siroka { grid-column: 1 / 3; justify-content: flex-start; padding: 6px 10px; }
.pg-mreza img { width: auto; height: auto; max-width: 100%; max-height: 36px; display: block; }
.pg-mreza a.pg-siroka img { max-width: 40%; max-height: 40px; flex-shrink: 0; }
.pg-naziv { margin-left: 10px; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--text); }
@media (max-width: 768px) {
  .sidebar-block.pg-blok { flex: 1 1 100%; min-width: 100%; }
}
