/* style/resources.css */
/* Body background is #121212 (dark), so main text color should be light #ffffff */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Header offset for fixed header */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: #0A2647; /* Use brand main color for hero background */
  color: #ffffff;
  text-align: center;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #E63946; /* Accent color for CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button:hover {
  background-color: #d62c3e; /* Darker accent on hover */
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-resources__dark-section {
  background-color: #0A2647; /* Brand main color for dark sections */
  color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #E63946; /* Accent color for section titles */
  font-weight: bold;
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-bottom: 40px;
}

.page-resources__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-resources__content-grid--reverse .page-resources__text-block {
  grid-area: text;
}

.page-resources__content-grid--reverse .page-resources__image-block {
  grid-area: image;
}

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

.page-resources__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-resources__subsection-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #E63946; /* Accent color for sub-section titles */
  font-weight: bold;
}

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

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

.page-resources__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-resources__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #E63946;
  font-weight: bold;
}

.page-resources__cta-container {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-resources__btn-primary {
  background-color: #E63946;
  color: #ffffff;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: #E63946;
  color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E63946;
}

.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-out, padding 0.3s ease-out;
  color: #f0f0f0;
  text-align: left;
}

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

.page-resources__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Glossary Section */
.page-resources__glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-resources__glossary-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__glossary-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__glossary-term {
  font-size: 1.5em;
  color: #E63946;
  margin-bottom: 10px;
}

.page-resources__dark-section .page-resources__glossary-term {
  color: #ffffff;
}

.page-resources__glossary-definition {
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
  .page-resources__content-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 60vh;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__content-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 30px;
  }
  .page-resources__content-grid--reverse {
    grid-template-areas: unset;
  }
  .page-resources__text-block,
  .page-resources__image-block {
    grid-area: unset;
  }

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