/* =========================================================
   VALAPPILA — News Listing Page
   (Header, hero, intro block & footer live in common.css)
   ========================================================= */

/* =========================================================
   NEWS LIST
   ========================================================= */
.news-list {
  background: linear-gradient(#E5231B0D, #E5231B0D), #FFFFFF;
  padding: 10px 0 100px;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 2px 8px -2px #0000000F, 0px 18px 40px -12px #E5231B1F;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-media {
  aspect-ratio: 438 / 248;
  overflow: hidden;
  background: #F3ECEA;
}

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

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.news-date {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #E5231B;
  margin-bottom: 12px;
}

.news-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.22;
  color: #111111;
  margin-bottom: 14px;
  transition: color var(--transition);
}

.news-excerpt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #6B7280;
  margin-bottom: 20px;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: #E5231B;
}

.news-more span {
  transition: transform var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 2px 8px -2px #0000000F, 0px 26px 50px -14px #E5231B40;
}

.news-card:hover .news-media img {
  transform: scale(1.05);
}

.news-card:hover .news-title {
  color: #E5231B;
}

.news-card:hover .news-more span {
  transform: translateX(4px);
}

.news-card:focus-visible {
  outline: 3px solid #E5231B;
  outline-offset: 3px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #111111;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-num svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-num:hover {
  border-color: #E5231B;
  color: #E5231B;
}

.page-num.is-active {
  background: #E5231B;
  border-color: #E5231B;
  color: #FFFFFF;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .news-title {
    font-size: 20px;
  }

  .news-body {
    padding: 22px;
  }
}

@media (max-width: 1024px) {
  .news-list {
    padding-bottom: 80px;
  }

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

@media (max-width: 768px) {
  .news-list {
    padding-bottom: 64px;
  }

  .news-grid {
    gap: 16px;
  }

  .news-title {
    font-size: 18px;
  }

  .news-body {
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-list {
    padding-bottom: 52px;
  }

  .pagination {
    margin-top: 36px;
    gap: 8px;
  }

  .page-num {
    width: 36px;
    height: 36px;
  }
}
