.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: var(--header-offset, 120px) 20px 60px; /* Ensure space for fixed header */
  background-color: #1A202C;
  overflow: hidden;
  text-align: center;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-resources__light-text {
  color: #ffffff;
}

.page-resources__content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__content-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-resources__text-block {
  flex: 1;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
  margin-right: 15px;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-resources__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
  margin: 0;
  color: #ffffff;
}

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 25px;
}

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

.page-resources__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__contact-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__contact-item strong {
  color: #FFD700;
}

.page-resources__button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.page-resources__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding: var(--header-offset, 120px) 15px 40px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__content-area {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__paragraph,
  .page-resources__contact-item {
    font-size: 1em;
  }
  .page-resources__content-row {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__content-row:nth-of-type(even) {
    flex-direction: column;
  }
  .page-resources__reverse-row-mobile {
    flex-direction: column-reverse; /* Ensure image comes after text on mobile */
  }

  /* Mobile image adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button adaptation */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0 !important; /* Remove right margin for stacking */
  }
  .page-resources__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Ensure content containers are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
  .page-resources__btn-large {
    font-size: 1em;
    padding: 12px 25px;
  }
}