/* 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: transparent; /* Body background is handled by shared.css */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

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

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

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

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

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

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

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

.page-resources__section-title--light {
  color: #ffffff;
}

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

.page-resources__section-text--light {
  color: #ffffff;
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.page-resources__card--dark {
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

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

.page-resources__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources__card-title--light {
  color: #ffffff;
}

.page-resources__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__card-text--light {
  color: #ffffff;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources__list--light {
  color: #ffffff;
}

.page-resources__list-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
  text-align: left;
}

.page-resources__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-resources__list--light .page-resources__list-item {
  color: #ffffff;
}

.page-resources__list--light .page-resources__list-item::before {
  color: #FFFFFF;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-register,
.page-resources__btn-login {
  display: inline-block;
  padding: 12px 25px;
  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: 10px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-resources__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-resources__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-resources__dark-bg {
  background-color: #017439; /* Using brand primary color as background */
  color: #ffffff; /* White text for contrast */
}

.page-resources__faq-section {
  padding: 60px 20px;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg);
  color: #ffffff;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-resources__faq-text {
  color: #f0f0f0;
  font-size: 1em;
  margin-bottom: 15px;
}

.page-resources__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Using brand primary color as background */
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-resources__cta-title--light {
  color: #ffffff;
}

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

.page-resources__cta-description--light {
  color: #f0f0f0;
}

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

/* Global image responsiveness */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .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__section-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-image {
    height: 200px;
  }

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

  .page-resources__list-item {
    font-size: 0.95em;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-register,
  .page-resources__btn-login {
    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;
    margin: 5px 0; /* Adjust margin for stacked buttons */
  }

  .page-resources__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
    padding: 0 15px;
  }

  /* Image responsiveness for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__faq-section,
  .page-resources__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-resources__faq-title {
    font-size: 1.1em;
  }

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

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

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

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