/* Base styles for the arcade games page */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-arcade-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for non-homepage hero */
}

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

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  color: #ffffff;
  margin-top: -100px; /* Pull content up to overlap image slightly */
}

.page-arcade-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-arcade-games__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-arcade-games__btn-primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade-games__btn-primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-arcade-games__btn-secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-arcade-games__btn-secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-arcade-games__section-title {
  font-size: 2.2rem;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-weight: bold;
}

.page-arcade-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-arcade-games__introduction-section,
.page-arcade-games__game-categories-section,
.page-arcade-games__featured-games-section,
.page-arcade-games__why-choose-us-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__faq-section {
  padding: 40px 0;
}

.page-arcade-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 12px;
  object-fit: cover;
}

.page-arcade-games__game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-arcade-games__list-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade-games__list-title {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 10px;
}

.page-arcade-games__game-list p {
  font-size: 1rem;
  color: #555555;
}

.page-arcade-games__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.page-arcade-games__game-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade-games__game-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  height: auto;
}

.page-arcade-games__game-title {
  font-size: 1.4rem;
  color: #000000;
  margin: 15px 10px 5px;
}

.page-arcade-games__game-description {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 15px 15px;
}

.page-arcade-games__play-button {
  display: block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 12px 12px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-arcade-games__play-button:hover {
  background-color: #e0a53b;
}

.page-arcade-games__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.page-arcade-games__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__feature-title {
  font-size: 1.6rem;
  color: #000000;
  margin-bottom: 10px;
}

.page-arcade-games__feature-description {
  font-size: 1rem;
  color: #555555;
}

.page-arcade-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-arcade-games__step-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 60px;
}

.page-arcade-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: #FCBC45;
  color: #000000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-arcade-games__step-title {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 10px;
}

.page-arcade-games__step-item p {
  font-size: 1rem;
  color: #555555;
}

.page-arcade-games__faq-list {
  margin-top: 30px;
}

.page-arcade-games__faq-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.page-arcade-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-arcade-games__faq-qtext {
  flex-grow: 1;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-item[open] .page-arcade-games__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #555555;
}

/* Ensure all images are responsive */
.page-arcade-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade-games__container {
    padding: 15px;
  }
  .page-arcade-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-arcade-games__hero-description {
    font-size: 1.1rem;
  }
  .page-arcade-games__section-title {
    font-size: 2rem;
  }
  .page-arcade-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-arcade-games__feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-arcade-games__steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-content {
    padding: 30px 15px;
    margin-top: -50px; /* Adjust overlap for smaller screens */
  }
  .page-arcade-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-arcade-games__hero-description {
    font-size: 1rem;
  }
  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
  }
  .page-arcade-games__section-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .page-arcade-games__text-block {
    font-size: 0.95rem;
  }
  .page-arcade-games__game-list,
  .page-arcade-games__games-grid,
  .page-arcade-games__feature-list,
  .page-arcade-games__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade-games__list-item,
  .page-arcade-games__game-card,
  .page-arcade-games__feature-item,
  .page-arcade-games__step-item {
    padding: 20px;
  }
  .page-arcade-games__step-item {
    padding-left: 50px;
  }
  .page-arcade-games__step-item::before {
    left: 15px;
    top: 20px;
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }
  .page-arcade-games__list-title,
  .page-arcade-games__game-title,
  .page-arcade-games__feature-title,
  .page-arcade-games__step-title {
    font-size: 1.3rem;
  }
  .page-arcade-games__play-button {
    font-size: 0.95rem;
  }
  .page-arcade-games__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-arcade-games__faq-answer {
    padding: 0 15px 15px;
  }
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-arcade-games__cta-buttons,
  .page-arcade-games__button-group,
  .page-arcade-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-arcade-games__cta-buttons {
    flex-direction: column;
  }
}