.page-resources {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  background-color: #1a1a1a; /* Fallback dark background */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 1;
}

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

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FF6B00; /* Primary brand color */
  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;
}

.page-resources__hero-cta-button:hover {
  background-color: #e65c00;
  transform: translateY(-3px);
}

.page-resources__introduction-section,
.page-resources__why-choose-section,
.page-resources__advanced-strategies-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 30px;
}

.page-resources__section-description,
.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #555555;
  text-align: left;
}

.page-resources__featured-guides-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-resources__guide-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-resources__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FF6B00;
}

.page-resources__card-category {
  font-size: 0.9em;
  color: #00A86B; /* Secondary brand color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__card-summary {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #00A86B; /* Secondary brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #008f5c;
}

.page-resources__why-choose-section {
  background-color: #ffffff;
}

.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources__feature-item {
  padding: 30px;
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-resources__feature-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.page-resources__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__feature-title {
  font-size: 1.4em;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.page-resources__feature-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
}

.page-resources__advanced-strategies-section {
  background-color: #f4f4f4;
}

.page-resources__faq-section {
  background-color: #ffffff;
}

.page-resources__faq-items {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources__faq-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}

.page-resources__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #1a1a1a;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-resources__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #FF6B00;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-question::after {
  content: '-';
  transform: rotate(0deg);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  margin-top: 10px;
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #FF6B00 0%, #e65c00 100%);
  color: #ffffff;
  padding: 80px 0;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #00A86B; /* Secondary brand color */
  color: #ffffff;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #008f5c;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description,
  .page-resources__section-text {
    font-size: 1em;
    text-align: center;
  }
  .page-resources__guides-grid,
  .page-resources__features-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }

  /* Mobile content image constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__guide-card .page-resources__card-image,
  .page-resources__feature-item .page-resources__feature-icon {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Make them fill width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
  .page-resources__faq-answer {
    font-size: 0.9em;
  }
}