.page-arcade {
  color: #000000; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px; /* Add padding below hero content */
}

.page-arcade__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 400px; /* Ensure hero image has a minimum height */
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 900px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

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

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

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

.page-arcade__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-arcade__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-arcade__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #333333;
}

.page-arcade__introduction-section, .page-arcade__game-categories, .page-arcade__features-section, .page-arcade__how-to-start-section, .page-arcade__faq-section, .page-arcade__cta-section {
  padding: 80px 0;
}

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

.page-arcade__game-categories {
  background-color: #f8f8f8;
}

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

.page-arcade__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-arcade__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

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

.page-arcade__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--small:hover {
  background-color: #e0a53b;
}

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

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

.page-arcade__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade__feature-icon {
  width: 250px;
  height: 167px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
}

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

.page-arcade__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: center;
  position: relative;
}

.page-arcade__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCBC45;
  color: #000000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade__faq-question {
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  position: relative;
  display: block;
  user-select: none;
}

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-item[open] .page-arcade__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-arcade__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
}

.page-arcade__cta-section--bottom {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.page-arcade__cta-content {
  position: relative;
  z-index: 1;
}

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

.page-arcade__cta-title {
  font-size: 3em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  color: #F0F0F0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--large:hover {
  background-color: #e0a53b;
}

.page-arcade__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-arcade__floating-button {
  display: block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__floating-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-arcade__floating-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-arcade__floating-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-content {
    padding: 60px 15px;
  }
  .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%;
    margin: 0 auto;
  }
  .page-arcade__introduction-section, .page-arcade__game-categories, .page-arcade__features-section, .page-arcade__how-to-start-section, .page-arcade__faq-section, .page-arcade__cta-section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__category-grid, .page-arcade__features-grid, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-arcade__category-image, .page-arcade__feature-icon {
    height: 200px; /* Minimum height for content images */
    width: 100%; /* Ensure images don't overflow */
  }
  .page-arcade__card-title {
    font-size: 1.5em;
  }
  .page-arcade__faq-question {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-arcade__faq-question::after {
    right: 20px;
  }
  .page-arcade__faq-answer {
    padding: 0 20px 18px 20px;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }
  .page-arcade__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-arcade__floating-buttons {
    bottom: 15px;
    right: 15px;
  }
  .page-arcade__floating-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  /* Ensure all images within .page-arcade are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}