/**
 * Simplified Stories Section Styles
 * Inspired by Apple's minimalist design approach
 */

/* Stories Section */
.stories-section {
  padding: 80px 0;
  background-color: #f5f5f7;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.25rem;
  color: #515154;
  max-width: 700px;
  margin: 0 auto;
}

/* Carousel Container */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 60px; /* Space for arrows */
  overflow: hidden;
}

.stories-carousel-container {
  display: flex;
  position: relative;
  width: 100%;
  height: 450px; /* Fixed height for consistency */
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1); /* Apple-like easing */
  overflow: visible;
}

/* Story Cards */
.story-card-link {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease;
  display: block;
  opacity: 0.4;
  transform: scale(0.9);
}

.story-card-link.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.story-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.story-card-image {
  position: relative;
  height: 65%;
  overflow: hidden;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-card-image img {
  transform: scale(1.05);
}

.story-date {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.story-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #1d1d1f;
}

.story-card-description {
  font-size: 1rem;
  color: #515154;
  margin: 0 20px 20px;
  line-height: 1.5;
}

/* Navigation Arrows */
.arrow-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
}

.arrow-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.arrow-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 125, 250, 0.6);
}

.prev-arrow {
  left: 10px;
}

.next-arrow {
  right: 10px;
}

.arrow-button svg {
  width: 24px;
  height: 24px;
}

/* Pagination Dots */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d2d2d7;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: #1d1d1f;
  transform: scale(1.2);
}

.dot:hover {
  background-color: #a1a1a6;
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background-color: #074a3f;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #044137;
  transform: translateY(-2px);
}

.btn-primary:active {
  background-color: #044137;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 40px;
  }
  
  .stories-carousel-container {
    height: 400px;
  }
  
  .story-card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-subheading {
    font-size: 1rem;
  }
  
  .carousel-wrapper {
    padding: 0 30px;
  }
  
  .stories-carousel-container {
    height: 350px;
  }
  
  .story-card-title {
    font-size: 1.125rem;
    margin: 15px 15px 8px;
  }
  
  .story-card-description {
    font-size: 0.875rem;
    margin: 0 15px 15px;
  }
}