/* style/news.css */

/* Base Styles & Typography */
.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;
}

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

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

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

.page-news__section-description--light {
  color: #A7D9B8;
}

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-news__btn-secondary:hover {
  background: #22C768; /* Accent */
  color: #08160F; /* Background - for contrast */
  transform: translateY(-2px);
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-news__hero-content-container {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-news__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  /* No fixed font-size for H1 */
}

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

.page-news__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.page-news__article-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__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

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

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

.page-news__read-more {
  color: #57E38D; /* 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;
}

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

/* Insights Section */
.page-news__insights-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__insight-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__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__insight-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-news__insight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-news__insight-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

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

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

.page-news__read-more--light {
  color: #57E38D; /* Glow */
}

/* 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: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #1E3A2A; /* Divider - for summary background */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

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

/* CTA Section */
.page-news__cta-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-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__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.9em;
  }
  .page-news__latest-articles-section, 
  .page-news__insights-section, 
  .page-news__faq-section, 
.page-news__cta-section {
    padding: 50px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__articles-grid, 
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card, 
  .page-news__insight-card, 
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__article-image, 
  .page-news__insight-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-image-wrapper, 
  .page-news__insight-image-wrapper {
    height: auto;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure all images and video (if any) are responsive */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Containers for images and videos */
.page-news__hero-image-wrapper,
.page-news__article-image-wrapper,
.page-news__insight-image-wrapper,
.page-news__video-container,
.page-news__video-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .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__latest-articles-section,
  .page-news__insights-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  /* Specific overrides for containers that might have padding */
  .page-news__hero-content-container, 
  .page-news__hero-buttons, 
  .page-news__cta-content, 
  .page-news__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__hero-buttons,
  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}