.page-arcade {
  color: #333333; /* Default text color for light background */
}

.page-arcade__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Dark background for hero content area */
  color: #FFFFFF; /* Light text on dark background */
  text-align: center;
  overflow: hidden;
  padding-bottom: 80px;
}

.page-arcade__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

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

.page-arcade__button--register:hover {
  background-color: #e0e0e0;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

.page-arcade__button--login,
.page-arcade__button--play,
.page-arcade__button--join-now {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--login:hover,
.page-arcade__button--play:hover,
.page-arcade__button--join-now:hover {
  background-color: #e6a73c;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(252, 188, 69, 0.4);
}

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

.page-arcade__introduction-section,
.page-arcade__game-categories-section,
.page-arcade__why-choose-s5-section,
.page-arcade__responsible-gaming-section,
.page-arcade__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-arcade__introduction-section {
  background-color: #f8f8f8;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade__section-subtitle {
  font-size: 1.4em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-arcade__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

.page-arcade__text-content a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__text-content a:hover {
  text-decoration: underline;
}

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

.page-arcade__game-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-arcade__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-arcade__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin: 0 20px 15px;
}

.page-arcade__game-card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin: 0 20px 25px;
  flex-grow: 1;
}

.page-arcade__why-choose-s5-section {
  background-color: #f8f8f8;
}

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

.page-arcade__feature-item {
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-arcade__feature-item:hover {
  transform: translateY(-5px);
}

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

.page-arcade__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-arcade__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

.page-arcade__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__cta-section .page-arcade__text-content {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__hero-description {
    font-size: 1.2em;
  }
  .page-arcade__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    padding-bottom: 60px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-subtitle {
    font-size: 1.2em;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__game-grid,
  .page-arcade__features-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card-image,
  .page-arcade__feature-image {
    height: 200px;
  }
  /* Ensure content area images do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}