/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: linear-gradient(135deg, #26A9E0, #1a8ac7); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-news__video-container {
  width: 100%; /* Desktop width */
  max-width: 1200px;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #000000; /* Fallback for video */
}

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

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.page-news__btn-primary:hover {
  background: #d46a00;
  border-color: #d46a00;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-news__section {
  padding: 60px 20px;
}

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

.page-news__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__dark-bg .page-news__section-title {
  color: #ffffff;
}

.page-news__light-bg .page-news__section-title {
  color: #000000;
}

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

/* Grid Layouts */
.page-news__grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.page-news__grid-3-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Text Blocks & Images */
.page-news__text-block {
  text-align: left;
}

.page-news__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-news__text-block p {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-news__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.page-news__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-news__dark-bg .page-news__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

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

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

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

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

.page-news__dark-bg .page-news__card-title a {
  color: #ffffff;
}

.page-news__card-title a:hover {
  color: #EA7C07; /* Login color on hover */
}

.page-news__card-content p {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__btn-text {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__dark-bg .page-news__btn-text {
  color: #ffffff;
}

.page-news__btn-text:hover {
  color: #EA7C07;
  text-decoration: underline;
}

.page-news__button-group {
  text-align: center;
  margin-top: 40px;
}

/* Feature Items */
.page-news__feature-item {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Info Cards */
.page-news__info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__dark-bg .page-news__info-card {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-news__info-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__dark-bg .page-news__info-title {
  color: #ffffff;
}

.page-news__info-card p {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background: #eaf7fd;
  border-bottom: 1px solid #d0e8f8;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eeeeee;
}

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

/* CTA Section at bottom */
.page-news__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__grid-3-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-news__video-container {
    margin-bottom: 20px;
  }

  .page-news__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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: 12px 20px;
  }

  .page-news__section {
    padding: 40px 15px;
  }

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

  .page-news__grid-2-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-news__grid-3-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-news__card-image {
    height: 200px;
  }

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

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

  .page-news__feature-item {
    padding: 15px;
  }

  .page-news__feature-title {
    font-size: 1.3em;
  }

  .page-news__info-card {
    padding: 25px;
  }

  .page-news__info-title {
    font-size: 1.4em;
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Image responsiveness for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsiveness for all elements that may contain images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}