/* style/news.css */

/* --- General Styles --- */
.page-news {
  background-color: #B71C1C; /* Custom Background */
  color: #FFF5E1; /* Custom Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFF5E1; /* Custom Text Main */
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: rgba(255, 245, 225, 0.8); /* Lighter version of Custom Text Main */
  text-align: center;
  margin-bottom: 40px;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* padding-top: 10px as required, not var(--header-offset) */
  overflow: hidden;
  background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F4D34D; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2em, 4vw, 3.5em); /* Use clamp for responsive font size */
}

.page-news__hero-description {
  font-size: 1.15em;
  color: #FFF5E1; /* Custom Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button Gradient */
  color: #333333; /* Dark text for contrast on gold button */
  border: 2px solid #F2B544; /* Custom Border */
  box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4); /* Custom Glow */
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 102, 0.6);
}

.page-news__btn-secondary {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Custom Text Main */
  border: 2px solid #F2B544; /* Custom Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
  background-color: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-text-link {
  color: #F4D34D; /* Gold */
  padding: 5px 0;
  border-bottom: 1px solid #F4D34D;
  font-size: 0.95em;
  font-weight: normal;
  display: inline-block; /* Adjust display for text link */
  max-width: fit-content;
}

.page-news__btn-text-link:hover {
  color: #FFCC66; /* Glow */
  border-color: #FFCC66;
}

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

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

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

.page-news__news-card:hover {
  transform: translateY(-5px);
}

.page-news__news-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-date {
  font-size: 0.85em;
  color: rgba(255, 245, 225, 0.6); /* Lighter Custom Text Main */
  margin-bottom: 10px;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__news-card-title a {
  color: #FFF5E1; /* Custom Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #F4D34D; /* Gold */
}

.page-news__news-card-excerpt {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.9); /* Lighter Custom Text Main */
  margin-bottom: 15px;
  flex-grow: 1;
}

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

/* --- Categories Section --- */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news__category-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: #C91F17; /* Main Color */
}

.page-news__category-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.8);
}

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

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #F4D34D; /* Gold */
  background-color: #D32F2F; /* Card BG */
  border-bottom: 1px solid rgba(242, 181, 68, 0.3); /* Border */
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid rgba(242, 181, 68, 0.6); /* Stronger border when open */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F4D34D; /* Gold */
}

.page-news__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #FFF5E1; /* Custom Text Main */
}

/* --- Bottom CTA Section --- */
.page-news__cta-bottom {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
  text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Force font size for smaller screens */
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__hero-cta-buttons,
  .page-news__cta-bottom .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-text-link {
    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__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__news-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__category-card {
    min-height: 120px;
    padding: 20px;
  }
  .page-news__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 10px 20px 15px 20px;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-subtitle {
    font-size: 1em;
  }
  .page-news__news-card-title {
    font-size: 1.1em;
  }
  .page-news__news-card-excerpt {
    font-size: 0.9em;
  }
}