.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-news__btn-primary {
  display: inline-block;
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-news__btn-primary:hover {
  background: #a00606;
  transform: translateY(-2px);
}

.page-news__btn-large {
  font-size: 1.3em;
  padding: 18px 35px;
}

.page-news__section {
  padding: 60px 20px;
  background: #FFFFFF; /* Default light background */
  color: #333333; /* Default dark text */
}

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand color for titles */
}

.page-news__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: justify;
}

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

.page-news__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-news__category-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-news__card-title {
  font-size: 1.5em;
  margin: 15px 15px 10px 15px;
  color: #017439;
}

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

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

.page-news__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 15px;
  color: #555555;
  text-align: justify;
}

.page-news__video-section {
  background: #f0f0f0;
  padding: 60px 20px;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-news__video-caption {
  text-align: center;
  font-style: italic;
  color: #666666;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-news__benefit-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news__benefit-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-news__benefit-item:hover {
  transform: translateY(-5px);
}

.page-news__benefit-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-news__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

.page-news__use-guide {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__guide-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news__guide-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-news__guide-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

.page-news__faq {
  background: #f0f0f0;
}

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

.page-news__faq-item {
  background: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background: #FFFFFF;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #f5f5f5;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large height */
  padding: 20px;
  padding-top: 0;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-news__conclusion {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #005a2e); /* Gradient with brand colors */
  color: #FFFFFF;
}

.page-news__conclusion .page-news__section-title {
  color: #FFFFFF;
}

.page-news__conclusion .page-news__paragraph {
  color: #F0F0F0;
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

  .page-news__hero-section {
    height: 500px;
  }

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

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

  .page-news__main-title {
    font-size: 2.2em;
  }

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

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

  .page-news__paragraph,
  .page-news__card-description,
  .page-news__benefit-text,
  .page-news__guide-text,
  .page-news__faq-answer p {
    font-size: 0.95em;
  }

  .page-news__category-grid,
  .page-news__benefit-list {
    grid-template-columns: 1fr;
  }

  .page-news__btn-primary,
  .page-news__btn-large {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  /* Mobile container/section responsiveness */
  .page-news__section,
  .page-news__container,
  .page-news__video-wrapper,
  .page-news__category-grid,
  .page-news__category-card,
  .page-news__faq-list,
  .page-news__faq-item,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

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

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

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

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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