/* style/news.css */
.page-news {
  color: #FFF3E6; /* Text Main for dark background */
  background-color: #0D0E12; /* Background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Ensure consistent background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  width: 100%;
  max-width: 1200px; /* Match container width */
  box-sizing: border-box;
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly for visual effect */
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.page-news__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1em;
  margin: 10px;
  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: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff; /* White text for buttons */
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%); /* Glow and Border colors */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Main color for border */
}

.page-news__btn-secondary:hover {
  background-color: #FF8C1A; /* Main color */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-news__news-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFF3E6; /* Text Main */
  border: 1px solid #A84F0C; /* Border color */
}

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

.page-news__card-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 3.9em; /* Ensure consistent title height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.page-news__card-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border color */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  min-height: 4.5em; /* Consistent excerpt height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more {
  display: inline-block;
  color: #FF8C1A; /* Main color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
}

/* Video Section */
.page-news__video-section {
  background-color: #0D0E12; /* Background color */
  padding: 60px 20px;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 800px; /* Limit video width */
  width: 100%; /* Ensure width is 100% for desktop */
  box-sizing: border-box;
}

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

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 20px;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

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

.page-news__faq-item {
  background-color: #0D0E12; /* Background color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item summary {
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFA53A; /* Auxiliary color */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FF8C1A; /* Main color */
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section {
    padding: 0 0 40px 0; /* Adjust padding for mobile */
  }

  .page-news__hero-content {
    padding: 30px 15px;
    margin-top: -40px;
  }

  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-news__description {
    font-size: 1em;
  }

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

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

  .page-news__card-title {
    font-size: 1.2em;
    min-height: unset; /* Allow height to adjust */
  }

  .page-news__card-excerpt {
    min-height: unset; /* Allow height to adjust */
  }

  .page-news__cta-buttons {
    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;
  }

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive rules */
  .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: 0; /* Inner video wrapper will handle padding */
    padding-right: 0; /* Inner video wrapper will handle padding */
    overflow: hidden !important;
  }
  .page-news__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

/* Ensure proper spacing for the first section after header */
.page-news__hero-section {
  margin-top: 0; /* Reset any default margin */
}

/* Specific color contrast classes if needed (as fallback, but should be handled by main styles) */
.page-news__dark-bg {
  color: #ffffff;
  background: #FF8C1A; /* Example of brand color with white text */
}

.page-news__light-bg {
  color: #333333;
  background: #ffffff;
}