/* style/news.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-news {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for consistency */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; /* Ensure content is above the image but not overlapping */
  z-index: 1; /* Ensure content is layered correctly if needed */
}

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

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

/* CTA Buttons */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for mobile adaptation */
  max-width: 600px; /* Limit button group width */
  box-sizing: border-box;
}

.page-news__cta-buttons--center {
  margin-top: 40px;
}

.page-news__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  text-align: center;
}

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

.page-news__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-news__cta-button--secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #57E38D; /* Glow color for border */
}

.page-news__cta-button--secondary:hover {
  background-color: rgba(87, 227, 141, 0.1); /* Light hover effect */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-news__section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-news__section:last-of-type {
  border-bottom: none;
}

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

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

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

/* Promotion Cards */
.page-news__promotion-cards,
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-news__card:hover,
.page-news__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__card-image,
.page-news__news-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__card-content,
.page-news__news-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to fill space */
  display: flex;
  flex-direction: column;
}

.page-news__card-title,
.page-news__news-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-news__card-title a,
.page-news__news-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-news__card-title a:hover,
.page-news__news-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__card-text,
.page-news__news-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

.page-news__card-text a,
.page-news__news-excerpt a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-news__card-text a:hover,
.page-news__news-excerpt a:hover {
  text-decoration: underline;
}

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

/* Guide Section */
.page-news__guide-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-news__guide-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-news__guide-text a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-news__guide-text a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #11A84E; /* Main color */
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #2E7A4E; /* Border */
}

/* Conclusion Section */
.page-news__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Links */
.page-news a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-news a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2.2rem;
  }
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-news__hero-section {
    padding: 40px 15px;
  }
  .page-news__section {
    padding: 60px 15px;
  }
}

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

  .page-news__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body has padding-top, use small for section */
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__cta-button {
    padding: 12px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-news__promotion-cards,
  .page-news__news-grid,
  .page-news__guide-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-image,
  .page-news__news-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-news__card-content,
  .page-news__news-content {
    padding: 20px;
  }

  .page-news__card-title,
  .page-news__news-title {
    font-size: 1.3rem;
  }

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

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

  /* Image responsive rules for content area */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images must adapt */
  .page-news__hero-image-wrapper,
  .page-news__card,
  .page-news__news-item,
  .page-news__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }
}