/* ===== News page layout ===== */

.news-page {
  overflow-x: hidden;          
}


.news-page .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  display: block;
}

/* ===== Hero ===== */

.news-hero {
  padding: 4.5rem 0 2.25rem;
  background: linear-gradient(135deg, #004064 0%, #1FA8A3 100%);
  color: #fff;
  text-align: center;
}

.news-hero h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 300;
  margin: 0 0 0.75rem;
  color: #fff;
}

.news-hero .sub {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 40rem;
  margin: 0 auto;
}

/* Small-screen tweaks */
@media (max-width: 600px) {
  .news-hero {
    padding: 3.5rem 0 1.75rem;
  }
  .news-hero .inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}



.news-filters {
  background: #f6f9fb;
  padding: 1rem 0;
  border-bottom: 1px solid #e6eef1;
}

.chip-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  border: 1px solid #cfe2e6;
  background: #fff;
  color: #004064;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 300;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.5rem;
}

.chip.is-active {
  background: #B7DFE7;
  border-color: #1FA8A3;
  color: #fff;
}

/* ===== Cards grid ===== */

.news-grid {
  padding: 2rem 0 3rem;
}

/* This is the main grid wrapper (your div#news-grid) */
.news-grid .inner {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr; /* 1 column by default (mobile) */
}

/* Tablets */
@media (min-width: 700px) {
  .news-grid .inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .news-grid .inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Card ===== */

.news-card {
  background: #fff;
  border: 1px solid #e6eef1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.news-card .thumb {
  display: block;
  width: 100%;
  overflow: hidden;
}

.news-card .thumb img {
  width: 100%;
  height: auto;               
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .thumb img {
  transform: scale(1.03);
}

/* Card body */
.news-card .card-body {
  padding: 1rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card .title {
  font-weight: 800;
  color: #004064;
  text-decoration: none;
  font-size: 1.05rem;
}

.news-card .title:hover {
  color: #038faa;
}

.news-card .excerpt {
  color: #445b66;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Meta line */
.news-card .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #5c7680;
  gap: 0.35rem;
}

.news-card .meta .tags i {
  margin-right: 0.4rem;
  color: #F59E0B;
}



.news-pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.25rem 0 2rem;
}

.news-pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid #d9e6ea;
  background: #fff;
  color: #004064;
  text-decoration: none;
  font-weight: 700;
}

.news-pagination .page:hover {
  border-color: #1FA8A3;
  color: #1FA8A3;
}

.news-pagination .page.is-active {
  background: #1FA8A3;
  border-color: #1FA8A3;
  color: #fff;
}

.news-pagination .page.disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  
  .news-page,
  .news-page .inner,
  .news-grid,
  .news-grid .inner,
  .news-card,
  .news-card .thumb,
  .news-card .thumb img {
    max-width: 100%;
    box-sizing: border-box;
  }
}
