.page-resources__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7fb3 100%);
  overflow: hidden;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-resources__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-resources__btn-secondary:hover {
  background: #e0f2f7;
  color: #1a7fb3;
}

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

.page-resources__content-section {
  padding: 60px 20px;
}

.page-resources__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: inherit;
}

.page-resources__list,
.page-resources__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: inherit;
}

.page-resources__ordered-list {
  list-style-type: decimal;
}

.page-resources__list li,
.page-resources__ordered-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-resources__image-wrapper {
  margin: 30px auto;
  max-width: 900px;
  text-align: center;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__btn-inline {
  margin-top: 20px;
  margin-right: 15px;
}

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

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0 0%, #1a7fb3 100%);
  color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 30px auto;
}

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

.page-resources__faq-item.active {
  background-color: #eaf7fc;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: #333333;
  border-bottom: 1px solid #eee;
}

.page-resources__faq-item.active .page-resources__faq-question {
  color: #26A9E0;
  border-bottom: none;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Important for override */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }

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

  .page-resources__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__main-title {
    font-size: 2.2em;
  }

  .page-resources__description {
    font-size: 1em;
  }

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

  .page-resources__sub-title {
    font-size: 1.4em;
  }

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-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__btn-inline {
    width: 100%;
    margin-right: 0;
  }

  .page-resources__content-section,
  .page-resources__hero-section,
  .page-resources__cta-section,
  .page-resources__faq-section {
    padding: 40px 15px;
  }

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

  .page-resources__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px; /* Add padding to prevent image from touching screen edges */
  }

  /* Video responsive */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px; /* Add padding to prevent video from touching screen edges */
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile video */
  }

  .page-resources__container {
    padding: 0;
  }

  .page-resources__faq-item {
    margin: 0 15px 15px 15px;
  }

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

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

  .page-resources__list,
  .page-resources__ordered-list {
    margin-left: 15px;
  }
}

/* Color contrast safety for dark body background #0a0a0a */
.page-resources {
  color: #ffffff; /* Default for dark body */
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-resources__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background */
  color: #ffffff; /* Light text on dark background */
}

.page-resources__hero-section {
  background: linear-gradient(135deg, #26A9E0 0%, #1a7fb3 100%);
  color: #ffffff;
}

.page-resources__cta-section {
  background: linear-gradient(90deg, #26A9E0 0%, #1a7fb3 100%);
  color: #ffffff;
}

.page-resources__faq-item {
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources__faq-item.active {
  background-color: #eaf7fc;
  color: #333333;
}

.page-resources__faq-question {
  color: #333333;
}

.page-resources__faq-item.active .page-resources__faq-question {
  color: #26A9E0;
}

.page-resources__faq-answer p {
  color: #555555;
}