/* style/news.css */

/* --- General Styles for page-news scope --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body handles it */
}

.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: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #26A9E0; /* Brand color as background */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width of its container */
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no color filters */
}

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  color: #FFFFFF; /* White text for dark brand background */
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for button max-width */
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure button takes full width on small screens */
  width: auto; /* Default auto width */
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* --- Latest News Section & Featured Announcements --- */
.page-news__latest-news-section,
.page-news__featured-announcements {
  padding: 80px 0;
}

.page-news__latest-news-section {
  background-color: #FFFFFF; /* Light background */
}

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

.page-news__news-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no color filters */
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to fill available space */
  display: flex;
  flex-direction: column;
}

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

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #1a7aa8;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to grow */
}

.page-news__read-more {
  display: inline-block;
  color: #EA7C07; /* Login color for read more */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  color: #d46a00;
}

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

/* --- Featured Announcements Section --- */
.page-news__featured-announcements {
  background-color: #26A9E0; /* Brand color background */
}

.page-news__featured-announcements .page-news__section-title,
.page-news__featured-announcements .page-news__section-description {
  color: #FFFFFF; /* White text for dark background */
}

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

.page-news__announcement-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand color */
  border-radius: 10px;
  padding: 25px;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__announcement-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-news__announcement-title a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__announcement-meta {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 15px;
}

.page-news__announcement-excerpt {
  font-size: 1em;
  opacity: 0.9;
}

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

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

.page-news__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f0f7fa; /* Light blue background for question */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #555555;
}

/* --- Call to Action Section --- */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #FFFFFF;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

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

  .page-news__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust for smaller screens */
  }

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

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__latest-news-section,
  .page-news__featured-announcements,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 60px 0;
  }

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

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

  .page-news__news-grid,
  .page-news__announcement-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-news__card-image-wrapper {
    height: 180px; /* Adjust card image height */
  }

  .page-news__container {
    padding: 0 15px !important; /* Add padding for mobile content areas */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Force responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no filters */
  }
}

/* Ensure no filters on images globally within page-news scope */
.page-news img {
  filter: none;
}

/* Ensure all content containers are responsive and prevent overflow */
.page-news__section,
.page-news__card,
.page-news__container,
.page-news__news-card,
.page-news__announcement-item,
.page-news__faq-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Specific override for .page-news__hero-image-wrapper to prevent overflow */
.page-news__hero-image-wrapper {
  overflow: hidden;
}

/* Ensure desktop video container width: 100% (even if no video on this page, per instruction) */
.page-news__video-container {
  width: 100%; /* Desktop, non-media query */
  max-width: 1200px; /* Desktop, non-media query */
}