/* style/slot-games.css */

:root {
  --ggbet-orange-primary: #FF8C1A;
  --ggbet-orange-secondary: #FFA53A;
  --ggbet-card-bg: #17191F;
  --ggbet-bg: #0D0E12;
  --ggbet-text-main: #FFF3E6;
  --ggbet-border: #A84F0C;
  --ggbet-glow: #FFB04D;
  --ggbet-deep-orange: #D96800;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--ggbet-text-main); /* Default text color for dark body bg */
  background-color: var(--ggbet-bg);
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-slot-games__dark-section {
  background-color: var(--ggbet-bg);
  color: var(--ggbet-text-main);
}

.page-slot-games__light-bg {
  background-color: #17191F; /* Card BG as light background for content */
  color: var(--ggbet-text-main);
}

.page-slot-games__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--ggbet-orange-secondary);
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-slot-games__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--ggbet-orange-primary);
}

.page-slot-games__content-area p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ggbet-text-main);
}

.page-slot-games__content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--ggbet-text-main);
  text-align: center;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

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

.page-slot-games__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games__hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ggbet-orange-secondary);
  text-shadow: 0 0 15px rgba(255, 165, 58, 0.7);
}

.page-slot-games__hero-description {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 30px;
  color: var(--ggbet-text-main);
}

.page-slot-games__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--ggbet-orange-secondary) 0%, var(--ggbet-deep-orange) 100%);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--ggbet-deep-orange) 0%, var(--ggbet-orange-secondary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: var(--ggbet-card-bg);
  color: var(--ggbet-orange-primary);
  border: 2px solid var(--ggbet-orange-primary);
}

.page-slot-games__btn-secondary:hover {
  background: var(--ggbet-orange-primary);
  color: var(--ggbet-card-bg);
  border-color: var(--ggbet-orange-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__product-card {
  background-color: var(--ggbet-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--ggbet-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-slot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ggbet-orange-secondary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-description {
  font-size: 15px;
  color: var(--ggbet-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Article Figure */
.page-slot-games__article-figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--ggbet-border);
  overflow: hidden;
  background: var(--ggbet-card-bg);
}
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: rgba(var(--ggbet-orange-primary), 0.1);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--ggbet-text-main);
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--ggbet-orange-primary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  line-height: 1;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--ggbet-orange-primary), 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--ggbet-text-main);
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
  margin-bottom: 0;
}

/* Universal Image Sizing for Content Area */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__sub-title {
    font-size: 24px;
  }
  .page-slot-games__hero-title {
    font-size: clamp(32px, 5vw, 48px);
  }
  .page-slot-games__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-slot-games__products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-slot-games__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-slot-games__content-area p {
    font-size: 16px;
  }

  /* HERO Section */
  .page-slot-games__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 30px;
  }
  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
  }
  .page-slot-games__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__hero-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-slot-games__hero-description {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 20px;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Buttons */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    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: 16px;
  }
  .page-slot-games__hero-buttons .page-slot-games__cta-button {
    margin: 0 auto;
  }

  /* Product Grid */
  .page-slot-games__products-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 20px;
    overflow-x: hidden !important;
  }
  .page-slot-games__product-image {
    height: 150px;
  }
  .page-slot-games__card-title {
    font-size: 18px;
  }
  .page-slot-games__card-description {
    font-size: 14px;
  }

  /* Article Figure & general images */
  .page-slot-games__article-figure,
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__content-area,
  .page-slot-games__card,
  .page-slot-games__section,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 16px;
  }
  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }
}