/* Featured Articles Slider Styles */

.featured-container {
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Prevent slides from peeking through */
}

/* Arrow sections - 5% each */
.featured-nav-section {
  width: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  position: relative;
}

.featured-nav-section:hover {
  background: #f9fafb;
}

/* Content section - 90% */
.featured-content-section {
  width: 90%;
  overflow: hidden;
}

.featured-slider {
  width: 100%;
  height: 100%;
}

.featured-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform; /* GPU acceleration hint */
}

.featured-slide {
  flex: 0 0 100%; /* Exact width, not min-width */
  display: flex;
  flex-direction: row;
  height: 280px;
  text-decoration: none !important;
}

.featured-slide:hover {
  text-decoration: none !important;
}

.featured-image {
  width: 40%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.featured-image-placeholder {
  font-size: 72px;
  color: #4a5568;
  z-index: 1;
}

.featured-article-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  position: relative;
}

.featured-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1a202c;
  line-height: 1.3;
}

.featured-content .featured-meta {
  font-size: 13px;
  color: #718096;
  margin-bottom: 16px;
  font-weight: 500;
}

.featured-content .featured-description {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation Arrows */
.featured-nav {
  background: transparent;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 32px;
  color: #4a5568;
  padding: 0;
}

.featured-nav:hover {
  color: #2d3748;
}

.featured-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured-nav:disabled:hover {
  color: #4a5568;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .featured-container {
    margin-bottom: 40px;
  }
  
  .featured-nav-section {
    width: 10%;
  }
  
  .featured-content-section {
    width: 80%;
  }
  
  .featured-slide {
    flex-direction: column;
    height: auto;
  }
  
  .featured-image {
    width: 100%;
    height: 180px;
  }
  
  .featured-image-placeholder {
    font-size: 48px;
  }
  
  .featured-content {
    padding: 24px;
  }
  
  .featured-content h3 {
    font-size: 20px;
  }
  
  .featured-nav {
    font-size: 20px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .featured-content {
    padding: 30px;
  }
  
  .featured-content h3 {
    font-size: 22px;
  }
}