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

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.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;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 800px;
  background-color: rgba(26, 32, 44, 0.7); /* Semi-transparent overlay */
  padding: 30px;
  border-radius: 8px;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

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

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__benefits-section,
.page-resources__responsible-gaming-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-resources__introduction-section,
.page-resources__responsible-gaming-section {
  background-color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__section-text {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

/* Articles Grid */
.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: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  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: #1A202C;
}

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

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

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

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #1A202C;
  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__read-more-button:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Benefits Section */
.page-resources__benefits-section {
  background-color: #f0f0f0;
}

.page-resources__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__benefit-title {
  font-size: 1.4em;
  color: #1A202C;
  margin-bottom: 15px;
}

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

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
  text-align: center;
}

.page-resources__responsible-gaming-button {
  display: inline-block;
  background-color: #1A202C;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.page-resources__responsible-gaming-button:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Final CTA Section */
.page-resources__cta-section {
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-section .page-resources__section-text {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button--primary {
  margin-right: 15px;
}

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

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__articles-grid,
  .page-resources__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  /* Content images must not cause horizontal scrolling */
  .page-resources__container img,
  .page-resources__articles-section img,
  .page-resources__benefits-section img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-section {
    min-height: 400px;
  }
  .page-resources__hero-content {
    padding: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__cta-button--primary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-resources__cta-button--secondary {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.4em;
  }
  .page-resources__cta-button {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 15px;
  }
  .page-resources__cta-section .page-resources__cta-button {
    display: block;
  }
}