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

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px 60px; /* Adjust padding for visual balance */
  background-color: #0d1a2f; /* Dark background for hero section */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

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

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

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

.page-resources__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1a1a1a; /* Dark text for gold button */
  border: none;
}

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

.page-resources__button--secondary {
  background-color: #1E90FF; /* Royal blue button */
  color: #ffffff; /* White text for blue button */
  border: 2px solid #1E90FF;
}

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

.page-resources__button--text {
  background: none;
  color: #FFD700;
  padding: 8px 0;
  border: none;
  font-size: 1em;
}

.page-resources__button--text:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 60px;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-resources__intro-section, .page-resources__articles-section, .page-resources__why-arionplay-section, .page-resources__responsible-gaming-section, .page-resources__faq-section, .page-resources__cta-section {
  padding: 60px 0;
  background-color: #0d1a2f;
}

.page-resources__articles-section {
  background-color: #1a2942;
}

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

.page-resources__article-card {
  background-color: #1e3050; /* Darker background for cards */
  border-radius: 12px;
  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;
  height: 100%;
}

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

.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;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources__article-title a:hover {
  text-decoration: underline;
}

.page-resources__article-meta {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 15px;
}

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

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-resources__feature-item {
  background-color: #1e3050;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  font-size: 1.1em;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-resources__feature-item::before {
  content: '✓';
  color: #1E90FF;
  font-size: 1.5em;
  font-weight: bold;
}

.page-resources__responsible-gaming-section {
  background-color: #0d1a2f;
  text-align: center;
}

.page-resources__faq-section {
  background-color: #1a2942;
  padding-bottom: 80px;
}

.page-resources__faq-item {
  background-color: #1e3050;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

.page-resources__cta-section {
  background-color: #1E90FF; /* Royal blue background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__article-image {
    height: 200px;
  }

  .page-resources__feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header for mobile */
  }

  .page-resources__hero-section {
    padding: 60px 15px 40px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-resources__section-text {
    font-size: 0.95em;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-image {
    height: 220px; /* Maintain minimum size */
  }

  .page-resources__article-card img, .page-resources__intro-section img, .page-resources__why-arionplay-section img, .page-resources__responsible-gaming-section img, .page-resources__faq-section img, .page-resources__cta-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for all content images */
    min-height: 200px;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

  .page-resources__cta-description {
    font-size: 1.1em;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__section-title {
    font-size: 1.5em;
  }

  .page-resources__cta-title {
    font-size: 1.8em;
  }
}