/* style/news.css */

/* Base styles for the page, setting default text color for dark background */
.page-news {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif; /* Example font */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust as needed */
  overflow: hidden; /* Ensure no overflow */
}

.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.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 10px; /* Small top padding */
}

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

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

/* General Section Styles */
.page-news__articles-section,
.page-news__promotions-section,
.page-news__guides-section,
.page-news__insights-section,
.page-news__faq-section,
.page-news__final-cta {
  padding: 60px 0;
}

.page-news__dark-bg {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-news__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-title--large {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #F2C14E; /* Gold */
}

.page-news__section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* CTA Button Styles */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Important for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: transparent;
  color: #2AD16F; /* A lighter green from the gradient */
  border: 2px solid #2AD16F;
}

.page-news__cta-button--secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

.page-news__cta-button--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

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

.page-news__cta-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Article/Promotion/Guide Cards */
.page-news__articles-grid,
.page-news__promotions-grid,
.page-news__guides-grid,
.page-news__insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card,
.page-news__promotion-card,
.page-news__guide-card,
.page-news__insight-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover,
.page-news__promotion-card:hover,
.page-news__guide-card:hover,
.page-news__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__article-image,
.page-news__promotion-image,
.page-news__guide-image,
.page-news__insight-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block; /* Important for responsive images */
}

.page-news__article-content,
.page-news__promotion-content,
.page-news__guide-content,
.page-news__insight-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to take available space */
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__promotion-title,
.page-news__guide-title,
.page-news__insight-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-excerpt,
.page-news__promotion-excerpt,
.page-news__guide-excerpt,
.page-news__insight-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push read more to bottom */
}

.page-news__read-more {
  font-size: 0.9rem;
  color: #2AD16F;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto; /* Push to the bottom */
}

.page-news__read-more time {
  font-size: 0.85rem;
  color: #A7D9B8;
  font-weight: normal;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__faq-item {
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding: 20px 0;
  color: #F2FFF6; /* Text Main */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* For <summary> tag */
  color: #F2FFF6; /* Text Main */
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #2AD16F; /* Green for toggle */
}

.page-news__faq-answer {
  padding-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
}

/* Final CTA Section */
.page-news__final-cta {
  text-align: center;
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('[GALLERY:bg_cta:1920x400:cta_background,green_gold_gradient,abstract_patterns,2bong88_chinh_thuc]'); /* Add a subtle background image if desired */
  background-size: cover;
  background-position: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__articles-grid,
  .page-news__promotions-grid,
  .page-news__guides-grid,
  .page-news__insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

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

  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-news__articles-grid,
  .page-news__promotions-grid,
  .page-news__guides-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 25px;
  }

  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__guide-image,
  .page-news__insight-image {
    height: 200px; /* Slightly smaller image height for mobile */
  }

  .page-news__article-title,
  .page-news__promotion-title,
  .page-news__guide-title,
  .page-news__insight-title {
    font-size: 1.15rem;
  }

  .page-news__faq-question {
    font-size: 1rem;
  }

  .page-news__faq-answer {
    font-size: 0.95rem;
  }

  .page-news__cta-button {
    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__cta-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure images are fully responsive on mobile */
  .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__articles-section,
  .page-news__promotions-section,
  .page-news__guides-section,
  .page-news__insights-section,
  .page-news__faq-section,
  .page-news__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video related responsive styles - if any video is added later, ensure these apply */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
  }
}

/* Glow effect for certain elements */
.page-news__glow-effect {
  box-shadow: 0 0 15px #57E38D; /* Glow */
}