/* style/arcade.css */
.page-arcade {
  color: #333333; /* Dark text for light body background */
  background-color: #f4f4f4; /* Inherited from body, but good to be explicit for context */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-arcade__hero-section {
  background-color: #0056B3; /* Primary brand color for hero background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for title */
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-arcade__hero-image {
  width: 100%;
  max-width: 900px; /* Adjust max-width for image display */
  margin-top: 30px;
}

.page-arcade__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-width: 200px; /* Ensure buttons are large enough */
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #0056B3; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-arcade__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__button--secondary {
  background-color: #0056B3; /* Dark blue button */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade__button--secondary:hover {
  background-color: #004085;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__button--center {
  margin: 0 auto;
  display: block;
  max-width: 300px;
}

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #0056B3; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-arcade__introduction-section,
.page-arcade__responsible-gaming-section,
.page-arcade__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-arcade__games-showcase {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px 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;
  min-width: 200px;
  min-height: 200px;
}

.page-arcade__card-title {
  font-size: 1.8em;
  color: #0056B3;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-arcade__features-section {
  padding: 60px 0;
  background-color: #e8f0f7; /* Light blue background for features */
}

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

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

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

.page-arcade__feature-item img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #0056B3;
  margin-bottom: 15px;
}

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

.page-arcade__how-to-play {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-arcade__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-left: 5px solid #FFD700;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: -20px; /* Adjust position to align with border */
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #0056B3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  border: 2px solid #0056B3;
}

.page-arcade__step-title {
  font-size: 1.6em;
  color: #0056B3;
  margin-bottom: 10px;
  padding-left: 30px; /* Offset title to clear counter */
}

.page-arcade__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  padding-left: 30px;
}

.page-arcade__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0056B3; /* Primary brand color for CTA */
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 40px auto;
  max-width: 1200px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.2em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__game-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__content-wrapper {
    padding: 30px 15px;
  }
  .page-arcade__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card img {
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }
  .page-arcade__game-card,
  .page-arcade__feature-item {
    margin-bottom: 20px;
  }
  .page-arcade__features-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__step-title,
  .page-arcade__step-description {
    padding-left: 15px; /* Adjust for smaller screens */
  }
  .page-arcade__step-item::before {
    left: -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-section {
    padding: 40px 10px;
  }
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
    min-width: unset;
    width: 100%;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__game-card img {
    
    min-width: 200px;
    min-height: 200px;
  }
  .page-arcade__card-title {
    font-size: 1.5em;
  }
  .page-arcade__feature-title {
    font-size: 1.3em;
  }
  .page-arcade__step-title {
    font-size: 1.4em;
  }
  .page-arcade__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    left: -10px;
  }
}