.page-resources {
  color: #333333; /* Dark text for default light body background */
}

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Main background for hero */
  color: #FFFFFF; /* Light text for dark background */
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the background image */
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

.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, color 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-resources__articles-section,
.page-resources__why-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 24px 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__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 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;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

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

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

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

.page-resources__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__why-section,
.page-resources__security-section {
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-top: 60px;
}

.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__text-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__section-image {
  flex: 1;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-resources__button--explore,
.page-resources__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  margin-top: 20px;
}

.page-resources__button--explore:hover,
.page-resources__button--learn-more:hover {
  background-color: #000000;
  color: #FCBC45;
}

.page-resources__faq-section {
  background-color: #FFFFFF;
  margin-top: 60px;
}

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

.page-resources__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-resources__faq-answer {
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
  display: none; /* Hidden by default */
  margin-top: 15px;
}

.page-resources__faq-answer.active {
  display: block;
}

.page-resources__faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #444444;
}

.page-resources__faq-cta p {
  margin-bottom: 20px;
}

.page-resources__button--support {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-resources__button--support:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FCBC45;
}

.page-resources__cta-section .page-resources__section-title::after {
  background-color: #FFFFFF;
}

.page-resources__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-resources__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
  }

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

  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__content-wrapper,
  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-resources__text-content {
    order: 2;
  }

  .page-resources__section-image {
    order: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: auto; /* Ensure no fixed large height */
  }

  .page-resources__text-content p {
    font-size: 1em;
  }

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

  .page-resources__cta-actions {
    flex-direction: column;
  }

  .page-resources__articles-section img,
  .page-resources__why-section img,
  .page-resources__security-section img,
  .page-resources__faq-section img,
  .page-resources__cta-section img {
    max-width: 100%;
    height: auto;
  }

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

  .page-resources__faq-answer {
    font-size: 0.95em;
  }

  /* Critical: prevent horizontal overflow for all images in content area */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}