/* 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: #1a1a1a; /* Body background from shared.css */
}

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

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

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

.page-resources__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

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

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

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

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

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

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

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

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

/* Color Schemes */
.page-resources__dark-bg {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

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

.page-resources__light-bg .page-resources__section-description {
  color: #555555;
}

.page-resources__light-bg h2, .page-resources__light-bg h3 {
  color: #000000;
}

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-resources__image-wrapper {
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Resource Cards */
.page-resources__resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background: #ffffff; /* White background for card */
  color: #333333; /* Dark text for card */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

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

.page-resources__card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555555;
}

.page-resources__card-list {
  list-style: none;
  padding: 0;
  margin-top: auto; /* Push list to bottom */
}

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

.page-resources__card-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #1c7fb8;
  text-decoration: underline;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-sizing: border-box;
}

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

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

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

.page-resources__hero-cta-buttons .page-resources__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__hero-cta-buttons .page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources__cta-bottom .page-resources__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-resources__cta-bottom .page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  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 show content */
  padding: 15px 25px;
}

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

.page-resources__faq-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__faq-link:hover {
  color: #1c7fb8;
  text-decoration: underline;
}

/* Call to Action Bottom */
.page-resources__cta-bottom {
  text-align: center;
  padding: 60px 0;
}

.page-resources__cta-bottom .page-resources__section-title {
  margin-bottom: 20px;
}

.page-resources__cta-bottom .page-resources__section-description {
  margin-bottom: 40px;
  color: #555555;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-resources__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources__card {
    padding: 25px;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

  /* Force responsive images and videos */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-video-wrapper,
  .page-resources__section,
  .page-resources__container,
  .page-resources__content-grid,
  .page-resources__resource-cards,
  .page-resources__card,
  .page-resources__faq-list,
  .page-resources__faq-item,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-video-wrapper .page-resources__hero-video {
    transform: none;
    left: 0;
    top: 0;
    position: relative;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__hero-section {
    min-height: 400px;
  }
}