.page-resources {
  color: #ffffff; /* Body background is dark (#121212), so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-resources__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light backgrounds */
}

.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Primary brand color for titles */
  font-weight: bold;
}

.page-resources__intro-section, 
.page-resources__security-section, 
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for readability on body */
  color: #ffffff;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__guides-section, 
.page-resources__promotions-section {
  padding: 80px 0;
}

.page-resources__guides-section .page-resources__section-title {
  color: #017439;
}

.page-resources__promotions-section .page-resources__section-title {
  color: #ffffff;
}

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

.page-resources__card, .page-resources__promo-card {
  background: #2a2a2a; /* Slightly lighter dark for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover, .page-resources__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources__card-title, .page-resources__promo-title {
  font-size: 1.5em;
  padding: 20px 20px 10px;
  color: #017439; /* Brand primary for card titles */
  font-weight: bold;
}

.page-resources__card-title a, .page-resources__promo-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover, .page-resources__promo-title a:hover {
  color: #76c7c0; /* Lighter shade on hover */
}

.page-resources__card-text, .page-resources__promo-description {
  padding: 0 20px 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-resources__card-link:hover {
  background-color: #005f2c;
}

.page-resources__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources__security-list li {
  background: #2a2a2a;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__security-list li a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__security-list li a:hover {
  color: #76c7c0;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources__cta-buttons--center {
  text-align: center;
}

.page-resources__btn-primary, .page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808; /* Custom color for register/login */
}

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

.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #1a1a1a; /* Dark background for consistency */
}

.page-resources__faq-section .page-resources__section-title {
  color: #017439; /* Primary brand color */
}

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

.page-resources__faq-item {
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: #017439; /* Primary brand color for question background */
  transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-answer p {
  margin: 0 0 15px 0;
  padding-top: 15px; /* Add padding to the top of the first paragraph */
  color: #f0f0f0;
}

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

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #005f2c;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* No rotation needed for '-' */
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title, .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__intro-section, 
  .page-resources__guides-section, 
  .page-resources__security-section, 
  .page-resources__promotions-section, 
  .page-resources__faq-section, 
  .page-resources__cta-section {
    padding: 50px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__grid, .page-resources__promotions-grid {
    grid-template-columns: 1fr;
  }
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__card-image, .page-resources__promo-image {
    height: 200px;
  }
  .page-resources__card, .page-resources__promo-card, 
  .page-resources__faq-item, .page-resources__security-list li,
  .page-resources__section, .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title, .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
  .page-resources__security-list li {
    font-size: 1em;
  }
}