/* style/resources.css */

/* Base Styles */
.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__section {
  padding: 80px 0;
  position: relative;
}

.page-resources__section-title {
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-resources__text-block a {
  color: #FFFF00; /* Link color for better visibility */
  text-decoration: underline;
}

.page-resources__text-block a:hover {
  color: #fff;
}

.page-resources__unordered-list,
.page-resources__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__ordered-list {
  list-style-type: decimal;
}

.page-resources__unordered-list li,
.page-resources__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-resources__hero-section .page-resources__container {
  z-index: 2;
  position: relative;
}

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

/* Content Area */
.page-resources__content-area {
  background-color: #1a1a1a; /* Slightly lighter dark background for content blocks */
  color: #ffffff;
}

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

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

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

.page-resources__dark-section .page-resources__text-block,
.page-resources__dark-section .page-resources__unordered-list li {
  color: #f0f0f0;
}

.page-resources__dark-section a {
  color: #FFFF00;
}

/* Grid Layout */
.page-resources__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__grid-two-cols--reversed {
  grid-template-areas: "image text";
}

.page-resources__grid-two-cols--reversed .page-resources__grid-item:first-child {
  grid-area: text;
}

.page-resources__grid-two-cols--reversed .page-resources__grid-item:last-child {
  grid-area: image;
}

.page-resources__grid-item {
  display: flex;
  flex-direction: column;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Centered CTA */
.page-resources__centered-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #121212; /* Ensure clear contrast */
  color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  width: 20px;
  text-align: center;
}

.page-resources__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #f0f0f0;
  background-color: #1a1a1a;
}

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

.page-resources__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
  text-align: center;
  background-color: #017439;
  padding: 60px 20px;
}

.page-resources__cta-bottom .page-resources__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
}

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

/* Responsive Design */

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

  .page-resources__hero-description {
    font-size: 1.2em;
  }

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

  .page-resources__subsection-title {
    font-size: 1.6em;
  }

  .page-resources__grid-two-cols {
    grid-template-columns: 1fr;
  }

  .page-resources__grid-two-cols--reversed {
    grid-template-areas: unset; /* Reset for mobile */
  }

  .page-resources__grid-two-cols--reversed .page-resources__grid-item:first-child,
  .page-resources__grid-two-cols--reversed .page-resources__grid-item:last-child {
    grid-area: unset;
  }
}

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

  .page-resources__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

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

  .page-resources__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-resources__hero-title {
    font-size: 2.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 20px;
    font-size: 1.1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-resources__subsection-title {
    font-size: 1.4em;
  }

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

  /* Mobile container padding and overflow */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-resources__cta-bottom .page-resources__container--flex {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-resources__btn-primary--large {
    font-size: 1.2em;
    padding: 15px 30px;
  }

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

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

/* Small mobile devices */
@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__hero-description {
    font-size: 0.9em;
  }

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

  .page-resources__subsection-title {
    font-size: 1.2em;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    font-size: 1em;
  }

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

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

  .page-resources__btn-primary--large {
    font-size: 1.1em;
  }
}