.page-resources-five-88-latest-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Matches shared.css body background */
}

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

/* Hero Section */
.page-resources-five-88-latest-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)); /* Overlay for video */
}

.page-resources-five-88-latest-news__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.page-resources-five-88-latest-news__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-five-88-latest-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-five-88-latest-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #ffffff;
}

.page-resources-five-88-latest-news__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Buttons */
.page-resources-five-88-latest-news__btn-primary,
.page-resources-five-88-latest-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-resources-five-88-latest-news__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

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

.page-resources-five-88-latest-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-resources-five-88-latest-news__button-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
}

/* Section Styling */
.page-resources-five-88-latest-news__content-section,
.page-resources-five-88-latest-news__promotions-section,
.page-resources-five-88-latest-news__safety-section,
.page-resources-five-88-latest-news__faq-section {
  padding: 80px 0;
}

.page-resources-five-88-latest-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources-five-88-latest-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-five-88-latest-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__section-title {
  color: #ffffff;
}

.page-resources-five-88-latest-news__light-bg .page-resources-five-88-latest-news__section-title {
  color: #017439;
}

.page-resources-five-88-latest-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__section-description {
  color: #f0f0f0;
}

.page-resources-five-88-latest-news__light-bg .page-resources-five-88-latest-news__section-description {
  color: #555555;
}

/* News Grid & Cards */
.page-resources-five-88-latest-news__news-grid,
.page-resources-five-88-latest-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-five-88-latest-news__news-card,
.page-resources-five-88-latest-news__promotion-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__news-card,
.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-resources-five-88-latest-news__news-card:hover,
.page-resources-five-88-latest-news__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-five-88-latest-news__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources-five-88-latest-news__card-content {
  padding: 25px;
}

.page-resources-five-88-latest-news__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__card-title a {
  color: #ffffff;
}

.page-resources-five-88-latest-news__card-title a:hover {
  text-decoration: underline;
}

.page-resources-five-88-latest-news__card-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__card-text {
  color: #e0e0e0;
}

.page-resources-five-88-latest-news__card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-five-88-latest-news__dark-bg .page-resources-five-88-latest-news__card-link {
  color: #FFFF00;
}

.page-resources-five-88-latest-news__card-link:hover {
  text-decoration: underline;
}

/* Safety Section */
.page-resources-five-88-latest-news__safety-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-resources-five-88-latest-news__safety-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-resources-five-88-latest-news__safety-text {
  flex: 1;
  font-size: 1.1em;
}

.page-resources-five-88-latest-news__safety-text p {
  margin-bottom: 20px;
}

.page-resources-five-88-latest-news__safety-text a {
  color: #017439;
  text-decoration: underline;
}

/* FAQ Section */
.page-resources-five-88-latest-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-resources-five-88-latest-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-five-88-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-five-88-latest-news__faq-question:hover {
  background-color: #005a2b;
}

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

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

.page-resources-five-88-latest-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.page-resources-five-88-latest-news__faq-item.active .page-resources-five-88-latest-news__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 20px 25px;
}

.page-resources-five-88-latest-news__faq-answer p {
  margin-bottom: 0;
}

.page-resources-five-88-latest-news__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Floating Buttons */
.page-resources-five-88-latest-news__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-resources-five-88-latest-news__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  color: #FFFF00; /* Register and Login font color */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-five-88-latest-news__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources-five-88-latest-news__register-btn {
  background-color: #C30808; /* Register button color */
}

.page-resources-five-88-latest-news__login-btn {
  background-color: #C30808; /* Login button color */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-five-88-latest-news__hero-title {
    font-size: 2.8em;
  }

  .page-resources-five-88-latest-news__hero-description {
    font-size: 1.1em;
  }

  .page-resources-five-88-latest-news__section-title {
    font-size: 2em;
  }

  .page-resources-five-88-latest-news__safety-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources-five-88-latest-news__safety-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources-five-88-latest-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 500px;
  }

  .page-resources-five-88-latest-news__hero-title {
    font-size: 2em;
  }

  .page-resources-five-88-latest-news__hero-description {
    font-size: 1em;
  }

  .page-resources-five-88-latest-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-five-88-latest-news__btn-primary,
  .page-resources-five-88-latest-news__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources-five-88-latest-news__section-title {
    font-size: 1.8em;
  }

  .page-resources-five-88-latest-news__news-grid,
  .page-resources-five-88-latest-news__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-five-88-latest-news__content-section,
  .page-resources-five-88-latest-news__promotions-section,
  .page-resources-five-88-latest-news__safety-section,
  .page-resources-five-88-latest-news__faq-section {
    padding: 60px 0;
  }

  .page-resources-five-88-latest-news__container {
    padding: 0 15px;
  }

  /* Mobile responsive for images */
  .page-resources-five-88-latest-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-five-88-latest-news__card-image {
    height: 200px;
  }

  /* Mobile responsive for videos */
  .page-resources-five-88-latest-news video,
  .page-resources-five-88-latest-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-five-88-latest-news__hero-video-wrapper,
  .page-resources-five-88-latest-news__video-container,
  .page-resources-five-88-latest-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-resources-five-88-latest-news__cta-button,
  .page-resources-five-88-latest-news__btn-primary,
  .page-resources-five-88-latest-news__btn-secondary,
  .page-resources-five-88-latest-news a[class*="button"],
  .page-resources-five-88-latest-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;
    padding-right: 15px;
  }

  .page-resources-five-88-latest-news__hero-cta-buttons,
  .page-resources-five-88-latest-news__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-resources-five-88-latest-news__floating-buttons {
    flex-direction: row;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    justify-content: space-around;
    padding: 10px 0;
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }

  .page-resources-five-88-latest-news__floating-btn {
    width: 45%;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .page-resources-five-88-latest-news__hero-title {
    font-size: 1.8em;
  }

  .page-resources-five-88-latest-news__section-title {
    font-size: 1.5em;
  }

  .page-resources-five-88-latest-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources-five-88-latest-news__faq-item.active .page-resources-five-88-latest-news__faq-answer {
    padding: 15px 20px;
  }
}