/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: 0; /* Handled by shared.css body padding or first section */
}

.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; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #000000; /* Darker title for contrast */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87b7; /* Slightly darker on hover */
  border-color: #1e87b7;
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color text */
  border: 2px solid #26A9E0;
}

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

/* Latest News & Featured Articles Sections */
.page-news__latest-news-section,
.page-news__featured-articles-section,
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-news__featured-articles-section.page-news__dark-section {
  background-color: #26A9E0; /* Darker background for contrast */
  color: #ffffff;
}

.page-news__featured-articles-section.page-news__dark-section .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-articles-section.page-news__dark-section .page-news__section-description {
  color: #e0e0e0;
}

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

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

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

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

.page-news__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-title a:hover {
  color: #1e87b7;
}

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

.page-news__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensures content pushes link to bottom */
}

.page-news__read-more-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start; /* Align to the start of the flex container */
}

.page-news__read-more-link:hover {
  color: #1e87b7;
  text-decoration: underline;
}

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light background for video section */
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px; /* Max width for video */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Indicates clickability */
}

.page-news__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-caption {
  font-size: 1.1em;
  color: #555555;
  margin-top: 20px;
}

.page-news__video-cta {
  margin-top: 30px;
}


/* Promotions Section */
.page-news__promotions-banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__promotions-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* White background for FAQ */
}

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

.page-news__faq-item {
  background-color: #f0f8ff; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for questions */
  cursor: pointer;
  background-color: #e6f7ff; /* Lighter brand color background */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1.2em;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Change to 'X' or '-' */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff; /* White background for answers */
  color: #333333;
}

.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;
  padding-bottom: 10px; /* Space for paragraphs within answer */
}

.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

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

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

.page-news__cta-section .page-news__section-description {
  color: #e0e0e0;
}

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

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

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

  /* Hero Section */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* General section padding */
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__video-section,
  .page-news__promotions-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 50px 0;
  }
  
  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* Articles Grid */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Video */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to wrapper */
    margin: 30px auto;
  }
  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top */
  }


  /* Buttons */
  .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: 12px 20px;
    font-size: 1em;
  }
  .page-news__hero-cta-buttons,
  .page-news__promotions-cta-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ */
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
}