.page-news {
  color: #ffffff; /* Default light text for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css, ensures consistency */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__read-more-btn:hover {
  background-color: #005a2d;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  background-color: #017439; /* Using brand color for hero background */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: 3.8em;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay to ensure text readability */
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for card content */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__article-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #017439;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__category-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-news__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons round */
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.page-news__category-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Guides Section */
.page-news__guides-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-news__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__guide-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #017439;
}

.page-news__guide-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Follow Section */
.page-news__why-follow-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-news__benefit-item {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-news__benefit-item::before {
  content: '✔';
  color: #FFFF00; /* Yellow checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px; /* Max width for video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-news__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-news__video-caption {
  text-align: center;
  color: #f0f0f0;
  margin-top: 20px;
  font-size: 0.95em;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  padding: 80px 0;
  background-color: #017439;
  text-align: center;
}

/* Shared Dark/Light Background Classes */
.page-news__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

  .page-news__intro-text {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .page-news__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-news__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

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

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

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

  .page-news__category-icon {
    width: 80px;
    height: 80px;
  }

  /* Video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

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

  .page-news__article-content,
  .page-news__category-card,
  .page-news__guide-card,
  .page-news__faq-item .page-news__faq-question,
  .page-news__faq-item .page-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-question {
    font-size: 1.1em;
  }

  .page-news__benefit-item {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__intro-text {
    font-size: 0.9em;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }

  .page-news__article-title {
    font-size: 1.3em;
  }

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

  .page-news__guide-title {
    font-size: 1.3em;
  }
}

/* BEM-specific colors for contrast */
.page-news__dark-bg {
  color: #ffffff; /* Deep dark background with light text */
  background: #1a1a1a;
}

.page-news__light-bg {
  color: #ffffff; /* Light background for cards within dark section */
  background: rgba(255, 255, 255, 0.08);
}

/* Ensure specific button colors */
.page-news__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border-color: #C30808;
}

.page-news__btn-primary:hover {
  background-color: #9e0606;
  border-color: #9e0606;
}

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

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-news__read-more-btn {
  background-color: #017439;
  color: #ffffff;
}

.page-news__read-more-btn:hover {
  background-color: #005a2d;
}