/* style/resources.css */

:root {
  --page-resources-primary-color: #017439;
  --page-resources-secondary-color: #FFFFFF;
  --page-resources-register-color: #C30808;
  --page-resources-login-color: #C30808;
  --page-resources-bg-color: #FFFFFF;
  --page-resources-register-login-font-color: #FFFF00;
  --page-resources-dark-text: #333333;
  --page-resources-light-text: #ffffff;
  --page-resources-border-color: #e0e0e0;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-resources-dark-text); /* Default text for light sections */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--page-resources-light-text);
  background-color: var(--page-resources-primary-color); /* Dark brand color for hero */
  padding-bottom: 60px;
  min-height: 500px; /* Ensure hero section has a decent height */
  overflow: hidden;
}

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

.page-resources__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
  padding-top: 50px; /* Additional padding for content */
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: var(--page-resources-light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-resources-light-text);
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: var(--page-resources-register-color); /* #C30808 */
  color: var(--page-resources-register-login-font-color); /* #FFFF00 */
  border: 2px solid var(--page-resources-register-color);
}

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

.page-resources__btn-secondary {
  background-color: var(--page-resources-primary-color); /* #017439 */
  color: var(--page-resources-secondary-color); /* #FFFFFF */
  border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

/* General Content Sections */
.page-resources__content-area,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--page-resources-bg-color); /* White background for content */
  color: var(--page-resources-dark-text); /* Dark text for content */
}

.page-resources__heading-2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-resources-primary-color);
}

.page-resources__heading-3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-resources-primary-color);
}

.page-resources__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-resources__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-resources__link {
  color: var(--page-resources-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__link:hover {
  color: #005a2d;
  text-decoration: underline;
}

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

.page-resources__card {
  background-color: var(--page-resources-bg-color);
  border: 1px solid var(--page-resources-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-resources-dark-text);
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__card .page-resources__heading-3 a {
  color: var(--page-resources-primary-color);
  text-decoration: none;
}

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

/* List Styles */
.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--page-resources-primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: var(--page-resources-dark-text);
}

.page-resources__list-item .page-resources__heading-3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25em;
}

.page-resources__list-item .page-resources__heading-3 a {
  color: var(--page-resources-primary-color);
  text-decoration: none;
}

.page-resources__list-item .page-resources__heading-3 a:hover {
  text-decoration: underline;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-resources-border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: var(--page-resources-dark-text);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: var(--page-resources-primary-color); /* Brand color for question */
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-resources-primary-color);
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--page-resources-bg-color);
  color: var(--page-resources-dark-text);
}

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

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-resources__btn-primary--center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
  text-align: center;
}

/* Final CTA Section */
.page-resources__cta-section {
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-light-text);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-container {
  position: relative;
  z-index: 1;
}

.page-resources__cta-section .page-resources__heading-2 {
  color: var(--page-resources-light-text);
}

.page-resources__cta-section .page-resources__text {
  color: var(--page-resources-light-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-resources__image--cta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 0;
}

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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section,
  .page-resources__content-area,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }
  .page-resources__image,
  .page-resources__hero-video,
  .page-resources__image--cta {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-video-wrapper,
  .page-resources__cta-container,
  .page-resources__card-grid,
  .page-resources__card,
  .page-resources__list,
  .page-resources__faq-list,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__content-area,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section also respects header offset */
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 15px !important; /* Adjust padding for mobile */
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-question {
    padding: 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__heading-2 {
    font-size: 1.5em;
  }
  .page-resources__heading-3 {
    font-size: 1.1em;
  }
}