/* slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-slot-games__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #017439;
}

.page-slot-games__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Classes */
.page-slot-games__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__main-title {
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #e0ffe0, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-slot-games__hero-content {
  text-align: center;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-slot-games__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* About Slots Section */
.page-slot-games__about-slots-section .page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-slot-games__about-slots-section .page-slot-games__text-block {
  flex: 1;
  text-align: left;
}

.page-slot-games__about-slots-section .page-slot-games__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: left;
}

.page-slot-games__about-slots-section .page-slot-games__text-block .page-slot-games__btn-primary {
  margin-top: 20px;
}

.page-slot-games__image-right {
  flex: 0 0 500px;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-text {
  font-size: 16px;
  color: #555555;
  padding: 0 15px;
}

.page-slot-games__button-group {
  margin-top: 40px;
  text-align: center;
}

/* How to Play Section */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.page-slot-games__steps-list li {
  background-color: #ffffff;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.page-slot-games__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #017439;
  border-radius: 50%;
  background-color: #e0ffe0;
}

.page-slot-games__steps-list li h3 {
  font-size: 20px;
  color: #017439;
  margin: 0 0 10px 0;
}

.page-slot-games__steps-list li p {
  font-size: 16px;
  color: #555555;
  margin: 0;
}

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

.page-slot-games__promo-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
}

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 220px;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Final CTA Section */
.page-slot-games__cta-final {
  text-align: center;
}

.page-slot-games__cta-final .page-slot-games__description {
  color: #ffffff;
}

/* --- General Image and Button Responsive Styles --- */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries --- */

/* Homepage Trial Shell CSS (Mandatory Inclusion for slot-games.css as per instructions) */
@media (max-width: 1023px) {
  .page-slot-games__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot {
    display: none !important;
  }
  .page-slot-games__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-topbar,
  .page-slot-games__game-trial-bottombar {
    display: none !important;
  }
  .page-slot-games__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-slot-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-slot-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-slot-games__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot,
  .page-slot-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-slot-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-slot-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 5px;
    padding-bottom: 20px;
  }
  .page-slot-games__main-title {
    font-size: 28px;
  }
  .page-slot-games__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__about-slots-section .page-slot-games__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-slot-games__image-right {
    order: -1; /* Image above text on mobile */
    max-width: 100%;
    flex: none;
  }
  .page-slot-games__about-slots-section .page-slot-games__text-block {
    text-align: center;
  }
  .page-slot-games__about-slots-section .page-slot-games__text-block p {
    text-align: center;
  }
  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-slot-games__game-cards-grid,
  .page-slot-games__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__game-card,
  .page-slot-games__promo-card {
    padding-bottom: 20px;
  }
  .page-slot-games__card-image {
    height: 180px;
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__card-text {
    font-size: 15px;
  }
  .page-slot-games__steps-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }
  .page-slot-games__steps-list li::before {
    margin-bottom: 10px;
    font-size: 28px;
    width: 36px;
    height: 36px;
  }
  .page-slot-games__steps-list li h3 {
    font-size: 18px;
  }
  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* General image and container overflow fix for mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__about-slots-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

/* Game Trial specific styles (for potential future use or shared structure) */
.page-slot-games__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.page-slot-games__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important; /* Force hide */
  pointer-events: none !important;
}
.page-slot-games__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}
.page-slot-games__game-trial-start:hover {
  background-color: #005f2e;
}
.page-slot-games__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-slot-games__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-slot-games__reward-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.page-slot-games__reward-modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-slot-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-slot-games__reward-modal-close:hover {
  color: #000;
}
.page-slot-games__reward-modal h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 20px;
}
.page-slot-games__reward-modal p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}
.page-slot-games__reward-modal .page-slot-games__btn-primary {
  margin: 0;
}