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

.page-arcade__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-arcade__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content */
  margin: 0 auto;
}

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

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #FFFFFF; /* White text for hero content over dark image */
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for readability */
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  line-height: 1.2;
}

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

.page-arcade__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Black text on white background */
}

.page-arcade__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-arcade__button--login,
.page-arcade__button--play,
.page-arcade__button--cta {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Black text on golden background */
}

.page-arcade__button--login:hover,
.page-arcade__button--play:hover,
.page-arcade__button--cta:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

.page-arcade__about-section,
.page-arcade__games-section,
.page-arcade__why-choose-section,
.page-arcade__cta-section,
.page-arcade__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Consistent white background for sections */
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade__section-subtitle {
  font-size: 1.4em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

.page-arcade__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #FCBC45; /* Golden accent */
}

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

.page-arcade__game-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade__game-title a:hover {
  color: #FCBC45;
}

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

.page-arcade__button--play {
  padding: 10px 25px;
  font-size: 1em;
}

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

.page-arcade__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.page-arcade__feature-item:hover {
  background-color: #f0f0f0;
}

.page-arcade__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

.page-arcade__cta-section {
  background-color: #000000; /* Black background for CTA */
  color: #FFFFFF; /* White text on black background */
  text-align: center;
  padding: 80px 20px;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #FFFFFF; /* White title on black background */
  margin-bottom: 25px;
}

.page-arcade__cta-description {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__hero-description {
    font-size: 1.2em;
  }
  .page-arcade__section-title {
    font-size: 2.4em;
  }
  .page-arcade__section-subtitle {
    font-size: 1.3em;
  }
  .page-arcade__game-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-arcade__hero-content {
    padding: 15px;
    max-width: 95%;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-arcade__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 250px; /* Constrain button width */
  }
  .page-arcade__container {
    padding: 30px 15px;
  }
  .page-arcade__about-section,
  .page-arcade__games-section,
  .page-arcade__why-choose-section,
  .page-arcade__cta-section,
  .page-arcade__faq-section {
    padding: 40px 0;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-arcade__text-content {
    font-size: 1em;
  }
  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-image {
    height: 250px;
  }
  .page-arcade__game-title {
    font-size: 1.4em;
  }
  .page-arcade__features-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__feature-icon {
    width: 150px;
    min-width: 200px; /* Ensure mobile images are still large */
    min-height: 200px;
  }
  .page-arcade__feature-title {
    font-size: 1.5em;
  }
  .page-arcade__cta-description {
    font-size: 1.2em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-arcade__faq-answer {
    font-size: 1em;
    padding: 0 15px 15px;
  }
  /* Ensure all images within .page-arcade are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__feature-icon {
    width: 100px; /* Adjust for smaller screens but keep >200px if possible */
    min-width: 200px;
    min-height: 200px;
  }
}