/* style/news.css */

/* Custom Colors */
:root {
  --page-news-bg: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border: #2E7A4E;
  --page-news-glow: #57E38D;
  --page-news-gold: #F2C14E;
  --page-news-divider: #1E3A2A;
  --page-news-deep-green: #0A4B2C;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  background-color: var(--page-news-bg);
  color: var(--page-news-text-main); /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Base section padding */
.page-news__section {
  padding: 60px 0;
}

.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: var(--page-news-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height */
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-content {
  position: relative; /* Ensure content is above any potential background layers */
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
}

.page-news__main-title {
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-news__description {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  margin-bottom: 30px;
}

/* CTA Button */
.page-news__cta-button {
  display: inline-block;
  background: var(--page-news-btn-gradient);
  color: var(--page-news-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt */
  white-space: normal;
  word-wrap: break-word;
}

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

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

/* Featured News Grid */
.page-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

.page-news__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to expand */
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to take up space */
}

.page-news__card-title a {
  color: var(--page-news-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--page-news-glow);
}

.page-news__card-meta {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: var(--page-news-text-main);
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--page-news-glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

/* Latest News List */
.page-news__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__list-item {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-5px);
}

.page-news__list-image {
  width: 250px; /* Fixed width for list image */
  height: 166px; /* Maintain aspect ratio (3:2) */
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.page-news__list-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.2em;
  margin-bottom: 5px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__list-title a {
  color: var(--page-news-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: var(--page-news-glow);
}

.page-news__list-meta {
  font-size: 0.85em;
  color: var(--page-news-text-secondary);
  margin-bottom: 10px;
}

.page-news__list-text {
  font-size: 0.95em;
  color: var(--page-news-text-main);
  margin-bottom: 15px;
}

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

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

/* Why Choose Section */
.page-news__why-choose {
  background-color: var(--page-news-deep-green); /* Darker background for contrast */
  color: var(--page-news-text-main);
  padding: 80px 0;
}

.page-news__why-choose .page-news__section-title {
  color: var(--page-news-gold);
}

.page-news__why-choose .page-news__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--page-news-text-secondary);
}

.page-news__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-news__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--page-news-glow);
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1em;
  color: var(--page-news-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--page-news-bg);
  padding: 60px 0;
}

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

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-news-divider);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-news-text-main);
  cursor: pointer;
  background-color: var(--page-news-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: var(--page-news-deep-green);
  color: var(--page-news-gold);
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}
.page-news__faq-question::marker {
  display: none;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-news-glow);
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
  line-height: 1.7;
}

/* Final CTA Section */
.page-news__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--page-news-deep-green);
}

.page-news__cta-section .page-news__section-title {
  color: var(--page-news-gold);
  margin-bottom: 25px;
}

.page-news__cta-section .page-news__description {
  margin-bottom: 40px;
  color: var(--page-news-text-secondary);
  font-size: 1.15em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__hero-image {
    max-height: 400px;
  }

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

  .page-news__news-card {
    flex-direction: row; /* For tablet, make cards horizontal */
    align-items: center;
  }

  .page-news__card-image {
    width: 40%;
    height: auto;
    max-height: 200px;
  }

  .page-news__card-content {
    width: 60%;
  }

  .page-news__list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-news__list-image {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .page-news__list-content {
    width: 100%;
  }

  .page-news__advantage-list {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  /* Mobile general padding for sections */
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-news__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Body handles header offset, small decorative top padding */
  }

  .page-news__hero-image {
    max-height: 250px;
    margin-bottom: 20px;
  }

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

  .page-news__description {
    font-size: 1em;
  }

  /* Images responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__news-card,
  .page-news__list-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow from image */
  }
  .page-news__card-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Adjust max height for mobile cards */
  }
  .page-news__card-content {
    width: 100%;
  }
  .page-news__list-image {
    width: 100%;
    height: auto;
    max-height: 150px; /* Adjust max height for mobile list items */
  }
  .page-news__list-content {
    width: 100%;
  }

  /* Buttons responsive */
  .page-news__cta-button,
  .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;
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container,
  .page-news__view-all-button-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;
    overflow: hidden !important;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-news__grid {
    grid-template-columns: 1fr; /* Stack featured news on mobile */
  }

  .page-news__news-card {
    flex-direction: column; /* Stack image and content vertically */
  }

  .page-news__card-image {
    width: 100%;
  }

  .page-news__card-content {
    width: 100%;
  }

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

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

  .page-news__advantage-list {
    padding: 0 15px;
  }
}