/* style/resources.css */
.page-resources {
  color: #333333; /* Dark text for light body background */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.page-resources__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

.page-resources__button--primary:hover {
  background-color: #e0a53b;
}

.page-resources__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-resources__button--secondary:hover {
  background-color: #222222;
  border-color: #e0a53b;
}

.page-resources__button--link {
  background: none;
  color: #FCBC45;
  padding: 0;
  border: none;
  text-decoration: underline;
}

.page-resources__button--link:hover {
  color: #e0a53b;
}

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

.page-resources__content-area--reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
}

.page-resources__articles-section, .page-resources__responsible-gaming-section, .page-resources__community-section {
  background-color: #FFFFFF;
  padding: 40px 0;
}

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

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

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

.page-resources__article-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  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;
  justify-content: space-between;
}

.page-resources__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #000000;
}

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

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

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

.page-resources__responsible-gaming-section, .page-resources__community-section {
  padding: 80px 0;
}

.page-resources__text-content {
  flex: 1;
  padding-right: 20px;
}

.page-resources__text-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #444444;
}

.page-resources__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-resources__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-resources__button--large {
  padding: 15px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__content-area--reverse {
    flex-direction: column;
  }
  .page-resources__text-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-resources__feature-image {
    max-width: 100%;
    width: auto; /* Allow auto width for flexible scaling */
    height: auto; /* Allow auto height for flexible scaling */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-content {
    max-width: 90%;
    padding: 20px;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
  }
  .page-resources__content-area {
    padding: 30px 15px;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__section-intro {
    font-size: 0.9em;
  }
  .page-resources__article-list {
    grid-template-columns: 1fr;
  }
  .page-resources__responsible-gaming-section, .page-resources__community-section {
    padding: 50px 0;
  }
  .page-resources__text-content p {
    font-size: 0.95em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__feature-image {
    max-width: 100%;
    height: auto;
  }
  /* Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}

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