/* ============================================
   CAROUSEL.CSS
   Featured articles carousel section
   ============================================ */

.articles-section {
  padding: 120px 72px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.articles-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.articles-header .section-label {
  display: inline-block;
}

.articles-header .section-headline {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 16px;
}

.articles-header .section-body {
  font-size: 16px;
  color: #666;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Carousel layout ---- */
.carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* ---- Slide content ---- */
.slide-image {
  flex: 1;
  height: 600px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.carousel-slide:hover .slide-image img {
  transform: scale(1.02);
}

.slide-content {
  flex: 1;
  padding: 48px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

.slide-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
}

.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--white);
}

.slide-description {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.74);
  margin-bottom: 28px;
  font-weight: 300;
}

.slide-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.slide-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-meta span::before {
  content: '◆';
  font-size: 8px;
}

.slide-meta span:first-child::before {
  content: '';
}

/* ---- Navigation controls ---- */
.carousel-nav {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--red);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255,255,255,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .articles-section { padding: 80px 32px; }
}

@media (max-width: 768px) {
  .carousel-slide { flex-direction: column; }
  .slide-image { height: 300px; order: 1; }
  .slide-content { padding: 32px; order: 2; height: auto; }
  .slide-title { font-size: 28px; }
  .carousel-nav { bottom: 20px; right: 20px; }
  .carousel-dots { bottom: 20px; left: 20px; }
}
