/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: var(--bg-color, #B71C1C); /* Fallback to Deep Red if --bg-color not set */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.6); /* Glow */
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #F4D34D; /* Gold */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 810px;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-news__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(193, 31, 23, 0.8) 0%, rgba(122, 14, 14, 0.8) 100%); /* Blend of Primary and Deep Red */
  margin-top: -100px; /* Overlap with image for visual flow */
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFD86A; /* Button Gold top */
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(255, 204, 102, 0.8); /* Stronger Glow */
  line-height: 1.2;
}

.page-news__subtitle {
  font-size: 22px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold */
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px #FFCC66; /* Glow */
  border: 2px solid #F2B544; /* Border Gold */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px #FFCC66; /* Stronger Glow */
  filter: brightness(1.1);
}

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

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

.page-news__news-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border Gold */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #F2B544; /* Border Gold */
}

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

.page-news__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD86A; /* Button Gold top */
  line-height: 1.3;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__read-more {
  color: #F4D34D; /* Gold */
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #E53935; /* Auxiliary Color */
  color: #FFF5E1; /* Text Main */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #7A0E0E; /* Deep Red */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__view-all-button:hover {
  background-color: #C91F17; /* Primary Color */
  transform: translateY(-2px);
}

/* News Categories Section */
.page-news__news-categories-section {
  padding: 40px 0;
  background-color: #7A0E0E; /* Deep Red */
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-news__category-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  color: #FFF5E1; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border Gold */
}

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

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #F2B544; /* Border Gold */
}

.page-news__category-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  color: #FFD86A; /* Button Gold top */
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 40px 0;
  background-color: #B71C1C; /* Background */
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-news__featured-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid #F2B544; /* Border Gold */
}

.page-news__featured-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #F2B544; /* Border Gold */
}

.page-news__featured-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__featured-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD86A; /* Button Gold top */
  line-height: 1.3;
}

.page-news__featured-text {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border Gold */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #C91F17; /* Primary Color */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Button Gold top */
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open].page-news__faq-item .page-news__faq-toggle {
  transform: rotate(45deg);
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #C91F17; /* Primary Color */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 0;
  background: linear-gradient(90deg, #C91F17 0%, #E53935 100%); /* Primary to Auxiliary */
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-bottom-title {
  font-size: 40px;
  font-weight: bold;
  color: #FFD86A; /* Button Gold top */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7); /* Glow */
}

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

.page-news__cta-bottom-button {
  display: inline-block;
  padding: 18px 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold */
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 25px #FFCC66; /* Glow */
  border: 2px solid #F2B544; /* Border Gold */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__cta-bottom-button:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 35px #FFCC66; /* Stronger Glow */
  filter: brightness(1.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 15px;
  }

  .page-news__section-title {
    font-size: 32px;
  }

  .page-news__main-title {
    font-size: 40px;
  }

  .page-news__subtitle {
    font-size: 20px;
  }

  .page-news__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-news__cta-bottom-title {
    font-size: 34px;
  }

  .page-news__cta-bottom-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* General mobile text and padding */
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  }
  .page-news__hero-image {
    height: auto !important;
    object-fit: contain !important; /* Ensure image fits without cropping */
  }
  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .page-news__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Latest News Section */
  .page-news__section-title {
    font-size: 26px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 14px;
  }
  .page-news__view-all-button-container {
    margin-top: 30px;
  }
  .page-news__view-all-button {
    padding: 10px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* News Categories Section */
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__category-image {
    height: 150px;
  }
  .page-news__category-title {
    font-size: 18px;
  }

  /* Featured News Section */
  .page-news__featured-card {
    flex-direction: column;
  }
  .page-news__featured-image {
    height: 200px;
  }
  .page-news__featured-title {
    font-size: 20px;
  }
  .page-news__featured-text {
    font-size: 14px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 16px; }
  .page-news__faq-toggle { font-size: 24px; width: 24px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; font-size: 14px; }

  /* CTA Bottom Section */
  .page-news__cta-bottom-title {
    font-size: 28px;
  }
  .page-news__cta-bottom-description {
    font-size: 16px;
  }
  .page-news__cta-bottom-button {
    padding: 15px 30px;
    font-size: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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