.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark background */
  background-color: var(--primary-color, #1A202C); /* Assuming primary color is dark */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #1A202C;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

/* General Section Styling */
.page-resources__section {
  padding: 80px 0;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
}

.page-resources__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-resources__inline-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__inline-link:hover {
  color: #ffffff;
}

/* Color Schemes */
.page-resources__dark-bg {
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__highlight,
.page-resources__light-bg .page-resources__inline-link {
  color: #1A202C;
}

.page-resources__light-bg .page-resources__inline-link:hover {
  color: #FFD700;
}

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

.page-resources__cta-group--center {
  text-align: center;
}

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

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-resources__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* About Section (Content with Image) */
.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

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

.page-resources__image-right,
.page-resources__image-left {
  flex: 0 0 auto;
  width: 500px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Resource Categories Grid */
.page-resources__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.05);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be responsive */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources__card-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-resources__card-list li a {
  color: #f0f0f0;
  text-decoration: none;
}

.page-resources__card-list li a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Bullet List */
.page-resources__bullet-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333; /* For light background */
}

.page-resources__dark-bg .page-resources__bullet-list {
  color: #f0f0f0;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.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 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;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

/* Video Section */
.page-resources__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background-color: #000;
  cursor: pointer;
}

.page-resources__video-wrapper .page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

  .page-resources__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__image-right,
  .page-resources__image-left {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .page-resources__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources__hero-section {
    min-height: 400px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__section {
    padding: 50px 0;
  }

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

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__container,
  .page-resources__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__image-right,
  .page-resources__image-left,
  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__card {
    padding: 20px;
  }

  .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;
  }

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

  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Maintain aspect ratio within wrapper */
  }
}

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

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