.page-arcade-games {
  color: #333333;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-arcade-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-arcade-games__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  margin-top: -100px; /* Overlap slightly for visual effect, but not covering image */
  color: #ffffff;
  border-radius: 8px;
}

.page-arcade-games__hero-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-arcade-games__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-arcade-games__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-arcade-games__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-arcade-games__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade-games__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-arcade-games__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: #8B0000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-arcade-games__section-description {
  font-size: clamp(0.9em, 1.8vw, 1.1em);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-arcade-games__game-categories-section,
.page-arcade-games__featured-games-section,
.page-arcade-games__why-spinplus-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-arcade-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-arcade-games__category-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-arcade-games__category-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-arcade-games__category-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-arcade-games__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  margin-top: auto;
}

.page-arcade-games__games-carousel-wrapper {
  position: relative;
  margin-top: 40px;
}

.page-arcade-games__games-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
}

.page-arcade-games__games-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-arcade-games__game-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.page-arcade-games__game-info {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade-games__game-title {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-arcade-games__button--play {
  background-color: #FFD700;
  color: #8B0000;
  border: none;
  width: 100%;
  padding: 10px 0;
  font-size: 1em;
  font-weight: 700;
  margin-top: auto;
}

.page-arcade-games__button--play:hover {
  background-color: #e6c200;
}

.page-arcade-games__carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #8B0000;
  color: #FFD700;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arcade-games__carousel-button--prev {
  left: -20px;
}

.page-arcade-games__carousel-button--next {
  right: -20px;
}

.page-arcade-games__carousel-button--prev::before {
  content: '‹';
}

.page-arcade-games__carousel-button--next::before {
  content: '›';
}

.page-arcade-games__carousel-button:hover {
  background-color: #a00000;
}

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

.page-arcade-games__benefit-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade-games__benefit-title {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-arcade-games__benefit-text {
  font-size: 0.95em;
  color: #666666;
}

.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-arcade-games__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #8B0000;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-arcade-games__step-title {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-arcade-games__step-text {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade-games__faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-arcade-games__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade-games__faq-question {
  font-size: 1.15em;
  color: #8B0000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-arcade-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-arcade-games__faq-answer {
  font-size: 0.95em;
  color: #555555;
  display: none;
  margin-top: 10px;
}

.page-arcade-games__faq-answer.active {
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-arcade-games__carousel-button--prev {
    left: 0;
  }

  .page-arcade-games__carousel-button--next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-top: 0; /* body padding-top handles it */
  }

  .page-arcade-games__hero-image {
    height: 400px; /* Adjust height for mobile */
  }

  .page-arcade-games__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }

  .page-arcade-games__hero-title {
    font-size: 2em;
  }

  .page-arcade-games__hero-description {
    font-size: 0.9em;
  }

  .page-arcade-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade-games__button {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin: 0 auto;
  }

  .page-arcade-games__section-title {
    font-size: 1.8em;
  }

  .page-arcade-games__section-description {
    font-size: 0.85em;
  }

  .page-arcade-games__game-categories-section,
  .page-arcade-games__featured-games-section,
  .page-arcade-games__why-spinplus-section,
  .page-arcade-games__how-to-play-section,
  .page-arcade-games__faq-section {
    padding: 40px 15px;
  }

  .page-arcade-games__categories-grid,
  .page-arcade-games__benefits-grid,
  .page-arcade-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-arcade-games__game-card {
    flex: 0 0 80%; /* Make game cards take up more space on smaller screens */
    width: 80%;
  }

  .page-arcade-games__carousel-button {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-arcade-games__carousel-button--prev {
    left: 5px;
  }

  .page-arcade-games__carousel-button--next {
    right: 5px;
  }

  .page-arcade-games__game-image,
  .page-arcade-games__category-image,
  .page-arcade-games__benefit-icon {
    max-width: 100%;
    height: auto;
  }

  .page-arcade-games img {
    max-width: 100%;
    height: auto;
  }
}