/* style/news.css */

/* --- General Page Styles --- */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background #f4f4f4 */
  line-height: 1.6;
}

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__section-title {
  font-size: 36px;
  color: #8B0000; /* Auxiliary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* Handled by shared or specific element */
  background: linear-gradient(135deg, #FFD700, #8B0000);
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 1; /* Ensure content is above any potential overlay */
}

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

.page-news__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text on dark/gradient background */
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary color for CTA */
  color: #8B0000; /* Auxiliary color for text to ensure contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-news__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- News Grid / Card Styles --- */
.page-news__news-grid,
.page-news__insights-grid,
.page-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card,
.page-news__insight-card,
.page-news__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-news__news-card:hover,
.page-news__insight-card:hover,
.page-news__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__news-card img,
.page-news__insight-card img,
.page-news__promo-card img {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eeeeee;
}

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

.page-news__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #8B0000; /* Auxiliary color for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__card-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-news__card-link,
.page-news__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700;
  color: #8B0000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-news__card-link:hover,
.page-news__card-button:hover {
  background: #e6c200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Dark Background Section --- */
.page-news__dark-bg {
  background: #8B0000; /* Auxiliary color as background */
  color: #ffffff; /* White text on dark background */
}

.page-news__dark-bg .page-news__section-title {
  color: #FFD700; /* Primary color for titles on dark background */
}

.page-news__dark-bg .page-news__section-description {
  color: #f0f0f0;
}

.page-news__dark-bg .page-news__insight-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white card on dark bg */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__dark-bg .page-news__insight-card .page-news__card-title a {
  color: #FFD700;
}

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

.page-news__dark-bg .page-news__insight-card .page-news__card-text {
  color: #f0f0f0;
}

.page-news__dark-bg .page-news__card-link,
.page-news__dark-bg .page-news__card-button {
  background: #FFD700;
  color: #8B0000;
}

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

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-news__faq-question:active {
  background: #eeeeee;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #FFD700; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to ensure full expansion */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
}

.page-news__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Final CTA Section --- */
.page-news__cta-section {
  background: #FFD700; /* Primary color for final CTA background */
  padding: 80px 0;
}

.page-news__cta-content {
  color: #8B0000; /* Auxiliary color for text on primary background */
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #8B0000;
}

.page-news__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #660000;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: #8B0000; /* Auxiliary color for button background */
  color: #FFD700; /* Primary color for button text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-news__btn-primary:hover {
  background: #6a0000; /* Darker auxiliary color on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__hero-title {
    font-size: 42px;
  }
  .page-news__hero-description,
  .page-news__section-description,
  .page-news__cta-description {
    font-size: 18px;
  }
  .page-news__news-grid,
  .page-news__insights-grid,
  .page-news__promotions-grid {
    gap: 20px;
  }
  .page-news__news-card img,
  .page-news__insight-card img,
  .page-news__promo-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Mobile Header Offset */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset is applied */
    padding-bottom: 40px;
  }

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

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

  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Button responsive fix */
    max-width: 100% !important; /* Button responsive fix */
    box-sizing: border-box !important; /* Button responsive fix */
    white-space: normal !important; /* Button responsive fix */
    word-wrap: break-word !important; /* Button responsive fix */
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-news__news-grid,
  .page-news__insights-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__news-card img,
  .page-news__insight-card img,
  .page-news__promo-card img {
    max-width: 100% !important; /* Image responsive fix */
    width: 100% !important; /* Image responsive fix */
    height: auto !important; /* Image responsive fix */
    object-fit: cover;
  }

  .page-news__card-title {
    font-size: 18px;
  }

  .page-news__card-text {
    font-size: 14px;
  }

  .page-news__card-link,
  .page-news__card-button {
    padding: 8px 15px;
    font-size: 14px;
    width: 100% !important; /* Button responsive fix */
    max-width: 100% !important; /* Button responsive fix */
    box-sizing: border-box !important; /* Button responsive fix */
    white-space: normal !important; /* Button responsive fix */
    word-wrap: break-word !important; /* Button responsive fix */
  }
  
  /* Container responsive fix for images and buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-container,
  .page-news__hero-content,
  .page-news__news-card,
  .page-news__insight-card,
  .page-news__promo-card,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Mobile */
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 24px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
  }
  .page-news__cta-title {
    font-size: 24px;
  }
}