/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Dark background sections */
.page-slot-games__dark-bg {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for contrast */
}

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

/* Light background sections */
.page-slot-games__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333; /* Dark text for contrast */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for large screens */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual appeal */
  background-color: rgba(38, 169, 224, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-slot-games__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #ffffff;
}

.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* General Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 30px;
}

/* Section Titles */
.page-slot-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Introduction Section */
.page-slot-games__introduction-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__why-choose-section,
.page-slot-games__faq-section,
.page-slot-games__final-cta-section {
  padding: 60px 0;
}

.page-slot-games__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  text-align: justify;
}

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

.page-slot-games__game-card,
.page-slot-games__tip-card,
.page-slot-games__promo-card,
.page-slot-games__feature-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover,
.page-slot-games__tip-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 15px 10px;
  color: #26A9E0;
}

.page-slot-games__card-description {
  font-size: 0.95em;
  padding: 0 15px;
  text-align: justify;
}

/* Why Choose Section */
.page-slot-games__feature-item {
  text-align: left;
  padding: 25px;
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
}

.page-slot-games__feature-item .page-slot-games__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  margin-top: 20px;
  border-radius: 5px;
}

.page-slot-games__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 1em;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 30px;
}

.page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: block;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-slot-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.page-slot-games__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-slot-games__hero-content {
    margin-top: -50px;
    padding: 20px;
  }

  .page-slot-games__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    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-slot-games__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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__promo-cards,
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card-image {
    height: auto; /* Allow height to adjust naturally */
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
}