.page-resources {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-gray: #f8f8f8;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light sections */
}

.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 180px 20px 80px; /* Desktop padding-top for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-primary {
  background: var(--text-light);
  color: var(--secondary-color);
  border: 2px solid var(--text-light);
}

.page-resources__btn-primary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
  padding: 60px 20px;
  line-height: 1.7;
}

.page-resources__section--light {
  background: var(--bg-light-gray);
  color: var(--text-dark);
}

.page-resources__section--dark {
  background: #2c2c2c;
  color: var(--text-light);
}

.page-resources__container {
  max-width: 1100px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__section--dark .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources__image-full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__image-left, .page-resources__image-right {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__text-block {
  flex: 1;
  min-width: 300px;
}

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

.page-resources__text-block strong {
  font-weight: bold;
}

.page-resources__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__text-block a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

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

.page-resources__section--dark .page-resources__sub-title,
.page-resources__section--dark .page-resources__text-block p {
  color: var(--text-light);
}

.page-resources__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit;
}

.page-resources__list li {
  margin-bottom: 10px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-resources__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-resources__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources__section--cta {
  background: linear-gradient(135deg, var(--secondary-color), #a00000);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
  }
  .page-resources__text-block p, .page-resources__list li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 160px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 60px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-resources__image-left, .page-resources__image-right {
    max-width: 100%;
  }
  .page-resources__text-block {
    min-width: unset;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
  }
  .page-resources__text-block p, .page-resources__list li {
    font-size: 0.95em;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__section--cta {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }

  /* Mobile image specific overrides */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__content-wrapper,
  .page-resources__text-block,
  .page-resources__image-left,
  .page-resources__image-right {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
  .page-resources__text-block p, .page-resources__list li {
    font-size: 0.9em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}