
.sponsors .sponsors-grid {
  margin-top: 20px;
  overflow: hidden;
}

.sponsors .section-heading {
  text-align: center !important;
  margin: 0 auto 24px;
}

.sponsors .section-heading h6,
.sponsors .section-heading h2 {
  text-align: center !important;
}

.sponsors .row {
  display: flex;
  justify-content: center;
}

.sponsors .col-lg-12.text-center {
  display: flex;
  justify-content: center;
}

.sponsors .brands {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sponsors .brands.is-marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  width: max-content;
  animation: sponsors-marquee 200s linear infinite;
  will-change: transform;
}

.sponsors .brand-logo {
  width: 210px;
  min-height: 320px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  text-align: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.sponsors .brand-logo img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.sponsors .brand-logo span {
  color: #1f2c4d;
  font-weight: 600;
  line-height: 1.4;
}

.sponsors .sponsors-grid:hover .brands.is-marquee {
  animation-play-state: paused;
}

@keyframes sponsors-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 575px) {
  .sponsors .brand-logo {
    width: 170px;
    min-height: 260px;
  }
}

/* Static sponsors section - no animation, centered grid */
.sponsors-static .brands {
  display: flex;
  margin: auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 80%;
  animation: none;
}

.sponsors-static .brands.is-marquee {
  animation: none;
}

.sponsors-static .brand-logo {
  width: 100%;
}

@media (max-width: 991px) {
  .sponsors-static .brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .sponsors-static .brands {
    grid-template-columns: 1fr;
  }
}

.sponsors-strip {
  padding: 1.5em 0;
  background: #f3f3f1;
  color: #1d242a;
}

.sponsors-strip__inner {
  max-width: 72em;
  margin: 0 auto;
  padding: 0 2em;
}

.sponsors-strip h2 {
  margin: 0 0 1em;
  color: #1d242a;
  font-size: 0.75em;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.sponsors-strip__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.5em;
  max-width: 54em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sponsors-strip__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 128px;
}

.sponsors-strip__list img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 360px);
  max-height: 120px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .sponsors-strip__inner {
    padding: 0 1em;
  }

  .sponsors-strip__list {
    gap: 0.75em;
  }

  .sponsors-strip__list li {
    min-height: 96px;
  }

  .sponsors-strip__list img {
    max-height: 92px;
  }
}

/* Dokumenti section */
.dokumenti {
  background: #f9f9f9;
}

.dokumenti .dokumenti-table-wrapper {
  margin-top: 30px;
  overflow-x: auto;
}

.dokumenti .dokumenti-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dokumenti .dokumenti-table thead {
  background: #1f2c4d;
}

.dokumenti .dokumenti-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dokumenti .dokumenti-table tbody tr {
  border-bottom: 1px solid #e6e6e6;
  transition: background 0.2s ease;
}

.dokumenti .dokumenti-table tbody tr:hover {
  background: #f5f5f5;
}

.dokumenti .dokumenti-table tbody td {
  padding: 16px 20px;
  color: #333;
  font-size: 15px;
  vertical-align: middle;
}

.dokumenti .dokumenti-table tbody td .fa-file-pdf-o {
  color: #dc3545;
  margin-right: 8px;
}

.dokumenti .dokumenti-table .year-cell {
  font-weight: 700;
  color: #1f2c4d;
  width: 80px;
}

.dokumenti .dokumenti-table .dokument-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1f2c4d;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dokumenti .dokumenti-table .dokument-download:hover {
  background: #2d4263;
}

.dokumenti .dokumenti-table .dokument-download i {
  color: #fff;
  font-size: 14px;
}

@media (max-width: 767px) {
  .dokumenti .dokumenti-table thead th,
  .dokumenti .dokumenti-table tbody td {
    padding: 12px 10px;
    font-size: 13px;
  }
  
  .dokumenti .dokumenti-table .year-cell {
    width: 60px;
  }
}


.gallery .gallery-box {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 22px;
}

.gallery .gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.gallery .gallery-toolbar label {
  margin: 0;
  color: #1f2c4d;
  font-weight: 600;
}

.gallery .gallery-toolbar select {
  min-width: 220px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1f2c4d;
}

.gallery .gallery-stage {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.gallery .gallery-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6fa;
}

.gallery .gallery-frame img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery .gallery-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #7a6ad8;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gallery .gallery-caption {
  margin: 14px 0 0;
  text-align: center;
  color: #5c5d66;
  font-weight: 600;
}

@media (max-width: 767px) {
  .gallery .gallery-stage {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
  }

  .gallery .gallery-frame img {
    height: 320px;
  }

  .gallery .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

.scan-gallery {
  background: #f3f3f1;
  color: #1d242a;
}

.scan-gallery .inner {
  max-width: 84em;
}

.scan-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 auto 1.25em;
  max-width: 78em;
}

.scan-gallery__toolbar label {
  margin: 0;
  color: #1d242a;
  font-weight: 600;
}

.scan-gallery__toolbar select {
  width: auto;
  min-width: 220px;
  margin: 0;
  border: 1px solid #1f2c4d;
  border-radius: 3px;
  color: #1d242a;
}

.scan-gallery__viewer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
  max-width: 78em;
  margin: 0 auto;
}

.scan-gallery__frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: min(68vh, 700px);
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  background: #15191c;
}

.scan-gallery__frame a {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.scan-gallery__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.scan-gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1f2c4d;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  .icon {
    color: #fff;
  }
}

.scan-gallery__nav:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
  .icon {
    color: #000;
  }
}

.scan-gallery__nav:focus-visible,
.scan-gallery__toolbar select:focus-visible,
.scan-gallery__thumb:focus-visible {
  outline: 3px solid #1f2c4d;
  outline-offset: 3px;
}

.scan-gallery__thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 78em;
  margin: 1.25em auto 0;
}

.scan-gallery__thumb {
  flex: 0 1 144px;
  min-width: 0;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #15191c;
  cursor: pointer;
  opacity: 0.68;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.scan-gallery__thumb:hover,
.scan-gallery__thumb[aria-current="true"] {
  border-color: #1f2c4d;
  opacity: 1;
}

.scan-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .scan-gallery__toolbar {
    justify-content: flex-start;
  }

  .scan-gallery__viewer {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .scan-gallery__frame {
    height: min(58vh, 520px);
    min-height: 260px;
  }

  .scan-gallery__nav {
    width: 36px;
    height: 36px;
  }

  .scan-gallery__thumbnails {
    gap: 8px;
  }

  .scan-gallery__thumb {
    flex-basis: 96px;
  }

  .scan-gallery__thumb:first-child,
  .scan-gallery__thumb:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-gallery__nav,
  .scan-gallery__thumb {
    transition: none;
  }
}
