/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-news {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #08160F;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__hero-content {
  max-width: 900px;
  margin-top: 20px;
}

.page-news__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Buttons */
.page-news__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-news__btn--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn--secondary {
  background: transparent;
  color: #2AD16F; /* Button color */
  border: 2px solid #2AD16F; /* Border */
}

.page-news__btn--secondary:hover {
  background: #2AD16F;
  color: #08160F; /* Background */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn--view-all {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-top: 30px;
  min-width: 200px;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #2AD16F, transparent);
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have same height */
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-news__news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__news-card-title:hover {
  color: #2AD16F; /* Button color */
}

.page-news__news-card-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.page-news__category-item {
  display: block;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  text-align: center;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__category-item:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

.page-news__cta-section .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-news__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-news__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
  color: #2AD16F;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
}

.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

.highlight-keyword {
  color: #57E38D; /* Glow */
  font-weight: 600;
}

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

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

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

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__btn,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    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__latest-news-section,
  .page-news__categories-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

  .page-news__section-description {
    font-size: 1em;
  }

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-title {
    font-size: 1.1em;
  }

  .page-news__news-card-meta,
  .page-news__news-card-excerpt {
    font-size: 0.9em;
  }

  .page-news__category-item {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  .page-news__cta-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
  
  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__cta-section .page-news__container,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__news-grid {
    gap: 20px;
  }
  
  .page-news__categories-grid {
    gap: 10px;
  }
}