/* Hero Slider */
.hero-slider {
  padding-top: 80px;
  background: linear-gradient(135deg, #fef5f6 0%, #fff 50%, #fef5f6 100%);
  overflow: hidden;
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.slide {
  display: none;
  animation: fadeIn 0.5s;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.slider-dots {
  text-align: center;
  margin-top: 30px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Articles */
.articles {
  padding: 80px 0 100px;
}

.articles .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cards .card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cards .card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-footer {
  padding: 20px 24px;
  text-align: center;
}

.btn-learn-more {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid #e40b0b;
  border-radius: 8px;
  color: #e40b0b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-learn-more:hover {
  background: #e40b0b;
  color: #fff;
  transform: translateY(-2px);
}

.cards .card .content {
  padding: 24px;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cards .card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  padding-right: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.author-name {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.article-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.cards .card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
}

.article-intro {
  font-weight: 500;
}

.cards .card .btn {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .slider-container {
    padding: 40px 24px 60px;
  }

  .slide img {
    height: 400px;
  }

  .articles .cards {
    grid-template-columns: 1fr;
  }

  .article-header {
    flex-direction: column;
    gap: 12px;
  }

  .cards .card h3 {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .hero-slider {
    padding-top: 60px;
  }

  .slider-container {
    padding: 30px 16px 40px;
  }

  .slide img {
    height: 350px;
    border-radius: 12px;
  }

  .articles {
    padding: 50px 0 60px;
  }

  .cards .card .content {
    padding: 20px;
  }

  .cards .card h3 {
    font-size: 16px;
  }
}
