/* style/news.css */

/* Base styles for the news page */
.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;
}

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

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.page-news__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a8cc4; /* Darker shade on hover */
  border-color: #1a8cc4;
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0; /* Brand primary color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

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

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-btn {
  font-size: 1.1em;
}

/* Featured News Section */
.page-news__featured-news {
  padding: 80px 0;
  background-color: #000000; /* Dark background from body */
  color: #ffffff;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  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;
}

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

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

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

.page-news__news-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__news-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: #ffffff;
}

.page-news__news-meta {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 10px;
}

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

.page-news__news-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__news-link:hover {
  color: #ffffff;
}

/* All News Section */
.page-news__all-news {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light section */
}

.page-news__all-news .page-news__section-title {
  color: #333333; /* Dark text for light section */
}

.page-news__news-list {
  display: grid;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-news__list-image {
  width: 300px; /* Fixed width for desktop */
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-news__list-content {
  padding: 20px;
  flex-grow: 1;
}

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

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

.page-news__list-title a:hover {
  color: #000000;
}

.page-news__list-meta {
  font-size: 0.85em;
  color: #666666;
  margin-bottom: 10px;
}

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

.page-news__list-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__list-link:hover {
  color: #000000;
}

.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__all-news .page-news__pagination-link {
    background-color: #e0e0e0;
    color: #333333;
    border: 1px solid #cccccc;
}

.page-news__pagination-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
}

.page-news__pagination-link--active {
    background-color: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
    cursor: default;
}

.page-news__pagination-link--active:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  text-align: center;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width of the video */
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  /* Aspect ratio 16:9 padding-bottom trick */
  padding-bottom: 56.25%; /* 9/16 * 100% */
  height: 0;
  cursor: pointer; /* Indicate clickability */
}

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

.page-news__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Make it clickable over video controls */
  background: transparent; /* Invisible overlay */
}

.page-news__video-cta-btn {
  font-size: 1.2em;
}

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

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

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

.page-news__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-question {
  background-color: #e5e5e5;
  border-bottom-color: transparent;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(0deg); /* "+" becomes "-" */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

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

.page-news__faq-answer p {
  margin: 0;
  color: #555555;
}
.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}
.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-news__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  z-index: -1;
}

.page-news__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

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

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  color: #f0f0f0;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-news__cta-btn {
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-news__list-item {
    flex-direction: column;
  }
  .page-news__list-image {
    width: 100%;
    height: 250px;
  }
  .page-news__cta-title {
    font-size: 2.2em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    height: 500px;
  }

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

  .page-news__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__hero-btn,
  .page-news__video-cta-btn,
  .page-news__cta-btn,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    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__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__cta-buttons .page-news__cta-btn {
      width: auto !important; /* Allow buttons to grow within the flex column */
  }


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

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

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

  .page-news__news-card {
    margin: 0 15px; /* Add horizontal padding for cards */
  }

  .page-news__news-list {
    margin: 0 15px; /* Add horizontal padding for list items */
  }

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__list-image {
    width: 100% !important;
    height: 200px !important;
  }

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

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

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  /* Image responsiveness for mobile */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-grid,
  .page-news__news-list,
  .page-news__faq-list,
  .page-news__cta-container,
  .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; /* Prevent horizontal scroll */
  }

  /* Video responsiveness for mobile */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure video wrapper maintains aspect ratio but doesn't overflow */
  .page-news__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    height: 0 !important;
  }

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

  .page-news__faq-heading {
    font-size: 1.1em;
  }

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

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

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

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.95em;
  }
  .page-news__hero-section {
    height: 400px;
  }
  .page-news__news-card {
    padding: 10px;
  }
  .page-news__news-title {
    font-size: 1.4em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
  }
}