.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensuring consistency with body background */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background: linear-gradient(135deg, #26A9E0, #0056b3);
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-resources__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%); /* Allowed for decorative effect, not color change */
}

.page-resources__section {
  padding: 80px 20px;
}

.page-resources__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

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

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-resources__heading {
  font-size: 2.5rem;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: inherit;
}

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

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px; /* Ensure cards have minimum height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources__card-text {
  font-size: 1rem;
  color: #555555;
}

.page-resources__feature-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}

.page-resources__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources__feature-item--reverse {
  flex-direction: row-reverse;
}

.page-resources__feature-image {
  width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  height: auto;
  min-width: 200px; /* Ensure min width */
}

.page-resources__feature-content {
  width: 50%;
  color: #ffffff;
}

.page-resources__feature-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-resources__feature-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary,
.page-resources__read-more {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

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

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

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

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

.page-resources__btn-tertiary {
  background-color: #EA7C07; /* Login color for action buttons */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin-right: 15px;
  margin-bottom: 10px;
}

.page-resources__btn-tertiary:hover {
  background-color: #c96700;
  border-color: #c96700;
}

.page-resources__read-more {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 20px;
  font-size: 0.9rem;
}

.page-resources__read-more:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for article images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__article-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__article-title a:hover {
  text-decoration: underline;
}

.page-resources__article-excerpt {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-resources__faq-section {
  text-align: center;
}

.page-resources__faq-container {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
}

.page-resources__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.page-resources__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus visual effect */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: #f0f0f0;
  font-size: 1rem;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 30px;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-resources__cta-buttons--center {
  justify-content: center;
}

.page-resources__cta-buttons--margin-top {
  margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__feature-item--reverse {
    flex-direction: column;
  }
  .page-resources__feature-image,
  .page-resources__feature-content {
    width: 100%;
  }
  .page-resources__feature-title {
    margin-top: 30px;
  }
  .page-resources__paragraph {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2rem;
  }
  .page-resources__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-tertiary,
  .page-resources__read-more {
    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__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
  }
  .page-resources__section {
    padding: 50px 15px;
  }
  .page-resources__heading {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-resources__paragraph {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-resources__grid,
  .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card,
  .page-resources__article-card {
    padding: 20px;
    min-height: auto;
  }
  .page-resources__card-image,
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__card-title,
  .page-resources__article-title {
    font-size: 1.4rem;
  }
  .page-resources__feature-item {
    gap: 20px;
  }
  .page-resources__feature-title {
    font-size: 1.6rem;
  }
  .page-resources__feature-text {
    font-size: 1rem;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-title {
    font-size: 1.1rem;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}