/* style/news.css */
/* Body background from shared.css is var(--background-color), which is dark based on custom colors.
   Text colors will be light (#F2FFF6, #A7D9B8) for contrast. */

:root {
  --page-news-bg-color: #08160F; /* Background */
  --page-news-card-bg-color: #11271B; /* Card BG */
  --page-news-text-main-color: #F2FFF6; /* Text Main */
  --page-news-text-secondary-color: #A7D9B8; /* Text Secondary */
  --page-news-border-color: #2E7A4E; /* Border */
  --page-news-glow-color: #57E38D; /* Glow */
  --page-news-gold-color: #F2C14E; /* Gold */
  --page-news-divider-color: #1E3A2A; /* Divider */
  --page-news-deep-green-color: #0A4B2C; /* Deep Green */

  /* Button colors */
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

/* Fixed header spacing: body handles padding-top. First section needs small top padding. */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-news__hero-content {
  position: relative; /* Ensure content is below image in normal flow */
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  margin-top: -80px; /* Pull content up slightly over image for visual flow, but not overlap text */
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-news-text-main-color);
  margin-bottom: 20px;
  max-width: 800px; /* Constrain H1 width */
  margin-left: auto;
  margin-right: auto;
}

/* H1 font size for desktop, no fixed large size */
@media (min-width: 1025px) {
  .page-news__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1, but capped */
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
}
@media (max-width: 768px) {
  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    padding: 0 15px;
  }
}


.page-news__intro-text {
  font-size: 1.1em;
  color: var(--page-news-text-secondary-color);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__section-title {
  color: var(--page-news-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: bold;
}

.page-news__section-description {
  text-align: center;
  color: var(--page-news-text-secondary-color);
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__article-card {
  background-color: var(--page-news-card-bg-color);
  border-radius: 10px;
  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 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  color: var(--page-news-text-main-color);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__article-excerpt {
  color: var(--page-news-text-secondary-color);
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1; /* Push date to bottom */
}

.page-news__article-date {
  font-size: 0.85em;
  color: var(--page-news-text-secondary-color);
  opacity: 0.8;
}

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

/* CTA Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: #ffffff; /* White text on dark gradient */
  border: none;
  margin-right: 15px;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--page-news-text-main-color);
  border: 2px solid var(--page-news-border-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-border-color);
  color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--page-news-deep-green-color);
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: var(--page-news-card-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-news-text-main-color);
  border-bottom: 1px solid var(--page-news-divider-color);
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-news-gold-color);
}

.page-news__faq-answer {
  padding: 20px 25px;
  color: var(--page-news-text-secondary-color);
  font-size: 1em;
  border-top: 1px solid var(--page-news-divider-color);
}
.page-news__faq-answer p {
  margin-bottom: 15px;
}
.page-news__faq-link {
  color: var(--page-news-gold-color);
  text-decoration: underline;
  font-weight: bold;
}
.page-news__faq-link:hover {
  color: var(--page-news-glow-color);
}

/* CTA Banner Section */
.page-news__cta-banner {
  background-color: var(--page-news-deep-green-color);
  padding: 80px 20px;
}

.page-news__cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  color: var(--page-news-gold-color);
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-news__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__cta-image-wrapper {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__cta-container {
    flex-direction: column-reverse; /* Image above content on tablet */
    text-align: center;
  }
  .page-news__cta-content {
    text-align: center;
  }
  .page-news__cta-image-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 20px 15px;
    margin-top: -60px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-news__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__article-excerpt {
    font-size: 0.9em;
  }

  /* Mobile responsive for images, videos, buttons */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video,
  .page-news__video { /* If video were present */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section, /* If video were present */
  .page-news__video-container, /* If video were present */
  .page-news__video-wrapper, /* If video were present */
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
    margin-bottom: 10px; /* Stack buttons vertically */
  }
  .page-news__btn-primary:last-child,
  .page-news__btn-secondary:last-child {
    margin-bottom: 0;
  }
  .page-news__cta-buttons {
    flex-direction: column; /* Stack CTA buttons vertically */
    gap: 10px;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
}