/* style/resources.css */
/* 
  BEM Naming Convention: page-resources__element-name
  Colors: #1A2B3C (Primary), #FFD700 (Accent)
*/

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Assuming default light body background */
}

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

/* Fixed header offset for first content section */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

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

.page-resources__light-bg {
  background-color: #f8f8f8; /* Light grey for contrast */
  color: #333333;
}

.page-resources__text-center {
  text-align: center;
}

.page-resources__hero-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
  z-index: 1;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

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

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-resources__sub-title {
  font-size: 1.8em;
  color: #1A2B3C;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__dark-bg .page-resources__sub-title {
  color: #ffffff;
}

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

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

.page-resources__content-block {
  padding: 20px;
}

.page-resources__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A2B3C;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #1A2B3C;
}

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

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2B3C;
}

.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: #1A2B3C;
}

.page-resources__btn-text {
  color: #1A2B3C;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block;
  margin-top: 10px;
}

.page-resources__btn-text:hover {
  color: #FFD700;
}

.page-resources__dark-bg .page-resources__btn-text {
  color: #FFD700;
}

.page-resources__dark-bg .page-resources__btn-text:hover {
  color: #ffffff;
}

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

.page-resources__issue-card,
.page-resources__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px; /* Ensure cards have some height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__issue-card:hover,
.page-resources__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #1A2B3C;
  margin-bottom: 15px;
}

.page-resources__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-resources__list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.page-resources__list-item-title {
  font-size: 1.2em;
  color: #FFD700;
  margin-bottom: 5px;
}

.page-resources__list li p {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 0;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-resources__faq-question h3 {
  margin: 0;
  flex-grow: 1;
  font-size: 1.2em;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  width: 25px;
  text-align: center;
  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: #555555;
  font-size: 1em;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
}

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

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

  .page-resources__container {
    padding: 0 15px; /* Add padding to prevent overflow */
  }

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

  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container mobile adaptation */
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure all content containers are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-block,
  .page-resources__issue-card,
  .page-resources__benefit-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-resources__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 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;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__issue-grid,
  .page-resources__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__issue-card,
  .page-resources__benefit-card {
    padding: 20px;
    min-height: auto; /* Allow height to adjust */
  }

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

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
}