.page-arcade-games {
  padding-top: 10px; /* Small top padding for the first section */
  color: #f5f5f5;
  background-color: #0d0d0d;
  font-family: Arial, sans-serif;
}

.page-arcade-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 40px 0;
  background-color: #1a1a1a;
  position: relative;
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 20px;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-arcade-games__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade-games__hero-description {
  font-size: 1.1rem;
  color: #e5e5e5;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-arcade-games__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-arcade-games__cta-button:hover {
  background-color: #e0a32d;
  transform: translateY(-2px);
}

.page-arcade-games__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-arcade-games__intro-section,
.page-arcade-games__games-showcase,
.page-arcade-games__benefits-section,
.page-arcade-games__get-started-section,
.page-arcade-games__security-section,
.page-arcade-games__faq-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade-games__section-title {
  font-size: 2.2rem;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.page-arcade-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-arcade-games__section-description {
  font-size: 1rem;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade-games__game-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333333;
}

.page-arcade-games__game-title {
  font-size: 1.4rem;
  color: #FCBC45;
  margin: 20px 15px 10px 15px;
  font-weight: 600;
}

.page-arcade-games__game-link {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade-games__game-link:hover {
  color: #FFFFFF;
}

.page-arcade-games__game-description {
  font-size: 0.95rem;
  color: #cccccc;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-arcade-games__game-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 15px 20px 15px;
  border: none;
  cursor: pointer;
}

.page-arcade-games__game-button:hover {
  background-color: #e0a32d;
  transform: translateY(-2px);
}

.page-arcade-games__benefits-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-arcade-games__benefits-text {
  flex: 1 1 500px;
  min-width: 300px;
}

.page-arcade-games__benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-arcade-games__benefit-item {
  background-color: #1a1a1a;
  border-left: 4px solid #FCBC45;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1rem;
  color: #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__benefit-item strong {
  color: #FCBC45;
}

.page-arcade-games__benefits-image-wrapper {
  flex: 1 1 400px;
  min-width: 250px;
  text-align: center;
}

.page-arcade-games__benefits-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-arcade-games__step-item {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-arcade-games__step-title {
  font-size: 1.5rem;
  color: #FCBC45;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-arcade-games__step-item p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
}

.page-arcade-games__security-section {
  text-align: center;
}

.page-arcade-games__learn-more-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FCBC45;
  border: 1px solid #FCBC45;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.page-arcade-games__learn-more-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-arcade-games__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__faq-question {
  font-size: 1.2rem;
  color: #FFFFFF;
  padding: 18px 25px;
  cursor: pointer;
  margin: 0;
  position: relative;
  background-color: #222222;
  border-bottom: 1px solid #333333;
}

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

.page-arcade-games__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-arcade-games__faq-answer {
  font-size: 1rem;
  color: #cccccc;
  padding: 0 25px 20px 25px;
  line-height: 1.6;
  display: none;
}

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

.page-arcade-games__game-trial-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.page-arcade-games__game-trial-content {
  background-color: #0d0d0d;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.page-arcade-games__close-button {
  color: #FCBC45;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-arcade-games__close-button:hover,
.page-arcade-games__close-button:focus {
  color: #FFFFFF;
  text-decoration: none;
}

.page-arcade-games__game-trial-frame {
  width: 100%;
  height: 500px; /* Default height for iframe */
  border: none;
  border-radius: 8px;
  background-color: #000000;
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding: 15px 0 30px 0;
  }

  .page-arcade-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-arcade-games__hero-description {
    font-size: 1rem;
  }

  .page-arcade-games__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-arcade-games__section-description {
    font-size: 0.9rem;
  }

  .page-arcade-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__game-image {
    height: 180px;
  }

  .page-arcade-games__benefits-content {
    flex-direction: column;
  }

  .page-arcade-games__benefits-image-wrapper {
    order: -1;
  }

  .page-arcade-games__benefits-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    height: auto;
  }

  .page-arcade-games__benefits-text,
  .page-arcade-games__benefits-image-wrapper {
    flex: 1 1 100%;
  }

  .page-arcade-games__steps-list {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-arcade-games__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px 20px;
  }

  .page-arcade-games__game-trial-frame {
    height: 400px;
  }

  /* Enforce min-width/height for all content images */
  .page-arcade-games img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__hero-content {
    padding: 0 15px;
  }
  .page-arcade-games__section-title {
    font-size: 1.6rem;
  }
  .page-arcade-games__cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .page-arcade-games__game-title {
    font-size: 1.2rem;
  }
  .page-arcade-games__game-button {
    font-size: 0.9rem;
  }
  .page-arcade-games__benefits-text,
  .page-arcade-games__benefits-image-wrapper {
    min-width: unset; /* Allow smaller for very small screens if necessary, but images will still be 200px min */
  }
  .page-arcade-games__game-trial-frame {
    height: 300px;
  }
}