
.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 400s 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;
  }
}

/* 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;
  }
}
