@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;

}
body, html {
  overflow-x: hidden;
}
body {
  line-height: 1.6;
  background-color: #fff;
}

.news-section {
  margin-top: 80px; /* Để tránh bị header che khuất */
  padding: 60px 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fdfdfd;
  margin-bottom: 80px;
}

.news-section h1 {
  font-size: 28px;
  color: #2e7031;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.news-list {
  background-color: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-item {
  /* background: rgba(255,255,255,0.1); */
  backdrop-filter: blur(330px);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(227,228, 237, 0.37);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.news-content {
  padding: 20px;
}

.news-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.news-content h2 a {
  text-decoration: none;
  color: #2e7031;
}

.news-content h2 a:hover {
  color: #004f01;
}

.date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.excerpt {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
}
.footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  background: #222;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-right {
  flex: 1 1 45%;
  margin-bottom: 20px;
}

.footer-left h3,
.footer-right h3 {
  color: #f2c94c;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer a {
  color: #9ecfff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}
.icons{
  margin: 40px 0;
}

.icons a {
  border: 1px solid #ccc;
  border-radius: 20%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 3px;
  width: 40px;
  height: 40px;
}
.icons a:hover {
  background: #512da8;
  color: white;
  transform: scale(1.1);
  text-decoration: none;

}
.news-search {
  display: flex;
  width: 450px;
  margin-left: 710px;
  margin-bottom: 60px;
}

.news-search input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.news-search button {
  padding: 10px 20px;
  background-color: #2e7031;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.news-search button:hover {
  background-color: #1e5021;
}

/* Pagination container */
.pagination-container {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 10px;
  margin-top: 30px;
  margin-left: 1065px;
}

.pagination button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover, 
.pagination button.active {
  background-color: #2e7031;
  color: white;
  border-color: #2e7031;
}
@media (max-width: 1200px) {
  .navbar{
    padding: 10px 20px;
  }
    .navbar ul{
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 10px;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar .logo-container::after {
        content: "☰";
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }
}