/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Default text color for the page, from custom colors */
  background: var(--background-color, #B71C1C); /* Default background for the page, from custom colors */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--gold, #F4D34D);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not on image */
  background: rgba(122, 14, 14, 0.85); /* Use Deep Red with transparency */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: var(--text-main, #FFF5E1);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 font size with clamp */
  color: var(--gold, #F4D34D); /* Gold color for H1 */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-news__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for contrast on gold gradient */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--gold, #F4D34D);
  border: 2px solid var(--gold, #F4D34D);
  box-shadow: 0 3px 10px rgba(244, 211, 77, 0.2);
}

.page-news__btn-secondary:hover {
  background: var(--gold, #F4D34D);
  color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 211, 77, 0.4);
}

/* News Section */
.page-news__news-section {
  padding: 60px 0;
  background: var(--card-bg, #D32F2F); /* Card BG color */
  color: var(--text-main, #FFF5E1); /* Text Main color */
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__news-card {
  display: flex;
  flex-direction: column;
  background: var(--deep-red, #7A0E0E); /* Deep Red background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
}

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

.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: 600;
  margin-bottom: 10px;
  color: var(--gold, #F4D34D); /* Gold color for card titles */
  line-height: 1.3;
}

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: rgba(255, 245, 225, 0.7); /* Lighter version of Text Main */
  display: block;
  margin-top: auto; /* Push to bottom */
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background: var(--background-color, #B71C1C); /* Background color */
  color: var(--text-main, #FFF5E1); /* Text Main color */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #F2B544); /* Border color */
  overflow: hidden;
  background: var(--deep-red, #7A0E0E); /* Deep Red background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold, #F4D34D); /* Gold color for questions */
  font-weight: 600;
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(201, 31, 23, 0.7); /* Lighter hover effect */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F4D34D); /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: rgba(122, 14, 14, 0.85); /* Slightly darker Deep Red */
  border-radius: 0 0 10px 10px;
  color: var(--text-main, #FFF5E1); /* Text Main color for answers */
  font-size: 0.95em;
}

/* General Image Responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-news__container,
  .page-news__hero-content,
  .page-news__news-section .page-news__container,
  .page-news__faq-section .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-news__hero-image {
    max-height: 300px;
  }

  .page-news__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 25px;
    border-radius: 10px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 font size for mobile */
    margin-bottom: 10px;
  }

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

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

  /* News Grid */
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-image {
    height: 180px; /* Adjust fixed height for mobile */
  }

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

  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  /* Buttons */
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add margin between stacked buttons */
  }
  .page-news__view-all-button {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 1em;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* All images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .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;
  }

  /* Button groups flex wrap */
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
    gap: 10px;
  }
}