.page-resources {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-section {
  background-color: #CC3333; /* Main brand color for hero background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFCC00; /* Auxiliary color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-resources__button {
  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, transform 0.3s ease;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FFCC00; /* Auxiliary color */
  color: #CC3333; /* Main brand color for text */
  border: 2px solid #FFCC00;
}

.page-resources__button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

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

.page-resources__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
}

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

.page-resources__intro-section,
.page-resources__guides-section,
.page-resources__advanced-insights-section,
.page-resources__promo-section,
.page-resources__faq-section,
.page-resources__conclusion-section {
  padding: 60px 0;
}

.page-resources__intro-section {
  background-color: #f9f9f9;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #CC3333; /* Main brand color */
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFCC00; /* Auxiliary color */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

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

.page-resources__guide-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__guide-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency, min 200px */
  object-fit: cover;
  display: block;
}

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

.page-resources__guide-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__guide-card-title a {
  color: #CC3333; /* Main brand color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-card-title a:hover {
  color: #FFCC00; /* Auxiliary color on hover */
}

.page-resources__guide-card-summary {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #CC3333;
  color: #ffffff;
  border: 2px solid #CC3333;
}

.page-resources__button--small:hover {
  background-color: #a32828;
  border-color: #a32828;
}

.page-resources__advanced-insights-section {
  background-color: #f0f0f0;
}

.page-resources__feature-block {
  background-color: #ffffff;
  border-left: 5px solid #FFCC00; /* Auxiliary color accent */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__feature-title {
  font-size: 1.8em;
  color: #CC3333; /* Main brand color */
  margin-bottom: 15px;
}

.page-resources__feature-block p {
  font-size: 1.05em;
  color: #444444;
}

.page-resources__text-link {
  color: #CC3333; /* Main brand color for internal links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__text-link:hover {
  color: #FFCC00; /* Auxiliary color on hover */
  text-decoration: underline;
}

.page-resources__promo-section {
  background: linear-gradient(135deg, #CC3333, #a32828); /* Gradient with main color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__promo-content {
  z-index: 1;
  position: relative;
}

.page-resources__promo-section .page-resources__section-title {
  color: #FFCC00; /* Auxiliary color */
}

.page-resources__promo-section .page-resources__section-title::after {
  background-color: #ffffff;
}

.page-resources__promo-section .page-resources__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources__promo-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.page-resources__promo-buttons .page-resources__button--primary {
  background-color: #FFCC00;
  color: #CC3333;
  border-color: #FFCC00;
}

.page-resources__promo-buttons .page-resources__button--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

.page-resources__promo-buttons .page-resources__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__promo-buttons .page-resources__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__promo-banner {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px; /* Ensure image is not too small */
}

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

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

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  transition: box-shadow 0.3s ease;
}

.page-resources__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #CC3333; /* Main brand color */
  margin-bottom: 15px;
}

.page-resources__faq-answer {
  font-size: 1.0em;
  color: #555555;
}

.page-resources__conclusion-section {
  background-color: #CC3333; /* Main brand color */
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
}

.page-resources__conclusion-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources__intro-section,
  .page-resources__guides-section,
  .page-resources__advanced-insights-section,
  .page-resources__promo-section,
  .page-resources__faq-section,
  .page-resources__conclusion-section {
    padding: 40px 0;
  }

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

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__guides-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-resources__guide-card-title {
    font-size: 1.3em;
  }

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

  .page-resources__promo-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__faq-question {
    font-size: 1.2em;
  }

  /* Critical: Ensure content images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .page-resources__promo-banner {
    min-width: unset;
    min-height: unset;
  }
}

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

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

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

  .page-resources__feature-block {
    padding: 20px;
  }

  .page-resources__feature-title {
    font-size: 1.3em;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }
}