/* Featured News Component Optimization Styles */

/* Container Optimization */
.featured-news-section {
  padding: 3rem 0;
}

.featured-news-section .container-fluid {
  max-width: 1600px;
  margin: 0 auto;
}

/* Main Featured Article Card */
.featured-news-section .col-lg-8 .rpl-match-experience-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-news-section .featured-news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-news-section .featured-image {
  height: 280px;
  overflow: hidden;
}

.featured-news-section .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-news-section .featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-news-section .card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-news-section .featured-excerpt {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Sidebar News Items */
.featured-news-section .news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-news-section .news-list .rpl-match-experience-card {
  flex: 1;
  padding: 1rem;
  display: flex;
  cursor: pointer;
}
.featured-news-section .news-list .rpl-match-experience-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.featured-news-section .news-thumbnail {
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.featured-news-section .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-news-section .news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-news-section .small-title {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.featured-news-section .news-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.featured-news-section .news-link {
  margin-top: auto;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.featured-news-section .news-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .featured-news-section .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .featured-news-section .col-lg-8 {
    margin-bottom: 1.5rem;
  }

  .featured-news-section .news-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .featured-news-section .news-list .rpl-match-experience-card {
    width: calc(50% - 0.5rem);
  }
}

@media (max-width: 767.98px) {
  .featured-news-section .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .featured-news-section .news-list {
    flex-direction: column;
  }

  .featured-news-section .news-list .rpl-match-experience-card {
    width: 100%;
  }

  .featured-news-section .featured-image {
    height: 220px;
  }
}

/* Fix for any overflow issues */
.featured-news-section img,
.featured-news-section .card-title,
.featured-news-section .featured-excerpt,
.featured-news-section .news-content {
  max-width: 100%;
}

.featured-news-section .featured-meta {
  gap: 1rem;
}

.featured-news-section .featured-meta span {
  font-size: 0.85rem;
}
