.page-arcade-games { 
  font-family: Arial, sans-serif;
  color: #ffffff;
  background-color: #1a1a1a;
}

.page-arcade-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  background-color: #0d0d0d;
  position: relative;
  overflow: hidden;
}

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

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

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-arcade-games__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-arcade-games__hero-description {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-arcade-games__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-arcade-games__button--primary {
  background-color: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

.page-arcade-games__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-arcade-games__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade-games__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-arcade-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #FFD700;
  text-align: center;
  margin: 60px 0 30px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-arcade-games__section-description {
  font-size: 1.1rem;
  color: #e0e0e0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-arcade-games__games-showcase {
  padding: 40px 20px;
  background-color: #121212;
}

.page-arcade-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Min 180px for better fit */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-arcade-games__game-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.page-arcade-games__game-card:hover .page-arcade-games__game-image {
  transform: scale(1.05);
}

.page-arcade-games__game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #ffffff;
  padding: 15px 10px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-arcade-games__game-card:hover .page-arcade-games__game-overlay {
  opacity: 1;
}

.page-arcade-games__view-all-button-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-arcade-games__seo-content {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #1a1a1a;
}

.page-arcade-games__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade-games__text-block {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-arcade-games__text-block strong {
  color: #FFD700;
}

.page-arcade-games__popular-games {
  padding: 60px 20px;
  background-color: #0d0d0d;
  text-align: center;
}

.page-arcade-games__popular-carousel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px auto;
  max-width: 1000px;
}

.page-arcade-games__popular-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-arcade-games__popular-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade-games__popular-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-arcade-games__popular-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-arcade-games__popular-avatar.is-active {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  transform: scale(1.08);
}

.page-arcade-games__popular-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.page-arcade-games__popular-desc {
  font-size: 1.05rem;
  color: #cccccc;
  max-width: 700px;
  margin: 30px auto 40px;
  line-height: 1.6;
  min-height: 60px; /* To prevent layout shift when description changes */
}

.page-arcade-games__call-to-action {
  margin-top: 40px;
}

.page-arcade-games__how-to-play {
  padding: 60px 20px;
  background-color: #121212;
}

.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.page-arcade-games__step-card {
  background-color: #1f1f1f;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.page-arcade-games__step-icon {
  font-size: 2.5rem;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 20px;
  background-color: #8B0000;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  border: 3px solid #FFD700;
}

.page-arcade-games__step-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade-games__step-description {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-arcade-games__button--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.page-arcade-games__history-of-arcade {
  padding: 60px 20px;
  background-color: #1a1a1a;
  max-width: 1000px;
  margin: 0 auto;
}

.page-arcade-games__game-themes {
  padding: 60px 20px;
  background-color: #0d0d0d;
}

.page-arcade-games__theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
  list-style: none;
  padding: 0;
}

.page-arcade-games__theme-item {
  background-color: #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__theme-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.page-arcade-games__theme-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-arcade-games__theme-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-arcade-games__theme-description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 15px;
}

.page-arcade-games__unique-features {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.page-arcade-games__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto 0;
  list-style: none;
  padding: 0;
}

.page-arcade-games__feature-item {
  background-color: #1f1f1f;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border-left: 5px solid #FFD700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.page-arcade-games__feature-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade-games__feature-description {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

.page-arcade-games__faq-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
}

.page-arcade-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-arcade-games__faq-item {
  background-color: #1f1f1f;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: bold;
  cursor: pointer;
  background-color: #2a2a2a;
  border-bottom: 1px solid #333;
}

.page-arcade-games__faq-item[open] .page-arcade-games__faq-question {
  border-bottom: 1px solid #FFD700;
}

.page-arcade-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  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: #cccccc;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-arcade-games__games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .page-arcade-games__popular-avatar {
    width: 120px;
    height: 120px;
  }
  .page-arcade-games__theme-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-content {
    padding: 30px 15px;
  }
  .page-arcade-games__main-title {
    font-size: 2.5rem;
  }
  .page-arcade-games__hero-description {
    font-size: 1rem;
  }
  .page-arcade-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade-games__button {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-arcade-games__section-title {
    font-size: 2rem;
    margin: 40px 0 20px;
  }
  .page-arcade-games__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-arcade-games__games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-arcade-games__game-overlay {
    font-size: 0.9rem;
    padding: 10px 5px;
  }
  .page-arcade-games__sub-title {
    font-size: 1.6rem;
    margin-top: 30px;
  }
  .page-arcade-games__text-block {
    font-size: 0.95rem;
  }
  .page-arcade-games__popular-avatar {
    width: 100px;
    height: 100px;
  }
  .page-arcade-games__popular-name {
    font-size: 1rem;
  }
  .page-arcade-games__popular-desc {
    font-size: 0.95rem;
    margin-top: 20px;
  }
  .page-arcade-games__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade-games__step-title {
    font-size: 1.3rem;
  }
  .page-arcade-games__theme-list {
    grid-template-columns: 1fr;
  }
  .page-arcade-games__theme-image {
    height: 200px;
  }
  .page-arcade-games__features-list {
    grid-template-columns: 1fr;
  }
  .page-arcade-games__feature-title {
    font-size: 1.3rem;
  }
  .page-arcade-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-arcade-games__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }
  .page-arcade-games img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__main-title {
    font-size: 2rem;
  }
  .page-arcade-games__hero-description {
    font-size: 0.9rem;
  }
  .page-arcade-games__button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .page-arcade-games__section-title {
    font-size: 1.8rem;
  }
  .page-arcade-games__games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .page-arcade-games__popular-avatar {
    width: 80px;
    height: 80px;
  }
  .page-arcade-games__popular-name {
    font-size: 0.9rem;
  }
  .page-arcade-games__step-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  .page-arcade-games__step-title {
    font-size: 1.2rem;
  }
  .page-arcade-games__theme-image {
    height: 160px;
  }
  .page-arcade-games__faq-question {
    font-size: 0.9rem;
  }
}