.page-news {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #8B0000; /* Dark red accent */
  border-radius: 2px;
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-news__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-news__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-news__article-card {
  background: #1a1a1a; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700; /* Gold title */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
}

.page-news__read-more {
  display: inline-block;
  color: #8B0000; /* Dark red for read more */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFD700;
}

/* Categories Section */
.page-news__categories-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-news__category-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.page-news__category-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFD700;
  margin: 15px 0;
}

/* In-depth Articles Section */
.page-news__in-depth-articles-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__article-item {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-item-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex-direction: row;
}

.page-news__article-item-image {
  width: 40%;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__article-item-content {
  padding: 25px;
  flex-grow: 1;
}

.page-news__article-item-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-news__article-item-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit to 4 lines */
  -webkit-box-orient: vertical;
}

/* Call to Action Section */
.page-news__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Gradient brand colors */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__cta-section .page-news__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 35px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark red text */
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #8B0000; /* Dark red text on hover */
  transform: translateY(-3px);
}

.page-news__cta-image-wrapper {
  flex: 1;
  text-align: right;
}

.page-news__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-left: auto;
}

/* FAQ Section */
.page-news__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__faq-list {
  margin-top: 30px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #1a1a1a; /* Dark background for FAQ item */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Slightly lighter dark for question header */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #3a3a3a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for question text */
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #f0f0f0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate to form 'x' or use '-' */
  color: #8B0000; /* Dark red when active */
}

.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 20px;
  opacity: 0;
  color: #cccccc;
  background: #1a1a1a;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }

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

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

  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

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

  .page-news__article-item-link {
    flex-direction: column;
  }

  .page-news__article-item-image {
    width: 100%;
    height: 220px;
  }

  .page-news__cta-section .page-news__container {
    flex-direction: column;
    text-align: center;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-buttons {
    justify-content: center;
  }

  .page-news__cta-image-wrapper {
    text-align: center;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-banner {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
  }

  .page-news__hero-container {
    height: 350px;
  }

  .page-news__hero-overlay {
    padding: 15px;
  }

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

  .page-news__hero-description {
    font-size: 15px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-news__article-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 4; /* Adjust for smaller screens */
  }

  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-image {
    height: 120px;
  }

  .page-news__category-title {
    font-size: 16px;
  }

  .page-news__articles-list {
    gap: 30px;
  }

  .page-news__article-item-image {
    height: 180px;
  }

  .page-news__article-item-content {
    padding: 15px;
  }

  .page-news__article-item-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-news__article-item-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 5; /* Adjust for smaller screens */
  }

  .page-news__cta-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .page-news__cta-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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: 28px;
    height: 28px;
    font-size: 24px;
  }

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

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Universal image rules for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__article-card, .page-news__category-card, .page-news__article-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}