/* style/news.css */

/* Base styles for the page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background is white */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Adjust as needed */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px; /* Increased padding for better visual */
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

/* General Section Styles */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

/* Latest News Section */
.page-news__latest-news {
  background-color: #f9f9f9;
  color: #333333;
}

.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-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

.page-news__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #26A9E0;
}

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

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

.page-news__card-excerpt {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85rem;
  color: #999999;
  margin-top: auto;
  margin-bottom: 10px;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

/* Industry Insights Section */
.page-news__industry-insights {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__industry-insights .page-news__section-title {
  color: #ffffff;
}

.page-news__content-wrapper {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-news__text-block {
  flex: 2;
}

.page-news__text-block p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.page-news__image-block {
  flex: 1;
  min-width: 300px;
}

.page-news__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Promotions & Events Section */
.page-news__promotions-events {
  background-color: #ffffff;
  color: #333333;
}

.page-news__promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-news__promo-item {
  background-color: #f0f7ff;
  padding: 25px;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news__promo-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-news__promo-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #f9f9f9;
  color: #333333;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f7ff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-qtext {
  flex-grow: 1;
}

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

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

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

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  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 #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bb2;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__content-wrapper {
    flex-direction: column;
  }

  .page-news__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 20px;
  }

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

  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

  .page-news__section-title {
    font-size: 2rem;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-news__container {
    padding: 30px 15px;
  }

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

  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

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

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

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

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

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

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding doesn't cause overflow */
  }

  /* Mobile container adaptation */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__industry-insights,
  .page-news__promotions-events,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__news-grid,
  .page-news__content-wrapper,
  .page-news__promo-list,
  .page-news__faq-list,
  .page-news__view-all-wrapper,
  .page-news__text-block,
  .page-news__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding adjustments for sections that already have it */
  .page-news__hero-section,
  .page-news__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile button adaptation */
  .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-left: 15px !important; /* Ensure text doesn't hit edges */
    padding-right: 15px !important;
    margin-bottom: 10px; /* Spacing between stacked buttons */
  }

  .page-news__hero-content .page-news__btn-primary {
    margin-bottom: 0; /* Last button in a group */
  }

  .page-news__view-all-wrapper .page-news__btn-secondary {
    margin-bottom: 0;
  }

  .page-news__cta-section .page-news__btn-primary {
    margin-bottom: 0;
  }

  /* Ensure no horizontal scroll from content blocks */
  .page-news {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    min-height: 350px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-news__hero-description {
    font-size: 0.9rem;
  }

  .page-news__section-title {
    font-size: 1.5rem;
  }

  .page-news__card-title {
    font-size: 1.1rem;
  }

  .page-news__promo-title {
    font-size: 1.1rem;
  }
}

/* Color Contrast Fixes (if needed, based on body background and brand colors) */
.page-news__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-news__industry-insights .page-news__text-block p {
  color: #f0f0f0; /* Lighter text for dark background */
}