:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-bg-dark: #0A0A0A;
  --phdream-card-bg: #111111;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
  --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-arcade-games {
  font-family: 'Arial', sans-serif;
  color: var(--phdream-text-main);
  background-color: var(--phdream-bg-dark);
  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; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, large bottom padding */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-arcade-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-arcade-games__hero-content {
  position: relative; /* Not absolute, to flow below image */
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
}

.page-arcade-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--phdream-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-arcade-games__tagline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--phdream-text-main);
}

.page-arcade-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for flex-wrap */
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary,
.page-arcade-games__btn-play,
.page-arcade-games__btn-claim,
.page-arcade-games__btn-learn-more {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px; /* Ensure buttons have minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-play,
.page-arcade-games__btn-claim {
  background: var(--phdream-button-gradient);
  color: #ffffff; /* White text for primary buttons */
  border: none;
}

.page-arcade-games__btn-primary:hover,
.page-arcade-games__btn-play:hover,
.page-arcade-games__btn-claim:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-arcade-games__btn-secondary,
.page-arcade-games__btn-learn-more {
  background-color: var(--phdream-card-bg); /* Dark background for secondary */
  color: var(--phdream-primary); /* Primary color text */
  border: 2px solid var(--phdream-primary);
}

.page-arcade-games__btn-secondary:hover,
.page-arcade-games__btn-learn-more:hover {
  background-color: var(--phdream-primary);
  color: var(--phdream-bg-dark);
  border-color: var(--phdream-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

/* General Section Styling */
.page-arcade-games__introduction-section,
.page-arcade-games__top-games-section,
.page-arcade-games__why-choose-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__providers-section,
.page-arcade-games__bonuses-section,
.page-arcade-games__responsible-gaming-section,
.page-arcade-games__faq-section,
.page-arcade-games__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-arcade-games__section-title {
  font-size: 2.5rem;
  color: var(--phdream-primary);
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-arcade-games__text-block {
  font-size: 1.1rem;
  color: var(--phdream-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-arcade-games__game-card {
  background-color: var(--phdream-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Space for button */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(255, 211, 107, 0.5);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--phdream-border);
}

.page-arcade-games__game-title {
  font-size: 1.5rem;
  color: var(--phdream-primary);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-arcade-games__game-description {
  font-size: 1rem;
  color: var(--phdream-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-arcade-games__btn-play {
  margin: 0 15px;
  width: calc(100% - 30px);
}

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

.page-arcade-games__feature-item {
  background-color: var(--phdream-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-arcade-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

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

/* 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: var(--phdream-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade-games__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--phdream-border);
}

.page-arcade-games__step-title {
  font-size: 1.4rem;
  color: var(--phdream-primary);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-arcade-games__step-description {
  font-size: 1rem;
  color: var(--phdream-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

/* Providers Grid */
.page-arcade-games__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for smaller logos */
  gap: 20px;
  margin-top: 40px;
}

.page-arcade-games__provider-item {
  background-color: var(--phdream-card-bg);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

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

.page-arcade-games__provider-logo {
  width: 100px; /* Adjust size for display, original is 167x127 */
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
}

.page-arcade-games__provider-name {
  font-size: 0.9rem;
  color: var(--phdream-text-main);
  font-weight: 500;
}

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

.page-arcade-games__bonus-card {
  background-color: var(--phdream-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade-games__bonus-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--phdream-border);
}

.page-arcade-games__bonus-title {
  font-size: 1.5rem;
  color: var(--phdream-primary);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-arcade-games__bonus-description {
  font-size: 1rem;
  color: var(--phdream-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-arcade-games__btn-claim {
  margin: 0 15px;
  width: calc(100% - 30px);
}

/* Responsible Gaming Section */
.page-arcade-games__responsible-gaming-section .page-arcade-games__text-block {
  text-align: center;
}
.page-arcade-games__responsible-gaming-section .page-arcade-games__btn-learn-more {
    margin-top: 30px;
}


/* FAQ Section */
.page-arcade-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-arcade-games__faq-item {
  background-color: var(--phdream-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--phdream-border);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--phdream-primary);
  font-weight: 600;
}

.page-arcade-games__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1);
}

.page-arcade-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--phdream-primary);
}

.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;
}

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

.page-arcade-games__faq-answer p {
  font-size: 1rem;
  color: var(--phdream-text-main);
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-arcade-games__cta-bottom-section .page-arcade-games__section-title {
  font-size: 2.2rem;
}
.page-arcade-games__cta-bottom-section .page-arcade-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 30px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade-games__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-arcade-games__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding: 10px 0 40px;
  }
  .page-arcade-games__hero-content {
    padding: 30px 15px;
  }
  .page-arcade-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-arcade-games__tagline {
    font-size: 1rem;
  }
  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-play,
  .page-arcade-games__btn-claim,
  .page-arcade-games__btn-learn-more {
    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__introduction-section,
  .page-arcade-games__top-games-section,
  .page-arcade-games__why-choose-section,
  .page-arcade-games__how-to-play-section,
  .page-arcade-games__providers-section,
  .page-arcade-games__bonuses-section,
  .page-arcade-games__responsible-gaming-section,
  .page-arcade-games__faq-section,
  .page-arcade-games__cta-bottom-section {
    padding: 40px 0;
  }
  .page-arcade-games__container {
    padding: 0 15px;
  }

  .page-arcade-games__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-arcade-games__text-block {
    font-size: 0.95rem;
  }

  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-arcade-games__section,
  .page-arcade-games__card,
  .page-arcade-games__container,
  .page-arcade-games__game-grid,
  .page-arcade-games__features-grid,
  .page-arcade-games__steps-grid,
  .page-arcade-games__providers-grid,
  .page-arcade-games__bonus-cards {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-arcade-games__hero-image-wrapper {
    max-height: 300px; /* Adjust hero image height for mobile */
  }

  .page-arcade-games__game-image,
  .page-arcade-games__feature-image,
  .page-arcade-games__step-image,
  .page-arcade-games__bonus-image {
    height: 150px; /* Smaller fixed height for mobile cards */
  }

  .page-arcade-games__provider-logo {
    width: 80px; /* Smaller provider logos on mobile */
  }

  .page-arcade-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-arcade-games__faq-answer {
    padding: 0 20px;
  }
  .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    padding: 10px 20px 20px;
  }
}

/* No CSS filter on images */
.page-arcade-games img {
  filter: none;
}