/* style/news.css */

/* --- Base Styles --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for content areas with white background */
  background-color: var(--dark-bg); /* Inherit from shared, this will be outside main content */
}

/* --- 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;
  color: #ffffff; /* Light text for dark hero background */
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  filter: none; /* Explicitly ensure no filter is applied */
}

.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: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

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

.page-news__hero-button {
  font-size: 1.1em;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* --- Content Area Base --- */
.page-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Explicit white background for content */
  color: #333333; /* Dark text for white background */
}

.page-news__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for brand primary background */
  padding: 60px 20px;
}

.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: inherit; /* Inherit color from parent section */
  text-align: center;
  margin-bottom: 40px;
}

.page-news__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-news__text-block a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
}

.page-news__text-block a:hover {
  text-decoration: underline;
}

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

/* --- Card Styles --- */
.page-news__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px 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__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  filter: none; /* Explicitly ensure no filter is applied */
}

.page-news__card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-news__card-title a {
  color: #26A9E0; /* Ensure link in title is brand color */
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  padding: 0 20px 20px;
  flex-grow: 1;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-news__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

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

.page-news__cta-buttons .page-news__btn-primary,
.page-news__cta-buttons .page-news__btn-secondary {
  min-width: 180px;
}

/* --- Benefits Section --- */
.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-news__benefit-icon {
  font-size: 1.5em;
  margin-right: 15px;
  color: #ffffff; /* White icon for dark background */
}

.page-news__benefit-text {
  color: #f0f0f0; /* Light text for dark background */
}

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

.page-news__step-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

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

.page-news__step-text {
  font-size: 1em;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question area */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-news__faq-text {
  margin: 0;
  color: #f0f0f0;
}

/* --- Conclusion Section --- */
.page-news__conclusion-section {
  text-align: center;
}

/* --- Responsive Design --- */

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

  /* Ensure hero section padding-top is set */
  .page-news__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-button {
    padding: 12px 25px;
  }

  .page-news__content-area,
  .page-news__dark-section {
    padding: 40px 15px;
  }

  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal overflow */
  }

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

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

  .page-news__card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

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

  .page-news__card-title {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }

  .page-news__card-text {
    padding: 0 15px 15px;
  }

  .page-news__card-button {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
  }

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

  .page-news__cta-buttons .page-news__btn-primary,
  .page-news__cta-buttons .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;
  }

  .page-news__benefits-list {
    margin-top: 30px;
  }

  .page-news__benefit-item {
    font-size: 1em;
    margin-bottom: 15px;
  }

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

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

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

  .page-news__faq-list {
    margin-top: 30px;
  }

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

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

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

  /* Mobile image and video specific overrides */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area image size check - min 200px. */
  /* Here, card images are 200px height, max-width: 100% will make them responsive. */
  /* Hero image is full width. All good. */
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }

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

  .page-news__hero-section {
    height: 500px;
  }

  .page-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__cta-buttons {
    flex-wrap: wrap;
  }
}