:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a;
  --header-offset: 0; /* Handled by shared.css body padding-top */
}

/* Base styles for the page content */
.page-arcade-games {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image to make text pop */
}

.page-arcade-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-arcade-games__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-arcade-games__cta-buttons--center {
  margin-top: 30px;
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
}

.page-arcade-games__btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border: 2px solid var(--primary-color);
}

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

.page-arcade-games__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-arcade-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

/* General Section Styles */
.page-arcade-games__section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.page-arcade-games__section:nth-of-type(even) {
  background-color: #2a2a2a; /* Slightly different dark background for contrast */
}

.page-arcade-games__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade-games__section-intro,
.page-arcade-games__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-arcade-games__text-block {
  margin-bottom: 20px;
}

/* Features Grid */
.page-arcade-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-arcade-games__feature-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-arcade-games__feature-text {
  font-size: 1rem;
  color: var(--text-light);
}

.page-arcade-games__showcase-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Categories */
.page-arcade-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-arcade-games__category-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__category-icon {
  width: 48px; /* Increased from 30x30 to 48x48 for better visibility but still small */
  height: 48px;
  margin-bottom: 15px;
  filter: invert(80%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Gold effect for icons */
}

.page-arcade-games__category-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-arcade-games__category-text {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Bonuses */
.page-arcade-games__bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-arcade-games__bonus-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__bonus-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-arcade-games__bonus-text {
  font-size: 1rem;
  color: var(--text-light);
}

.page-arcade-games__bonus-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* How to Start */
.page-arcade-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade-games__step-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-dark);
}

.page-arcade-games__step-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-arcade-games__step-text {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gaming */
.page-arcade-games__responsible-gaming .page-arcade-games__section-intro,
.page-arcade-games__responsible-gaming .page-arcade-games__text-block {
  text-align: left;
}

/* FAQ Section */
.page-arcade-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #3a3a3a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-arcade-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  padding: 0 25px;
}

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

.page-arcade-games__faq-answer p {
  margin: 0;
  font-size: 1rem;
}

/* Media Partners */
.page-arcade-games__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for partners */
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.page-arcade-games__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(100%); /* Subtle effect */
  transition: filter 0.3s ease;
}

.page-arcade-games__partner-logo:hover {
  filter: brightness(1) grayscale(0%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-arcade-games__hero-content {
    width: 95%;
  }

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

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

  .page-arcade-games__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-bottom: 40px;
  }

  .page-arcade-games__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    width: 100%;
  }

  .page-arcade-games__hero-image-wrapper {
    max-height: 400px;
  }

  .page-arcade-games__hero-image {
    filter: brightness(0.4); /* Darken more for text on top */
  }

  .page-arcade-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-top: 20px;
  }

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

  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-arcade-games__section {
    padding: 40px 0;
  }

  .page-arcade-games__section-title {
    font-size: 1.8rem;
  }

  .page-arcade-games__section-intro,
  .page-arcade-games__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: left;
  }

  .page-arcade-games__container {
    padding: 0 15px;
  }

  .page-arcade-games__features-grid,
  .page-arcade-games__category-grid,
  .page-arcade-games__bonus-grid,
  .page-arcade-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-arcade-games__showcase-image,
  .page-arcade-games__bonus-image,
  .page-arcade-games__partner-logo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-arcade-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

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

  .page-arcade-games__partner-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }

  /* Ensure all content areas are properly contained */
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__box,
  .page-arcade-games__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-arcade-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  .page-arcade-games__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }
}