/* style/resources.css */
.page-resources {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  gap: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-resources__button--login:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-resources__button--read-more, .page-resources__button--learn-more {
  background-color: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
}

.page-resources__button--read-more:hover, .page-resources__button--learn-more:hover {
  background-color: #333333;
}

.page-resources__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-resources__button--join-now:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

.page-resources__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

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

.page-resources__content-area,
.page-resources__why-choose-section,
.page-resources__responsible-gaming-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-resources__article-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease;
}

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

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

.page-resources__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  display: block;
}

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

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

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

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

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

.page-resources__why-choose-section,
.page-resources__responsible-gaming-section {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-resources__why-choose-section {
  background-color: #F0F0F0;
  padding: 80px 20px;
}

.page-resources__why-choose-content,
.page-resources__responsible-gaming-content {
  flex: 1;
}

.page-resources__why-choose-image-container,
.page-resources__responsible-gaming-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__why-choose-image,
.page-resources__responsible-gaming-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #333333;
}

.page-resources__feature-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-resources__feature-item::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-resources__responsible-gaming-section {
  flex-direction: row-reverse; /* Image on right */
}

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

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

.page-resources__cta-section .page-resources__section-description {
  color: #F0F0F0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.4em;
  }
  .page-resources__why-choose-section,
  .page-resources__responsible-gaming-section {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__responsible-gaming-section {
    flex-direction: column-reverse;
  }
  .page-resources__why-choose-content,
  .page-resources__responsible-gaming-content {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__content-area,
  .page-resources__why-choose-section,
  .page-resources__responsible-gaming-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-image-wrapper {
    height: 200px;
  }
  /* Ensure all images within .page-resources are responsive and do not cause overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__why-choose-image,
  .page-resources__responsible-gaming-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__feature-item {
    padding-left: 25px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__hero-actions, .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 280px;
  }
}