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

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  color: #FFFFFF; /* White text over potentially dark hero image */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
}

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

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button--register {
  background-color: #000000; /* Dark button background */
  color: #FFFFFF; /* Register text color */
  border: 2px solid #FFFFFF;
}

.page-resources__hero-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-3px);
}

.page-resources__hero-button--login {
  background-color: #FCBC45; /* Login button background color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__hero-button--login:hover {
  background-color: #E0A83D;
  transform: translateY(-3px);
}

.page-resources__introduction-section, 
.page-resources__featured-articles, 
.page-resources__deep-dive-section, 
.page-resources__optimizing-experience-section, 
.page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
}

.page-resources__card-link:hover {
  color: #FCBC45;
}

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

.page-resources__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__content-block {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__content-block:last-child {
  margin-bottom: 0;
}

.page-resources__content-subtitle {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 20px;
  border-left: 5px solid #FCBC45;
  padding-left: 15px;
}

.page-resources__content-paragraph {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 20px;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  display: block;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

.page-resources__game-list, .page-resources__tip-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-resources__game-item, .page-resources__tip-item {
  background-color: #FFFFFF;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  font-size: 1em;
  color: #333333;
}

.page-resources__game-item strong, .page-resources__tip-item strong {
  color: #000000;
}

.page-resources__content-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.page-resources__content-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__content-button--download {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__content-button--download:hover {
  background-color: #E0A83D;
}

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

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

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

.page-resources__cta-section .page-resources__section-text {
  color: #F0F0F0;
  margin-bottom: 40px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  margin: 0 15px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__cta-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-3px);
}

.page-resources__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__cta-button--login:hover {
  background-color: #E0A83D;
  transform: translateY(-3px);
}

/* 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;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-text {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 220px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__content-block {
    padding: 30px 20px;
  }
  .page-resources__content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
    margin: 10px 0;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .page-resources__hero-content {
    padding: 20px;
  }
  .page-resources__introduction-section, 
  .page-resources__featured-articles, 
  .page-resources__deep-dive-section, 
  .page-resources__optimizing-experience-section, 
  .page-resources__cta-section {
    padding: 40px 0;
  }
  /* Ensure all images within content area are responsive and not smaller than 200px */
  .page-resources img {
    max-width: 100%;
    height: auto; /* Override fixed heights if they cause overflow */
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources__article-image {
    min-height: 200px;
  }
  .page-resources__content-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
    display: block;
    margin: 10px auto;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__content-subtitle {
    font-size: 1.3em;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
}