/* 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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below header */
  overflow: hidden;
  color: #ffffff;
  background-color: #0a0a0a; /* Ensure dark background for hero */
}

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

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

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

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

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-resources__content-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

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

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-resources__grid-item {
  display: flex;
  flex-direction: column;
}

.page-resources__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  height: 100%;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

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

.page-resources__card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

.page-resources__btn-text {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  color: #26A9E0;
  text-decoration: none;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  transition: all 0.3s ease;
}

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

.page-resources__video-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
  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: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-resources__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  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.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.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: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 1em;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-resources__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
  background-color: #1e87b8;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 15px 30px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

  .page-resources__hero-section {
    min-height: 450px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-resources__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-resources__grid-items {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-resources__card {
    padding: 0 0 15px 0;
  }

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

  .page-resources__video-wrapper {
    margin: 30px auto 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__faq-list {
    padding: 0 15px;
  }

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

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }

  .page-resources__cta-bottom {
    padding: 0 15px;
  }

  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Specific color overrides for brand elements */
.page-resources__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-resources__btn-login:hover {
  background-color: #cc6a06;
}