.page-resources {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #1A1A2E;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E94560;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.page-resources__hero-button,
.page-resources__hero-button--secondary,
.page-resources__article-button,
.page-resources__cta-button,
.page-resources__cta-button--secondary,
.page-resources__social-button,
.page-resources__social-button--secondary {
  display: inline-block;
  background-color: #E94560;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-resources__hero-button:hover,
.page-resources__article-button:hover,
.page-resources__cta-button:hover,
.page-resources__social-button:hover {
  background-color: #c0364e;
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary,
.page-resources__cta-button--secondary,
.page-resources__social-button--secondary {
  background-color: #1A1A2E;
  border: 2px solid #E94560;
}

.page-resources__hero-button--secondary:hover,
.page-resources__cta-button--secondary:hover,
.page-resources__social-button--secondary:hover {
  background-color: #0d0d1a;
  border-color: #c0364e;
  transform: translateY(-2px);
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0D0D1A;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #E94560;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-resources__section-intro,
.page-resources__why-choose-intro,
.page-resources__responsible-gambling-intro,
.page-resources__community-updates-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

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

.page-resources__article-card {
  background-color: #1A1A2E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px 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(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

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

.page-resources__article-button {
  align-self: flex-start;
}

.page-resources__why-choose,
.page-resources__responsible-gambling,
.page-resources__community-updates {
  padding: 60px 0;
  text-align: center;
  margin-bottom: 60px;
  background-color: #1A1A2E;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__why-choose .page-resources__section-title,
.page-resources__responsible-gambling .page-resources__section-title,
.page-resources__community-updates .page-resources__section-title {
  color: #E94560;
}

.page-resources__why-choose-intro,
.page-resources__responsible-gambling-intro,
.page-resources__community-updates-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto 50px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.page-resources__feature-item {
  background-color: #0d0d1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-resources__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  display: block;
}

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

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

.page-resources__social-links {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro,
  .page-resources__why-choose-intro,
  .page-resources__responsible-gambling-intro,
  .page-resources__community-updates-intro {
    font-size: 0.95em;
  }
  .page-resources__articles-grid,
  .page-resources__features-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.5em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  /* Ensure all content area images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__feature-image {
    height: auto; /* Allow height to adjust naturally */
    max-width: 100%;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__hero-button,
  .page-resources__hero-button--secondary,
  .page-resources__article-button,
  .page-resources__cta-button,
  .page-resources__cta-button--secondary,
  .page-resources__social-button,
  .page-resources__social-button--secondary {
    width: calc(100% - 20px);
    margin: 10px auto;
    display: block;
  }
  .page-resources__why-choose,
  .page-resources__responsible-gambling,
  .page-resources__community-updates {
    padding: 40px 10px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__article-summary {
    font-size: 0.85em;
  }
  .page-resources__hero-button,
  .page-resources__hero-button--secondary,
  .page-resources__article-button,
  .page-resources__cta-button,
  .page-resources__cta-button--secondary,
  .page-resources__social-button,
  .page-resources__social-button--secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}