.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so light text */
  background-color: transparent; /* Main background handled by shared.css */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login text color, for high impact */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-card {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login text color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #E00A0A;
  border-color: #E00A0A;
}

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

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

.page-resources__btn-card {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    font-size: 0.9em;
    padding: 10px 20px;
}

.page-resources__btn-card:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFFF00;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  text-align: justify;
}

.page-resources__text-block--small {
    font-size: 0.9em;
    text-align: center;
    color: #cccccc;
    margin-top: 15px;
}

.page-resources__introduction-section,
.page-resources__guides-section,
.page-resources__safety-section,
.page-resources__promotions-section,
.page-resources__news-section,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for sections on dark body */
  margin-bottom: 20px;
}

.page-resources__introduction-section {
    background-color: transparent;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px; /* Max width for video */
    border-radius: 10px;
}

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

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #017439;
  margin: 20px 20px 10px;
  flex-grow: 1;
}

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

.page-resources__card-title a:hover {
    color: #FFFF00;
}

.page-resources__card-description {
  font-size: 0.95em;
  color: #cccccc;
  margin: 0 20px 20px;
}

.page-resources__btn-card {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-resources__cta-buttons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-resources__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For details/summary */
  outline: none;
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFF00;
}

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-resources__faq-item[open] .page-resources__faq-answer {
  max-height: 500px; /* Sufficiently large value */
  padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 0.9em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__text-block {
    font-size: 1em;
  }

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

  .page-resources__card-image {
    height: 200px;
  }

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

  .page-resources__card-description {
    font-size: 0.9em;
  }

  .page-resources__video-wrapper {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containing elements for images/videos/buttons */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__hero-buttons,
  .page-resources__cta-buttons,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section { padding-left: 0; padding-right: 0; }

  .page-resources__cta-buttons {
      flex-direction: column;
      gap: 10px;
  }
}

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