/* style/news.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-news {
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-news__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__text-block {
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-news__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-news__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a7fb2;
  border-color: #1a7fb2;
}

.page-news__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

.page-news__btn-large {
  padding: 15px 35px;
  font-size: 18px;
}

/* Image styles */
.page-news__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
}

.page-news__image-responsive {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Intro Section */
.page-news__intro-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Featured Articles Section */
.page-news__featured-articles {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-news__card-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 14px;
  color: #999999;
  margin-bottom: 10px;
  display: block;
}

.page-news__read-more-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

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

/* Analysis & Tips Section */
.page-news__analysis-tips {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-news__content-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
}

.page-news__text-column {
  flex: 1;
}

.page-news__image-column {
  flex: 0 0 400px; /* Fixed width for image on desktop */
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-news__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-news__promotion-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.page-news__promotion-item::before {
  content: '⚡'; /* Unicode lightning bolt */
  margin-right: 10px;
  font-size: 20px;
  color: #26A9E0;
}

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

/* Social Responsibility Section */
.page-news__social-responsibility {
  padding: 60px 0;
  background-color: #1a1a1a;
}

/* CTA Section (Dark Background) */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Primary brand color background */
}

.page-news__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-news__faq-list {
  margin-top: 30px;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.page-news__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 0 25px 15px;
  font-size: 16px;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

/* For <details> tag, native handling */
.page-news__faq-item[open] .page-news__faq-answer {
  max-height: none; /* Let browser handle height */
  padding-top: 15px;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-news__subtitle {
    font-size: clamp(16px, 2vw, 20px);
  }

  .page-news__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-news__image-column {
    flex: none;
    width: 100%;
    margin-top: 30px;
  }

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

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

  .page-news__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }

  .page-news__sub-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-top: 20px;
    margin-bottom: 10px;
  }

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

  .page-news__hero-content {
    padding: 10px;
  }

  .page-news__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-news__subtitle {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 20px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px;
  }

  .page-news__cta-wrapper .page-news__btn-primary,
  .page-news__hero-content .page-news__btn-primary,
  .page-news__view-all-button-wrapper .page-news__btn-secondary,
  .page-news__cta-section .page-news__btn-secondary {
    max-width: 80% !important; /* Adjust for single button to not be full width */
    width: 80% !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

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

  .page-news__article-card {
    margin: 0 10px;
  }

  .page-news__image-full-width,
  .page-news__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__container,
  .page-news__intro-section,
  .page-news__featured-articles,
  .page-news__analysis-tips,
  .page-news__promotions-section,
  .page-news__social-responsibility,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-news__faq-answer {
    font-size: 15px;
    padding: 0 20px 10px;
  }
}