/* style/news.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

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

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-news__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Space below image before content */
  padding-top: 10px; /* Small top padding */
  background-color: #08160F; /* Background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and text content */
}

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

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

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

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

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

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

.page-news__news-card {
  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__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__card-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

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

.page-news__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #2AD16F; /* Lighter green for hover */
}

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

.page-news__read-more {
  display: inline-flex;
  align-items: center;
  color: #2AD16F; /* Lighter green */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #F2FFF6; /* Text Main */
}

.page-news__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

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

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-news__featured-news-section .page-news__dark-bg {
  background-color: #11271B; /* Card BG */
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-highlight {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-news__article-image-wrapper {
  flex: 1;
  min-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-news__article-content {
  flex: 1.5;
}

.page-news__article-title {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #2AD16F;
}

.page-news__article-meta {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__article-summary {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-news__cta-section .page-news__medium-bg {
  background: #11271B; /* Card BG */
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1a3528; /* Slightly darker than card bg */
  border-bottom: 1px solid #2E7A4E; /* Border */
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary:hover {
  background-color: #2E7A4E; /* Border */
}

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

.page-news__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6; /* Text Main */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F; /* Lighter green */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  color: #F2FFF6; /* Text Main */
}

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

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

.page-news__faq-answer a {
  color: #2AD16F; /* Lighter green */
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #F2FFF6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__article-highlight {
    flex-direction: column;
  }
  .page-news__article-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-news__featured-news-section .page-news__dark-bg,
  .page-news__cta-section .page-news__medium-bg {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  /* Mobile images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__card-image-wrapper {
    height: auto; /* Allow image height to be auto on mobile */
  }
  .page-news__hero-image-wrapper {
    max-height: 300px; /* Adjust hero image height for mobile */
  }

  /* Mobile containers */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-news-section,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__news-card,
  .page-news__article-highlight,
  .page-news__article-image-wrapper,
  .page-news__article-content,
  .page-news__cta-section .page-news__medium-bg,
  .page-news__featured-news-section .page-news__dark-bg {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile buttons */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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;
    margin-bottom: 15px; /* Stack buttons */
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* Adjust section paddings */
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-news-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
  
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles offset */
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__featured-news-section .page-news__dark-bg,
  .page-news__cta-section .page-news__medium-bg {
    padding: 30px 15px;
  }
  .page-news__article-highlight {
    gap: 20px;
  }
  .page-news__article-title {
    font-size: 1.5em;
  }
  .page-news__faq-item summary {
    padding: 15px 15px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 15px 15px;
  }
}