/* style/news.css */

.page-news {
  background-color: var(--color-background);
  color: var(--color-text-main); /* Ensure light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--color-primary); /* Using primary for titles for emphasis */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-news__section-title--light {
  color: #111111; /* Dark text for titles on primary background */
}

/* HERO Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--color-background); /* Explicitly set dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-news__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-news__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
  color: var(--color-text-main);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 font size clamp */
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.page-news__hero-image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Button Styles */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button for contrast */
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: var(--color-card-bg); /* Dark background for secondary button */
  color: var(--color-primary); /* Primary color text for contrast */
  border: 2px solid var(--color-primary);
}

.page-news__cta-button--secondary:hover {
  background: var(--color-primary);
  color: var(--color-card-bg);
  border-color: var(--color-primary);
}

/* News Grid Section */
.page-news__news-grid-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-news__news-card {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--color-border);
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-news__card-image {
  width: 100%;
  height: 200px; /* Fixed height for cards on desktop */
  object-fit: cover;
  display: block;
}

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

.page-news__card-date {
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.7); /* Slightly muted text main color */
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__card-description {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.9);
}

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

.page-news__view-all-button {
  min-width: 200px;
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.page-news__view-all-button:hover {
  background: var(--color-primary);
  color: var(--color-card-bg);
}

/* Promotions CTA Section */
.page-news__promo-cta-section {
  background-color: var(--color-primary); /* Using primary color as background */
  padding: 80px 0;
  text-align: center;
  color: #111111; /* Dark text on primary background for contrast */
}

.page-news__promo-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #111111; /* Dark text for contrast */
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0 80px;
  background-color: var(--color-background);
}

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

.page-news__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
  transition: background-color 0.2s ease;
  list-style: none; /* Hide default details marker */
}

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

.page-news__faq-question:hover {
  background-color: rgba(var(--color-primary), 0.1); /* Slightly lighter on hover */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-primary);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 246, 214, 0.9);
}

/* General image and container responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section,
.page-news__card,
.page-news__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-news__hero-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-news__container {
    padding: 30px 15px;
  }

  /* HERO Section */
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-news__hero-image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  /* CTA Buttons */
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__view-all-button-wrapper {
    margin-top: 30px;
  }
  .page-news__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-news__hero-content .page-news__cta-button {
      margin-bottom: 15px; /* Add space between stacked buttons */
  }

  /* News Grid */
  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }
  .page-news__card-content {
    padding: 15px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-description {
    font-size: 0.95em;
  }

  /* Promotions CTA Section */
  .page-news__promo-cta-section {
    padding: 50px 15px;
  }
  .page-news__promo-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* FAQ Section */
  .page-news__faq-list {
    max-width: 100%;
    padding: 0;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Universal image responsiveness for content area */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}