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

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

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

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

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 2;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* General Titles */
.page-resources__section-title, .page-resources__cta-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #FFD700;
  line-height: 1.3;
}

.page-resources__light-bg .page-resources__section-title {
  color: #0A2463;
}

.page-resources__list-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-resources__light-bg .page-resources__list-title {
  color: #0A2463;
}

/* Paragraphs */
.page-resources__paragraph,
.page-resources__list-description,
.page-resources__cta-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources__light-bg .page-resources__paragraph,
.page-resources__light-bg .page-resources__list-description {
  color: #333333;
}

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

.page-resources__light-bg .page-resources__highlight {
  color: #0A2463;
}

/* Buttons */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-3px);
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Lists */
.page-resources__numbered-list,
.page-resources__bullet-list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-resources__numbered-list .page-resources__list-item {
  counter-increment: list-counter;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.page-resources__numbered-list .page-resources__list-item::before {
  content: counter(list-counter);
  background-color: #FFD700;
  color: #0A2463;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.page-resources__bullet-list .page-resources__list-item {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-resources__bullet-list .page-resources__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-size: 1.5em;
  line-height: 1;
}

.page-resources__icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__icon-list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__icon-list-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-resources__icon-list-item .page-resources__list-title {
  font-size: 1.3em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-resources__icon-list-item .page-resources__list-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Images */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-resources__image-full-width {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-resources__image-center {
  margin: 30px auto;
}

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

.page-resources__grid-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 8px;
}

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

/* FAQ Section */
.page-resources__faq-list {
  max-width: 800px;
  margin: 30px auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  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;
  font-size: 1.2em;
  color: #FFD700;
}

.page-resources__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  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;
  color: #f0f0f0;
}

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

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

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

.page-resources__cta-title {
  color: #FFD700;
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Links within content */
.page-resources a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-resources__light-bg a {
  color: #0A2463;
}

.page-resources__light-bg a:hover {
  color: #001a4d;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

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

  .page-resources__btn-large {
    max-width: 300px !important;
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

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

  .page-resources__numbered-list .page-resources__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .page-resources__icon-list {
    grid-template-columns: 1fr;
  }

  .page-resources__icon-list-item {
    padding: 20px;
  }

  .page-resources__icon {
    width: 50px;
    height: 50px;
  }

  .page-resources__video-section {
    padding: 40px 0;
  }

  .page-resources__video-wrapper {
    margin: 20px auto;
    width: calc(100% - 30px) !important; /* Adjusted for padding */
    max-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 img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__image-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-title {
    font-size: 1.1em;
  }

  .page-resources__faq-toggle {
    font-size: 1.5em;
  }

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

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

  .page-resources__content-area, .page-resources__dark-bg, .page-resources__light-bg {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure all content area images are not too small */
  .page-resources__content-area img, .page-resources__section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-resources__icon-list-item img {
    min-
    min-
  }
}

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

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

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

  .page-resources__list-title {
    font-size: 1.2em;
  }

  .page-resources__paragraph {
    font-size: 0.9em;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-resources__btn-large {
    padding: 12px 20px;
    font-size: 1em;
  }
}