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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  min-height: 600px;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  background-color: rgba(10, 25, 47, 0.75); /* Semi-transparent background for readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color */
  color: #0A192F; /* Main color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-resources__hero-button:hover {
  background-color: #e6c200; /* Slightly darker accent on hover */
  transform: translateY(-2px);
}

.page-resources__articles-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

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

.page-resources__section-title {
  font-size: 2.2em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  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: 10px;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 8px 25px 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;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-resources__card-category {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  font-size: 0.85em;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__card-button {
  display: inline-block;
  background-color: #0A192F;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-resources__cta-section {
  background-color: #0A192F; /* Main color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color */
  color: #0A192F; /* Main color for text */
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #e6c200; /* Slightly darker accent on hover */
  transform: translateY(-3px);
}

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 500px;
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  }

  .page-resources__hero-content {
    padding: 20px;
  }

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

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

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

  .page-resources__articles-section {
    padding: 40px 15px;
  }

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

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

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

  .page-resources__card-image {
    height: 200px; /* Ensure images are at least 200px tall on mobile */
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

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

  .page-resources__cta-section {
    padding: 60px 15px;
  }

  .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;
  }

  /* Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure all images selected by .page-resources img are at least 200px wide/tall */
.page-resources img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}