/* Featured Articles Card Styles */
.featured-articles-card {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.featured-articles-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  direction: rtl;
}

/* Main Featured Article */
.main-featured {
  background: #101011;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-header {
  position: relative;
  height: 340px;
  background: linear-gradient(135deg, #E8885D 0%, #E8885D 50%, #E07B5A 100%);
  overflow: hidden;
  border-radius: 24px 0 0 0;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/pattern/dot-circle.svg');
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.featured-icon-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.icon-circle {
  position: relative;
  width: 180px;
  height: 180px;
  background: #2C3E50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 3px dashed #2C3E50;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.featured-icon {
  width: 80px;
  height: 80px;
  color: #E8885D;
}

.featured-badge {
  background: rgba(44, 62, 80, 0.95);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.badge-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.badge-number {
  background: linear-gradient(135deg, #E8885D, #E07B5A);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(232, 136, 93, 0.4);
}

.red-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(224, 47, 58, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(224, 47, 58, 0.35);
  box-shadow: 0 4px 16px rgba(224, 47, 58, 0.2);
  z-index: 0;
}

.red-icon svg {
  width: 32px;
  height: 32px;
}

.featured-content {
  padding: 2.5rem;
  background: #101011;
}

.featured-meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.featured-category {
  background: rgba(224, 47, 58, 0.15);
  color: #E02F3A;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(224, 47, 58, 0.3);
}

.featured-date {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.featured-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.featured-link {
  color: #E02F3A;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
}

/* Side Articles */
.side-articles {
  background: #0a0a0b;
  border-radius: 0 24px 24px 0;
  padding: 2.5rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.side-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.side-articles-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.side-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-article-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.side-article-item:last-child {
  border-bottom: none;
}

.side-article-item:hover {
  background: #141414;
  padding-right: 1.8rem;
}

.side-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.side-article-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.2px;
}

.side-article-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.side-article-date {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 500;
}

.side-article-thumbnail {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
  .featured-articles-container {
    grid-template-columns: 1fr;
  }

  .side-articles {
    order: -1;
  }

  .side-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .featured-header {
    height: 280px;
  }

  .icon-circle {
    width: 140px;
    height: 140px;
  }

  .featured-icon {
    width: 60px;
    height: 60px;
  }

  .featured-title {
    font-size: 1.2rem;
  }

  .side-articles-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FEATURED ARTICLES SECTION
   ============================================ */

.featured-articles-section {
    padding: 3rem 0 4rem;
    background: var(--dark-bg);
}

.featured-articles-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.featured-articles-header svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
}

.featured-articles-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.featured-articles-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .featured-articles-section {
        padding: 2rem 0 3rem;
    }

    .featured-articles-header h2 {
        font-size: 1.5rem;
    }

    .featured-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .main-featured-card {
        min-height: 380px;
    }

    .sidebar-articles-list {
        grid-template-columns: 1fr;
    }
}