/* style/resources.css */

/* Base styles for the page-resources scope */
.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 is handled by shared.css var(--bg-dark) */
}

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

.page-resources__section-title,
.page-resources__subsection-title {
  color: #ffc107; /* Highlight with auxiliary color */
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-top: 40px;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  margin-top: 30px;
  text-align: left;
  color: #007bff; /* Main color for sub-titles */
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__text-block {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-resources__text-block a {
  color: #ffc107; /* Links in text */
  text-decoration: none;
}

.page-resources__text-block a:hover {
  text-decoration: underline;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  text-align: center;
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background for hero */
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  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-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

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

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

.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;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #ffc107;
  color: #000000; /* Ensure contrast with auxiliary color */
  border: 2px solid #ffc107;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
  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: 10px;
}

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

.page-resources__video-cta {
  margin-top: 40px;
}

/* Content Area */
.page-resources__content-area {
  padding: 40px 20px;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

.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;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-resources__faq-item {
  background-color: rgba(0, 123, 255, 0.1); /* Slightly transparent main color */
  border: 1px solid #007bff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  color: #ffc107;
  cursor: pointer;
  background-color: #007bff;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #0056b3;
}

.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 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 show content */
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
  }

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* Images responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__image-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-resources__faq-item {
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-resources__faq-question,
  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure color contrast for dark background body */
.page-resources__dark-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a1a1a; /* Using a dark grey for contrast on a 'light' section within the dark theme */
  color: #f0f0f0;
}

/* Specific contrast fixes */
.page-resources__faq-question span {
  color: #ffc107;
}

.page-resources__faq-answer p {
  color: #f0f0f0;
}

.page-resources__btn-primary {
  background-color: #ffc107;
  color: #000000; /* Text on auxiliary color */
}

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

.page-resources__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

.page-resources a {
  color: #ffc107;
}

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
  color: #ffc107;
}

.page-resources__hero-title {
  color: #ffc107;
}

.page-resources__subsection-title {
  color: #007bff;
}

.page-resources__faq-question {
  background-color: #007bff;
  color: #ffc107; /* Question text on main color */
}

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #0056b3;
}

.page-resources__faq-answer {
  color: #f0f0f0;
}