/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--background-color, #FFFFFF);
}

.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: 100px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

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

.page-resources__article-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__article-heading {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
}

.page-resources__article-heading a {
  color: #017439;
  text-decoration: none;
}

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

.page-resources__article-text {
  padding: 0 20px;
  flex-grow: 1;
  font-size: 0.95em;
}

.page-resources__read-more-link {
  display: inline-block;
  margin: 20px;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__read-more-link:hover {
  color: #005f2e;
}

.page-resources__arrow {
  margin-left: 5px;
}

/* Info Block */
.page-resources__info-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources__info-block--reversed {
  flex-direction: row-reverse;
}

.page-resources__info-image {
  width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-resources__info-content {
  width: 50%;
}

.page-resources__info-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

/* Video Section */
.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__video-caption {
  text-align: center;
  font-style: italic;
  color: #f0f0f0;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-resources__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

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

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

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

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

.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;
  background-color: #ffffff;
}

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

.page-resources__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

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

.page-resources__cta-description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-resources__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

  .page-resources__info-block {
    flex-direction: column;
  }

  .page-resources__info-block--reversed {
    flex-direction: column;
  }

  .page-resources__info-image,
  .page-resources__info-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary, .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-item {
    margin-bottom: 20px;
  }

  .page-resources__info-block,
  .page-resources__info-block--reversed {
    gap: 20px;
  }
  .page-resources__info-image {
    height: 250px;
  }
  .page-resources__info-text {
    font-size: 1em;
  }

  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .page-resources__video-section .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
    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: 2.2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__article-item,
  .page-resources__info-block,
  .page-resources__video-section,
  .page-resources__faq-item,
  .page-resources__cta-section,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Padding added to container, not individual sections directly */
  }
  .page-resources__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}