/* Predavaci Section Styles */
.predavaci-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.predavaci-section-header .eyebrow {
  background: linear-gradient(90deg, #d9d9d9 0%, #f5f5f5 25%, #bfbfbf 50%, #f5f5f5 75%, #d9d9d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
}

.predavaci-section-header .title {
  background: linear-gradient(90deg, #d9d9d9 0%, #f5f5f5 25%, #bfbfbf 50%, #f5f5f5 75%, #d9d9d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin: 10px 0;
}

/* Hall Containers */
.predavaci-hall-container {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.predavaci-hall-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(217, 217, 217, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Hall Titles */
.hall-title {
  text-align: center;
  margin-bottom: 15px;
}

.hall-name {
  background: linear-gradient(90deg, #d9d9d9 0%, #f5f5f5 25%, #bfbfbf 50%, #f5f5f5 75%, #d9d9d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hall-description {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}

/* Predavaci Carousel Wrapper */
.predavaci-carousel-wrapper {
  height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 420px 80px;
  grid-template-columns: 1fr 30px 30px 30px 30px 30px 30px 30px 30px 30px 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  contain: layout style;
}

/* Carousel Main Container */
.predavaci-carousel-main {
  grid-row: 1 / 2;
  grid-column: 1 / 12;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
  transform-style: preserve-3d;
  perspective: 1200px;
  --items: 11;
  --middle: 5;
  --position: 1;
  pointer-events: none;
  position: relative;
  contain: layout;
}

/* Predavaci Card - restored 3D positioning */
.predavaci-card {
  position: absolute;
  width: 280px;
  height: 320px;
  background: linear-gradient(135deg, #d9d9d9 0%, #f5f5f5 25%, #e6e6e6 50%, #bfbfbf 75%, #d9d9d9 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --r: calc(var(--position) - var(--offset));
  --abs: max(calc(var(--r) * -1), var(--r));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: rotateY(calc(-12deg * var(--r))) translateX(calc(-350px * var(--r)));
  z-index: calc((var(--position) - var(--abs)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  border: 2px solid rgba(153, 153, 153, 0.4);
  backface-visibility: hidden;
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.predavaci-card:hover {
  transform: rotateY(calc(-12deg * var(--r))) translateX(calc(-350px * var(--r))) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(102, 102, 102, 0.7);
  background: linear-gradient(135deg, #e6e6e6 0%, #f5f5f5 25%, #ffffff 50%, #d9d9d9 75%, #e6e6e6 100%);
}

/* Predavaci Icon - using FontAwesome instead of images */
.predavaci-icon {
  font-size: 4rem;
  color: #663a1a;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.predavaci-card:hover .predavaci-icon {
  color: #996633;
  transform: scale(1.1);
}

/* Predavaci Image - for speaker photos */
.predavaci-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(102, 58, 26, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.predavaci-card:hover .predavaci-image {
  border-color: rgba(153, 102, 51, 0.7);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Grayscale filter for specific images */
.predavaci-image.grayscale-image {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.predavaci-card:hover .predavaci-image.grayscale-image {
  filter: grayscale(80%);
}

/* Individual item offsets for 3D positioning */
.predavaci-card:nth-of-type(1) { --offset: 1; }
.predavaci-card:nth-of-type(2) { --offset: 2; }
.predavaci-card:nth-of-type(3) { --offset: 3; }
.predavaci-card:nth-of-type(4) { --offset: 4; }
.predavaci-card:nth-of-type(5) { --offset: 5; }
.predavaci-card:nth-of-type(6) { --offset: 6; }
.predavaci-card:nth-of-type(7) { --offset: 7; }
.predavaci-card:nth-of-type(8) { --offset: 8; }
.predavaci-card:nth-of-type(9) { --offset: 9; }
.predavaci-card:nth-of-type(10) { --offset: 10; }

.predavaci-card:nth-of-type(11) { --offset: 11; }

/* Navigation dots - Hidden */
.predavaci-nav-dot {
  display: none !important;
}

/* Predavaci Info */
.predavaci-info {
  text-align: center;
  z-index: 2;
  position: relative;
}

.predavaci-name {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.predavaci-function {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Predavaci Bio - Hidden by default, shown on hover */
.predavaci-bio {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  color: white;
  padding: 20px;
  border-radius: 0 0 18px 18px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.predavaci-card:hover .predavaci-bio {
  transform: translateY(0);
  opacity: 1;
}

.predavaci-bio p {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* Hide bio for cards without bio data */
.predavaci-card:not([data-speaker]):hover .predavaci-bio,
.predavaci-card .predavaci-bio:empty {
  display: none;
}

/* Arrow navigation buttons */
.predavaci-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(217, 217, 217, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  font-size: 18px;
  color: #663a1a;
}

.predavaci-arrow:hover {
  background: rgba(217, 217, 217, 0.9);
  border-color: #996633;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(153, 102, 51, 0.3);
  color: #996633;
}

.predavaci-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.predavaci-arrow-left {
  left: 20px;
}

.predavaci-arrow-right {
  right: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .predavaci-carousel-wrapper {
    padding: 0 60px;
  }
  
  .predavaci-card {
    min-width: 260px;
    width: 260px;
    height: 280px;
  }
  
  .predavaci-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  
  .predavaci-name {
    font-size: 16px;
  }
  
  .predavaci-function {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .section.predavaci-back.text-center {
    padding: none!important;
    padding: 50px 0;
  }

  .predavaci-hall-container {
    margin-bottom: 15px;
  }
  
  .hall-title {
    margin-bottom: 10px;
  }
  
  .hall-name {
    font-size: 1.3rem;
  }
  
  .hall-description {
    font-size: 13px;
  }
  
  .predavaci-carousel-wrapper {
    padding: 0 40px;
    /* height: 280px; */
  }
  
  .predavaci-card {
    min-width: 240px;
    width: 240px;
    height: 260px;
    padding: 15px;
  }
  
  .predavaci-image {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }
  
  .predavaci-name {
    font-size: 15px;
  }
  
  .predavaci-function {
    font-size: 12px;
  }
  
  .predavaci-bio {
    padding: 15px;
  }
  
  .predavaci-bio p {
    font-size: 11px;
  }
  
  .predavaci-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .predavaci-arrow-left {
    left: 10px;
  }
  
  .predavaci-arrow-right {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .predavaci-section-header {
    margin-bottom: 30px;
  }
  
  .predavaci-section-header .title {
    font-size: 1.6rem;
  }
  
  .predavaci-carousel-wrapper {
    padding: 0 30px;
    /* height: 260px; */
  }
  
  .predavaci-card {
    min-width: 220px;
    width: 220px;
    height: 240px;
    padding: 12px;
  }
  
  .predavaci-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  
  .predavaci-name {
    font-size: 14px;
  }
  
  .predavaci-function {
    font-size: 11px;
  }
  
  .predavaci-bio {
    padding: 12px;
  }
  
  .predavaci-bio p {
    font-size: 10px;
  }
  
  .hall-name {
    font-size: 1.2rem;
  }
  
  .hall-description {
    font-size: 12px;
  }
}

/* Smooth scrolling behavior for carousel */
.predavaci-carousel-main {
  scroll-snap-type: x mandatory;
}

.predavaci-card {
  scroll-snap-align: start;
}

/* Focus states for accessibility */
.predavaci-card:focus {
  outline: 2px solid #996633;
  outline-offset: 2px;
}

.predavaci-arrow:focus {
  outline: 2px solid #996633;
  outline-offset: 2px;
}