/**
 * Carousel Component Styles
 */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel__container {
  display: flex;
  transition: transform var(--transition-normal);
}

.carousel__item {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel__controls {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  justify-content: center;
}

.carousel__button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gmu-accent-yellow);
  color: var(--gmu-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.carousel__button:hover {
  background: #e6b32e;
  transform: scale(1.1);
}

.carousel__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel__button:disabled:hover {
  transform: none;
}

.carousel__indicators {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.carousel__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 199, 51, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel__indicator--active {
  background: var(--gmu-accent-yellow);
  transform: scale(1.2);
}

/* Resource Carousel Specific */
.resource-carousel__content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.resource-carousel__image {
  width: 294px;
  height: 196px;
  object-fit: cover;
  flex-shrink: 0;
}

.resource-carousel__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 196px;
}

.resource-carousel__title {
  color: var(--gmu-primary-green);
  font-size: var(--font-size-22);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.resource-carousel__description {
  font-size: var(--font-size-16);
  line-height: 1.6;
  white-space: pre-line;
}

/* What's Happening Carousel Specific */
.whats-happening-carousel__content {
  display: flex;
  gap: 6.5rem;
  align-items: flex-start;
}

.whats-happening-carousel__text {
  flex: 1;
  max-width: 640px;
}

.whats-happening-carousel__image {
  width: 385px;
  height: 255px;
  object-fit: cover;
  flex-shrink: 0;
}

.whats-happening-carousel__title {
  color: var(--gmu-white);
  font-size: var(--font-size-20);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
}

.whats-happening-carousel__description {
  color: var(--gmu-white);
  font-size: var(--font-size-16);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1024px) {
  .resource-carousel__content,
  .whats-happening-carousel__content {
    flex-direction: column;
  }

  .resource-carousel__image,
  .whats-happening-carousel__image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .resource-carousel__text,
  .whats-happening-carousel__text {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .carousel-indicators {
    bottom: 0.5rem;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
  
  .resource-carousel__content,
  .whats-happening-carousel__content {
    padding: 1rem;
  }
  
  .resource-carousel__title,
  .whats-happening-carousel__title {
    font-size: var(--font-size-20);
  }
  
  .resource-carousel__description,
  .whats-happening-carousel__description {
    font-size: var(--font-size-14);
  }
}
