/* ==========================================================================
   NEWS PAGE LAYOUT STYLES
   ========================================================================== */

/* Featured Article Split Card */
.featured-article {
  background-color: var(--color-background);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(210, 210, 217, 0.4);
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(171, 53, 0, 0.08);
}

.featured-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: var(--color-surface);
}

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

.featured-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

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

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-secondary-text);
  margin-bottom: 16px;
  font-weight: 500;
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

.featured-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-on-surface);
  margin-bottom: 16px;
}

.featured-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-secondary-text);
  margin-bottom: 24px;
}

@media (min-width: 992px) {
  .featured-article {
    flex-direction: row;
  }
  .featured-img-wrapper {
    width: 60%;
    height: 420px;
  }
  .featured-content {
    width: 40%;
    padding: 40px;
    /* Slide in overlap style */
    margin-left: -40px;
    z-index: 10;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.03);
  }
}

/* Section divider */
.news-divider {
  width: 96px;
  height: 1px;
  background-color: var(--color-border);
  margin: 60px auto;
}

/* Articles bento grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Dynamic Skeleton Loaders */
.skeleton-card {
  height: 400px;
  background-color: var(--color-background);
  border-radius: var(--radius-card);
  border: 1px solid rgba(210, 210, 217, 0.2);
  overflow: hidden;
  padding: 0;
}

.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, #f5f5f7 25%, #eed5cd 50%, #f5f5f7 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #f5f5f7 25%, #eed5cd 50%, #f5f5f7 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text.title { height: 24px; width: 85%; }
.skeleton-text.meta { height: 12px; width: 40%; }
.skeleton-text.excerpt-1 { height: 14px; width: 100%; }
.skeleton-text.excerpt-2 { height: 14px; width: 90%; }
.skeleton-text.link { height: 14px; width: 30%; }

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (min-width: 640px) and (max-width: 991px) {
  .featured-img-wrapper {
    height: 300px;
  }
}

@media (max-width: 479px) {
  .featured-img-wrapper {
    height: 200px;
  }
  .featured-content {
    padding: 20px;
  }
  .featured-title {
    font-size: 20px;
  }
}

