/* ===================================
   ARTICLE/NEWS CARD STYLES - PREMIUM ENHANCED
   =================================== */

/* Article Card */
.article-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Gradient Border Accent */
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--accent-color) 0%,
      color-mix(in srgb, var(--accent-color), #6366f1 30%) 50%,
      var(--accent-color) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.article-card:hover::before {
  opacity: 1;
}

/* Decorative Corner */
.article-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 0%, rgba(6, 60, 173, 0.03) 100%);
  border-radius: 0 20px 0 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card:hover::after {
  opacity: 1;
}

.article-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(6, 60, 173, 0.1);
}

/* Article Image Section */
.article-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  /* 5:3 aspect ratio for news */
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.article-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image {
  transform: scale(1.1) rotate(1deg);
}

.article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-card:hover .article-overlay {
  opacity: 1;
}

/* Article Badge (Date) */
.article-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.article-badge i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.article-card:hover .article-badge {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.article-card:hover .article-badge i {
  transform: scale(1.1);
}

/* Article Content Section */
.article-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg,
      var(--accent-color),
      color-mix(in srgb, var(--accent-color), #6366f1 30%));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-category i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.article-card:hover .article-category {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-card:hover .article-category i {
  transform: rotate(360deg);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: transform 0.3s ease;
}

.article-card:hover .article-title {
  transform: translateX(2px);
}

.article-title a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title a:hover {
  color: var(--accent-color);
}

.article-excerpt {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card:hover .article-excerpt {
  color: #4b5563;
}

/* Read More Button */
.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
}

.article-read-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--heading-color) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-read-more i {
  font-size: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-read-more:hover {
  color: var(--heading-color);
  gap: 0.75rem;
}

.article-read-more:hover::after {
  width: 100%;
}

.article-read-more:hover i {
  transform: translateX(6px);
}

.article-card:hover .article-read-more {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-card {
    border-radius: 16px;
  }

  .article-card::after {
    width: 80px;
    height: 80px;
  }

  .article-card:hover {
    transform: translateY(-12px);
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-excerpt {
    font-size: 0.9rem;
  }

  .article-badge {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .article-card {
    border-radius: 12px;
  }

  .article-card::after {
    width: 60px;
    height: 60px;
  }

  .article-card:hover {
    transform: translateY(-8px);
  }

  .article-badge {
    top: 0.75rem;
    right: 0.75rem;
  }
}