/* style/news.css */

/* Base styles for the page content, ensuring light text on dark background */
.page-news {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-news__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

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

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

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

.page-news__section-title--gold {
  color: #F2C14E; /* Gold */
}

.page-news__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-news__latest-news-section,
.page-news__featured-announcements-section,
.page-news__industry-insights-section,
.page-news__cta-bottom-section,
.page-news__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-news__news-card,
.page-news__insight-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

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

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

.page-news__read-more {
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border-color: #2E7A4E; /* Border */
}

.page-news__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter version of border color for hover */
  color: #57E38D; /* Glow */
  border-color: #57E38D;
}

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

.page-news__announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__announcement-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__announcement-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__announcement-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-news__announcement-title time {
  font-weight: normal;
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__announcement-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__cta-bottom-section {
  text-align: center;
  padding: 100px 20px;
}

.page-news__cta-bottom-section .page-news__cta-group {
  margin-top: 40px;
}

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* For details/summary default marker */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  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;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  line-height: 1.7;
}

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

.page-news__faq-answer a {
  color: #2AD16F;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.4em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-news__hero-content {
    padding: 15px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    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__latest-news-section,
  .page-news__featured-announcements-section,
  .page-news__industry-insights-section,
  .page-news__cta-bottom-section,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-news__section-description {
    margin-bottom: 30px;
  }

  .page-news__news-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card,
  .page-news__insight-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-news__card-image {
    height: 200px;
  }

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

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__announcement-item {
    padding: 20px;
  }

  .page-news__announcement-title {
    font-size: 1.1em;
  }

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

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

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

  /* Mobile video specific rules - No video on this page, but keeping the structure for robustness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.4em;
  }
  .page-news__hero-cta-group {
    flex-direction: column;
  }
}