/* style/resources.css */

.page-resources {
  color: #ffffff; /* Body background is dark (#121212), so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #005f2f); /* Gradient with brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for important titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.8); /* Allow brightness for background images to ensure text contrast */
}

.page-resources__section {
  padding: 60px 20px;
}

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

.page-resources__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-resources__dark-bg .page-resources__section-title {
  color: #FFFF00;
}

.page-resources__dark-bg .page-resources__section-title::after {
  background-color: #FFFF00;
}

.page-resources__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

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

.page-resources__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-resources__content-grid--reverse .page-resources__text-content {
  grid-area: text;
}

.page-resources__content-grid--reverse .page-resources__image-wrapper {
  grid-area: image;
}

.page-resources__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.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;
  margin-top: 20px;
  font-size: 1.1em;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

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

.page-resources__dark-bg .page-resources__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__dark-bg .page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

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

.page-resources__faq-section {
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

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

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

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

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

  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

  .page-resources__section {
    padding: 40px 15px;
  }

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

  .page-resources__container,
  .page-resources__content-grid,
  .page-resources__content-grid--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__content-grid--reverse {
    grid-template-areas: "text" "image"; /* Stack content on mobile */
  }

  .page-resources__image,
  .page-resources__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-resources__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 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;
    padding-right: 15px;
  }

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

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