/* style/arcade-games.css */

/* Base styles for the page content, ensuring text color contrasts with shared body background (default light) */
.page-arcade-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Slightly off-white for sections, if not overridden by dark-bg */
}

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

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image then content */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-color: #1E90FF; /* Auxiliary color for the hero section background */
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1; /* Ensure image is below text overlay attempts (though we prohibit it) */
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* No CSS filters allowed */
}

.page-arcade-games__hero-content {
  position: relative;
  z-index: 2; /* Ensure content is above image wrapper if needed, but not overlaid */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image bottom slightly */
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFD700; /* Gold accent for title */
}

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

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

/* Section Titles */
.page-arcade-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  color: #1E90FF; /* Blue for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-arcade-games__dark-bg .page-arcade-games__section-title {
  color: #FFD700; /* Gold for titles on dark background */
}

/* Text Blocks */
.page-arcade-games__text-block {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.page-arcade-games__dark-bg .page-arcade-games__text-block {
  color: #f0f0f0; /* Light text on dark background */
}

/* Buttons */
.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
}

.page-arcade-games__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1E90FF; /* Blue text for contrast */
  border: 2px solid #FFD700;
}

.page-arcade-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-arcade-games__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-secondary {
  color: #FFD700;
  border-color: #FFD700;
}

.page-arcade-games__dark-bg .page-arcade-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
}

.page-arcade-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 30px;
}

.page-arcade-games__cta-buttons--center {
  justify-content: center;
}

/* Section Backgrounds */
.page-arcade-games__light-bg {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 0;
}

.page-arcade-games__dark-bg {
  background-color: #1E90FF; /* Auxiliary color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-arcade-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-arcade-games__light-bg .page-arcade-games__feature-card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-arcade-games__feature-card:hover {
  transform: translateY(-5px);
}

.page-arcade-games__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: none; /* No CSS filters allowed */
}

.page-arcade-games__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for feature titles */
}

.page-arcade-games__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-arcade-games__light-bg .page-arcade-games__feature-description {
  color: #555555;
}

/* Category Grid */
.page-arcade-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-arcade-games__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-arcade-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade-games__category-icon {
  width: 60px; /* Allowed small size for icons */
  height: 60px; /* Allowed small size for icons */
  margin-bottom: 15px;
  object-fit: contain;
  filter: none; /* No CSS filters allowed */
}

.page-arcade-games__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1E90FF; /* Blue for category titles */
}

.page-arcade-games__category-description {
  font-size: 0.95rem;
  color: #555555;
}

/* Steps Grid */
.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for step titles */
}

.page-arcade-games__step-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #f0f0f0;
  flex-grow: 1; /* Make description take available space */
}

/* Feature List (UL/LI) */
.page-arcade-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-arcade-games__feature-list .page-arcade-games__list-item {
  background-color: #ffffff;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-arcade-games__feature-list .page-arcade-games__list-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1E90FF;
}

.page-arcade-games__feature-list .page-arcade-games__list-item-description {
  font-size: 1rem;
  color: #555555;
}

/* Advantage List */
.page-arcade-games__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-arcade-games__advantage-list .page-arcade-games__list-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__advantage-icon {
  font-size: 1.8rem;
  color: #FFD700;
  margin-right: 15px;
  line-height: 1;
}

.page-arcade-games__advantage-text {
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-arcade-games__faq-list {
  margin-top: 40px;
}

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

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-arcade-games__faq-question:hover {
  background-color: #e9e9e9;
}

.page-arcade-games__faq-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #1E90FF;
}

.page-arcade-games__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1rem;
  color: #555555;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

/* Join Us Section */
.page-arcade-games__join-us-section .page-arcade-games__container--center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-arcade-games__container {
    padding: 0 15px;
  }

  .page-arcade-games__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-arcade-games__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-arcade-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-arcade-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-arcade-games__category-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-arcade-games__hero-section {
    padding-bottom: 40px;
  }

  .page-arcade-games__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-arcade-games__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-arcade-games__hero-description {
    font-size: 1rem;
  }

  .page-arcade-games__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .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: 12px 20px;
    font-size: 1rem;
  }

  .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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-arcade-games__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-arcade-games__text-block {
    font-size: 0.95rem;
  }

  .page-arcade-games__feature-grid,
  .page-arcade-games__category-grid,
  .page-arcade-games__steps-grid,
  .page-arcade-games__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade-games__feature-card,
  .page-arcade-games__category-card,
  .page-arcade-games__step-card,
  .page-arcade-games__advantage-list .page-arcade-games__list-item {
    padding: 20px;
  }

  .page-arcade-games__feature-icon {
    width: 70px;
    height: 70px;
  }

  .page-arcade-games__category-icon {
    width: 40px;
    height: 40px;
  }

  .page-arcade-games__feature-title,
  .page-arcade-games__category-title,
  .page-arcade-games__step-title {
    font-size: 1.3rem;
  }

  .page-arcade-games__feature-list .page-arcade-games__list-item {
    padding: 20px;
  }

  .page-arcade-games__feature-list .page-arcade-games__list-item-title {
    font-size: 1.2rem;
  }

  .page-arcade-games__faq-question {
    padding: 15px 20px;
  }

  .page-arcade-games__faq-title {
    font-size: 1.1rem;
  }

  .page-arcade-games__faq-answer {
    padding: 0 20px;
  }

  .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsive rules */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .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;
  }
  
  /* Video section (if present, for arcade games page it's an image hero) */
  .page-arcade-games__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__hero-content {
    margin-top: -40px;
  }

  .page-arcade-games__hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .page-arcade-games__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .page-arcade-games__feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .page-arcade-games__category-icon {
    width: 30px; /* Smallest allowed for category icons */
    height: 30px; /* Smallest allowed for category icons */
  }
}