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

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

.page-resources__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #262626; /* Light background for content sections on a dark page */
  color: #ffffff;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
  min-height: 600px;
  overflow: hidden;
  background-color: #26A9E0; /* Primary brand color for hero */
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
  z-index: 1;
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

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

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

.page-resources__video-section {
  padding: 60px 0;
  background-color: #121212;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

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

.page-resources__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 20px auto 0;
}

.page-resources__content-area {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__unordered-list,
.page-resources__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

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

.page-resources__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__link:hover {
  color: #1a7bb5;
}

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

.page-resources__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb5;
  border-color: #1a7bb5;
  transform: translateY(-3px);
}

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

.page-resources__faq-item {
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border: 1px solid #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  border-bottom: 1px solid #1a1a1a;
}

.page-resources__faq-item[open] > .page-resources__faq-question {
  background-color: #1a7bb5;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  width: 20px;
  text-align: center;
}

.page-resources__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-item details > summary {
  list-style: none;
}

.page-resources__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
  background-color: #1a1a1a;
}

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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 80px 0;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Apply offset to hero section on mobile */
  }

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

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

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

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

  .page-resources__paragraph,
  .page-resources__list-item,
  .page-resources__video-description,
  .page-resources__faq-answer {
    font-size: 1em;
  }

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

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Max width for mobile buttons for better look */
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__video-wrapper {
    margin: 15px auto;
  }

  /* Mobile image specific rules */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* Mobile container padding and overflow */
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__content-area,
  .page-resources__video-wrapper,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* Ensure FAQ items also adapt */
  .page-resources__faq-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-resources__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

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

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

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

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