/* style/news.css */

/* General styles for page-news */
.page-news {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero section background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(17,168,78,0.3) 0%, rgba(8,22,15,0.8) 100%); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: -100px; /* Overlap slightly with image for design, but text is below image in DOM */
}

.page-news__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

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

/* CTA Button */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Main text color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

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

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

.page-news__article-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

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

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

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: #F2C14E; /* Gold on hover */
}

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

.page-news__article-excerpt {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

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

.page-news__read-more:hover {
  color: #F2C14E; /* Gold on hover */
}

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

/* Featured News Section */
.page-news__featured-news {
  padding: 80px 0;
  background-color: #11271B; /* Card BG color */
}

.page-news__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__feature-card {
  display: flex;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

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

.page-news__feature-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__feature-title {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__feature-excerpt {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* Industry Insights Section */
.page-news__industry-insights {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-news__insight-card {
  background-color: #11271B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-news__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news__insight-content {
  padding: 20px;
}

.page-news__insight-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__insight-title a:hover {
  color: #F2C14E;
}

.page-news__insight-excerpt {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* CTA Banner Section */
.page-news__cta-banner {
  background: linear-gradient(90deg, #11A84E, #22C768); /* Brand gradient */
  padding: 60px 20px;
  text-align: center;
  color: #F2FFF6;
}

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

.page-news__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F2FFF6;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #11271B;
}

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

.page-news__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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 20px 20px 20px;
  font-size: 1em;
  color: #A7D9B8;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -50px;
  }
  .page-news__feature-card {
    flex-direction: column;
  }
  .page-news__feature-image,
  .page-news__feature-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding, body handles header-offset */
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    margin-top: -30px;
    padding: 20px;
  }
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-description {
    font-size: 0.9em;
  }
  .page-news__article-grid,
  .page-news__insight-cards {
    grid-template-columns: 1fr;
  }
  .page-news__article-card, .page-news__insight-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-news__latest-articles, .page-news__featured-news, .page-news__industry-insights, .page-news__faq-section {
    padding: 40px 0;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness */
  .page-news__section, .page-news__card, .page-news__container, .page-news__article-card, .page-news__feature-card, .page-news__insight-card, .page-news__cta-banner, .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 1.5em;
  }
  .page-news__article-title, .page-news__feature-title, .page-news__insight-title {
    font-size: 1.2em;
  }
  .page-news__cta-button--large {
    padding: 15px 25px;
    font-size: 1em;
  }
}