/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Inherited from shared, explicitly set for context */
}

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

/* Section styling */
.page-resources__hero-section,
.page-resources__intro-section,
.page-resources__guide-section,
.page-resources__tips-section,
.page-resources__benefits-section,
.page-resources__faq-section,
.page-resources__cta-final-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Color schemes */
.page-resources__dark-bg {
  background-color: #0a0a0a; /* Ensure consistency with body background */
  color: #ffffff;
}

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

/* Hero Section */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

.page-resources__hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text 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-section .page-resources__container {
  z-index: 2;
  position: relative;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Titles and Text */
.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-title,
.page-resources__hero-title {
  color: inherit; /* Inherit color from parent section */
}

.page-resources__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

/* Text links */
.page-resources__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources__text-link:hover {
  color: #1e87b3;
}

/* Guide Section */
.page-resources__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__guide-step-item {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__guide-step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__guide-step-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure no extra space below image */
}

/* Tips Section */
.page-resources__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__tips-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text for light background */
}

.page-resources__tips-item-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__tips-item-description {
  font-size: 1em;
  color: #555555;
}

/* Benefits Section */
.page-resources__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources__benefit-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-resources__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

/* Hide default marker for <details> */
.page-resources__faq-item summary {
  list-style: none;
}
.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Final CTA Section */
.page-resources__cta-final-section {
  padding-bottom: 80px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section,
  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__tips-section,
  .page-resources__benefits-section,
  .page-resources__faq-section,
  .page-resources__cta-final-section {
    padding: 60px 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__section-text,
  .page-resources__guide-step-description,
  .page-resources__tips-item-description,
  .page-resources__benefit-description,
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }
  .page-resources__guide-step-title,
  .page-resources__tips-item-title,
  .page-resources__benefit-title {
    font-size: 1.3em;
  }

  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain width for better mobile appearance */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-buttons .page-resources__btn-primary,
  .page-resources__cta-buttons .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__tips-list,
  .page-resources__benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image and container responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__guide-step-item,
  .page-resources__tips-item,
  .page-resources__benefit-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero section on mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure overflow hidden for all content sections */
  .page-resources__hero-section,
  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__tips-section,
  .page-resources__benefits-section,
  .page-resources__faq-section,
  .page-resources__cta-final-section {
    overflow: hidden !important;
  }
}

/* Image styling for minimum size and no small icons */
.page-resources img {
  min-width: 200px;
  min-height: 200px;
  /* Ensure default display for block-level behavior */
  display: block;
  /* No filter properties */
  filter: none;
}

/* Content area image CSS size lower bound */
.page-resources__content-area img,
.page-resources__guide-image,
.page-resources__benefit-image {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
}
/* Ensure the image container does not cause overflow */
.page-resources__guide-step-item,
.page-resources__benefit-card {
  overflow: hidden;
}