.page-arcade-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F3F3F3; /* Page background color */
}

.page-arcade-games__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header-offset */
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #025BE8;
  color: #ffffff;
  padding-bottom: 40px;
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-arcade-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-arcade-games__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-arcade-games__btn-primary {
  background-color: #1266EC;
  color: #ffffff;
  border: 2px solid #1266EC;
}

.page-arcade-games__btn-primary:hover {
  background-color: #0d4bb3;
  transform: translateY(-2px);
}

.page-arcade-games__btn-secondary {
  background-color: #E5EEFD;
  color: #025BE8;
  border: 2px solid #025BE8;
}

.page-arcade-games__btn-secondary:hover {
  background-color: #c9dffc;
  transform: translateY(-2px);
}

.page-arcade-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #025BE8;
}

.page-arcade-games__section-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-arcade-games__featured-games-section,
.page-arcade-games__why-choose-section,
.page-arcade-games__info-section,
.page-arcade-games__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-arcade-games__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px 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-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__game-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  height: auto;
  border-bottom: 1px solid #eee;
  filter: none;
}

.page-arcade-games__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 10px 10px 10px;
  color: #333333;
}

.page-arcade-games__game-description {
  font-size: 0.95rem;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-arcade-games__card-btn {
  display: inline-block;
  background-color: #025BE8;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-arcade-games__card-btn:hover {
  background-color: #004ac2;
}

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

.page-arcade-games__why-choose-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-arcade-games__why-choose-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: none;
}

.page-arcade-games__why-choose-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #025BE8;
}

.page-arcade-games__why-choose-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
}

.page-arcade-games__info-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 40px;
}

.page-arcade-games__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: #404040;
  margin-bottom: 30px;
}

.page-arcade-games__more-info-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-arcade-games__faq-section {
  margin-top: 40px;
}

.page-arcade-games__faq-list {
  margin-top: 30px;
}

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

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  list-style: none;
}

.page-arcade-games__faq-item[open] .page-arcade-games__faq-question {
  background-color: #e5eeff;
  color: #025BE8;
}

.page-arcade-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-arcade-games__faq-qtext {
  flex-grow: 1;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-item[open] .page-arcade-games__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #404040;
  line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-arcade-games__hero-content {
    max-width: 90%;
  }
  .page-arcade-games__game-grid,
  .page-arcade-games__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-arcade-games__hero-image-wrapper {
    max-height: 300px;
  }
  .page-arcade-games__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    width: 100%;
  }
  .page-arcade-games__main-title {
    font-size: 2rem;
    margin-top: 20px;
  }
  .page-arcade-games__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-arcade-games__featured-games-section,
  .page-arcade-games__why-choose-section,
  .page-arcade-games__info-section,
  .page-arcade-games__faq-section {
    padding: 40px 15px;
  }
  .page-arcade-games__section-title {
    font-size: 1.8rem;
  }
  .page-arcade-games__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  .page-arcade-games__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  .page-arcade-games__game-card {
    padding-bottom: 15px;
  }
  .page-arcade-games__game-title {
    font-size: 1.2rem;
    margin: 15px 10px 8px 10px;
  }
  .page-arcade-games__game-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  .page-arcade-games__card-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .page-arcade-games__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-arcade-games__why-choose-icon {
    max-width: 80px;
  }
  .page-arcade-games__why-choose-heading {
    font-size: 1.1rem;
  }
  .page-arcade-games__text-block {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .page-arcade-games__more-info-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-arcade-games__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-arcade-games__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-arcade-games__cta-buttons,
  .page-arcade-games__button-group,
  .page-arcade-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-arcade-games__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}