.page-resources {
  color: #ffffff; /* Light text for dark body background */
}

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #1A202C; /* Main brand color for hero background */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

.page-resources__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Accent color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-resources__button--primary {
  background-color: #FFD700; /* Accent color */
  color: #1A202C;
  border: none;
}

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

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

.page-resources__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-resources__button--center {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-top: 40px;
  overflow: hidden; /* Ensure image doesn't overflow container */
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-resources__articles-section,
.page-resources__why-choose-us-section,
.page-resources__responsible-gaming-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__article-card {
  background-color: #1A202C; /* Dark background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__card-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistent image size */
  overflow: hidden;
}

.page-resources__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-resources__article-card:hover .page-resources__card-image {
  transform: scale(1.05);
}

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

.page-resources__card-category {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

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

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

.page-resources__card-link:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

.page-resources__why-choose-us-content {
  text-align: center;
}

.page-resources__why-choose-us-content p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__feature-item p {
  font-size: 1em;
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 0;
}

.page-resources__responsible-gaming-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  background-color: #1A202C; /* Dark background for this section */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__responsible-gaming-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  width: 100%;
  height: auto;
}

.page-resources__responsible-gaming-text {
  flex: 1;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-resources__responsible-gaming-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-resources__responsible-gaming-text .page-resources__button {
  margin-top: 20px;
}

.page-resources__cta-section {
  text-align: center;
  background-color: #FFD700; /* Accent color for CTA background */
  color: #1A202C; /* Dark text for light background */
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.page-resources__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #1A202C;
}

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

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

.page-resources__cta-buttons .page-resources__button--primary {
  background-color: #1A202C;
  color: #FFD700;
}

.page-resources__cta-buttons .page-resources__button--primary:hover {
  background-color: #333;
  color: #FFD700;
}

.page-resources__cta-buttons .page-resources__button--secondary {
  background-color: transparent;
  color: #1A202C;
  border-color: #1A202C;
}

.page-resources__cta-buttons .page-resources__button--secondary:hover {
  background-color: #1A202C;
  color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.4em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
  .page-resources__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__responsible-gaming-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
  }
  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__card-image-wrapper {
    height: 200px;
  }
  .page-resources__feature-item {
    padding: 25px;
  }
  .page-resources__responsible-gaming-content {
    padding: 30px;
  }
  .page-resources__responsible-gaming-text p {
    font-size: 0.95em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  /* Mobile image scaling for all images within .page-resources */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image img,
  .page-resources__card-image,
  .page-resources__responsible-gaming-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__responsible-gaming-content {
    padding: 20px;
  }
}