/* style/resources.css */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 60px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 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;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #e94560; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-button:hover {
  background-color: #ff6b81;
  transform: translateY(-2px);
}

.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__benefits-section,
.page-resources__cta-section,
.page-resources__responsible-gaming-section,
.page-resources__faq-section,
.page-resources__final-cta-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-resources__intro-section {
  background-color: #1a1a2e; /* Main color */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 80px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #e94560; /* Auxiliary color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-resources__article-card {
  background-color: #1a1a2e; /* Main color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  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 25px rgba(0, 0, 0, 0.5);
}

.page-resources__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #e94560; /* Auxiliary color accent */
}

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-resources__article-title a:hover {
  color: #e94560; /* Auxiliary color */
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #e94560; /* Auxiliary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #ff6b81;
}

.page-resources__benefits-section {
  background-color: #0f0f1a; /* Body background color */
  padding: 80px 0;
}

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

.page-resources__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__benefit-title {
  font-size: 1.8em;
  color: #e94560; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-resources__benefit-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a); /* Gradient from main to body background */
  text-align: center;
  padding: 80px 0;
  margin-bottom: 80px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__cta-section .page-resources__section-text {
  color: #e0e0e0;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--primary {
  background-color: #e94560; /* Auxiliary color */
  color: #ffffff;
}

.page-resources__cta-button--primary:hover {
  background-color: #ff6b81;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #e94560; /* Auxiliary color */
  color: #e94560;
}

.page-resources__cta-button--secondary:hover {
  background-color: #e94560;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources__responsible-gaming-section {
  background-color: #1a1a2e; /* Main color */
  border-radius: 10px;
  padding: 80px 0;
  margin-bottom: 80px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.page-resources__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__responsible-gaming-link {
  display: inline-block;
  margin-top: 30px;
  color: #e94560; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources__responsible-gaming-link:hover {
  color: #ff6b81;
  text-decoration: underline;
}

.page-resources__faq-section {
  padding-bottom: 80px;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #e94560; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
}

.page-resources__final-cta-section {
  background-color: #0f0f1a; /* Body background color */
  text-align: center;
  padding: 60px 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__final-cta-section .page-resources__section-title {
  color: #e94560;
}

.page-resources__final-cta-section .page-resources__section-text {
  color: #e0e0e0;
}

.page-resources__final-cta-button {
  display: inline-block;
  margin-top: 30px;
  background-color: #e94560; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__final-cta-button:hover {
  background-color: #ff6b81;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-image,
  .page-resources__article-image,
  .page-resources__responsible-gaming-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-resources__hero-content {
    max-width: 90%;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__intro-section,
  .page-resources__articles-section,
  .page-resources__benefits-section,
  .page-resources__cta-section,
  .page-resources__responsible-gaming-section,
  .page-resources__faq-section,
  .page-resources__final-cta-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-resources__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__benefit-title {
    font-size: 1.5em;
  }
  .page-resources__faq-question {
    font-size: 1.2em;
  }
  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}