.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #f8f8f8; /* Light background for contrast with dark text */
  color: #333333; /* Dark text for readability on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Blend of primary and secondary colors */
  color: #ffffff;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__hero-cta {
  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%;
  z-index: 1;
  opacity: 0.3;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the background image to ensure text readability */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep red for primary titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__why-choose-section,
.page-resources__responsible-gaming-section,
.page-resources__faq-preview-section,
.page-resources__final-cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-resources__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-resources__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Deep red text for contrast */
}

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

.page-resources__button--secondary {
  background-color: #8B0000; /* Deep red */
  color: #ffffff;
}

.page-resources__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-resources__button--outline {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-resources__button--outline:hover {
  background-color: #8B0000;
  color: #ffffff;
  transform: translateY(-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 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__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #8B0000;
  font-weight: bold;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__button--card {
  margin-top: auto;
  align-self: flex-start;
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
}

.page-resources__button--card:hover {
  background-color: #e6c200;
}

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

.page-resources__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
}

.page-resources__feature-title {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-resources__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 20px;
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources__final-cta-section .page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__articles-grid,
  .page-resources__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-content {
    font-size: 1em;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__feature-title {
    font-size: 1.2em;
  }
  .page-resources__cta-bottom,
  .page-resources__final-cta-section .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__articles-grid img,
  .page-resources__why-choose-section img,
  .page-resources__responsible-gaming-section img,
  .page-resources__faq-preview-section img,
  .page-resources__final-cta-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__why-choose-section,
  .page-resources__responsible-gaming-section,
  .page-resources__faq-preview-section,
  .page-resources__final-cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__faq-item {
    padding: 20px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

/* Ensure all content area images are at least 200px wide/high */
.page-resources img:not(.page-resources__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for card images to ensure they meet minimum size, while maintaining aspect ratio */
.page-resources__article-image {
  min-width: 200px;
  min-height: 200px;
  width: 100%; /* Ensure it fills the card width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
}

/* Override for hero image to ensure filter is applied for readability but no color change */
.page-resources__hero-image {
  filter: brightness(0.6); /* Dims the image */
}

/* Ensure no other filter is applied to any image */
.page-resources img {
  filter: none; /* Reset any potential inherited filters */
}