/* style/slot-games.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

.page-slot-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-slot-games__section-intro {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted to consider header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  overflow: hidden;
  color: #ffffff;
  background-color: #0a0a0a; /* Ensure dark background for hero */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
  background-color: #1a8cc2;
  transform: translateY(-3px);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
  transform: translateY(-3px);
}

.page-slot-games__btn-tertiary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #c46406;
  transform: translateY(-3px);
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Grid Layouts */
.page-slot-games__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-slot-games__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Promotion Banner */
.page-slot-games__promotion-banner {
  position: relative;
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__banner-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Game Type Cards */
.page-slot-games__game-type-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-type-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__game-type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__game-type-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* How to Play Section */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-slot-games__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__step-number {
  counter-increment: step-counter;
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-right: 20px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #26A9E0;
  border-radius: 50%;
  background-color: #e0f2f7;
}

.page-slot-games__step-content {
  flex-grow: 1;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  color: #333333;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Strategy Tips */
.page-slot-games__info-block {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  height: 100%;
}

.page-slot-games__info-block-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Mobile Experience */
.page-slot-games__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__text-content {
  flex: 1;
}

.page-slot-games__text-content-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-slot-games__text-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-slot-games__text-content li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #333333;
}

.page-slot-games__text-content li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-slot-games__list-highlight {
  color: #333333;
}

.page-slot-games__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__mobile-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-slot-games__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-slot-games__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Final CTA */
.page-slot-games__cta-final {
  padding-bottom: 100px;
}

.page-slot-games__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1.3em;
  }
  .page-slot-games__section-title {
    font-size: 2.5em;
  }
  .page-slot-games__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-slot-games__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__text-content ul {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-slot-games__hero-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section {
    padding: 60px 0;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__grid-3-cols {
    grid-template-columns: 1fr;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__game-type-card,
  .page-slot-games__info-block,
  .page-slot-games__promotion-banner,
  .page-slot-games__mobile-content,
  .page-slot-games__image-wrapper,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  /* Button responsiveness */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary,
  .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-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-slot-games__step-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .page-slot-games__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-slot-games__text-content ul {
    padding-left: 20px;
  }
  .page-slot-games__text-content li {
    padding-left: 0;
    text-align: left;
  }
  .page-slot-games__text-content li::before {
    left: -20px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-slot-games__faq-title {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-slot-games__card-title,
  .page-slot-games__game-type-title,
  .page-slot-games__info-block-title,
  .page-slot-games__step-title,
  .page-slot-games__text-content-title {
    font-size: 1.5em;
  }
  .page-slot-games__step-number {
    font-size: 2em;
    width: 40px;
    height: 40px;
  }
  .page-slot-games__game-type-image {
    height: 200px;
  }
}