.page-arcade {
  color: #333333; /* Dark text for light body background */
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Main brand color for hero background */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Ensure hero section has sufficient height */
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Subtly blend image with background */
  z-index: 1;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__hero-button:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
}

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

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

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-arcade__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-arcade__featured-games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-arcade__game-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.page-arcade__game-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-arcade__game-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-arcade__game-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__game-button:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.page-arcade__why-choose-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-arcade__why-choose-section .page-arcade__section-title,
.page-arcade__why-choose-section .page-arcade__section-subtitle {
  color: #FFFFFF;
}

.page-arcade__why-choose-section .page-arcade__section-title::after {
  background-color: #FCBC45;
}

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

.page-arcade__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-arcade__benefit-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-arcade__benefit-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-arcade__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-arcade__mobile-app-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-arcade__mobile-app-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-arcade__mobile-app-text {
  flex: 1;
  min-width: 300px;
}

.page-arcade__mobile-app-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-arcade__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade__mobile-app-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 25px;
  border: none;
  cursor: pointer;
}

.page-arcade__mobile-app-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-arcade__faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #000000;
  padding: 20px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-arcade__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-arcade__faq-item.active .page-arcade__faq-question::after {
  transform: rotate(45deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 200px; /* Adjust based on expected content length */
  padding: 0 20px 20px;
}

.page-arcade__cta-section {
  background-color: #FCBC45;
  padding: 80px 0;
  text-align: center;
  color: #000000;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #000000;
}

.page-arcade__cta-section .page-arcade__section-title::after {
  background-color: #000000;
}

.page-arcade__cta-section .page-arcade__text-content {
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__cta-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

/* 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__mobile-app-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-arcade__mobile-app-text,
  .page-arcade__mobile-app-image-container {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 550px;
    padding: 40px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-arcade__content-wrapper {
    padding: 30px 15px;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-subtitle {
    font-size: 1em;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__benefit-title {
    font-size: 1.5em;
  }
  .page-arcade__mobile-app-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-arcade__faq-answer {
    padding: 0 15px 15px;
  }
  .page-arcade__cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
  /* CRITICAL: Prevent content overflow on mobile */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__hero-image {
    width: 100%; /* Ensure hero image is constrained */
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__game-image {
    height: 200px; /* Smaller height for game cards on very small screens */
  }
  .page-arcade__hero-section {
    padding-top: var(--header-offset-mobile, 80px); /* Use mobile offset if available */
  }
}