/* Jury Section */
#jury {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Swiper Container */
.jury-swiper {
  width: 100%;
  padding: 40px 0 60px 0;
  overflow: visible;
}

.jury-swiper .swiper-slide {
  width: 350px;
  height: auto;
  display: flex;
  justify-content: center;
}

/* Jury Card */
.jury-card {
  width: 100%;
  max-width: 350px;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  position: relative;
}

.jury-card:not(.swiper-slide-active) {
  /* filter: blur(1px) brightness(0.7); */
  transform: scale(0.9);
}

.jury-card.swiper-slide-active {
  transform: scale(1.05);
  filter: none;
}

.jury-card.swiper-slide-active .pixelated-overlay {
  opacity: 0 !important;
}

.jury-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: -30px;
  z-index: 1;
}

.jury-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jury-card:hover .jury-image img,
.jury-card.swiper-slide-active .jury-image img {
  transform: scale(1.1);
}

/* Pixelation Effect */
.pixelated-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  transition: opacity 0.5s ease;
  opacity: 1;
  z-index: 2;
  transition: all 0.4s ease;
}

/* Non-active slides should show pixelation */
.jury-card:not(.swiper-slide-active) .pixelated-overlay {
  opacity: 1;
}

/* Active slide should be completely clear */
.jury-card.swiper-slide-active .pixelated-overlay {
  opacity: 0 !important;
  transition: all 0.4s ease;
}

/* Hover effect for non-active slides */
.jury-card:not(.swiper-slide-active):hover .pixelated-overlay {
  transform: scale(1.1);
}

.jury-info {
  background: linear-gradient(135deg, #ffd700 0%, #ffdd33 100%);
  color: black;
  text-align: center;
  padding: 25px 15px 20px 15px;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.jury-card.swiper-slide-active .jury-info {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.jury-name {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.jury-section {
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 15px 0;
  opacity: 0.8;
}

.jury-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jury-social a {
  color: black;
  font-size: 22px;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jury-social a:hover {
  color: #003aff;
  transform: scale(1.2);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  background: rgba(255, 210, 0, 0.9);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-top: -22px;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  color: black;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #ffd200;
  transform: scale(1.1);
}

/* Swiper Pagination */
.swiper-pagination {
  position: static;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #ffd200;
  transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .jury-swiper .swiper-slide {
    width: 280px;
  }

  .jury-card {
    max-width: 280px;
  }

  .jury-name {
    font-size: 20px;
  }

  .jury-section {
    font-size: 14px;
  }

  .jury-social a {
    font-size: 20px;
    padding: 6px;
  }

  #jury {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .jury-swiper .swiper-slide {
    width: 250px;
  }

  .jury-card {
    max-width: 250px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* Loading state */
.jury-image.loading {
  background: #333;
}

.jury-image.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #666;
  border-top: 3px solid #ffd200;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.jury-description {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 15px;
  max-height: 0;
  /* collapsed by default */
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  /* slight slide down */
  transition: all 0.4s ease;
  /* smooth animation */
  text-align: justify;
  padding: 10px 5px;
}

.jury-card.swiper-slide-active .jury-description {
  max-height: 500px;
  /* expand smoothly */
  opacity: 1;
  transform: translateY(0);
  /* slide up into place */
}
