/* ==========================================================================
   News Page Stylesheet - Wanda Wood
   ========================================================================== */

/* Featured Article Section */
.news-featured-section {
  background: var(--paper);
  padding: 110px 0 90px;
}

.featured-post-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.featured-post__img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 13, 14, 0.08);
  height: 440px;
  position: relative;
}

.featured-post__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-post-grid:hover .featured-post__img-wrap img {
  transform: scale(1.03);
}

.featured-post__content {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.featured-post__cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.featured-post__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.featured-post__title a:hover {
  color: var(--brown);
}

.featured-post__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.featured-post__meta span i {
  color: var(--brown);
  margin-right: 6px;
}

.featured-post__excerpt {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 28px;
}

.featured-post__readmore {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s ease;
}

.featured-post__readmore i {
  transition: transform 0.25s ease;
}

.featured-post__readmore:hover {
  color: var(--brown);
}

.featured-post__readmore:hover i {
  transform: translateX(5px);
}

/* 3-Column News Grid Section */
.news-grid-section {
  background: #fbf9f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(83, 61, 39, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(83, 61, 39, 0.08);
}

.news-card__media {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.news-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color 0.25s ease;
}

.news-card__title a:hover {
  color: var(--brown);
}

.news-card__meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.news-card__meta i {
  color: var(--brown);
  margin-right: 5px;
}

.news-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
  margin-top: 0;
}

.news-card__readmore {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: auto; /* Push link to bottom */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.news-card__readmore i {
  transition: transform 0.25s ease;
  font-size: 11px;
}

.news-card__readmore:hover {
  color: var(--brown);
}

.news-card__readmore:hover i {
  transform: translateX(4px);
}

/* Pagination Component */
.news-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.page-link:hover {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

.page-link--active {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .featured-post-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-post__img-wrap {
    height: 360px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .news-featured-section,
  .news-grid-section {
    padding: 64px 0;
  }

  .featured-post__img-wrap {
    height: 280px;
    border-radius: 10px;
  }

  .featured-post__title {
    font-size: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-card__media {
    height: 200px;
  }

  .news-pagination {
    margin-top: 40px;
  }

  .page-link {
    width: 38px;
    height: 38px;
    font-size: 13.5px;
  }
}
