/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit 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;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

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

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

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

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

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

.page-resources__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
  color: #333333;
}

.page-resources__text-block a {
  color: #017439;
  text-decoration: underline;
}

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

.page-resources__card, .page-resources__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources__card:hover, .page-resources__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image, .page-resources__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title, .page-resources__promo-title {
  font-size: 1.4em;
  padding: 15px 20px 10px;
  color: #017439;
}

.page-resources__card-title a, .page-resources__promo-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-resources__card-text, .page-resources__promo-text {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555555;
}

.page-resources__card-link, .page-resources__promo-card .page-resources__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover, .page-resources__promo-card .page-resources__btn-primary:hover {
  background-color: #005a2e;
}

/* Features Grid */
.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-resources__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources__feature-title a {
  color: #ffffff;
  text-decoration: none;
}

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

.page-resources__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-resources__faq-section .page-resources__section-description {
  color: #f0f0f0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background: 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 */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* Buttons */
.page-resources__btn-primary, .page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #ffffff; /* Ensures contrast for button text */
  border: 2px solid transparent;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Dark background elements */
.page-resources__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-resources__dark-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__dark-section .page-resources__text-block {
  color: #f0f0f0;
}

.page-resources__dark-section .page-resources__text-block a {
  color: #ffffff;
}

/* Light background elements */
.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__light-bg .page-resources__section-title {
  color: #017439;
}

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

.page-resources__light-bg .page-resources__text-block {
  color: #333333;
}

.page-resources__light-bg .page-resources__text-block a {
  color: #017439;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.4em;
  }

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

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

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

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

  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__hero-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 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

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

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__grid-cards, .page-resources__features-grid, .page-resources__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card, .page-resources__promo-card, .page-resources__feature-item {
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box;
    max-width: calc(100% - 30px);
  }

  .page-resources__card-image, .page-resources__promo-image, .page-resources__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__card-title, .page-resources__promo-title {
    font-size: 1.2em;
  }

  .page-resources__card-text, .page-resources__promo-text {
    font-size: 0.9em;
  }

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

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

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

  .page-resources__cta-section {
    padding: 50px 0;
  }

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

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

  .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__container {
    padding: 0 15px;
  }

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__faq-section,
  .page-resources__cta-section,
  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-resources__hero-section .page-resources__container {
      padding-left: 15px;
      padding-right: 15px;
  }
  .page-resources__cta-section .page-resources__container {
      padding-left: 15px;
      padding-right: 15px;
  }
}