.page-resources {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  overflow: hidden;
  background-color: #000000; /* Main color */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

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

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

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #DC143C; /* Emphasis color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__intro-section,
.page-resources__login-gateway-section,
.page-resources__game-resources-section,
.page-resources__security-section,
.page-resources__support-section,
.page-resources__promotions-section,
.page-resources__app-download-section,
.page-resources__conclusion-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-resources__intro-title,
.page-resources__featured-title,
.page-resources__login-gateway-title,
.page-resources__game-resources-title,
.page-resources__security-title,
.page-resources__support-title,
.page-resources__promotions-title,
.page-resources__app-download-title,
.page-resources__conclusion-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__intro-title::after,
.page-resources__featured-title::after,
.page-resources__login-gateway-title::after,
.page-resources__game-resources-title::after,
.page-resources__security-title::after,
.page-resources__support-title::after,
.page-resources__promotions-title::after,
.page-resources__app-download-title::after,
.page-resources__conclusion-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #DC143C;
  border-radius: 2px;
}

.page-resources__intro-text,
.page-resources__login-gateway-text,
.page-resources__game-resources-text,
.page-resources__security-text,
.page-resources__support-text,
.page-resources__promotions-text,
.page-resources__app-download-text,
.page-resources__conclusion-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-align: left;
}

.page-resources__intro-text a,
.page-resources__login-gateway-text a,
.page-resources__game-resources-text a,
.page-resources__security-text a,
.page-resources__support-text a,
.page-resources__promotions-text a,
.page-resources__app-download-text a,
.page-resources__conclusion-text a {
  color: #FFD700;
  text-decoration: underline;
}

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

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

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-resources__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  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.5em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__card-button {
  display: inline-block;
  background-color: #DC143C;
  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__card-button:hover {
  background-color: #ff4500;
}

.page-resources__login-gateway-image,
.page-resources__security-image,
.page-resources__app-download-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__login-cta-button,
.page-resources__game-cta-button,
.page-resources__security-cta-button,
.page-resources__support-cta-button,
.page-resources__promotions-cta-button,
.page-resources__app-download-cta-button,
.page-resources__conclusion-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for general CTAs */
  color: #000000; /* Black text on gold button */
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.page-resources__login-cta-button:hover,
.page-resources__game-cta-button:hover,
.page-resources__security-cta-button:hover,
.page-resources__support-cta-button:hover,
.page-resources__promotions-cta-button:hover,
.page-resources__app-download-cta-button:hover,
.page-resources__conclusion-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__intro-section,
  .page-resources__login-gateway-section,
  .page-resources__game-resources-section,
  .page-resources__security-section,
  .page-resources__support-section,
  .page-resources__promotions-section,
  .page-resources__app-download-section,
  .page-resources__conclusion-section {
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-resources__intro-title,
  .page-resources__featured-title,
  .page-resources__login-gateway-title,
  .page-resources__game-resources-title,
  .page-resources__security-title,
  .page-resources__support-title,
  .page-resources__promotions-title,
  .page-resources__app-download-title,
  .page-resources__conclusion-title {
    font-size: 2em;
  }

  .page-resources__intro-text,
  .page-resources__login-gateway-text,
  .page-resources__game-resources-text,
  .page-resources__security-text,
  .page-resources__support-text,
  .page-resources__promotions-text,
  .page-resources__app-download-text,
  .page-resources__conclusion-text {
    font-size: 0.95em;
    text-align: justify;
  }

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

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

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__card-summary {
    font-size: 0.9em;
  }

  .page-resources__login-gateway-image,
  .page-resources__security-image,
  .page-resources__app-download-image {
    max-width: 100%;
    height: auto; /* Ensures image scales down without overflow */
  }

  .page-resources__login-cta-button,
  .page-resources__game-cta-button,
  .page-resources__security-cta-button,
  .page-resources__support-cta-button,
  .page-resources__promotions-cta-button,
  .page-resources__app-download-cta-button,
  .page-resources__conclusion-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

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

/* Ensure all images within .page-resources are at least 200px wide in content area for mobile */
@media (max-width: 768px) {
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
  }

  .page-resources__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}