/* style/news.css */

/* Base styles for the news page, ensuring light text on dark background */
.page-news {
  background-color: #0A0A0A; /* Background color from custom palette */
  color: #FFF6D6; /* Main text color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section spacing and container for content */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-news__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E6AE2A 100%);
}

.page-news__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Main brand color */
  border: 2px solid #3A2A12; /* Border color */
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-news__btn-lg {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin: 0 auto;
}

.page-news__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 800;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-news__hero-content .page-news__description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 40px;
}

.page-news__hero-content .page-news__btn-primary {
  margin-top: 20px;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-news__article-card {
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  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.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2C14E; /* Main brand color for links */
  text-decoration: none;
}

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

.page-news__card-meta {
  font-size: 0.9em;
  color: #FFF6D6;
  margin-bottom: 15px;
  opacity: 0.7;
}

.page-news__card-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-card .page-news__btn-secondary {
  align-self: flex-start;
  margin-top: auto; /* Push button to the bottom */
}

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

/* Promotions Highlight Section */
.page-news__promotions-highlight-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-news__promotion-card {
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__faq-item {
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item summary {
  list-style: none;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Main brand color */
  cursor: pointer;
  background-color: #111111;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #FFD36B; /* Glow color */
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #FFF6D6;
  opacity: 0.8;
}

/* Call to Action Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG color for this section */
  text-align: center;
  border-top: 1px solid #3A2A12;
}

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

.page-news__cta-bottom-section .page-news__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-image {
    max-width: 100%;
  }
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__container,
  .page-news__hero-content,
  .page-news__cta-bottom-section .page-news__description {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__promotion-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-news__cta-button,
  .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;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-news__latest-news-section,
  .page-news__promotions-highlight-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section {
    padding: 40px 0;
  }

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

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

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

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

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-news__hero-content .page-news__description {
    font-size: 1em;
  }
  .page-news__btn-lg {
    font-size: 1em;
    padding: 12px 25px;
  }
}