/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Section styles */
.page-resources__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-resources__section--dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #0a0a0a); /* Blend brand color with dark background */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

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

/* Headings */
.page-resources__heading {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for main headings */
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-resources__sub-heading {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
}

.page-resources__sub-heading a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__sub-heading a:hover {
  text-decoration: underline;
}

/* Text elements */
.page-resources__text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: left;
}

.page-resources__text strong {
  color: #ffffff;
}

.page-resources__text em {
  color: #26A9E0;
  font-style: normal;
}

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

.page-resources__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 10px;
}

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

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

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

.page-resources__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  font-size: 1em;
}

.page-resources__btn-link:hover {
  color: #1e87b9;
}

.page-resources__btn-video-cta {
  margin-top: 30px;
}

/* Grid Layouts */
.page-resources__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

/* Cards */
.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  min-height: 200px; /* Enforce min height for images */
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-resources__card-text {
  color: #e0e0e0;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take available space */
}

/* Content Blocks */
.page-resources__content-block {
  text-align: left;
}

.page-resources__content-block--full-width {
  grid-column: 1 / -1; /* Spans full width in grid */
  margin-top: 40px;
}

.page-resources__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* Ensure image wrapper also respects min size */
}

.page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  min-width: 200px; /* Enforce min width for images */
  min-height: 200px; /* Enforce min height for images */
}

/* Lists */
.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-top: 20px;
}

.page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-resources__list-item::before {
  content: '✔';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 10px;
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #26A9E0; /* Brand color background */
  padding: 50px 30px;
  border-radius: 15px;
  margin-top: 60px;
  color: #ffffff;
}

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

.page-resources__cta-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
}

/* Video Section */
.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1280px; /* Max width for the video */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: #000; /* Fallback for video area */
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure video behaves as a block element */
  cursor: pointer; /* Indicate it's clickable */
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  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;
  color: #26A9E0;
  margin-left: 15px;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  color: #ffffff;
}

.page-resources__faq-answer {
  padding: 0 25px 20px;
  color: #e0e0e0;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
  color: #e0e0e0; /* Ensure paragraph color in FAQ answer */
}

.page-resources__faq-answer strong {
  color: #ffffff;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Remove default details marker */
.page-resources__faq-item summary {
  list-style: none;
}
.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Contact CTA */
.page-resources__contact-cta {
  padding: 80px 20px;
  background-color: #1a1a1a;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__heading {
    font-size: 2.2em;
  }
  .page-resources__sub-heading {
    font-size: 1.6em;
  }
  .page-resources__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* Mobile images, videos, buttons responsive adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller than 200px on mobile if needed for layout, but still no tiny icons */
    min-height: unset !important; /* Same as above */
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__image-wrapper,
  .page-resources__video-wrapper,
  .page-resources__cta-section,
  .page-resources__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* 🚨 Important: Video section padding-top must be reset in mobile media query */
  /* This ensures the video section is not obscured by the fixed header on mobile */
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Button responsive adaptation */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Full width for buttons on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Adjust margins for full-width buttons */
  }

  .page-resources__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-resources__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px);
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__heading {
    font-size: 1.8em;
  }
  .page-resources__sub-heading {
    font-size: 1.4em;
  }
  .page-resources__grid-3-cols,
  .page-resources__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 160px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-text {
    font-size: 1.1em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px 15px;
  }
}

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