/* General */
body {
  min-height: 100vh;
  background-color: #f8f9f6;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 16px;
  text-align: center;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}
.hero-description {
  font-size: 20px;
  max-width: 672px;
  margin-bottom: 24px;
}
.search-container {
  position: relative;
  width: 100%;
  max-width: 448px;
}
.search-input {
  padding-left: 40px;
  padding-right: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-radius: 9999px;
  color: black;
  width: 100%;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* Categories Section */
.categories-section {
  padding-top: 32px;
  padding-bottom: 32px;
  background-color: white;
}
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.category-button {
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.category-button.active {
  background-color: #2c6e49;
  color: white;
  border: 1px solid #2c6e49;
}
.category-button.active:hover {
  background-color: #214e36;
}
.category-button:not(.active) {
  border: 1px solid #2c6e49;
  color: #2c6e49;
  background-color: transparent;
}
.category-button:not(.active):hover {
  background-color: #e9f5db;
}
.button-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Featured News Section */
.featured-news-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: #f8f9f6;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
}
.title-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: #2c6e49;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.main-card {
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
}
.card-image-container {
  position: relative;
  height: 320px;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #2c6e49;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}
.card-header {
  padding: 16px;
}
.card-title {
  font-size: 24px;
  font-weight: 700;
  transition: color 0.2s;
}
.card-title a {
  text-decoration: none;
  color: inherit;
}
.card-title:hover {
  color: #2c6e49;
  cursor: pointer;
}
.card-content {
  padding: 16px;
}
.card-content p {
  color: #4b5563;
  margin-bottom: 16px;
}
.card-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
}
.card-meta span {
  margin-right: 16px;
}
.card-footer {
  padding: 16px;
}
.read-more-button {
  background-color: #2c6e49;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}
.read-more-button:hover {
  background-color: #214e36;
}
.side-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-card {
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
}
.side-card-wrapper {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .side-card-wrapper {
    flex-direction: row;
  }
}
.side-card-image-container {
  width: 100%;
}
@media (min-width: 768px) {
  .side-card-image-container {
    width: 33.333%;
  }
}
.side-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-card-content {
  padding: 16px;
}
@media (min-width: 768px) {
  .side-card-content {
    padding: 16px;
  }
}
.side-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.side-card-title:hover {
  color: #2c6e49;
  cursor: pointer;
}
.side-card-content p {
  color: #4b5563;
  margin-bottom: 8px;
}
.side-card-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}
.side-card-meta span {
  margin-right: 12px;
}
.side-card-meta .badge {
  position: static;
  margin-left: 0;
  margin-right: 0;
  background-color: #e9f5db;
  color: #2c6e49;
}

/* Latest News Section */
.latest-news-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: white;
}
.latest-news-section .news-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .latest-news-section .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .latest-news-section .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.news-card {
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
}
.news-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.news-card .badge {
  background-color: #e9f5db;
  color: #2c6e49;
}
.news-card .card-title {
  font-size: 18px;
}
.news-card .card-content p {
  font-size: 14px;
}
.news-card .card-meta {
  font-size: 12px;
}
.news-card .read-more-button {
  padding: 6px 12px;
  font-size: 14px;
}
.news-card .read-more-button:hover {
  background-color: #214e36;
}
.load-more-container {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}
.load-more-button {
  background-color: transparent;
  color: #2c6e49;
  padding: 8px 24px;
  border-radius: 9999px;
  border: 1px solid #2c6e49;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-button:hover {
  background-color: #e9f5db;
}

/* Newsletter Section */
.newsletter-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: #e9f5db;
}
.newsletter-section .section-title {
  justify-content: center;
  margin-bottom: 24px;
}
.section-description {
  text-align: center;
  color: #4b5563;
  font-size: 16px;
  margin-bottom: 32px;
}
.form-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-container {
    flex-direction: row;
  }
}
.form-input {
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 320px;
}
.form-button {
  background-color: #2c6e49;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.form-button:hover {
  background-color: #214e36;
}

/* Responsive footer - copied from trangchu.css mobile styles */
.footer-section {
  background-color: #f5f5f5;
  padding: 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.links,
.branding {
  padding: 0 15px;
}

.links-title {
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 18px;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-item {
  text-decoration: none;
  color: #333;
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

.branding-description {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.social-container {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.social-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .links,
  .branding {
    padding: 0 10px;
    text-align: left;
  }

  .links-title {
    text-align: left;
  }

  .links-list {
    text-align: left;
  }

  .social-container {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.branding-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.branding-icon {
  width: 24px;
  height: 24px;
}
.branding-text {
  font-size: 20px;
  font-weight: 700;
}
.branding-description {
  color: #e9f5db;
  margin-bottom: 16px;
}
.social-container {
  display: flex;
  gap: 16px;
}
.social-button {
  background: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.social-button:hover {
  color: #e9f5db;
  background-color: #214e36;
}
.links-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-item {
  text-decoration: none;
  color: #e9f5db;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.link-item:hover {
  color: white;
}
.contact-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-address {
  color: #e9f5db;
  line-height: 1.5;
}
.address-item {
  margin-bottom: 8px;
}
.copyright {
  text-align: center;
  color: #ccc;
  font-size: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* Tablet styles for news sections */
@media (min-width: 769px) and (max-width: 1024px) {
  .featured-news-section .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .latest-news-section .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .main-card {
    grid-column: span 1;
  }

  .side-cards {
    grid-column: span 1;
  }

  .side-card-wrapper {
    flex-direction: row;
    gap: 15px;
  }

  .side-card-image-container {
    width: 120px;
    height: 120px;
  }

  .side-card-content {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Desktop styles for news sections */
@media (min-width: 1025px) {
  .featured-news-section .news-grid {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
  }

  .latest-news-section .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .main-card {
    grid-column: span 2;
  }

  .side-cards {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .side-card {
    margin-bottom: 0;
  }

  .side-card-wrapper {
    flex-direction: row;
    gap: 15px;
  }

  .side-card-image-container {
    width: 100px;
    height: 100px;
  }

  .side-card-content {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.main-content {
  padding-top: 80px;
}
