/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  color: #ffffff;
  position: relative;
  z-index: 1;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* CTA Buttons */
.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;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Content Sections */
.page-resources__content-section {
  padding: 60px 0;
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-resources__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__text-block h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-resources__text-block ol,
.page-resources__text-block ul {
  margin-bottom: 15px;
  padding-left: 25px;
  color: inherit;
}

.page-resources__text-block li {
  margin-bottom: 8px;
  color: inherit;
}

.page-resources__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

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

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
}

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

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
}

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

.page-resources__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
}

.page-resources__faq-item[open] {
  background-color: #e8e8e8;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  color: #333333;
  list-style: none; /* Remove default marker for details summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

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

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

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

  .page-resources__text-block {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-resources__text-block h3 {
    font-size: 1.5em;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  /* Images responsive for mobile */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
  }

  /* Ensure image containers also adapt */
  .page-resources__content-section,
  .page-resources__text-block,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-resources__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-resources__faq-answer {
    padding: 0 15px 15px;
  }
}

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

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