/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: #017439; /* Brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  box-sizing: border-box;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-news__btn-primary {
  display: inline-block;
  background: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color for register/login type buttons */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border: 2px solid #017439;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-left: 15px;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-news__latest-articles {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for article cards */
  color: #333333; /* Dark text for light background */
}

.page-news__latest-articles .page-news__section-title {
  color: #017439;
}

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

.page-news__article-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-news__article-title a:hover {
  color: #005f2e;
}

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

.page-news__read-more-btn {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #017439;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  color: #005f2e;
  border-color: #005f2e;
}

.page-news__promotions-guides {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-news__promotions-guides .page-news__section-title {
  color: #ffffff;
}

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

.page-news__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-news__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-news__promo-content {
  padding: 25px;
}

.page-news__promo-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-news__promo-title a:hover {
  color: #f0f0f0;
}

.page-news__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-news__video-section .page-news__section-title {
  color: #017439;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__video-wrapper .page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-news__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-news__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Body background color for contrast */
  color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
  color: #ffffff;
}

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  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: #ffffff;
  cursor: pointer;
  background: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #005f2e;
}

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

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

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

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-news__cta-section .page-news__section-title {
  color: #017439;
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-news__cta-button + .page-news__cta-button {
  margin-left: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description,
  .page-news__cta-description,
  .page-news__video-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__article-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-content,
  .page-news__promo-content,
  .page-news__faq-question,
  .page-news__faq-answer {
    padding: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }
  .page-news__cta-button + .page-news__cta-button {
    margin-top: 15px;
    margin-left: 0 !important;
  }
  .page-news__latest-articles, .page-news__promotions-guides, .page-news__video-section, .page-news__faq-section, .page-news__cta-section {
    padding: 40px 0;
  }

  /* Image responsive adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-image, .page-news__promo-image {
    height: auto !important; /* Adjust height for mobile */
  }

  /* Video responsive adaptation */
  .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;
    overflow: hidden !important;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
}