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

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #000000; /* Primary brand color for hero background */
  color: #FFFFFF; /* Light text on dark background */
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.page-arcade__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.page-arcade__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text on accent button */
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 15px rgba(252, 188, 69, 0.4);
}

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

.page-arcade__hero-image {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Constrain image width */
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

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

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

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

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

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

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

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

.page-arcade__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-arcade__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
  padding: 0 20px;
}

.page-arcade__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-arcade__card-button {
  display: inline-block;
  background-color: #000000; /* Primary brand color */
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

.page-arcade__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade__feature-item img {
  width: 100%;
  max-width: 300px; /* Constrain image width */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-arcade__cta-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

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

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(252, 188, 69, 0.5);
}

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

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

.page-arcade__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-arcade__faq-item {
  background-color: #F8F8F8;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000000;
}

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

/* 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.5em;
  }
  .page-arcade__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 60px 20px 40px;
  }
  .page-arcade__hero-container {
    flex-direction: column;
    gap: 30px;
  }
  .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__hero-image {
    margin-top: 30px;
  }
  .page-arcade__hero-image img,
  .page-arcade__game-card img,
  .page-arcade__feature-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Ensure images scale correctly */
  }

  .page-arcade__games-overview-section,
  .page-arcade__why-choose-section,
  .page-arcade__cta-section,
  .page-arcade__faq-section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-arcade__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-arcade__game-categories {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-arcade__game-card {
    padding-bottom: 25px;
  }
  .page-arcade__game-card img {
    height: 200px;
  }
  .page-arcade__card-title {
    font-size: 1.6em;
  }
  .page-arcade__card-text {
    font-size: 0.95em;
  }
  .page-arcade__card-button {
    padding: 10px 25px;
    font-size: 0.95em;
  }
  .page-arcade__features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-arcade__feature-item {
    padding: 25px;
  }
  .page-arcade__feature-title {
    font-size: 1.4em;
  }
  .page-arcade__feature-text {
    font-size: 0.95em;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-arcade__cta-button {
    padding: 15px 40px;
    font-size: 1.2em;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__faq-answer {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-button {
    font-size: 1em;
    padding: 10px 25px;
  }
  .page-arcade__cta-button {
    font-size: 1.1em;
    padding: 12px 30px;
  }
  .page-arcade__hero-image img,
  .page-arcade__game-card img,
  .page-arcade__feature-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}

/* Ensure all images within .page-arcade are at least 200px wide/high */
.page-arcade img:not(.shared-header img, .shared-footer img) {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}

/* Specific overrides for smaller image display areas if needed, ensuring min-width/height is met */
.page-arcade__feature-item img {
    width: 300px; /* This is > 200px */
    height: 200px; /* This is >= 200px */
}

.page-arcade__game-card img {
    width: 100%;
    height: 250px; /* This is > 200px */
}

/* Mobile responsiveness for images to prevent overflow */
@media (max-width: 768px) {
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade {
    overflow-x: hidden;
  }
}