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

/* ===== CURSOR FIX ===== */
body { cursor: default; }

/* Pointer for clickable elements */
a, button, [role="button"], select,
label[for], label.btn,
.nav-links a, .nav-cta, .mobile-menu a,
.footer-links a, .quick-btn, .doc-item,
.news-card, .btn, .tab-btn, .filter-btn,
.about-subnav a, .doc-subnav a,
.sidebar-link, .admin-tab, .folder-tab,
.related-card, .back-link, .btn-edit, .btn-del,
.btn-copy, .media-item, .file-card,
.org-card, .req-card, .activity-card { cursor: pointer; }

/* Text cursor only in form inputs */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"],
input[type="tel"], input[type="url"], textarea,
[contenteditable="true"] { cursor: text; }

/* Allow text selection in content areas */
p, h1, h2, h3, h4, li, td, th, blockquote,
.news-title, .news-excerpt, .post-body,
.timeline-text, .activity-text { user-select: text; -webkit-user-select: text; }

/* Prevent selection on UI chrome */
button, .btn, .badge, .nav, .sidebar, nav,
.admin-tab, .tab-btn, .filter-btn { user-select: none; -webkit-user-select: none; }

button:disabled, input:disabled { cursor: not-allowed; }

:root {
  --navy:       #0d2b4e;
  --navy-dark:  #071a30;
  --navy-mid:   #1a4a7a;
  --red:        #e63a2e;
  --red-dark:   #c42e22;
  --red-light:  #f87d74;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #f0f2f5;
  --gray-200:   #e2e6ec;
  --gray-400:   #9aa3b0;
  --gray-600:   #5a6475;
  --text:       #1e2532;
  --text-muted: #5a6475;
  --border:     rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--red);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 24px; height: 24px; fill: white; }
.nav-logo-text strong { font-size: 15px; color: white; font-weight: 600; display: block; }
.nav-logo-text span { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 1.2px; text-transform: uppercase; }
.nav-links { display: flex; }
.nav-links a {
  color: rgba(255,255,255,0.72); font-size: 13.5px; font-weight: 400;
  padding: 0 14px; height: 68px; display: flex; align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: white; border-bottom-color: var(--red); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: 0.6; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy-dark); min-width: 240px;
  border-top: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
}
.dropdown-menu a {
  display: block; padding: 11px 16px; color: rgba(255,255,255,0.72);
  font-size: 13px; height: auto; border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.05); border-left-color: var(--red); color: white; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-cta {
  background: var(--red); color: white; font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: 7px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: white; border-radius: 2px;
}
.mobile-menu { display: none; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a {
  display: block; padding: 13px 2rem; color: rgba(255,255,255,0.8);
  font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s, padding-left 0.15s;
}
.mobile-menu a.sub { padding-left: 3rem; font-size: 13px; color: rgba(255,255,255,0.55); }
.mobile-menu a:hover { color: white; }
.mobile-menu.open { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy) 100%);
  padding: 56px 2rem 48px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,58,46,0.15) 0%, transparent 68%);
  pointer-events: none;
}
.page-header-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
.page-breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.page-breadcrumb a { color: rgba(255,255,255,0.45); }
.page-breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 38px); color: white; font-weight: 700; }
.page-header p { font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 8px; max-width: 560px; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.page-body { padding: 52px 0; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 36px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: white; border: 1px solid var(--border); border-radius: 10px; padding: 20px;
}
.side-card-title {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.side-card-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-btn {
  background: var(--gray-50); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 10px; text-align: center; font-size: 12.5px; font-weight: 500;
  color: var(--text); display: block;
  transition: background 0.15s, border-color 0.15s;
}
.quick-btn:hover { background: rgba(13,43,78,0.05); border-color: rgba(13,43,78,0.2); }
.quick-btn .qi { font-size: 20px; display: block; margin-bottom: 5px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 15px; height: 15px; fill: var(--navy); }
.contact-label { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 1px; }
.contact-val { font-size: 13.5px; font-weight: 500; }
.contact-val a { color: var(--navy); }
.contact-val a:hover { text-decoration: underline; }

/* ===== CARD ===== */
.card {
  background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500; padding: 11px 22px;
  border-radius: 8px; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }

/* ===== SECTION EYEBROW ===== */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}

/* ===== NEWS CARDS ===== */
.news-grid { display: flex; flex-direction: column; gap: 14px; }
.news-card {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  display: flex; overflow: hidden; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: inherit;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,43,78,0.1); }
.news-accent { width: 4px; flex-shrink: 0; }
.news-accent.red { background: var(--red); }
.news-accent.blue { background: var(--navy-mid); }
.news-accent.gray { background: var(--gray-400); }
.news-body { padding: 16px 20px; flex: 1; }
.news-date { font-size: 11.5px; color: var(--text-muted); margin-bottom: 5px; }
.news-title { font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.news-excerpt { font-size: 13px; color: var(--text-muted); margin-top: 5px; line-height: 1.55; }
.news-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}
.tag-red { background: rgba(230,58,46,0.1); color: var(--red-dark); }
.tag-blue { background: rgba(13,43,78,0.08); color: var(--navy); }
.tag-gray { background: var(--gray-100); color: var(--text-muted); }

/* ===== DOCUMENT LIST ===== */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  background: white; border: 1px solid var(--border); border-radius: 9px;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit;
}
.doc-item:hover { border-color: rgba(13,43,78,0.25); box-shadow: 0 4px 16px rgba(13,43,78,0.07); }
.doc-icon {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(230,58,46,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-icon svg { width: 18px; height: 18px; fill: var(--red); }
.doc-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; flex: 1; }
.doc-arrow { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  background: var(--navy); color: white; font-weight: 500;
  padding: 12px 16px; text-align: left; font-size: 12px; letter-spacing: 0.5px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table td.highlight { font-weight: 700; color: var(--navy); }

/* ===== ORG CHART CARDS ===== */
.org-section { margin-bottom: 32px; }
.org-section h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 10px; border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.org-card {
  background: white; border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px;
}
.org-card-role { font-size: 10px; font-weight: 600; color: var(--red); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 4px; }
.org-card-name { font-size: 14px; font-weight: 500; color: var(--text); }
.org-card-title { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.org-card.president { border-left: 3px solid var(--red); }
.org-card.member { border-left: 3px solid var(--navy-mid); }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  padding: 11px 14px; font-family: 'Outfit', sans-serif; font-size: 14px;
  color: var(--text); background: white; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--text-muted); }

/* ===== SEASON BANNER ===== */
.season-card {
  background: var(--navy); border-radius: 10px; padding: 22px;
  position: relative; overflow: hidden;
}
.season-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,58,46,0.22) 0%, transparent 68%);
}
a.season-card-link {
  display: block; text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
a.season-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.season-card-arrow {
  display: block; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--red-light); position: relative;
}
.season-tag {
  display: inline-block; background: rgba(230,58,46,0.22);
  border: 1px solid rgba(230,58,46,0.4); color: var(--red-light);
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; position: relative;
}
.season-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 6px; position: relative; }
.season-text { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; position: relative; }

/* ===== ABOUT STRIP ===== */
.about-strip { background: var(--navy); padding: 64px 2rem; }
.about-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--red-light); margin-bottom: 14px; }
.about-strip h2 { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 30px); color: white; font-weight: 700; margin-bottom: 16px; }
.about-strip p { font-size: 14.5px; color: rgba(255,255,255,0.62); line-height: 1.8; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; padding: 16px; }
.fact-val { font-size: 20px; font-weight: 700; color: var(--red-light); display: block; margin-bottom: 3px; }
.fact-label { font-size: 11.5px; color: rgba(255,255,255,0.48); }

/* ===== FOOTER ===== */
footer { background: var(--navy-dark); padding: 36px 2rem 28px; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 24px; margin-bottom: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 34px; height: 34px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 20px; height: 20px; fill: white; }
.footer-logo-text strong { font-size: 13px; color: white; display: block; }
.footer-logo-text span { font-size: 10px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #15803d; border-radius: 8px; padding: 14px 18px; font-size: 14px; display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .page-header { padding: 44px 1.5rem 36px; }
  .container { padding: 0 1.5rem; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 28px 1.5rem; }
}

/* ===== SEARCH BUTTON IN NAV ===== */
.nav-search-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 4px;
}
.nav-search-btn:hover { background: rgba(255,255,255,0.18); }

/* ===== ARCHIVE YEAR FILTER ===== */
.archive-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.archive-chip {
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: white;
  font-family: 'Outfit', sans-serif; font-size: 13px;
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
}
.archive-chip:hover { border-color: var(--navy); color: var(--navy); }
.archive-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== PRINT STYLES ===== */
@media print {
  .nav, footer, #nav-placeholder, #footer-placeholder,
  .sidebar, #sidebar-placeholder, .share-bar,
  .back-link, .related-list, .nav-search-btn,
  #searchOverlay, .nav-mobile-toggle, .archive-filter,
  .filter-bar, .btn, button { display: none !important; }

  body { background: white; font-size: 12pt; color: #000; }

  .page-header {
    background: none !important; color: #000 !important;
    padding: 0 0 20px 0; border-bottom: 2px solid #000; margin-bottom: 20px;
  }
  .page-header h1, .page-header p, .page-header .page-breadcrumb { color: #000 !important; }
  .page-header::before { display: none; }

  .post-wrap, .main-wrap, .container { max-width: 100%; padding: 0; display: block; }
  .two-col { display: block; }
  .post-body { font-size: 11pt; line-height: 1.6; }
  .post-gallery { display: none; }
  .news-card, .doc-item { border: 1px solid #ccc; page-break-inside: avoid; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]:after, a[href^="javascript"]:after { content: ""; }

  .print-header { display: block !important; text-align:center; margin-bottom:20px; border-bottom:1px solid #ccc; padding-bottom:10px; }
  .print-footer { display: block !important; text-align:center; margin-top:30px; border-top:1px solid #ccc; padding-top:10px; font-size:9pt; color:#666; }
}
.print-header, .print-footer { display: none; }

/* ============================================================
   DESIGN REFRESH — JP Toplana Tešanj
   ============================================================ */

/* ===== IMPROVED PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, rgba(7,26,48,0.88) 0%, rgba(13,43,78,0.80) 50%, rgba(7,26,48,0.92) 100%),
              url('../slike/pozadina.jpg') center 40% / cover no-repeat;
}

/* ===== BETTER HERO BLOBS ===== */
.hero-blob1, .hero-blob2 { display: none; }

/* ===== HERO BADGE IMPROVED ===== */
.hero-badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: white;
  backdrop-filter: blur(8px);
}
.hero-badge-dot { background: #f87d74; }

/* ===== HERO TEXT SHADOW ===== */
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-sub { text-shadow: 0 1px 8px rgba(0,0,0,0.2); }

/* ===== STATS BAR REFRESH ===== */
.stats-bar {
  background: white;
  border-bottom: none;
  box-shadow: 0 4px 24px rgba(13,43,78,0.08);
}
.stat-item {
  padding: 24px 2rem;
  transition: background 0.2s;
}
.stat-item:hover { background: var(--gray-50); }
.stat-val { font-size: 28px; }

/* ===== CARD IMPROVEMENTS ===== */
.card, .side-card, .info-card, .calc-card, .form-card {
  box-shadow: 0 2px 12px rgba(13,43,78,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(13,43,78,0.1); }

/* ===== NEWS CARDS ===== */
.news-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13,43,78,0.05);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13,43,78,0.12);
}
.news-accent { width: 5px; border-radius: 0; }

/* ===== NAV IMPROVEMENTS ===== */
.nav {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner { height: 72px; }
.nav-links a { height: 72px; font-size: 14px; }

/* ===== NAV LOGO ===== */
.nav-logo img { filter: none; }

/* ===== BUTTONS REFRESH ===== */
.btn-primary, .btn-hero-primary {
  box-shadow: 0 4px 14px rgba(230,58,46,0.35);
}
.btn-primary:hover, .btn-hero-primary:hover {
  box-shadow: 0 6px 20px rgba(230,58,46,0.45);
  transform: translateY(-2px);
}
.btn-outline, .btn-hero-outline {
  border-width: 1.5px;
}

/* ===== SEASON CARD ===== */
.season-card {
  background: linear-gradient(135deg, #0d2b4e 0%, #1a4a7a 100%);
  box-shadow: 0 6px 24px rgba(13,43,78,0.25);
}

/* ===== DOC ITEMS ===== */
.doc-item {
  border-radius: 10px;
  transition: all 0.2s;
}
.doc-item:hover {
  border-color: var(--navy);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(13,43,78,0.08);
}
.doc-icon {
  background: rgba(230,58,46,0.08);
  border-radius: 10px;
  width: 42px; height: 42px;
}
.doc-icon svg { fill: var(--red); }

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: linear-gradient(135deg, #071a30 0%, #0d2b4e 40%, #071a30 100%);
  position: relative; overflow: hidden;
}
.about-strip::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,58,46,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.fact-card {
  border-radius: 10px;
  transition: transform 0.2s;
}
.fact-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

/* ===== FOOTER REFRESH ===== */
footer {
  background: linear-gradient(180deg, #071a30 0%, #040f1e 100%);
}

/* ===== PAGE HEADER CONTENT ===== */
.page-header {
  padding: 64px 2rem 52px;
}
.page-header h1 {
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.page-header p {
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ===== QUICK BUTTONS IN SIDEBAR ===== */
.quick-btn {
  border-radius: 10px;
  transition: all 0.15s;
  font-size: 13px;
}
.quick-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,43,78,0.2);
}
.quick-btn .qi { font-size: 22px; margin-bottom: 6px; }

/* ===== MAP FRAME ===== */
.map-frame {
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  height: 260px;
}

/* ===== CONTACT ROWS ===== */
.contact-icon {
  background: rgba(13,43,78,0.07);
  border-radius: 10px;
  width: 36px; height: 36px;
  transition: background 0.15s;
}
.contact-row:hover .contact-icon { background: rgba(13,43,78,0.14); }

/* ===== SIDE CARD TITLE ===== */
.side-card-title {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ===== ORG CARDS ===== */
.org-card {
  border-radius: 10px;
  transition: all 0.2s;
}
.org-card:hover {
  box-shadow: 0 4px 16px rgba(13,43,78,0.1);
  transform: translateY(-1px);
}
.org-card.president { border-left-width: 4px; }

/* ===== TIMELINE ===== */
.timeline-dot {
  width: 16px; height: 16px;
  box-shadow: 0 0 0 3px rgba(230,58,46,0.2);
}
.timeline-title { font-size: 16px; }

/* ===== TABLE ===== */
.data-table th {
  background: var(--navy);
  font-size: 11.5px;
  letter-spacing: 0.8px;
}

/* ===== SPEC TABLE ===== */
.spec-table td:last-child { color: var(--navy); font-weight: 600; }

/* ===== ACTIVITY CARDS ===== */
.activity-card {
  border-radius: 12px;
  border-left: 4px solid var(--red);
  transition: all 0.2s;
}
.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,43,78,0.1);
}

/* ===== ABOUT SUBNAV ===== */
.about-subnav a, .doc-subnav a {
  border-radius: 8px;
  font-size: 13.5px;
  transition: all 0.15s;
}
.about-subnav a:hover:not(.active), .doc-subnav a:hover:not(.active) {
  background: rgba(13,43,78,0.05);
  border-color: rgba(13,43,78,0.2);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: rgba(13,43,78,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,43,78,0.5); }

/* ===== SELECTION COLOUR ===== */
::selection { background: rgba(13,43,78,0.15); color: var(--navy); }

/* ===== SMOOTH TRANSITIONS GLOBAL ===== */
a, button { transition: all 0.15s ease; }

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 580px) {
  .hero { padding: 70px 1.5rem 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .stat-val { font-size: 22px; }
}

/* ===== SECTION EYEBROW IMPROVEMENT ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* ===== NEWS CARD IMPROVEMENTS ===== */
.news-tag {
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.news-title { font-size: 15px; font-weight: 500; line-height: 1.5; }
.news-date { font-size: 12px; }

/* ===== SIDEBAR SEASON CARD ===== */
.season-card {
  border-radius: 12px;
  overflow: hidden;
}
.season-tag {
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* ===== QUICK BTNS ===== */
.quick-grid { gap: 10px; }

/* ===== MAP STRIP ===== */
.map-strip { background: #f4f6f9; }
.map-info h3 { font-size: 24px; font-weight: 700; }

/* ===== MOBILE NAV MENU ===== */
.mobile-menu a.sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding-left: 2.5rem;
}
.mobile-menu a.mobile-parent {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-top: 10px;
  padding-bottom: 6px;
  border-bottom: none;
  pointer-events: none;
  cursor: default;
}

/* ===== ABOUT FACTS GRID ===== */
.facts-grid { gap: 14px; }
.fact-val { font-size: 22px; }

/* ===== CONTACT PAGE IMPROVEMENTS ===== */
.bank-item {
  border-radius: 9px;
  transition: background 0.15s;
}
.bank-item:hover { background: var(--gray-100); }
.bank-num { letter-spacing: 1px; }

/* ===== FORM IMPROVEMENTS ===== */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(13,43,78,0.08);
}

/* ===== LOADING STATE ===== */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f2f5 25%, #e8eaed 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: white; border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,43,78,0.3);
  display: none;
  align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 80;
}
#backToTop.visible { display: flex; }
#backToTop:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,58,46,0.35); }

/* ===== HERO IMAGE SUBTLE ANIMATION ===== */
@keyframes heroZoom {
  from { background-size: 105%; }
  to { background-size: 100%; }
}
.hero { animation: heroZoom 8s ease forwards; }

/* ===== IMPROVED DROPDOWN ===== */
.dropdown-menu {
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}
.dropdown-menu a {
  padding: 12px 16px;
  font-size: 13.5px;
}

/* ===== TABS STYLING ===== */
.tabs { gap: 4px; }
.tab-btn {
  border-radius: 6px 6px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 18px;
}
.tab-btn.active { font-weight: 500; }

/* ===== FILTER CHIPS ===== */
.filter-btn, .archive-chip {
  font-size: 12.5px;
  border-radius: 20px;
  font-weight: 400;
}

/* ===== STD CARD ===== */
.std-card {
  border-radius: 10px;
  transition: all 0.2s;
}
.std-card:hover {
  box-shadow: 0 6px 20px rgba(13,43,78,0.1);
  transform: translateY(-1px);
}
.std-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== IMPROVED ABOUT-STRIP FACTS ===== */
@media (max-width: 580px) {
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact-val { font-size: 18px; }
  .fact-label { font-size: 11px; }
}

/* ===== STATS BAR WITH ICONS ===== */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-item:hover .stat-val { color: var(--red); }
.stat-item:hover { background: rgba(13,43,78,0.03); }

/* ============================================================
   MAJOR DESIGN UPGRADE v10
   ============================================================ */

/* ===== REMOVE OLD HERO ANIMATION (conflicts with parallax) ===== */
.hero { animation: none !important; }

/* ===== PARALLAX HERO ===== */
.hero {
  background-attachment: fixed !important;
  background-position: center 30% !important;
  min-height: 480px;
  display: flex;
  align-items: center;
}
@supports (-webkit-overflow-scrolling: touch) {
  /* iOS doesn't support background-attachment:fixed, use scroll instead */
  .hero { background-attachment: scroll !important; }
}
.hero-inner { padding: 20px 0; }

/* ===== HERO CONTENT FADE IN ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge  { animation: fadeUp 0.6s ease both 0.1s; }
.hero h1     { animation: fadeUp 0.6s ease both 0.25s; }
.hero-sub    { animation: fadeUp 0.6s ease both 0.4s; }
.hero-actions { animation: fadeUp 0.6s ease both 0.55s; }
.hero-stats  { animation: fadeUp 0.6s ease both 0.7s; }

/* ===== PAGE HEADER PARALLAX ===== */
.page-header {
  background-attachment: fixed !important;
  background-position: center 40% !important;
}
@supports (-webkit-overflow-scrolling: touch) {
  .page-header { background-attachment: scroll !important; }
}

/* ===== BETTER OVERLAY for hero ===== */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,26,48,0.15) 0%,
    rgba(7,26,48,0.0) 40%,
    rgba(7,26,48,0.5) 100%
  );
  pointer-events: none;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Fallback: auto-reveal after 1.2s in case observer doesn't fire */
  animation: revealFallback 0.6s ease 1.2s forwards;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAV LOGO FIX ===== */
.nav-logo img {
  filter: none !important;
  height: 44px;
  width: auto;
}

/* ===== NAV GLASS EFFECT ON SCROLL ===== */
.nav.scrolled {
  background: rgba(7,26,48,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Fix hero on mobile */
  .hero {
    background-attachment: scroll !important;
    min-height: 70vh;
    padding: 60px 1.5rem 50px;
    align-items: flex-end;
  }
  .hero::after { background: linear-gradient(to bottom, rgba(7,26,48,0.3) 0%, rgba(7,26,48,0.7) 100%); }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
  .hero-stats { max-width: 100%; }
  .hero-stat-val { font-size: 20px; }

  /* Fix page header on mobile */
  .page-header {
    background-attachment: scroll !important;
    padding: 40px 1.5rem 32px;
  }

  /* Nav fixes */
  .nav-inner { padding: 0 1.2rem; height: 60px; }
  .nav-logo img { height: 36px; }
  .nav-logo-text { display: none; }

  /* Stats bar */
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-item { padding: 16px 1rem; }
  .stat-val { font-size: 20px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  /* Two col to single */
  .main-wrap { grid-template-columns: 1fr !important; padding: 28px 1.5rem; }
  .two-col { grid-template-columns: 1fr !important; }
  .sidebar { order: -1; }

  /* About strip */
  .about-inner { grid-template-columns: 1fr !important; gap: 28px; }
  .about-strip { padding: 44px 1.5rem; }
  .about-strip h2 { font-size: 22px; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Map */
  .map-inner { grid-template-columns: 1fr !important; }
  .map-frame { height: 200px; }

  /* Cards */
  .news-card { border-radius: 10px; }
  .news-body { padding: 13px 14px; }
  .news-title { font-size: 14px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px; flex-wrap: wrap; }
  .footer-copy { flex-direction: column; gap: 4px; }

  /* Back to top */
  #backToTop { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }

  /* Page body */
  .container { padding: 0 1.5rem; }
  .page-body { padding: 32px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; display: block; padding: 14px; }
  .hero-stats { display: none; } /* too cramped on very small screens */
  .stat-val { font-size: 18px; }
  .about-strip h2 { font-size: 20px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr !important; }
  .nav-logo-text { display: none; }
}

/* ===== CARD HOVER ANIMATIONS ===== */
.news-card {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(13,43,78,0.14);
}

.doc-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.doc-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 18px rgba(13,43,78,0.1);
}

.fact-card {
  transition: transform 0.2s ease, background 0.2s ease;
}
.fact-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12) !important;
}

.quick-btn {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.15s, box-shadow 0.2s;
}
.quick-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(13,43,78,0.18);
}

/* ===== BUTTON ANIMATIONS ===== */
.btn-primary, .btn-hero-primary, .nav-cta {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, background 0.2s;
}
.btn-primary:hover, .btn-hero-primary:hover, .nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn-primary:active, .btn-hero-primary:active {
  transform: translateY(0) scale(0.98);
}

/* ===== SIDEBAR LINKS ANIMATION ===== */
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--red);
  transition: left 0.25s ease, right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0; right: 0;
}
/* Remove old border-bottom approach */
.nav-links a { border-bottom: none !important; }

/* ===== IMPROVED PAGE HEADER ===== */
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(26px, 4vw, 42px); }

/* ===== IMPROVED SEASON CARD ===== */
.season-card {
  background: linear-gradient(135deg, #0d2b4e 0%, #1a4a7a 60%, #0d2b4e 100%) !important;
}

/* ===== STATS BAR NUMBER COUNT ANIMATION ===== */
.stat-val { transition: color 0.2s; }

/* ===== IMPROVED ABOUT FACTS ===== */
.fact-val {
  background: linear-gradient(135deg, #f87d74, #e63a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== IMPROVED CONTACT FORM ===== */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(13,43,78,0.08);
  outline: none;
}

/* ===== IMPROVED MAP STRIP ===== */
.map-strip { background: var(--gray-50); }
.map-detail svg { transition: transform 0.2s; }
.map-detail:hover svg { transform: scale(1.2); }

/* ===== TIMELINE ANIMATION ===== */
.timeline::before {
  background: linear-gradient(to bottom, var(--red), var(--navy));
}
.timeline-dot {
  background: var(--red);
  animation: pulse 2s infinite;
}
.timeline-item:last-child .timeline-dot { animation: none; background: var(--navy); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230,58,46,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(230,58,46,0.1); }
}

/* ===== MOBILE MENU ANIMATION ===== */
.mobile-menu {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
  display: block !important;
  border-top: none;
}
.mobile-menu.open {
  max-height: 85vh;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== NOTIFICATION BADGE on nav ===== */
.nav-notif {
  position: relative;
}
.nav-notif-dot {
  position: absolute;
  top: 14px; right: 8px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--navy);
}

/* ===== IMPROVED SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(13,43,78,0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(13,43,78,0.45); }

/* ===== LOADING SCREEN ===== */
#pageLoader {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#pageLoader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 80px; margin-bottom: 20px; animation: fadeUp 0.5s ease both; }
.loader-bar {
  width: 120px; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  animation: loadBar 0.8s ease forwards;
}
@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   NOVOSTI v2 — kartice sa slikama
   ============================================================ */
.news-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.news-card-v2 {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(13,43,78,0.05);
}
.news-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(13,43,78,0.14);
}
.nc-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-100);
}
.nc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-card-v2:hover .nc-thumb img { transform: scale(1.06); }
.nc-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.nc-thumb-ph.nc-red  { background: linear-gradient(135deg, #e63a2e, #c42e22); }
.nc-thumb-ph.nc-blue { background: linear-gradient(135deg, #1a4a7a, #0d2b4e); }
.nc-thumb-ph.nc-gray { background: linear-gradient(135deg, #6b7785, #4a5563); }
.nc-thumb-ph svg { width: 44px; height: 44px; opacity: 0.85; }
.nc-star {
  position: absolute; top: 10px; left: 10px;
  background: rgba(245,158,11,0.95);
  color: white; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nc-body {
  padding: 16px 18px 14px;
  display: flex; flex-direction: column;
  flex: 1;
}
.nc-body .news-tag { align-self: flex-start; margin-bottom: 8px; }
.nc-title {
  font-size: 15.5px; font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 8px;
}
.nc-excerpt {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.nc-date { font-size: 12px; color: var(--text-muted); }
.nc-more { font-size: 12.5px; font-weight: 600; color: var(--red); transition: transform 0.2s; }
.news-card-v2:hover .nc-more { transform: translateX(3px); }

@media (max-width: 580px) {
  .news-grid-v2 { grid-template-columns: 1fr; gap: 16px; }
  .nc-thumb { height: 180px; }
}

/* ===== SINGLE POST — velika slika ===== */
.post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(13,43,78,0.12);
}
.post-gallery-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.post-gallery-v2 img {
  width: 100%; height: 150px;
  object-fit: cover; border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-gallery-v2 img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(13,43,78,0.15);
}

/* ============================================================
   HERO SLIDER v15 (rad-tesanj.ba stil + naš color palette)
   ============================================================ */
.hero-slider {
  position: relative;
  height: 88vh;
  min-height: 560px;
  max-height: 760px;
  overflow: hidden;
  margin-top: -72px; /* pull up under transparent header */
}
.hslide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease, visibility 1s;
}
.hslide.active {
  opacity: 1;
  visibility: visible;
  animation: hslideZoom 7s ease-out forwards;
}
@keyframes hslideZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hslide-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 2rem 0;
  width: 100%;
  color: white;
}
.hslide-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white; font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 24px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease both 0.2s;
}
.hslide-badge-green { background: rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.35); }
.hslide-badge-red { background: rgba(230,58,46,0.18); border-color: rgba(230,58,46,0.4); }
.hslide-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.hslide h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  animation: fadeUp 0.7s ease both 0.35s;
}
.hslide h1 em { color: var(--red-light); font-style: normal; }
.hslide p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 34px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
  animation: fadeUp 0.7s ease both 0.5s;
}
.hslide-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease both 0.65s;
}

/* Dots */
.hslide-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px;
  z-index: 5;
}
.hdot {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.35);
  border: none; border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.hdot.active { background: var(--red); width: 56px; }
.hdot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* Arrows */
.hslide-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white; font-size: 28px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.hslide-arrow:hover { background: rgba(230,58,46,0.85); transform: translateY(-50%) scale(1.08); }
.hslide-prev { left: 24px; }
.hslide-next { right: 24px; }

/* ===== TRANSPARENT HEADER ===== */
.nav {
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(7,26,48,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
/* On pages without hero (inner pages), header should be solid by default */
/* inner pages also use transparent header (Opcija A) */

/* Hero slider responsive */
@media (max-width: 768px) {
  .hero-slider { height: 80vh; min-height: 480px; margin-top: -60px; }
  .hslide-content { padding: 70px 1.5rem 0; }
  .hslide-arrow { width: 42px; height: 42px; font-size: 22px; }
  .hslide-prev { left: 10px; }
  .hslide-next { right: 10px; }
  .hslide h1 { font-size: clamp(28px, 8vw, 40px); }
}
@media (max-width: 480px) {
  .hslide-actions { flex-direction: column; }
  .hslide-actions a { width: 100%; text-align: center; }
  .hslide-arrow { display: none; }
}


/* ============================================================
   v17 — PLAVA GLASSMORPHISM TEMA + ANIMACIJE
   ============================================================ */

/* ===== POZADINA: tamno-plavi gradijent sa slikom ===== */
body {
  position: relative;
  background: #0d2b4e;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(13,43,78,0.86) 0%, rgba(7,26,48,0.94) 55%, rgba(10,34,64,0.97) 100%),
    url('../slike/pozadina.jpg') center top / cover no-repeat fixed;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(26,74,122,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(230,58,46,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(13,43,78,0.2) 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 768px) {
  body::before { background-attachment: scroll; }
}

/* ===== STATS BAR — tamno staklo ===== */
.stats-bar {
  background: linear-gradient(135deg, rgba(230,58,46,0.22), rgba(196,46,34,0.16)) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(230,58,46,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.stats-bar .stat-item { border-right: 1px solid rgba(255,255,255,0.12); }
.stats-bar .stat-val { color: white !important; }
.stats-bar .stat-label { color: rgba(255,255,255,0.6) !important; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-item:hover .stat-val { color: var(--red-light) !important; }

/* ===== MAIN — content na transparentnoj plavoj ===== */
main { position: relative; z-index: 2; }
.main-wrap { color: white; }
.eyebrow { color: var(--red-light) !important; }
.tabs { border-bottom-color: rgba(255,255,255,0.15); }
.tab-btn { color: rgba(255,255,255,0.6); }
.tab-btn.active { color: white; border-bottom-color: var(--red); }
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.9); }

/* ===== NEWS CARDS — tamno staklo ===== */
.news-card-v2 {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}
.news-card-v2:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.nc-title { color: white; }
.nc-excerpt { color: rgba(255,255,255,0.6); }
.nc-date { color: rgba(255,255,255,0.45); }
.nc-foot { border-top-color: rgba(255,255,255,0.1); }
.nc-thumb { background: rgba(0,0,0,0.2); }

/* ===== SIDEBAR cards — tamno staklo ===== */
.side-card {
  background: rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.side-card-title { color: rgba(255,255,255,0.5) !important; }
.side-card-title::after { background: rgba(255,255,255,0.1) !important; }
.contact-label { color: rgba(255,255,255,0.45) !important; }
.contact-val, .contact-val a { color: white !important; }
.contact-icon { background: rgba(255,255,255,0.1) !important; }
.contact-icon svg { fill: var(--red-light) !important; }
.quick-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important;
}
.quick-btn:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}

/* Season card stays as is (already dark) but enhance */
.season-card {
  background: linear-gradient(135deg, rgba(230,58,46,0.9), rgba(196,46,34,0.85)) !important;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

/* ===== MAP STRIP — transparentno tamno ===== */
.map-strip {
  background: rgba(7,26,48,0.4) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.map-info h3 { color: white; }
.map-info p { color: rgba(255,255,255,0.65); }
.map-detail { color: rgba(255,255,255,0.85); }

/* ===== ABOUT STRIP — već tamna, dodaj staklo ===== */
.about-strip {
  background: rgba(7,26,48,0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.fact-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}

/* ===== Visual divider — suptilniji ===== */

/* ===== FOOTER ===== */
footer { position: relative; z-index: 2; background: rgba(4,15,30,0.92) !important; backdrop-filter: blur(10px); }

/* ============================================================
   ANIMACIJE — scroll reveal (sa garantovanim fallbackom)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback: ako JS ne okine za 2s, prikaži */
.no-js-reveal .reveal { opacity: 1 !important; transform: none !important; }

/* Staggered cards */
.news-grid-v2 .news-card-v2 {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.news-grid-v2.cards-in .news-card-v2 { opacity: 1; transform: translateY(0) scale(1); }
.news-grid-v2.cards-in .news-card-v2:nth-child(1){transition-delay:.05s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(2){transition-delay:.12s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(3){transition-delay:.19s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(4){transition-delay:.26s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(5){transition-delay:.33s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(6){transition-delay:.40s;}
.news-grid-v2.cards-in .news-card-v2:nth-child(n+7){transition-delay:.45s;}

/* Fact cards stagger */
.facts-grid .fact-card {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.facts-grid.facts-in .fact-card { opacity: 1; transform: translateY(0); }
.facts-grid.facts-in .fact-card:nth-child(2){transition-delay:.1s;}
.facts-grid.facts-in .fact-card:nth-child(3){transition-delay:.2s;}
.facts-grid.facts-in .fact-card:nth-child(4){transition-delay:.3s;}

/* ===== INNER PAGES — plava glass tema (kao homepage) ===== */
body.solid-header { background: #0d2b4e; }
body.solid-header::before {
  background:
    linear-gradient(180deg, rgba(13,43,78,0.88) 0%, rgba(7,26,48,0.95) 55%, rgba(10,34,64,0.97) 100%),
    url('../slike/pozadina.jpg') center top / cover no-repeat fixed;
}
body.solid-header::after {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(26,74,122,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(230,58,46,0.1) 0%, transparent 55%);
}

/* Page header — transparentniji da se vidi pozadina */
body.solid-header .page-header {
  background: linear-gradient(135deg, rgba(13,43,78,0.5), rgba(7,26,48,0.6));
}
body.solid-header .page-header::before { opacity: 0.5; }

/* Cards — tamno staklo */
body.solid-header .side-card,
body.solid-header .card,
body.solid-header .news-card-v2,
body.solid-header .doc-item,
body.solid-header .req-card,
body.solid-header .std-card,
body.solid-header .activity-card,
body.solid-header .org-card,
body.solid-header .fact-card,
body.solid-header .calc-card,
body.solid-header .form-card,
body.solid-header .info-card-sm {
  background: rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e8ecf2;
}
body.solid-header .side-card:hover,
body.solid-header .news-card-v2:hover,
body.solid-header .doc-item:hover { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.22) !important; }

/* Text colors on inner pages */
body.solid-header { color: #e8ecf2; }
body.solid-header .nc-title,
body.solid-header .doc-name,
body.solid-header .req-title,
body.solid-header .std-title,
body.solid-header .activity-title,
body.solid-header .org-card-name,
body.solid-header .map-info h3,
body.solid-header h2, body.solid-header h3 { color: #ffffff; }
body.solid-header .nc-excerpt,
body.solid-header .nc-date,
body.solid-header .req-desc,
body.solid-header .std-text,
body.solid-header .activity-text,
body.solid-header .org-card-title,
body.solid-header .timeline-text,
body.solid-header .map-info p,
body.solid-header p { color: rgba(255,255,255,0.7); }
body.solid-header .eyebrow { color: var(--red-light) !important; }
body.solid-header .side-card-title { color: rgba(255,255,255,0.5) !important; }
body.solid-header .side-card-title::after { background: rgba(255,255,255,0.12) !important; }
body.solid-header .contact-val, body.solid-header .contact-val a { color: #fff !important; }
body.solid-header .contact-label { color: rgba(255,255,255,0.45) !important; }
body.solid-header .contact-icon { background: rgba(255,255,255,0.1) !important; }
body.solid-header .contact-icon svg { fill: var(--red-light) !important; }
body.solid-header .quick-btn { background: rgba(255,255,255,0.06) !important; color:#fff !important; border:1px solid rgba(255,255,255,0.12) !important; }
body.solid-header .quick-btn:hover { background: var(--red) !important; border-color:var(--red) !important; }
body.solid-header .doc-icon { background: rgba(230,58,46,0.18) !important; }
body.solid-header .nc-thumb { background: rgba(0,0,0,0.25); }

/* Tabs / filters / subnavs on inner pages */
body.solid-header .filter-btn,
body.solid-header .archive-chip,
body.solid-header .doc-subnav a,
body.solid-header .about-subnav a,
body.solid-header .page-tab {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15);
}
body.solid-header .filter-btn.active,
body.solid-header .archive-chip.active,
body.solid-header .doc-subnav a.active,
body.solid-header .about-subnav a.active,
body.solid-header .page-tab.active { background: var(--navy); color:#fff; border-color: var(--navy); }

/* Tables on inner pages */
body.solid-header .data-table td { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }
body.solid-header .spec-table td { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }
body.solid-header .spec-table td:last-child { color: #fff; }

/* Form inputs on inner pages */
body.solid-header .fg input, body.solid-header .fg select, body.solid-header .fg textarea,
body.solid-header .fg2 input, body.solid-header .fg2 select, body.solid-header .fg2 textarea,
body.solid-header input[type=text], body.solid-header input[type=email], body.solid-header input[type=tel],
body.solid-header input[type=number], body.solid-header textarea, body.solid-header select {
  background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.18) !important; color:#fff !important;
}
body.solid-header input::placeholder, body.solid-header textarea::placeholder { color: rgba(255,255,255,0.4) !important; }

/* Map / about / season already adapt */
body.solid-header .map-strip { background: rgba(7,26,48,0.4) !important; }
body.solid-header .calc-note, body.solid-header .info-box { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.7) !important; border-color: rgba(255,255,255,0.12) !important; }
body.solid-header .calc-result { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

/* ===== POTPIS ===== */
/* ===== POTPIS ===== */
.footer-copy a { transition: color 0.2s; }
.footer-copy a:hover { color: var(--red-light) !important; }

/* ===== PAGINACIJA ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 32px; flex-wrap: wrap;
}
.pg-btn {
  min-width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border-radius: 9px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  padding: 0 10px;
}
.pg-btn:hover:not(:disabled):not(.active) { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.pg-btn.active { background: var(--red); border-color: var(--red); color: white; }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
/* Light theme pagination on solid-header pages handled by blue theme above */


/* ===== Map info na homepage (tamna tema) ===== */
.map-info h3 { color: #fff !important; }
.map-info p { color: rgba(255,255,255,0.7) !important; }
.map-detail { color: rgba(255,255,255,0.85) !important; }
.map-detail svg { fill: var(--red-light) !important; }

/* ============================================================
   v19 — FIX svih nevidljivih plavih tekstova na tamnoj temi
   ============================================================ */
body.solid-header .ic-text a,
body.solid-header .ic-title,
body.solid-header .slider-val-box,
body.solid-header .cmp-val,
body.solid-header .form-sec-title,
body.solid-header .calc-title,
body.solid-header .map-info p a,
body.solid-header .info-box a,
body.solid-header .calc-note a {
  color: #fff !important;
}
body.solid-header .slider-val-box { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !important; }
body.solid-header .cmp-item { background: rgba(255,255,255,0.07) !important; border-color: rgba(255,255,255,0.15) !important; }
body.solid-header .cmp-item.ours { border-color: var(--red) !important; background: rgba(230,58,46,0.12) !important; }
body.solid-header .cmp-lbl { color: rgba(255,255,255,0.6) !important; }
body.solid-header .cmp-val { color: var(--red-light) !important; }
body.solid-header .form-sec-title { color: var(--red-light) !important; border-color: rgba(255,255,255,0.15) !important; }
body.solid-header .calc-title { color: #fff !important; }
body.solid-header .slider-lbl { color: #fff !important; }
body.solid-header .range-limits { color: rgba(255,255,255,0.5) !important; }
body.solid-header .fg2 label, body.solid-header .fg label { color: rgba(255,255,255,0.85) !important; }

/* tip-chip / prio-btn na tamnoj temi */
body.solid-header .tip-chip { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
body.solid-header .tip-chip.active { background: var(--red); color:#fff; border-color: var(--red); }
body.solid-header .prio-btn { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.15); }
body.solid-header .prio-btn.active { background: rgba(230,58,46,0.15); color:#fff; border-color: var(--red); }

/* Success box — ostaje zelen ali čitljiv */
.form-success { background: rgba(34,197,94,0.12) !important; border: 1px solid rgba(34,197,94,0.4) !important; }
.form-success h3 { color: #4ade80 !important; }
.form-success p { color: rgba(255,255,255,0.85) !important; }
.form-success p a { color: #4ade80 !important; }

/* Contact form success na kontakt stranici */
.success-msg { background: rgba(34,197,94,0.12) !important; border:1px solid rgba(34,197,94,0.4) !important; color:#4ade80 !important; }

/* Generic: any inline navy text on inner pages → light */
body.solid-header [style*="color:var(--navy)"],
body.solid-header [style*="color: var(--navy)"] { color: #fff !important; }

/* Map info h3 "Kako do nas" on inner pages */
body.solid-header .map-info h3 { color: #fff !important; }

/* O nama / timeline / spec table headings */
body.solid-header .timeline-title { color: #fff !important; }
body.solid-header .timeline-year { color: var(--red-light) !important; }
body.solid-header .spec-table td:first-child { color: rgba(255,255,255,0.6) !important; }

/* Kontakt page specifics */
body.solid-header .info-group h3 { color: #fff !important; }
body.solid-header .bank-name { color: rgba(255,255,255,0.6) !important; }
body.solid-header .bank-num { color: #fff !important; }
body.solid-header .bank-item { background: rgba(255,255,255,0.06) !important; }
body.solid-header .legal-row { color: rgba(255,255,255,0.8) !important; border-color: rgba(255,255,255,0.1) !important; }
body.solid-header .legal-row span:last-child { color: #fff !important; }
body.solid-header .info-row a { color: #fff !important; }
body.solid-header .info-row svg { fill: var(--red-light) !important; }

/* ============================================================
   v19 — PAGE TRANSITIONS + LOAD ANIMACIJE
   ============================================================ */
/* Fade-in cijele stranice pri učitavanju */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
main, .page-header { animation: pageIn 0.5s ease both; }

/* Page header sadržaj slide-up */
@keyframes headerUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-header-inner > * { animation: headerUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.page-header-inner > *:nth-child(1) { animation-delay: 0.05s; }
.page-header-inner > *:nth-child(2) { animation-delay: 0.15s; }
.page-header-inner > *:nth-child(3) { animation-delay: 0.25s; }

/* Section eyebrow underline grow */
.eyebrow::before { transition: width 0.4s ease; }

/* Filter chips pop-in */
.filter-bar .filter-btn, .archive-chip {
  animation: chipIn 0.4s ease both;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Smooth hover lift on all cards */
.card, .side-card, .doc-item, .news-card-v2, .fact-card, .org-card, .std-card {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Sidebar links smooth */
.sb-link, .nav-links a { transition: all 0.2s ease; }

/* Page fade-out on navigation (set by JS) */
body.page-leaving { opacity: 0; transition: opacity 0.25s ease; }


/* ============================================================
   HOMEPAGE LAYOUT — čist, sekcije pune širine (v23)
   ============================================================ */

/* Univerzalni section wrapper */
.sec { position: relative; z-index: 2; padding: 60px 2rem; }
.sec-inner { max-width: 1200px; margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  color: #fff; font-weight: 700; margin-top: 4px;
}
.see-all {
  font-size: 14px; font-weight: 600; color: var(--red-light);
  text-decoration: none; white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}
.see-all:hover { color: #fff; transform: translateX(4px); }

/* ===== BRZI PRISTUP — 4 kartice ===== */
.quick-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.qcard {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 30px 26px 52px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.qcard::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.qcard:hover { transform: translateY(-8px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.qcard:hover::before { transform: scaleX(1); }
.qcard-icon { font-size: 38px; margin-bottom: 16px; display: inline-block; transition: transform 0.3s; }
.qcard:hover .qcard-icon { transform: scale(1.15) rotate(-6deg); }
.qcard h3 { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.qcard p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.qcard-arrow { position: absolute; bottom: 24px; right: 26px; font-size: 20px; color: var(--red-light); transition: transform 0.3s; }
.qcard:hover .qcard-arrow { transform: translateX(6px); }

/* ===== NOVOSTI — 3 kolone ===== */
.sec-news .news-grid-v2 { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ===== INFO ROW — 3 boxa ===== */
.info-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
.info-box-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column;
}
.info-box-card.season-card {
  background: linear-gradient(135deg, rgba(230,58,46,0.92), rgba(196,46,34,0.82));
  border: 1px solid rgba(255,255,255,0.15);
}
.info-box-card.season-card .season-tag { background: rgba(255,255,255,0.2); color: #fff; border: none; }
.info-box-card.season-card .season-title { color: #fff; font-size: 18px; }
.info-box-card.season-card .season-text { color: rgba(255,255,255,0.9); }
.ibc-title {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.ibc-title::after { content:''; flex:1; height:1px; background: rgba(255,255,255,0.12); }
.info-box-card .contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.info-box-card .contact-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-box-card .contact-icon svg { width: 15px; height: 15px; fill: var(--red-light); }
.info-box-card .contact-label { font-size: 10px; color: rgba(255,255,255,0.5); display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.info-box-card .contact-val { font-size: 14px; color: #fff; font-weight: 500; }
.info-box-card .contact-val a { color: #fff; text-decoration: none; }
.info-box-card .contact-val a:hover { color: var(--red-light); }
.ibc-btn { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; font-weight: 600; color: var(--red-light); text-decoration: none; transition: color 0.2s, transform 0.2s; }
.ibc-btn:hover { color: #fff; transform: translateX(3px); }
.ibc-map { border-radius: 12px; overflow: hidden; height: 150px; border: 1px solid rgba(255,255,255,0.15); margin-top: auto; }
.ibc-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== HISTORIJAT ===== */
.sec-histo { padding-bottom: 72px; }
.histo-wrap {
  background: linear-gradient(150deg, rgba(13,43,78,0.5), rgba(7,26,48,0.4));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 44px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.histo-h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3vw, 32px); color: #fff; font-weight: 700; margin: 8px 0 16px; }
.histo-p { font-size: 15px; color: rgba(255,255,255,0.72); line-height: 1.85; margin-bottom: 26px; }
.histo-btn { display: inline-block; background: var(--red); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 26px; border-radius: 9px; text-decoration: none; box-shadow: 0 4px 14px rgba(230,58,46,0.3); transition: all 0.2s; }
.histo-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,58,46,0.4); }
.histo-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hf { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 13px; padding: 22px 20px; transition: transform 0.25s, background 0.25s; }
.hf:hover { transform: translateY(-3px); background: rgba(255,255,255,0.13); }
.hf-val { display: block; font-size: 24px; font-weight: 700; color: var(--red-light); line-height: 1.1; }
.hf-lbl { display: block; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .quick-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sec-news .news-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .info-grid-3 { grid-template-columns: 1fr; }
  .histo-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}
@media (max-width: 600px) {
  .sec { padding: 44px 1.25rem; }
  .quick-grid-4 { grid-template-columns: 1fr; }
  .sec-news .news-grid-v2 { grid-template-columns: 1fr; }
  .histo-right { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v24 — Fix SVIH preostalih plavih tekstova (objava + korisnici)
   ============================================================ */
/* Pojedinačna objava (objava/index.html) — solid-header dark theme */
body.solid-header .post-body h2,
body.solid-header .post-body h3,
body.solid-header .post-docs h3,
body.solid-header .post-body strong { color: #fff !important; }
body.solid-header .post-body { color: rgba(255,255,255,0.82) !important; }
body.solid-header .post-body p { color: rgba(255,255,255,0.82) !important; }
body.solid-header .post-body a { color: var(--red-light) !important; }
body.solid-header .post-body li { color: rgba(255,255,255,0.82) !important; }
body.solid-header .post-body blockquote { color: rgba(255,255,255,0.7) !important; background: rgba(255,255,255,0.05) !important; }
body.solid-header .back-link { color: rgba(255,255,255,0.6) !important; }
body.solid-header .back-link:hover { color: #fff !important; }
body.solid-header .related-card { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.12) !important; }
body.solid-header .related-card-title { color: #fff !important; }
body.solid-header .related-card-date { color: rgba(255,255,255,0.5) !important; }
body.solid-header .post-meta .post-date { color: rgba(255,255,255,0.6) !important; }
body.solid-header h1[style*="color:var(--navy)"],
body.solid-header h1[style*="var(--navy)"] { color: #fff !important; }
body.solid-header .share-btn { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
body.solid-header .share-btn:hover { background: rgba(255,255,255,0.16) !important; }

/* Korisnici — sve inline navy → svijetlo */
body.solid-header [style*="color:var(--navy)"] { color: #fff !important; }
body.solid-header .ic-text a { color: var(--red-light) !important; }
body.solid-header .calc-note a, body.solid-header .calc-note strong { color: var(--red-light) !important; }
body.solid-header .calc-note { color: rgba(255,255,255,0.7) !important; }

/* Post hero h1 dynamically inserted */
body.solid-header .post-header h1 { color: #fff !important; }

/* ============================================================
   v24 — DODATNA MOBILNA OPTIMIZACIJA
   ============================================================ */
@media (max-width: 768px) {
  /* Sekcije */
  .sec { padding: 40px 1.25rem; }
  .sec-head { margin-bottom: 24px; }
  .sec-title { font-size: 22px; }

  /* Hero slider mobilni */
  .hero-slider { height: auto; min-height: 480px; }
  .hslide-content { padding: 80px 1.5rem 40px; }
  .hslide h1 { font-size: 26px; line-height: 1.2; }
  .hslide p { font-size: 14px; }
  .hslide-actions { flex-direction: column; gap: 10px; }
  .hslide-actions a { width: 100%; text-align: center; }
  .hslide-arrow { display: none; }

  /* Stats traka mobilni */
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 18px 12px; }

  /* Info row map manji */
  .ibc-map { height: 140px; }
}

@media (max-width: 480px) {
  .sec { padding: 32px 1rem; }
  .qcard { padding: 24px 22px 48px; }
  .hf-val { font-size: 20px; }
  .histo-wrap { padding: 24px; }
  /* Footer credit wrap */
  .footer-copy { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-copy p { flex-wrap: wrap; }
}

/* Touch targets — sva dugmad min 44px na mobilnom */
@media (max-width: 768px) {
  .nav-cta, .btn, .qcard, .pg-btn, .filter-btn, .archive-chip { min-height: 42px; }
  .hdot { height: 6px; }
}

/* Spriječi horizontalni scroll na mobilnom */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .sec-inner, .container, .main-wrap { max-width: 100%; }
}

/* ============================================================
   v25 — Fix slabo vidljivih tekstova
   ============================================================ */
/* Cjenovnik bar labels (gradovi) — bili tamno sivi, sad svijetli */
body.solid-header .price-bar-label { color: rgba(255,255,255,0.85) !important; }
body.solid-header .price-bar-val { color: #fff !important; }
body.solid-header .price-bar-track { background: rgba(255,255,255,0.12) !important; }
body.solid-header .bar-chart-card,
body.solid-header #barChart { color: #fff; }
body.solid-header #barChart p { color: rgba(255,255,255,0.7) !important; }

/* Season-tag "Aktuelno" u crvenom boxu — bio tamno-crven na crvenom */
.season-tag {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  font-weight: 700 !important;
}
.info-box-card.season-card .season-tag {
  background: rgba(255,255,255,0.28) !important;
  color: #fff !important;
}

/* Korisnički servis — dodatni fix za slabo vidljive */
body.solid-header .calc-card,
body.solid-header .form-card { color: rgba(255,255,255,0.85) !important; }
body.solid-header .calc-card div,
body.solid-header .form-card div { color: inherit; }
body.solid-header .slider-row span,
body.solid-header .slider-lbl { color: #fff !important; }
body.solid-header .res-lbl { color: rgba(255,255,255,0.65) !important; }
body.solid-header .res-val { color: #fff !important; }
body.solid-header .res-val.hi { color: var(--red-light) !important; }
body.solid-header .info-card-sm { color: rgba(255,255,255,0.85) !important; }
body.solid-header .ic-title { color: #fff !important; }
body.solid-header .ic-text { color: rgba(255,255,255,0.65) !important; }
body.solid-header .form-success p { color: rgba(255,255,255,0.85) !important; }
body.solid-header .hint, body.solid-header .fg .hint, body.solid-header .fg2 .hint { color: rgba(255,255,255,0.5) !important; }

/* ============================================================
   v25 — CRVENI ODSJAJ (glow) na svim dugmadima — stabilno
   ============================================================ */
/* Univerzalni glow na hover za sva dugmad i akcijske elemente */
.btn, .btn-primary, .btn-hero-primary, .nav-cta,
.qcard, .histo-btn, .see-all, .ibc-btn,
.page-tab, .filter-btn, .archive-chip, .pg-btn,
.tip-chip, .prio-btn, .doc-subnav a, .about-subnav a,
.quick-btn, .btn-red {
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover glow */
.btn-primary:hover, .btn-hero-primary:hover, .nav-cta:hover,
.histo-btn:hover, .btn-red:hover,
.page-tab:hover, .filter-btn:hover, .archive-chip:hover,
.tip-chip:hover, .prio-btn:hover, .pg-btn:hover:not(:disabled),
.doc-subnav a:hover, .about-subnav a:hover, .quick-btn:hover {
  box-shadow: 0 4px 18px rgba(230,58,46,0.4);
}

/* Active state glow (stabilan — bez animacije koja glitcha) */
.page-tab.active, .filter-btn.active, .archive-chip.active,
.tip-chip.active, .prio-btn.active, .pg-btn.active {
  box-shadow: 0 4px 16px rgba(230,58,46,0.4) !important;
}

/* Click feedback */
.btn:active, .page-tab:active, .filter-btn:active, .qcard:active,
.tip-chip:active, .prio-btn:active, .pg-btn:active {
  transform: scale(0.97);
}

/* qcard glow on hover (already lifts, add red glow) */
.qcard:hover { box-shadow: 0 20px 50px rgba(230,58,46,0.25) !important; }


/* ============================================================
   v26 — Transparentan header na SVIM stranicama (Opcija A)
   ============================================================ */
/* Page header na unutrašnjim stranicama ide ispod providnog headera */
body.solid-header .page-header {
  margin-top: -72px;
  padding-top: 120px !important;
}
@media (max-width: 768px) {
  body.solid-header .page-header { margin-top: -60px; padding-top: 90px !important; }
}


/* Transparentna stats traka */
.stats-bar {
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}
.stats-bar .stat-item { border-right: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   v27 — Timeline linije + sitne popravke
   ============================================================ */
/* Timeline vertikalna linija — bila plava/tamna, sad svijetla */
body.solid-header .timeline::before {
  background: linear-gradient(to bottom, var(--red-light), rgba(255,255,255,0.2)) !important;
}
.timeline::before { background: linear-gradient(to bottom, var(--red), rgba(13,43,78,0.3)); }
body.solid-header .timeline-dot { background: var(--red) !important; box-shadow: 0 0 0 3px rgba(230,58,46,0.25) !important; }
body.solid-header .timeline-item:last-child .timeline-dot { background: var(--red-light) !important; }

/* ============================================================
   v30 — TEMELJNA MOBILNA OPTIMIZACIJA
   ============================================================ */
@media (max-width: 900px) {
  /* Sve sekcije */
  .sec, .quick-services, .info-row-section { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  .sec-inner, .qs-inner, .info-row-inner, .about-inner, .map-inner { max-width: 100% !important; }

  /* Brzi pristup → 2 kolone */
  .quick-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Novosti → 2 kolone */
  .sec-news .news-grid-v2, .news-grid-v2 { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }

  /* Info → 1 kolona */
  .info-grid-3 { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Historijat → 1 kolona */
  .histo-wrap { grid-template-columns: 1fr !important; gap: 24px !important; padding: 28px !important; }
}

@media (max-width: 600px) {
  /* Hero slider */
  .hero-slider { min-height: 70vh !important; }
  .hslide { position: absolute !important; inset: 0; }
  .hslide-content { padding: 90px 1.2rem 50px !important; }
  .hslide h1 { font-size: 27px !important; line-height: 1.15 !important; }
  .hslide p { font-size: 14px !important; }
  .hslide-actions { flex-direction: column !important; gap: 10px !important; width: 100%; }
  .hslide-actions a { width: 100% !important; text-align: center !important; box-sizing: border-box; }
  .hslide-arrow { display: none !important; }
  .hslide-dots { bottom: 16px !important; }

  /* Stats traka → 2x2 */
  .stats-bar { grid-template-columns: 1fr 1fr !important; }
  .stat-item { padding: 16px 10px !important; }
  .stat-val { font-size: 19px !important; }
  .stat-label { font-size: 11px !important; }

  /* Brzi pristup → 1 kolona */
  .quick-grid-4 { grid-template-columns: 1fr !important; }
  .qcard { padding: 22px 20px 44px !important; }

  /* Novosti → 1 kolona */
  .sec-news .news-grid-v2, .news-grid-v2 { grid-template-columns: 1fr !important; }
  .nc-thumb { height: 170px !important; }

  /* Sekcije manje padding */
  .sec, .quick-services, .info-row-section { padding-top: 36px !important; padding-bottom: 36px !important; }
  .sec-title, .qs-title { font-size: 22px !important; }

  /* Historijat */
  .histo-h2 { font-size: 22px !important; }
  .histo-right { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .hf { padding: 16px 14px !important; }
  .hf-val { font-size: 19px !important; }

  /* Info kartice */
  .info-box-card { padding: 20px !important; }
  .ibc-map { height: 160px !important; }

  /* Nav */
  .nav-inner { padding: 0 1rem !important; }
  .nav-logo-text { display: none !important; }
  .nav-logo img { height: 36px !important; }

  /* Page header (unutrašnje stranice) */
  .page-header h1 { font-size: 24px !important; }
  .page-header p { font-size: 14px !important; }

  /* Footer */
  .footer-inner { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .footer-links { flex-wrap: wrap !important; gap: 12px !important; }
  .footer-copy { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .footer-copy p { flex-wrap: wrap !important; font-size: 11px !important; }

  /* Two-col (unutrašnje stranice) */
  .two-col { grid-template-columns: 1fr !important; gap: 20px !important; }
  .sidebar { order: -1; }

  /* Tabele scroll */
  .data-table, .spec-table { font-size: 13px !important; }

  /* Korisnički servis */
  .page-tabs { gap: 8px !important; }
  .page-tab { padding: 10px 16px !important; font-size: 13px !important; }
  .calc-result, .info-cards { grid-template-columns: 1fr !important; }
  .prio-row { flex-wrap: wrap !important; }
  .prio-btn { min-width: calc(50% - 5px) !important; }

  /* Objava (single post) */
  .post-wrap { grid-template-columns: 1fr !important; padding: 90px 1.2rem 40px !important; }
  .post-hero-img { max-height: 240px !important; }
  .post-gallery-v2 { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 400px) {
  .stats-bar { grid-template-columns: 1fr 1fr !important; }
  .histo-right { grid-template-columns: 1fr 1fr !important; }
  .hslide h1 { font-size: 23px !important; }
}

/* Spriječi horizontalni scroll svuda na mobilnom */
@media (max-width: 900px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  img, iframe { max-width: 100% !important; }
  .ibc-map iframe, .map-frame iframe, .sidebar-map iframe { height: 100% !important; }
}

/* ============================================================
   v31 — MOBILNI FIX: org kartice, subnav, tabele, ostalo
   ============================================================ */
@media (max-width: 768px) {
  /* Org kartice — stack na mobilnom */
  .org-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* Doc i about subnav — wrap, ne bježe van ekrana */
  .doc-subnav, .about-subnav {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .doc-subnav a, .about-subnav a {
    font-size: 12px !important;
    padding: 7px 12px !important;
    white-space: nowrap;
  }

  /* Nabavke/doc tabele — horizontalni scroll umjesto overflow */
  .tbl-wrap, .data-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Page tabs — na telefonu wrapaju u novi red (sve vidljivo odmah),
     umjesto skrivenog horizontalnog scrolla koji odsijeca zadnji tab */
  .page-tabs {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 2px;
  }
  .page-tab { white-space: nowrap !important; }

  /* Kontakt forma — jednocolonska */
  .contact-form .form-row { grid-template-columns: 1fr !important; }

  /* Dok items ne bježe van */
  .doc-item { word-break: break-word; }

  /* Archive filter chips */
  .archive-filter { flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
  /* Org card title manji font */
  .org-card-name { font-size: 15px !important; }
  .org-card-role { font-size: 11px !important; }

  /* About subnav — puni width buttoni */
  .about-subnav a { flex: 1 1 auto !important; text-align: center !important; }
  .doc-subnav a   { flex: 1 1 auto !important; text-align: center !important; }
}

/* ============================================================
   v32 — Dark tema: btn-outline i form-group label fix
   ============================================================ */
/* Dugme za preuzimanje (btn-outline) na dark pozadini — mora biti vidljivo */
body.solid-header .btn-outline {
  border-color: rgba(255,255,255,0.5) !important;
  color: rgba(255,255,255,0.9) !important;
}
body.solid-header .btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* form-group labele (kontakt forma) — tamne na dark temi */
body.solid-header .form-group label {
  color: rgba(255,255,255,0.85) !important;
}
body.solid-header .form-note {
  color: rgba(255,255,255,0.5) !important;
}

/* ============================================================
   v33 — MJERODAVNI MOBILNI SLOJ (rješava overflow + razmake)
   Dodano na kraj namjerno: pobjeđuje u kaskadi, ne dira
   postojeća pravila. Cilja dva prijavljena problema:
   1) sadržaj izlazi van ekrana (horizontalni scroll)
   2) sadržaj zalijepljen uz ivicu / previše zbijen
   ============================================================ */
@media (max-width: 768px) {

  /* ---- 1. KORIJENSKA ZAŠTITA OD OVERFLOWA ----
     Ništa se ne smije šire od ekrana. Umjesto pukog
     overflow:hidden (koji odsijeca), uklapamo same elemente. */
  img, svg, video, canvas, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
  }
  iframe { width: 100% !important; }

  /* Duge riječi / URL-ovi / e-mailovi ne smiju gurati layout */
  p, li, a, td, th, h1, h2, h3, h4, span, div, .post-body, .info-row, .legal-row {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Tabele: skrolaju UNUTAR svog okvira, ne guraju cijelu stranicu */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Bilo koji grid sa fiksnim minmax kolonama → jedna kolona,
     da ne prekorači uske ekrane (npr. minmax(280px,1fr)) */
  .news-grid-v2, .post-gallery-v2, .org-grid, .quick-grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Flex/grid djeca sa dugim tekstom (npr. email u kartici Korisničkog
     servisa) MORAJU moći da se skupe — inače min-width:auto razvuče
     karticu šire od ekrana i sve vire preko desne ivice. */
  .info-card-sm, .info-card-sm > *,
  .info-cards, .info-row, .info-row > * {
    min-width: 0 !important;
  }
  .ic-text, .ic-text a, .info-row a, .bank-num {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* KORIJEN PROBLEMA desne ivice: grid kolona (.two-col dijete) po
     defaultu ne smije biti uža od svog najšireg sadržaja (min-width:auto).
     Red tabova sa nowrap dugmadima ima min. širinu ~500px+, pa ta širina
     razvuče CIJELU kolonu šire od ekrana i sav sadržaj probija desno.
     min-width:0 dozvoljava koloni da stane u ekran, a preširoki redovi
     (tabovi) onda skrolaju unutar sebe kako je i zamišljeno. */
  .two-col > *, .post-wrap > *, .main-wrap > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .page-tabs { max-width: 100% !important; }

  /* Sigurnosna mreža: presiječe slučajni horizontalni scroll
     BEZ skrivanja korisnog sadržaja (jer je sve gore uklopljeno) */
  html, body { overflow-x: hidden; max-width: 100%; }
  body > * { max-width: 100vw; }

  /* ---- 2. UJEDNAČEN RAZMAK UZ IVICE ----
     Garantujemo isti komforni gutter (16px) na SVAKOM glavnom
     wrapperu, da ništa ne bude prilijepljeno uz ivicu ni dupli padding. */
  .container,
  .post-wrap,
  .main-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Sekcije početne već imaju .sec gutter — poravnavamo na isto */
  .sec { padding-left: 16px !important; padding-right: 16px !important; }
  /* Unutrašnji wrapperi NE dobijaju dodatni padding (izbjegavamo dupli).
     VAŽNO: .page-body je NAMJERNO izostavljen — on dijeli isti element sa
     .container (class="container page-body"), pa bi mu nuliranje poništilo
     gutter koji .container postavlja. Njegov horizontalni padding je ionako 0. */
  .sec-inner, .page-header-inner { padding-left: 0 !important; padding-right: 0 !important; }
  /* page-header sam nosi gutter */
  .page-header { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Vrlo uski telefoni (≤380px) — jedna kolona svuda + manji gutter */
@media (max-width: 380px) {
  .news-grid-v2, .post-gallery-v2, .org-grid, .quick-grid-4,
  .stats-bar, .histo-right {
    grid-template-columns: 1fr !important;
  }
  .container, .post-wrap, .main-wrap, .sec, .page-header {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
