.page-resources {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --login-button-color: #EA7C07;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Default light background */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  color: var(--text-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources__cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
}

.page-resources__cta-button:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-resources__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  margin-left: 15px;
}

.page-resources__cta-button--secondary:hover {
  background-color: #e0e0e0;
  color: var(--primary-color);
}

.page-resources__section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__overview-section {
  background-color: #f5f5f5;
}

.page-resources__strategy-section {
  background-color: #e0f2f7; /* Light blue tint */
}

.page-resources__security-section {
  background-color: var(--bg-light);
}

.page-resources__promo-section {
  background-color: #f5f5f5;
}

.page-resources__faq-section {
  background-color: var(--bg-light);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__section-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-resources__feature-card, .page-resources__strategy-card, .page-resources__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-resources__feature-card:hover, .page-resources__strategy-card:hover, .page-resources__promo-card:hover {
  transform: translateY(-10px);
}

.page-resources__feature-image, .page-resources__strategy-image, .page-resources__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__feature-title, .page-resources__strategy-card-title, .page-resources__promo-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources__feature-description, .page-resources__strategy-card-description, .page-resources__promo-card-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-resources__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources__guide-item {
  background-color: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__guide-item-title {
  font-size: 1.8em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-resources__guide-item p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__link-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  box-sizing: border-box;
}

.page-resources__link-button:hover {
  background-color: #1e87c0;
}

.page-resources__strategy-card .page-resources__link-button {
  margin: 5px;
}

.page-resources__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.page-resources__security-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__security-details {
  flex: 1 1 400px;
  max-width: 50%;
}

.page-resources__security-subtitle {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-resources__security-details p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__cta-group {
  text-align: center;
  margin-top: 50px;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-resources__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.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, padding 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-resources__contact-cta {
  text-align: center;
  margin-top: 50px;
}

.page-resources__contact-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__security-image, .page-resources__security-details {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: auto;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-resources__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-resources__cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button, .page-resources__cta-button--secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-text {
    font-size: 1em;
  }
  .page-resources__feature-grid, .page-resources__strategy-grid, .page-resources__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__security-content {
    flex-direction: column;
  }
  .page-resources__security-image, .page-resources__security-details {
    max-width: 100%;
    width: 100%;
  }
  .page-resources__feature-image, .page-resources__strategy-image, .page-resources__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__feature-card,
  .page-resources__strategy-card,
  .page-resources__promo-card,
  .page-resources__guide-item,
  .page-resources__security-content,
  .page-resources__faq-item,
  .page-resources__faq-list,
  .page-resources__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure color contrast for dark background elements */
.page-resources__hero-section {
  background-color: var(--primary-color); /* Fallback for image loading */
  color: var(--text-light);
}

.page-resources__hero-content {
  background: rgba(0, 0, 0, 0.5); /* Ensure text is readable on varied hero images */
}

.page-resources__cta-button {
  background-color: var(--login-button-color); /* Specific login color */
  border-color: var(--login-button-color);
}

.page-resources__cta-button:hover {
  background-color: darken(var(--login-button-color), 10%); /* Darken on hover */
  border-color: darken(var(--login-button-color), 10%);
}

.page-resources__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-resources__cta-button--secondary:hover {
  background-color: #e0e0e0;
  color: var(--primary-color);
}

.page-resources__link-button {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__link-button:hover {
  background-color: #1e87c0;
}

.page-resources__faq-question {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  background-color: #f9f9f9;
}