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

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

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7);
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

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

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

.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;
  color: #000000; /* Dark text for white button */
}

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

.page-arcade__button--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text for gold button */
}

.page-arcade__button--login:hover {
  background-color: #E6A83C;
  transform: translateY(-3px);
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 60px;
}

.page-arcade__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: #555555;
}

.page-arcade__about-section {
  background-color: #F8F8F8;
  padding: 80px 0;
}

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

.page-arcade__about-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__about-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade__about-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-arcade__item-description {
  font-size: 1em;
  color: #666666;
}

.page-arcade__games-section {
  padding: 80px 0;
}

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

.page-arcade__game-category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-arcade__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-arcade__category-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__button--play {
  background-color: #FCBC45;
  color: #000000;
  width: 100%;
}

.page-arcade__button--play:hover {
  background-color: #E6A83C;
  transform: translateY(-3px);
}

.page-arcade__features-section {
  background-color: #F8F8F8;
  padding: 80px 0;
}

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

.page-arcade__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-arcade__feature-item:hover {
  transform: translateY(-8px);
}

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

.page-arcade__feature-description {
  font-size: 0.95em;
  color: #666666;
}

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

.page-arcade__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #E0E0E0;
}

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

.page-arcade__button--download {
  background-color: #FCBC45;
  color: #000000;
}

.page-arcade__button--download:hover {
  background-color: #E6A83C;
  transform: translateY(-3px);
}

.page-arcade__faq-section {
  padding: 80px 0;
}

.page-arcade__faq-list {
  max-width: 900px;
  margin: 60px auto 0 auto;
}

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

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

.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 {
  font-size: 1em;
  color: #666666;
  padding: 0 25px 20px 25px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-arcade__faq-answer.open {
  max-height: 200px; /* Adjust as needed */
  padding: 0 25px 20px 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-arcade__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-arcade__about-section, .page-arcade__games-section, .page-arcade__features-section, .page-arcade__cta-section, .page-arcade__faq-section {
    padding: 60px 0;
  }
  .page-arcade__about-grid, .page-arcade__game-category-grid, .page-arcade__feature-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-arcade__about-image, .page-arcade__category-image {
    height: 200px;
    min-width: 200px; /* Ensure min size for mobile */
    max-width: 100%; height: auto; /* Ensure images are responsive and not overflowing */
  }
  .page-arcade__item-title, .page-arcade__category-title {
    font-size: 1.5em;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }
  .page-arcade__cta-actions .page-arcade__button {
    width: 90%;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
  }
  .page-arcade__faq-answer {
    font-size: 0.9em;
  }
  /* Ensure all content images in mobile are responsive and don't cause overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for hero image if needed, but hero image is typically full width */
  .page-arcade__hero-image {
    width: 100%;
    height: 100%; /* Cover the section */
  }
  .page-arcade__about-image, .page-arcade__category-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
  }
  .page-arcade__button--register, .page-arcade__button--login {
    width: 95%;
  }
}