.container {
  display: flex;
  gap: 30px;
  padding: 10px 20px;
  margin-top: 20px;
  max-width: 1300px;
  margin-inline: auto;
  flex-wrap: wrap;
}

.article,
.recent-item {
  text-decoration: none;
}

.main-content {
  margin-bottom: 50px;
}

.news-section {
  display: flex;
  align-items: center;
  width: 100%;
  color: white;
  position: relative;
  min-height: 400px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.news-bg-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(255, 255, 255, 0) 100%),
    url('../images/resources/events.jpg') center center / cover no-repeat;
  z-index: 0;
}

.news-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.content-column {
  flex: 0 0 58.33%;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 20px;
}

.page-desc {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
}

.left-side {
  flex: 2;
}

.right-side {
  flex: 1;
}

.section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: bold;
  color: #2d5a4a;
  margin-bottom: 30px;
}

/* Grid Layout */
.top-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 10px 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
  margin-top: 15px;
}

.top-row .article-image {
  height: 200px;
  margin-bottom: 15px;
}

.bottom-row .article-image {
  height: 9.4rem;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
}

.article-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.top-row .article-title {
  font-size: 1.4rem;
}

.bottom-row .article-title {
  font-size: 1.1rem;
}

.article-excerpt {
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid #e0e0e0;
  padding-left: 20px;
}

/* Recent News Styles */
.recent-item {
  display: flex;
  background: white;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.recent-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 166, 81, 0.12);
    border-radius: 8px;
}

.recent-image {
  width: 8rem;
  background: url('../images/resources/news1.png') center center / cover no-repeat;
  flex-shrink: 0;
}

.recent-content {
  flex: 1;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-meta {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.recent-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
  margin: 0;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
}

.pagination-btn {
  padding: 10px 15px;
  border: 1px solid #025836;
  background: white;
  color: #025836;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 45px;
  text-align: center;
  text-decoration: none;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #025836;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* More News Section */
.more-news-container {
  padding: 0;
}

.more-news-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
}

.article {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 166, 81, 0.12);
    border-radius: 8px;
}

.more-news-row .article-image {
  width: 100%;
  height: 9.4rem;
  background: url('../images/resources/news1.png') center center / cover no-repeat;
  margin-bottom: 15px;
  border-radius: 4px;
}

.more-news-row .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
}

.more-news-row .article-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* -------------------
   Responsive Tweaks
------------------- */

/* ≤1366px */
@media (max-width: 1366px) {
  .more-news-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ≤1024px */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    padding: 0;
    margin-top: 0;
  }

  .right-column {
    border-left: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .news-section {
    padding: 40px 20px;
  }

  .recent-image,
  .recent-item {
    height: 5.5rem;
  }

  .recent-meta {
    font-size: 0.5rem;
  }

  .recent-title {
    font-size: 0.6rem;
  }

  .content-column {
    flex: 1 1 100%;
  }

  .more-news-container {
    padding: 5px;
  }

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

/* ≤850px */
@media (max-width: 850px) {
  .container {
    padding: 10px 15px;
  }

  .recent-item {
    flex-direction: column;
    height: auto;
  }

  .recent-content {
    padding: 10px;
  }

  .pagination-container {
    flex-wrap: wrap;
    gap: 5px;
  }

  .pagination-btn {
    min-width: 35px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  .more-news-container {
    padding: 5px;
  }

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

  .more-news-row .article-image {
    height: 8rem;
  }
}

/* ≤600px */
@media (max-width: 600px) {
  .container {
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .recent-image {
    width: 100%;
    height: 90px;
  }

  .bottom-row .article-image {
    height: 200px;
  }

  .more-news-container {
    padding: 10px 15px;
    margin: 50px auto;
  }

  .more-news-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .more-news-row .article-image {
    height: 200px;
  }

  .more-news-row .article-title {
    font-size: 1rem;
  }

  .more-news-row .article-meta {
    font-size: 0.8rem;
  }

  .pagination-container {
    margin: 0 0 20px 0;
  }
}

/* ≤480px */
@media (max-width: 480px) {
  .more-news-container {
    padding: 0;
  }

  .more-news-row .article-image {
    height: 200px;
  }

  .more-news-row .article-title {
    font-size: 0.95rem;
  }

  .more-news-row .article-meta {
    font-size: 0.75rem;
  }
}

/* ≤360px */
@media (max-width: 360px) {
  .more-news-container {
    padding: 10px;
    margin: 30px auto;
  }

  .more-news-row .article-image {
    height: 8.5rem;
  }

  .more-news-row .article-title {
    font-size: 0.9rem;
  }

  .more-news-row .article-meta {
    font-size: 0.7rem;
  }
}