.page-resources {
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px; /* Adjusted padding to account for header offset, then internal padding */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-resources__hero-image-container {
  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;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.page-resources__hero-cta {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  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;
  position: relative;
  z-index: 2;
}

.page-resources__hero-cta:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__why-trust-section,
.page-resources__cta-section,
.page-resources__responsible-gaming-section,
.page-resources__stay-updated-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-resources__intro-section p,
.page-resources__why-trust-section p,
.page-resources__responsible-gaming-section p,
.page-resources__stay-updated-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__section-subtitle {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
}

.page-resources__section-description {
  font-size: 1.2em;
  color: #f0f0f0;
  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: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__article-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid #8B0000;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

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

.page-resources__why-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-resources__why-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-left: 5px solid #FFD700;
  border-radius: 8px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-resources__why-list li strong {
  color: #FFD700;
}

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

.page-resources__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-resources__cta-button--secondary {
  background-color: #8B0000;
  color: #ffffff;
}

.page-resources__cta-button--secondary:hover {
  background-color: #a00000;
  color: #ffffff;
}

.page-resources__read-more-link {
  display: inline-block;
  margin-top: 20px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__read-more-link:hover {
  color: #e6c200;
  border-color: #e6c200;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 30px;
  }

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

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

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

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

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

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

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

  .page-resources__article-thumbnail {
    height: 200px;
  }

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

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

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

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

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-resources__cta-button + .page-resources__cta-button {
    margin-top: 15px;
  }

  /* Ensure all images within .page-resources are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

  .page-resources__article-thumbnail {
    min-width: unset; /* Override min-width for thumbnails if necessary, but keep max-width: 100% */
    min-height: unset;
    height: auto; /* Allow height to adjust naturally */
  }

  .page-resources__hero-image {
    min-width: unset;
    min-height: unset;
  }
}

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

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

  .page-resources__section-subtitle {
    font-size: 1.5em;
  }

  .page-resources__intro-section,
  .page-resources__articles-section,
  .page-resources__why-trust-section,
  .page-resources__cta-section,
  .page-resources__responsible-gaming-section,
  .page-resources__stay-updated-section {
    padding: 40px 0;
  }
}