/* 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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero */
}

.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.3; /* Subtle overlay */
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #e00;
  border-color: #e00;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-news__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Content Area */
.page-news__content-area {
  padding: 60px 0;
  background-color: #0a0a0a; /* Ensure content area uses the body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-news__section-title,
.page-news__sub-section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news__section-title::after,
.page-news__sub-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #017439;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-news__paragraph {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: #f0f0f0;
}

/* Article Grid */
.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-news__article-card,
.page-news__guide-item,
.page-news__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  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;
  color: #ffffff;
}

.page-news__article-card:hover,
.page-news__guide-item:hover,
.page-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-news__article-title a {
  color: #FFFFFF; /* Light text for dark card background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #017439; /* Brand primary color on hover */
}

.page-news__article-date {
  display: block;
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* Guide List */
.page-news__guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

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

.page-news__guide-title a {
  color: #FFFFFF; /* Light text for dark card background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #017439;
}

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

/* Video Section */
.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto 60px;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
}

.page-news__video-description {
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 20px auto 0;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

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

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

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

/* CTA Bottom */
.page-news__cta-bottom {
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  border-radius: 10px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

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

.page-news__cta-bottom .page-news__btn-primary,
.page-news__cta-bottom .page-news__btn-secondary {
  margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
}

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

  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    min-height: 400px;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    display: block;
    margin: 10px auto;
    width: calc(100% - 30px);
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title,
  .page-news__sub-section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-news__paragraph {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__article-grid,
  .page-news__guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title,
  .page-news__guide-title {
    font-size: 1.3em;
  }

  .page-news__video-wrapper {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for smaller screens or adjust as needed */
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing for video section */
  }

  .page-news__video-description {
    font-size: 0.95em;
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-news__cta-bottom {
    padding: 40px 15px;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }

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

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
  }
  
  .page-news__cta-bottom .page-news__btn-primary,
  .page-news__cta-bottom .page-news__btn-secondary {
    margin: 10px auto;
    width: calc(100% - 30px);
  }
  .page-news__cta-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

  .page-news__section-title,
  .page-news__sub-section-title {
    font-size: 1.6em;
  }

  .page-news__article-title,
  .page-news__guide-title {
    font-size: 1.2em;
  }

  .page-news__cta-title {
    font-size: 1.5em;
  }
}