.directors-section {
  padding: 4rem 2rem;
  background: #fff;
  position: relative;
}

.directors-header {
  text-align: left;
  margin-bottom: 3rem;
}

.directors-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.directors-header h3 {
  font-style: italic;
  font-weight: 700;
  font-size: 3rem;
  margin: 0;
  color: #00a0fa;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  padding: 0 60px; /* Space for arrows */
}

.directors-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}

.directors-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: #00a0fa;
  border-color: #00a0fa;
  color: white;
}

.carousel-nav:hover svg {
  fill: white;
}

.carousel-nav.prev {
  left: 0px;
}

.carousel-nav.next {
  right: 0px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: #666;
  transition: fill 0.3s ease;
}

.director-card {
  scroll-snap-align: start;
  min-width: 280px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.director-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

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

.director-card h4 {
  margin: 1rem 0 0.25rem;
  font-size: 1.25rem;
  color: #000;
}

.director-card p {
  margin: 0;
  color: #666;
}

/* Popup Styles */
.director-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.popup-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.popup-info .title {
  color: #00a0fa;
  margin-bottom: 1rem;
}

.popup-info .bio {
  line-height: 1.6;
}

/* Hover Effects */
.director-card:hover .director-image img {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .directors-header h2,
  .directors-header h3 {
    font-size: 2rem;
  }

  .carousel-container {
    padding: 0 40px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav svg {
    width: 16px;
    height: 16px;
  }

  .popup-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .popup-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 0 20px;
  }

  .carousel-nav.prev {
    left: 5px;
  }

  .carousel-nav.next {
    right: 5px;
  }
}
