/* style/news.css */

/* General Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #08160F; /* Overall page background */
}

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__section:nth-of-type(even) {
  background-color: #11271B; /* Card BG color for alternating sections */
}

.page-news__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
}

.page-news__section-title--white {
  color: #F2FFF6;
}

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

.page-news__section-description--white {
  color: #F2FFF6;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 15px;
  background-color: rgba(8, 22, 15, 0.7); /* Deep Green overlay for readability */
  margin-top: -100px; /* Overlap slightly for visual flow */
  border-radius: 10px;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-news__main-title {
  font-size: clamp(1.8em, 4vw, 3em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

.page-news__cta-button--outline {
  background: transparent;
  border: 2px solid #2AD16F;
  color: #2AD16F;
}

.page-news__cta-button--outline:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

/* Grid Layout for News/Promos/Guides */
.page-news__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card, .page-news__promo-card, .page-news__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover, .page-news__promo-card:hover, .page-news__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 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: 1.4em;
  margin-bottom: 10px;
  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;
}

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

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

.page-news__read-more {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #57E38D;
}

.page-news__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Why Update Section */
.page-news__why-update {
  background-color: #08160F;
}

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

.page-news__reason-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-news__reason-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-news__faq {
  background-color: #11271B;
}

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

.page-news__faq-item {
  background-color: #08160F; /* Background */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

/* Call to Action Section */
.page-news__call-to-action {
  background-color: #08160F;
  padding: 80px 0;
}

.page-news__call-to-action-content {
  background-color: #11271B; /* Card BG */
  padding: 50px;
  border-radius: 15px;
  border: 2px solid #2E7A4E; /* Border color */
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(1.6em, 5vw, 2.5em);
  }
  .page-news__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    margin-top: -60px;
    padding: 10px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.4em, 6vw, 2.2em);
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-news__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__reason-item, .page-news__news-card, .page-news__promo-card, .page-news__guide-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-news__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__cta-button,
  .page-news__cta-button--outline {
    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__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-news__call-to-action-content {
    padding: 30px;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__hero-image-wrapper,
  .page-news__hero-content,
  .page-news__news-card,
  .page-news__promo-card,
  .page-news__guide-card,
  .page-news__reason-item,
  .page-news__faq-item,
  .page-news__call-to-action-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__intro-text {
    font-size: 0.95em;
  }
  .page-news__cta-button {
    padding: 10px 20px;
    font-size: 0.85em;
  }
  .page-news__card-title {
    font-size: 1.1em;
  }
  .page-news__card-meta, .page-news__card-excerpt {
    font-size: 0.9em;
  }
  .page-news__read-more {
    font-size: 0.9em;
  }
  .page-news__reason-title {
    font-size: 1.3em;
  }
  .page-news__reason-text {
    font-size: 0.95em;
  }
}