/* style/arcade-games.css */
/* General styles for the Arcade Games page */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Body background is light */
}

/* Section styling */
.page-arcade-games__section {
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 10px; /* Small top padding for sections, body handles main offset */
}

.page-arcade-games__dark-bg {
  background-color: #000000;
  color: #FFFFFF; /* Light text for dark backgrounds */
}

.page-arcade-games__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light backgrounds */
}

.page-arcade-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.page-arcade-games__main-title {
  font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive H1 font size */
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: -1px;
}

.page-arcade-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding to prevent content from touching header */
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  position: relative;
  order: 1; /* Image first in DOM order */
}

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

.page-arcade-games__hero-content {
  position: relative; /* Relative positioning for content */
  z-index: 2; /* Ensure content is above image if needed, but not overlaying */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  order: 2; /* Content second in DOM order */
}

/* CTA Buttons */
.page-arcade-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-arcade-games__btn-primary {
  background: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

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

.page-arcade-games__btn-secondary {
  background: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade-games__btn-secondary:hover {
  background: #e0a53b;
  border-color: #e0a53b;
}

.page-arcade-games__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Feature List */
.page-arcade-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-arcade-games__list-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
  font-size: 1.05em;
}

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

.page-arcade-games__list-item strong {
  color: #000000;
}

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

.page-arcade-games__category-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

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

.page-arcade-games__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filters are applied */
}

.page-arcade-games__category-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-arcade-games__category-description {
  font-size: 0.95em;
  line-height: 1.5;
}

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

.page-arcade-games__game-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filters are applied */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-arcade-games__game-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 15px 10px;
}

.page-arcade-games__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 15px 20px;
  flex-grow: 1; /* Allow description to take up available space */
}

.page-arcade-games__game-trial-frame {
  width: 100%;
  height: 250px; /* Default height for trial frame */
  border: none;
  background-color: #1a1a1a; /* Dark background for iframe placeholder */
}

/* Strategy List */
.page-arcade-games__strategy-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__strategy-list .page-arcade-games__list-item {
  background: none;
  padding: 10px 0;
  box-shadow: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-arcade-games__strategy-list .page-arcade-games__list-item:last-child {
  border-bottom: none;
}

/* Responsible Gaming Link */
.page-arcade-games__link {
  color: #FCBC45;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-arcade-games__link:hover {
  color: #e0a53b;
}

/* FAQ Section */
.page-arcade-games__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: #FFFFFF;
  color: #000000;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-arcade-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #000000;
}

.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;
  color: #333333;
  text-align: left;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .page-arcade-games__section {
    padding: 30px 15px;
  }

  .page-arcade-games__section-title {
    font-size: 2em;
  }

  .page-arcade-games__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-arcade-games__description {
    font-size: 1em;
  }

  .page-arcade-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__button-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

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

  .page-arcade-games__feature-list {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__list-item {
    padding: 15px;
  }

  .page-arcade-games__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .page-arcade-games__category-card {
    min-height: 150px;
    padding: 15px;
  }

  .page-arcade-games__category-title {
    font-size: 1.1em;
  }

  .page-arcade-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade-games__game-image {
    height: 180px;
  }

  .page-arcade-games__game-title {
    font-size: 1.3em;
  }

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

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

  /* Mobile image responsiveness */
  .page-arcade-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container,
  .page-arcade-games__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile video responsiveness */
  .page-arcade-games__game-trial-frame {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-arcade-games__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__section-title {
    font-size: 1.8em;
  }
}