/* Featured Artikel Card (Horizontal Layout) */
.featured-artikel-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: row;
  transition: all 0.3s ease;
}

.featured-artikel-card:hover {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.featured-artikel-image {
  position: relative;
  flex: 0 0 45%;
  min-height: 450px;
  overflow: hidden;
}

.featured-artikel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-artikel-card:hover .featured-artikel-image img {
  transform: scale(1.08);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #FF9D3D 0%, #FF7A00 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 157, 61, 0.4);
  z-index: 2;
}

.featured-badge i {
  font-size: 16px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.featured-artikel-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.featured-excerpt {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 30px;
  background: linear-gradient(135deg, #0D92F4 0%, #667eea 100%);
  border-radius: 3px;
}

/* Normal Artikel Card (Vertical Layout) */
.artikel-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.artikel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.artikel-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.artikel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artikel-card:hover .artikel-image {
  transform: scale(1.1);
}

.artikel-hot-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #FF5722 0%, #E91E63 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.artikel-hot-badge i {
  font-size: 14px;
  animation: fire 1.5s ease-in-out infinite;
}

@keyframes fire {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
}

.artikel-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.artikel-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E3F2FD;
  color: #1976D2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 12px;
}

.artikel-category i {
  font-size: 12px;
}

.artikel-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artikel-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artikel-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.meta-item i {
  font-size: 14px;
}

.meta-item:nth-child(1) i {
  color: #00BCD4; /* Cyan for calendar */
}

.meta-item:nth-child(2) i {
  color: #666; /* Gray for clock */
}

.meta-item:nth-child(3) i {
  color: #9C27B0; /* Purple for eye */
}

.artikel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.artikel-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.action-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.like-btn:hover {
  color: #e91e63;
  background: #fce4ec;
}

.bookmark-btn:hover {
  color: #0D92F4;
  background: #e3f2fd;
}

.share-btn:hover {
  color: #4CAF50;
  background: #e8f5e9;
}

.action-btn i {
  font-size: 16px;
}

.btn-baca-artikel {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-baca-artikel:hover {
  background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  color: #fff;
}

.btn-baca-artikel i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-baca-artikel:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
  .featured-artikel-card {
    flex-direction: column;
  }
  
  .featured-artikel-image {
    flex: none;
    min-height: 350px;
  }
  
  .featured-artikel-content {
    padding: 32px;
  }
  
  .featured-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .featured-artikel-image {
    min-height: 280px;
  }
  
  .featured-artikel-content {
    padding: 24px;
  }
  
  .featured-title {
    font-size: 22px;
  }
  
  .featured-excerpt {
    font-size: 15px;
  }
  
  .section-subtitle {
    font-size: 24px;
  }
  
  .artikel-image-wrapper {
    height: 200px;
  }
  
  .artikel-content {
    padding: 20px;
  }
  
  .artikel-title {
    font-size: 16px;
    min-height: 45px;
  }
  
  .artikel-meta {
    gap: 12px;
  }
  
  .meta-item {
    font-size: 12px;
  }
  
  .artikel-footer,
  .featured-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .artikel-actions {
    justify-content: center;
    margin-bottom: 12px;
  }
  
  .btn-baca-artikel {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .featured-badge,
  .artikel-hot-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .featured-artikel-image {
    min-height: 220px;
  }
  
  .artikel-image-wrapper {
    height: 180px;
  }
}
