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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: #ffffff;
  text-align: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
  font-weight: 700;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.6;
}

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-resources__hero-button--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__faq-section,
.page-resources__about-gamezone-section {
  padding: 60px 0;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__article-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 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

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

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.page-resources__article-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFD700;
}

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

.page-resources__article-link {
  display: inline-block;
  margin-top: auto; /* Push link to bottom */
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #FFD700;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__article-link:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-resources__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #0A2463;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-resources__pagination-link--active {
  background-color: #0A2463;
  color: #ffffff;
}

.page-resources__cta-section {
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

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

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background-color: #FFD700;
  color: #0A2463;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-resources__faq-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 15px 30px;
  background-color: #0A2463;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources__faq-button:hover {
  background-color: #071a47;
  transform: translateY(-2px);
}

.page-resources__about-gamezone-section {
  background-color: #f0f0f0;
}

.page-resources__about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-resources__about-image {
  flex: 1 1 450px;
  min-width: 200px; /* Ensure image is not too small */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  height: auto;
}

.page-resources__about-text {
  flex: 1 1 450px;
  line-height: 1.8;
  font-size: 1.1em;
}

.page-resources__about-text p {
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__about-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #0A2463;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.page-resources__about-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

  .page-resources__about-image, .page-resources__about-text {
    flex: 1 1 100%;
  }
}

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

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

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

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

  .page-resources__hero-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__articles-section,
  .page-resources__cta-section,
  .page-resources__faq-section,
  .page-resources__about-gamezone-section {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

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

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

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

  .page-resources__article-card {
    margin-bottom: 20px;
  }

  .page-resources__article-title {
    font-size: 1.4em;
  }

  .page-resources__article-summary {
    font-size: 0.95em;
  }

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

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

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

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

  .page-resources__about-content {
    flex-direction: column;
  }

  .page-resources__about-image {
    width: 100%;
    height: auto;
  }

  /* All images within .page-resources must use max-width: 100%; height: auto; */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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