/* style/news.css */
.page-news {
  background-color: #08160F; /* Nền tối theo màu sắc tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng trên nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Nhỏ để tránh đè lên header nếu shared.css không có padding-top cho body */
  padding-bottom: 60px;
  text-align: center;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối hình ảnh để chữ dễ đọc hơn */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #F2FFF6;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-news__cta-button--small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-news__section {
  padding: 60px 0;
}

.page-news__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #A7D9B8;
  text-align: justify;
}

.page-news__highlight {
  color: #57E38D;
  font-weight: 600;
}

.page-news__link {
  color: #22C768;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__link:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-news__categories-grid,
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__category-card,
.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F2FFF6;
}

.page-news__category-card:hover,
.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__category-title,
.page-news__article-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-news__article-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: #22C768;
}

.page-news__category-description,
.page-news__article-excerpt {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #22C768;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__article-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-news__benefits-list,
.page-news__access-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__benefits-item,
.page-news__access-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__benefits-item-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-news__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-news__faq-section {
  padding-bottom: 80px;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-news__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #1a362a; /* Slightly darker for question */
  color: #F2FFF6;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #214433;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #22C768;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8;
}

.page-news__cta-bottom {
  text-align: center;
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #2E7A4E;
}

.page-news__cta-content {
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-news__section-title {
    font-size: 2rem;
  }

  .page-news__categories-grid,
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-button--large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-news__paragraph {
    font-size: 0.95rem;
  }

  .page-news__categories-grid,
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__category-card,
  .page-news__article-card {
    padding: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-news__hero-section,
  .page-news__intro-section,
  .page-news__categories-section,
  .page-news__benefits-section,
  .page-news__access-section,
  .page-news__latest-articles,
  .page-news__faq-section,
  .page-news__cta-bottom,
  .page-news__container,
  .page-news__categories-grid,
  .page-news__articles-grid,
  .page-news__category-card,
  .page-news__article-card,
  .page-news__benefits-item,
  .page-news__access-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  
  .page-news__hero-content {
    padding: 0 15px;
  }
  
  .page-news__article-title,
  .page-news__category-title {
    font-size: 1.3rem;
  }
  
  .page-news__paragraph,
  .page-news__category-description,
  .page-news__article-excerpt {
    font-size: 0.95rem;
  }
  
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }

  .page-news__main-title {
    font-size: 1.7rem;
  }

  .page-news__section-title {
    font-size: 1.6rem;
  }

  .page-news__cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}