:root {
  --crvena: #C62828;
  --crvena-tamna: #B71C1C;
  --crvena-svijetla: #FFCDD2;
  --bijela: #FFFFFF;
  --crna: #1A1A1A;
  --siva-tamna: #555555;
  --siva-svijetla: #F5F5F5;
  --bordura: #E0E0E0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--siva-tamna);
  line-height: 1.7;
  background: var(--bijela);
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--crna);
  line-height: 1.25;
}

h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--crna);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--crna);
}

.section {
  padding: 3rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.section-compact {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.section-title {
  border-bottom: 3px solid var(--crvena);
  width: 50px;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head-row .section-title {
  margin-bottom: 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  left: -75%;
  width: 50%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 125%;
}

.btn:active {
  transform: translateY(0) scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crvena), var(--crvena-tamna));
  color: var(--bijela);
  border-color: var(--crvena);
  box-shadow: 0 4px 14px rgba(198,40,40,0.3);
}

.btn-primary:hover {
  border-color: var(--crvena-tamna);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(198,40,40,0.4);
}

.btn-white:hover,
.btn-outline-white:hover {
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--crvena);
  border: 2px solid transparent;
  padding: 10px 6px;
  box-shadow: none;
}

.btn-outline::before {
  content: none;
}

.btn-outline:hover {
  background: rgba(198,40,40,0.08);
  color: var(--crvena-tamna);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-white {
  background: var(--bijela);
  color: var(--crvena);
  border-color: var(--bijela);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.btn-white:hover {
  background: var(--crvena-svijetla);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.btn-outline-white {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  color: var(--bijela);
  border: 2px solid var(--bijela);
}

.btn-outline-white:hover {
  background: var(--bijela);
  color: var(--crvena);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-crveni {
  background: var(--crvena);
  color: var(--bijela);
}

.badge-sivi {
  background: var(--siva-svijetla);
  color: var(--siva-tamna);
  border: 1px solid var(--bordura);
}

.card {
  background: var(--bijela);
  border: 1px solid var(--bordura);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--crvena);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.10);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--crna);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bijela);
  font-size: 18px;
  font-weight: 700;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-logo img {
  height: 34px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  color: #CCCCCC;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--bijela);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--bijela);
  border-bottom: 2px solid var(--crvena);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  color: #CCCCCC;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--bijela);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-toggle.active {
  color: var(--bijela);
  border-bottom: 2px solid var(--crvena);
}

.nav-caret {
  transition: transform 0.15s ease;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 160px;
  padding: 6px;
  background: var(--crna);
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  z-index: 110;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #CCCCCC;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  color: var(--bijela);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-menu a.active {
  color: var(--bijela);
  border-bottom: 2px solid var(--crvena);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social a {
  color: var(--bijela);
  display: flex;
}

.nav-social a:hover {
  color: var(--crvena);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--bijela);
  font-size: 24px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--crna);
  padding: 0.5rem 1rem 1rem;
}

.nav-mobile a {
  color: #CCCCCC;
  font-size: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid #2A2A2A;
}

.nav-mobile a.active {
  color: var(--crvena);
}

.nav-mobile-group summary {
  color: #CCCCCC;
  font-size: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid #2A2A2A;
  cursor: pointer;
}

.nav-mobile-group[open] summary {
  color: var(--bijela);
  border-bottom-color: transparent;
}

.nav-mobile-sublink {
  display: block;
  padding: 10px 8px 10px 24px !important;
  font-size: 13px !important;
  color: #AAAAAA !important;
}

.nav-mobile-sublink.active {
  color: var(--crvena) !important;
  text-decoration: underline;
  text-decoration-color: var(--crvena);
  text-underline-offset: 3px;
}

.nav-mobile.open {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--crna);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 0.8fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bijela);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo svg {
  width: 26px;
  height: 26px;
}

.footer-logo img {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

.footer-tagline {
  color: var(--bijela);
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.footer-copy {
  color: #999999;
  font-size: 12px;
}

.footer h4 {
  color: var(--bijela);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  column-count: 2;
  column-gap: 2rem;
}

.footer-links a {
  display: block;
  break-inside: avoid;
  margin-bottom: 8px;
  color: #AAAAAA;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--bijela);
}

.footer-credit a {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: -2px;
  color: var(--bijela);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-credit a:hover {
  color: var(--crvena);
}

.footer-contact {
  color: #AAAAAA;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--crvena);
}

.footer-contact a {
  color: inherit;
}

.footer-contact a:hover {
  color: var(--bijela);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: var(--bijela);
}

.footer-social a:hover {
  color: var(--crvena);
}

.footer-bottom {
  max-width: 1180px;
  margin: 2rem auto 0;
  border-top: 1px solid #333333;
  padding-top: 1.25rem;
  text-align: center;
  color: #777777;
  font-size: 12px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--siva-svijetla);
  padding: 0.85rem 2rem;
  text-align: center;
}

.page-header h1,
.page-header h2 {
  font-size: 19px;
}

.page-header .intro-text {
  margin-top: 0.5rem;
}

.breadcrumb {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--siva-tamna);
}

.breadcrumb a {
  color: var(--siva-tamna);
}

.breadcrumb a:hover {
  color: var(--crvena);
}

.breadcrumb span {
  color: var(--crvena);
  font-weight: 600;
}

.intro-text {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 15px;
}

/* ===== HOME TOP (hero + stats-bar fill the viewport below the navbar) ===== */
.home-top {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
}

.home-top .hero {
  flex: 1 0 auto;
  min-height: 0;
  /* The stats card overlaps the hero's bottom edge by 70px (see .stats-bar
     margin), so the hero needs that much extra bottom padding or the last
     item in the flow — the scroll cue — ends up covered by the card. */
  padding-bottom: calc(2rem + 70px);
}

/* ===== HERO (index) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bijela);
  padding: 2rem;
  background-size: cover;
  background-position: center 25%;
  overflow: hidden;
}

.hero--viewport {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
}

/* Keeps the two hero CTAs on one row instead of wrapping (which would
   otherwise stack them and push everything below, including the scroll
   cue, further down) down to small phone widths. */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 420px) {
  .hero-buttons {
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    padding: 11px 14px;
    font-size: 12.5px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10,10,10,0.72);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center 45%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: var(--bijela);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--bijela);
  font-size: 46px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.hero p.subtitle {
  color: var(--bijela);
  font-size: 18px;
  opacity: 0.92;
  max-width: 600px;
  margin: 1rem auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-buttons .btn {
  flex-shrink: 0;
}

/* Sits in normal flow right after the CTA(s), not pinned to the hero's
   bottom edge — that way it can never end up hidden behind or clipped by
   the stats card that overlaps the homepage hero's bottom edge. */
.hero-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 1.5rem auto 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--bijela);
  opacity: 0.95;
  animation: hero-scroll-cue-bounce 2.2s ease-in-out infinite;
}

.hero-scroll-cue:hover {
  opacity: 1;
  background: rgba(255,255,255,0.26);
}

@keyframes hero-scroll-cue-bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue {
    animation: none;
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bijela);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.14), 0 2px 10px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 0.7rem 2rem;
  max-width: 1080px;
  width: 100%;
  margin: -70px auto 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.stat-item {
  padding: 0.5rem 0.5rem;
  position: relative;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .stat-item:hover {
    transform: translateY(-4px);
  }

  .stat-item:hover .stat-icon {
    background: var(--crvena);
    color: var(--bijela);
  }
}

.stats-bar > .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--bordura), transparent);
}

.stat-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--crvena-svijetla);
  color: var(--crvena);
  transition: background 0.25s ease, color 0.25s ease;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--crvena) 0%, var(--crvena-tamna) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 12px;
  color: #777777;
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.1rem 1rem;
    row-gap: 1rem;
    border-radius: 14px;
  }

  .stat-item {
    padding: 0.35rem 0.35rem;
  }

  .stats-bar > .stat-item:not(:last-child)::after {
    display: none;
  }

  .stats-bar > .stat-item:nth-child(1)::before,
  .stats-bar > .stat-item:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bordura), transparent);
  }

  .stat-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-number {
    font-size: 19px;
  }

  .stat-label {
    font-size: 10.5px;
  }
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3-tight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== NEWS CARDS ===== */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-img {
  overflow: hidden;
  background: var(--siva-svijetla);
}

.news-card-img img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-body h3 {
  font-size: 17px;
  line-height: 1.35;
}

.news-date {
  font-size: 12px;
  color: #999999;
  display: block;
  margin-top: 1rem;
  align-self: flex-end;
}

.read-more {
  color: var(--crvena);
  font-size: 13px;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--bordura);
  font-size: 13px;
  font-weight: 600;
  color: var(--siva-tamna);
  transition: all 0.15s ease;
}

.page-link:hover {
  border-color: var(--crvena);
  color: var(--crvena);
}

.page-link.active {
  background: var(--crvena);
  border-color: var(--crvena);
  color: var(--bijela);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== NEWS ARTICLE (detail page) ===== */
.article-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.article-header .badge {
  margin-bottom: 1rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 13px;
  color: var(--siva-tamna);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bordura);
}

.article-meta-city {
  color: var(--crvena);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-meta-sep {
  color: var(--bordura);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}

.article-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-images img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--siva-svijetla);
  border-radius: 10px;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-sidebar {
  position: sticky;
  top: 88px;
}

.article-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--siva-tamna);
  border-bottom: 2px solid var(--crvena);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.article-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-news-item {
  display: flex;
  gap: 12px;
}

.sidebar-news-item img {
  width: 88px;
  height: 66px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: var(--siva-svijetla);
  flex-shrink: 0;
}

.sidebar-news-item-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--crna);
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-news-item:hover h4 {
  color: var(--crvena);
}

.sidebar-news-item-body .news-date {
  margin-top: 0;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .sidebar-news-item-body h4 {
    font-size: 14px;
  }
}

/* ===== MATCHES TABLE ===== */
.matches-box {
  background: var(--siva-svijetla);
  border-radius: 10px;
  padding: 1.5rem;
}

.matches-box-embed {
  padding: 0;
  overflow: hidden;
}

.matches-box-embed iframe {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* Crops the sportdc.net header/ad-banner strip, keeps the tabs + standings table, zoomed in a bit */
.matches-box-embed--standings {
  height: 515px;
}

.matches-box-embed--standings iframe {
  height: 530px;
  margin-top: -95px;
  zoom: 1.15;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
}

.matches-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999999;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bordura);
}

.matches-table td {
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--bordura);
  font-size: 14px;
}

.matches-table tr:last-child td {
  border-bottom: none;
}

.host {
  font-weight: 700;
  color: var(--crvena);
}

/* ===== CTA ===== */
.cta {
  background: var(--crna);
  padding: 1rem ;
  text-align: center;
}

.cta h2 {
  color: var(--bijela);
  border: none;
}

.cta p {
  color: var(--bijela);
  opacity: 0.8;
  max-width: 500px;
  margin: 1rem auto 2rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--crvena);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--crvena);
}

.timeline-year {
  color: var(--crvena);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
}

.timeline-item img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 14px;
  border: 1px solid var(--bordura);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ===== TROPHIES ===== */
.trophy-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.trophy-card-body {
  padding: 1.25rem;
}

.trophy-card-body h3 {
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 2.6em;
}

.trophy-meta {
  font-size: 13px;
  color: #777777;
  margin-bottom: 10px;
}

.trophy-card-body .badge {
  margin-bottom: 10px;
}

.trophy-card-body p {
  font-size: 13px;
}

/* ===== COACHES ===== */
.section-treneri {
  max-width: 1500px;
}

.coach-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.treneri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .treneri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .treneri-grid {
    grid-template-columns: 1fr;
  }
}

.coach-card-body {
  padding: 1.25rem;
}

.coach-role {
  display: inline-block;
  color: var(--crvena);
  background: var(--crvena-svijetla);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.coach-divider {
  height: 1px;
  background: var(--bordura);
  margin: 10px 0;
}

.coach-card-body p {
  font-size: 13px;
}

.coach-contact {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  color: #999999;
}

/* ===== TEAMS ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
}

.team-grid > .team-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 360px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-header {
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-card-header svg {
  width: 22px;
  height: 22px;
  color: var(--crvena);
  flex-shrink: 0;
}

.team-players {
  padding: 0 1.5rem;
}

.team-players li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bordura);
  display: flex;
  justify-content: space-between;
}

.team-players li:last-child {
  border-bottom: none;
}

.team-footer {
  background: var(--siva-svijetla);
  padding: 1rem 1.5rem;
  margin-top: auto;
  font-size: 13px;
}

.team-footer strong {
  color: var(--crna);
}

.hero-sm {
  background: var(--crvena);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--bijela);
}

.hero-sm h1 {
  color: var(--bijela);
}

.hero-sm p {
  margin: 0.75rem 0 1.5rem;
  opacity: 0.9;
}

.full-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.info-banner {
  background: var(--crvena-svijetla);
  border-left: 4px solid var(--crvena);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #7a1f1f;
  max-width: 1180px;
  margin: 2.5rem auto 0;
}

.info-banner svg {
  flex-shrink: 0;
  color: var(--crvena);
  width: 22px;
  height: 22px;
}

/* ===== SPONSOR LOGOS ===== */
.sponsor-logos {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 2rem;
}

.sponsor-logo-card {
  transition: transform 0.25s ease;
}

.sponsor-logo-card:hover {
  transform: translateY(-4px);
}

.sponsor-logo-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 6px;
}

.category-card {
  padding: 1.5rem;
}

.category-card svg {
  color: var(--crvena);
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
}

.category-card .age {
  font-size: 13px;
  color: #999999;
  margin-bottom: 0.75rem;
}

.category-card p {
  font-size: 13px;
  margin-bottom: 0.75rem;
}

blockquote {
  background: var(--siva-svijetla);
  border-left: 3px solid var(--crvena);
  padding: 1rem 1.25rem;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--siva-tamna);
}

/* ===== FORMS ===== */
.form-card {
  background: var(--bijela);
  border: 1px solid var(--bordura);
  border-radius: 10px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--crna);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--bordura);
  border-radius: 6px;
  color: var(--crna);
  background: var(--bijela);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--crvena);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--siva-svijetla);
  border-radius: 10px;
  padding: 1.25rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.6rem;
  font-size: 14px;
}

.contact-row svg {
  color: var(--crvena);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a {
  color: var(--crvena);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-row a:hover {
  color: var(--crna);
}

.contact-hours {
  font-size: 13px;
  margin: 1.5rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bordura);
}

.contact-social-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.contact-social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--crvena);
  color: var(--crvena);
  transition: all 0.2s ease;
}

.contact-social-buttons a:hover {
  background: var(--crvena);
  color: var(--bijela);
}

.contact-social-buttons svg {
  width: 20px;
  height: 20px;
}

.map-placeholder {
  height: 220px;
  background: var(--crvena-svijetla);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  text-align: center;
  color: #7a1f1f;
}

.map-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--crvena);
  margin-bottom: 8px;
}

.map-placeholder .map-sub {
  font-size: 12px;
  color: #9b4747;
  margin-top: 4px;
}

/* ===== GALERIJA ===== */
.gallery-item {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bordura);
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-category {
  margin-bottom: 3rem;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--crvena);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bordura);
}

/* Mosaic: 2 tall tiles on top, 3 short tiles below (last one may carry a "+N" badge) */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: 10px;
}

.gallery-mosaic .gallery-item {
  height: 100%;
}

.gallery-mosaic .gallery-item img {
  height: 100%;
}

.gallery-mosaic .gallery-item:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
}

.gallery-mosaic .gallery-item:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1 / 4;
}

.gallery-mosaic .gallery-item:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 4 / 6;
}

.gallery-mosaic .gallery-item:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 4 / 6;
}

.gallery-mosaic .gallery-item:nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 4 / 6;
}

.gallery-item-more {
  position: relative;
}

.gallery-more-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.6);
  color: var(--bijela);
  font-size: 22px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-mosaic .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.94);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--bijela);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

@media (hover: hover) {
  .lightbox-close:hover,
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: var(--crvena);
    border-color: var(--crvena);
  }
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  background: var(--crvena);
  border-color: var(--crvena);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.lightbox-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bijela);
  margin-bottom: 4px;
}

.lightbox-counter {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* ===== MAP EMBED ===== */
.map-embed {
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bordura);
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ===== TRAINING LOCATIONS ===== */
.locations-map {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bordura);
  position: relative;
  isolation: isolate;
  z-index: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links,
  .nav-social {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .locations-map {
    height: 260px;
  }

  .timeline-item img {
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
    object-fit: initial;
  }

  h1 {
    font-size: 28px;
  }

  .matches-table {
    font-size: 12px;
  }

  .matches-table th:nth-child(4),
  .matches-table td:nth-child(4) {
    display: none;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* .reveal's transition shorthand would otherwise clobber .btn's hover
   transitions (box-shadow/background/color get dropped) when both classes
   land on the same element, e.g. the skola.html hero CTA. */
.btn.reveal,
.btn.reveal.is-visible {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, opacity 700ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
