/* style/arcade-games.css */
/* 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; /* Explicitly set for clarity, though body default is white */
}

/* Section padding and container */
.page-arcade-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-arcade-games__hero-section,
.page-arcade-games__video-section,
.page-arcade-games__introduction-section,
.page-arcade-games__top-games-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__benefits-section,
.page-arcade-games__promotions-section,
.page-arcade-games__responsible-gaming-section,
.page-arcade-games__mobile-section,
.page-arcade-games__faq-section,
.page-arcade-games__cta-section {
  padding: 60px 0;
  position: relative;
}

/* Specific top padding for the first content section, not using var(--header-offset) */
.page-arcade-games__hero-section {
  padding-top: 10px; /* Small top spacing as per requirement */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000; /* Hero section background can be dark for contrast */
}

.page-arcade-games__hero-image-container {
  width: 100%;
  max-width: 1920px; /* Adjust as needed for hero image width */
  margin: 0 auto;
  overflow: hidden;
}

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

.page-arcade-games__hero-content {
  width: 100%;
  max-width: 900px; /* Constrain content width */
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #FFFFFF; /* White text on dark hero background */
}

.page-arcade-games__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-arcade-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-arcade-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #000000; /* Dark text on light section background */
}

.page-arcade-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-arcade-games__btn-primary {
  background-color: #000000; /* Primary button background */
  color: #FFFFFF; /* Primary button text */
  border: 2px solid #000000;
  margin-top: 20px;
}

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

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

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

.page-arcade-games__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Login specific button style */
.page-arcade-games__cta-buttons a:nth-child(2) { /* Targeting the Login button */
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Login button text */
  border: 2px solid #FCBC45;
}

.page-arcade-games__cta-buttons a:nth-child(2):hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

/* Video Section */
.page-arcade-games__video-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background for video section */
  color: #FFFFFF;
  text-align: center;
  padding-top: 10px; /* As per requirement */
}

.page-arcade-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  background-color: #000000; /* Ensure black background if video fails to load */
  width: 100%; /* Explicitly set for desktop */
}

.page-arcade-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-arcade-games__video-caption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 10px;
  color: #CCCCCC;
}

/* Top Games Section */
.page-arcade-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__game-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-arcade-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade-games__game-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #000000;
}

.page-arcade-games__game-description {
  padding: 0 20px;
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* How to Play Section */
.page-arcade-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-arcade-games__list-item {
  background-color: #F8F8F8;
  border-left: 5px solid #000000;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
}

.page-arcade-games__list-item strong {
  color: #000000;
}

/* Benefits Section */
.page-arcade-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__feature-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-arcade-games__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade-games__feature-title {
  font-size: 1.4em;
  margin: 20px 0 10px;
  color: #000000;
}

.page-arcade-games__feature-description {
  padding: 0 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Promotions Section */
.page-arcade-games__promo-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 30px;
  font-size: 1.1em;
}

.page-arcade-games__promo-item {
  margin-bottom: 10px;
  color: #333333;
}

.page-arcade-games__promo-item strong {
  color: #000000;
}

/* Mobile Section */
.page-arcade-games__mobile-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__mobile-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-arcade-games__mobile-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade-games__mobile-title {
  font-size: 1.4em;
  margin: 20px 0 10px;
  color: #000000;
}

.page-arcade-games__mobile-description {
  padding: 0 20px;
  font-size: 0.95em;
  color: #555555;
}

/* FAQ Section */
.page-arcade-games__faq-list {
  margin-top: 40px;
}

.page-arcade-games__faq-item {
  background-color: #F8F8F8;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  color: #000000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
}

.page-arcade-games__faq-question:hover {
  background-color: #F0F0F0;
}

.page-arcade-games__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: bold;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #000000;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X */
}

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #F8F8F8;
  color: #555555;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-arcade-games__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* CTA Section */
.page-arcade-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-arcade-games__container,
  .page-arcade-games__hero-content,
  .page-arcade-games__introduction-section,
  .page-arcade-games__top-games-section,
  .page-arcade-games__how-to-play-section,
  .page-arcade-games__benefits-section,
.page-arcade-games__promotions-section,
.page-arcade-games__responsible-gaming-section,
.page-arcade-games__mobile-section,
.page-arcade-games__faq-section,
.page-arcade-games__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-arcade-games__hero-section {
    padding-top: 10px !important;
  }

  .page-arcade-games__hero-content {
    padding: 20px 15px;
  }

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

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

  .page-arcade-games__paragraph,
  .page-arcade-games__list-item,
  .page-arcade-games__game-description,
  .page-arcade-games__feature-description,
  .page-arcade-games__promo-item,
  .page-arcade-games__mobile-description,
  .page-arcade-games__faq-question h3,
  .page-arcade-games__faq-answer p {
    font-size: 1em;
  }

  /* Images responsiveness */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Card image heights on mobile */
  .page-arcade-games__game-image,
  .page-arcade-games__feature-image,
  .page-arcade-games__mobile-image {
    height: 180px !important; /* Adjusted for smaller screens */
  }

  /* Video responsiveness */
  .page-arcade-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-arcade-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure height auto for responsive video */
  }

  /* Button responsiveness */
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games a[class*="button"],
  .page-arcade-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

@media (max-width: 480px) {
  .page-arcade-games__main-title {
    font-size: 1.8em;
  }

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