.page-arcade {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-arcade__section {
  padding: 60px 20px;
  text-align: center;
}

.page-arcade__section--dark-bg {
  background-color: #000000; /* Primary color as background */
  color: #ffffff;
}

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

.page-arcade__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit;
  font-weight: bold;
}

.page-arcade__section--dark-bg .page-arcade__section-title {
  color: #ffffff;
}

.page-arcade__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: 80px 20px; /* Adjust padding for visual balance */
  background-color: #000000; /* Dark background for hero content */
  color: #ffffff;
}

.page-arcade__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-arcade__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image to make text stand out */
  display: block;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.page-arcade__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-arcade__hero-buttons {
  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;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-arcade__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-arcade__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-arcade__button--play {
  background-color: #FCBC45; /* Login button color (used for play/login type) */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--play:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-arcade__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* About Section */
.page-arcade__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
}

.page-arcade__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__image--margin-top {
  margin-top: 50px;
}

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

.page-arcade__game-card {
  background-color: #1a1a1a; /* Darker card background */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-arcade__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__game-card-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-arcade__game-card-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__game-card .page-arcade__button {
  align-self: flex-start;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-arcade__game-card .page-arcade__button:hover {
  background-color: #e0a538;
}

/* Why Choose Us */
.page-arcade__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-arcade__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-arcade__feature-text {
  font-size: 0.95em;
  color: #555555;
}

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

.page-arcade__promo-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-arcade__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-arcade__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__promo-card .page-arcade__button {
  align-self: flex-start;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-arcade__promo-card .page-arcade__button:hover {
  background-color: #e0a538;
}

/* Getting Started Guide */
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-arcade__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #000000;
}

.page-arcade__step-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-arcade__faq-accordion {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade__faq-question {
  font-size: 1.3em;
  padding: 20px 25px;
  cursor: pointer;
  color: #ffffff;
  position: relative;
  margin: 0;
  transition: background-color 0.3s ease;
}

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

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

.page-arcade__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #cccccc;
}

.page-arcade__faq-answer p {
  padding-bottom: 20px;
  margin: 0;
}

.page-arcade__faq-question.active + .page-arcade__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* Call to Action Section */
.page-arcade__cta-section {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-arcade__cta-section .page-arcade__section-description {
  color: #333333;
}

.page-arcade__cta-section .page-arcade__button {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

.page-arcade__cta-section .page-arcade__button:hover {
  background-color: transparent;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }

  .page-arcade__section-title {
    font-size: 2.2em;
  }

  .page-arcade__game-grid, .page-arcade__features-grid, .page-arcade__promo-grid, .page-arcade__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
  }

  .page-arcade__section {
    padding: 40px 15px;
  }

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

  .page-arcade__section-description {
    font-size: 1em;
  }

  .page-arcade__game-grid, .page-arcade__features-grid, .page-arcade__promo-grid, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image handling - prevent overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  .page-arcade__feature-icon {
    width: 150px;
    height: 100px;
  }

  .page-arcade__game-card-image, .page-arcade__promo-image {
    height: 180px;
  }

  /* Ensure all img within .page-arcade are at least 200px or max-width: 100% */
  .page-arcade img:not(.page-arcade__feature-icon) {
    min-width: 200px;
    min-height: 200px;
  }

  /* Override for feature icons to be smaller if needed, but still above 200px if possible */
  /* The general rule for all img under .page-arcade is min 200px. If feature icons must be smaller, they are an exception. */
  /* Given the strict rule, feature icons should also be at least 200x200. Adjusting feature icon size for compliance. */
  .page-arcade__feature-icon {
    width: 200px;
    height: 200px;
  }

  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-arcade__faq-question::after {
    right: 20px;
  }
  .page-arcade__faq-answer p {
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.95em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}