/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-news {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

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

.page-news__flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--secondary {
  background: #11A84E; /* Main color as background */
  border: 2px solid #57E38D; /* Glow color as border */
  color: #F2FFF6;
}

.page-news__cta-button--secondary:hover {
  background: #0A4B2C; /* Deep Green */
  border-color: #F2C14E; /* Gold */
}

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

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.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;
}

/* News List Section */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #2AD16F; /* Brighter green for contrast */
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__view-all-button {
  padding: 12px 25px;
  font-size: 1em;
}

/* Promotions Callout Section */
.page-news__promotions-callout {
  background-color: #11271B; /* Card BG */
  text-align: center;
}

.page-news__promotions-callout .page-news__flex-center {
  flex-direction: row;
  align-items: center;
  text-align: left;
}

.page-news__callout-content {
  max-width: 600px;
}

.page-news__callout-title {
  font-size: 2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-news__callout-image-wrapper {
  flex-shrink: 0;
}

.page-news__callout-image {
  width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Why Follow Section */
.page-news__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__feature-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__feature-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #0A4B2C; /* Deep Green for a darker section */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item details {
  /* Native details element styling */
  border: none;
  padding: 0;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider for slightly different shade */
  border-bottom: 1px solid #2E7A4E; /* Border */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
}

/* CTA Section */
.page-news__cta-section {
  text-align: center;
}

.page-news__cta-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  font-weight: bold;
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__promotions-callout .page-news__flex-center {
    flex-direction: column;
    text-align: center;
  }

  .page-news__callout-content {
    margin-bottom: 30px;
  }
}

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

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

  .page-news__main-title {
    font-size: 2em;
  }

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-news__section-title {
    font-size: 1.8em;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  .page-news__promotions-callout .page-news__flex-center {
    gap: 20px;
  }

  .page-news__callout-title {
    font-size: 1.5em;
  }

  .page-news__callout-description {
    font-size: 0.9em;
  }

  .page-news__callout-image {
    width: 100%;
    max-width: 400px; /* Constrain image on smaller screens */
    height: auto;
    margin-top: 20px;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  .page-news__cta-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section, .page-news__card, .page-news__container, .page-news__hero-section, .page-news__news-list-section, .page-news__promotions-callout, .page-news__why-follow-section, .page-news__faq-section, .page-news__cta-section, .page-news__hero-image-wrapper, .page-news__callout-image-wrapper, .page-news__view-all-wrapper, .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__flex-column-mobile {
    flex-direction: column;
  }
  .page-news__flex-center {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.4em;
  }
}