* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f4f4;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HERO */
.page-hero {
  background: #0c5c2b;
  padding: 60px 0;
  text-align: center;
  color: white;
}

.page-hero h1 {
  letter-spacing: 4px;
}

/* FILTER */
.category-filter {
  background: #0f6d34;
  padding: 15px 0;
}

.category-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  justify-content: center;
}

.category-filter li {
  color: white;
  cursor: pointer;
  font-size: 13px;
}

.category-filter .active {
  background: #e4002b;
  padding: 6px 14px;
  border-radius: 4px;
}

/* GLANCE */
.news-section {
  padding: 80px 0;
  background: #f2f2f2;
}

.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 4px;
}

.section-header h2 {
  margin: 0;
  font-size: 32px;
}

.nav-arrows {
  position: absolute;
  right: 0;
}

.arrow {
  background: #e6f0ea;
  border: none;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #008037;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border-radius: 8px;
  transition: 0.3s ease;
  position: relative;
  height: 400px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.overlay-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 100, 0.7);
}

.overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 36px;
  font-weight: 700;
  z-index: 2;
}

.news-content {
  display: block;
  padding: 15px;
  text-align: center;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.news-content h3 {
  color: #0a7c3e;
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 24px;
}

.meta {
  font-size: 13px;
  color: #777;
}

.slider-dots {
  text-align: center;
  margin: 30px 0;
}

.slider-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 5px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #444;
}

.slider-dots .active {
  background: #e51c23;
  border-color: #e51c23;
}

.view-all {
  text-align: center;
}

.btn-primary {
  background: #008037;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #006d2f;
}

@media (max-width: 992px) {
  .news-grid {
      grid-template-columns: 1fr 1fr;
  }

  .about-grid {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .about-content h2 {
      text-align: center;
  }
}

@media (max-width: 768px) {
  .news-grid {
      grid-template-columns: 1fr;
  }

  .nav-arrows {
      display: none;
  }

  .news-section h3 {
    font-size: 18px;
  }
}

/* NEWS LIST */
.news-list {
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.news-list .news-content {
  position: unset;
  left: unset;
  right: unset;
  bottom: unset;
}

.news-list .news-card {
  height: auto;
  /* margin-bottom: 30px; */
  max-width: 900px;
  margin: auto;
}

.news-list .news-card:hover {
  transform: unset;
}

.news-list .news-image {
  position: relative;
  height: 480px;
  overflow: hidden;
}

/* .news-list .news-card:nth-child(1) {
  grid-row: 1/5;
}

.news-list .news-card:nth-child(2) {
  grid-row: 1/2;
}

.news-list .news-card:nth-child(3) {
  grid-row: 2/3;
}

.news-list .news-card:nth-child(4) {
  grid-row: 3/4;
} */

.news-content h3 {
  color: #0c5c2b;
  margin-bottom: 15px;
}

.news-content p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  background: #0c5c2b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
}

.btn:hover {
  background: #09451f;
}

.news-meta span {
  font-size: 12px;
  color: #e4002b;
}

@media (max-width: 768px) {
  .news-list {
      grid-template-columns: 1fr;
  }
}

/* PAGINATION */
.pagination {
  padding-bottom: 60px;
}

.pagination ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.pagination li {
  padding: 8px 12px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.pagination .active {
  background: #0c5c2b;
  color: white;
  border: none;
}

/* FOOTER */
footer {
  background: linear-gradient(to right, #0c5c2b, #117a3b);
  color: white;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 50px 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}

.copyright {
  text-align: center;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  font-size: 13px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .news-card {
      flex-direction: column;
  }

  .news-card img {
      width: 100%;
  }
}