/* style/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 background */
  background-color: var(--background-color, #ffffff);
}

/* Sections */
.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-slot-games__medium-bg {
  background-color: #f5f5f5;
  color: #333333;
}

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

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height to prevent image being too tall */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 30px 20px;
  background-color: rgba(38, 169, 224, 0.85); /* Semi-transparent brand color */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  color: #ffffff;
}

.page-slot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  /* clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-slot-games__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-slot-games__cta-buttons--center {
  margin-top: 40px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 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: #d16e00;
  border-color: #d16e00;
}

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

.page-slot-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General Typography */
.page-slot-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 30px;
  font-weight: bold;
  color: #26A9E0;
}

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

.page-slot-games__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: #f0f0f0;
}

.page-slot-games__link-inline {
  color: #EA7C07; /* Use login color for inline links */
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__dark-bg .page-slot-games__link-inline {
  color: #ffffff;
}

/* Feature List */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
}

.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #ffffff;
}

.page-slot-games__feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-slot-games__feature-item p {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Image Grid */
.page-slot-games__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-slot-games__grid-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Step List */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  padding-left: 70px;
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-slot-games__step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #26A9E0;
  font-weight: bold;
}

.page-slot-games__step-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* Image with text layout */
.page-slot-games__image-right,
.page-slot-games__image-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-slot-games__image-right .page-slot-games__image-inline {
  order: 1; /* Image first on mobile */
}

.page-slot-games__image-left .page-slot-games__image-inline {
  order: 1; /* Image first on mobile */
}

@media (min-width: 769px) {
  .page-slot-games__image-right {
    flex-direction: row;
  }
  .page-slot-games__image-right .page-slot-games__image-inline {
    order: 2; /* Image right on desktop */
    flex: 1;
    max-width: 50%;
  }
  .page-slot-games__image-right .page-slot-games__text-block {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }

  .page-slot-games__image-left {
    flex-direction: row;
  }
  .page-slot-games__image-left .page-slot-games__image-inline {
    order: 1; /* Image left on desktop */
    flex: 1;
    max-width: 50%;
  }
  .page-slot-games__image-left .page-slot-games__text-block {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }
}

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

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

.page-slot-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: #eaf7ff;
  border-bottom: 1px solid #cce8ff;
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question .page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 15px;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

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

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-slot-games__description {
    font-size: 1rem;
  }

  .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: 0.95rem;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-slot-games__text-block {
    font-size: 0.95rem;
  }

  .page-slot-games__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__step-item {
    padding-left: 60px;
  }

  .page-slot-games__step-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  .page-slot-games__step-title {
    font-size: 1.2rem;
  }

  .page-slot-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image and video responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__image-grid,
  .page-slot-games__image-right,
  .page-slot-games__image-left,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .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;
    overflow: hidden !important; /* Prevent overflow */
  }
  
  .page-slot-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-slot-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-slot-games__image-right, .page-slot-games__image-left {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__image-right .page-slot-games__image-inline,
  .page-slot-games__image-left .page-slot-games__image-inline {
    max-width: 100%;
    width: 100%;
  }
}

/* Ensure no filter is used on images */
.page-slot-games img { 
  filter: none; 
}

/* Body background color from shared.css, page text color adjusts */
.page-slot-games {
  color: #333333; 
}
.page-slot-games__card {
  background: #ffffff; 
  color: #333333;
  border: 1px solid #e0e0e0; 
}
.page-slot-games__dark-section {
  background: #26A9E0;
  color: #ffffff; 
}
.page-slot-games__btn-primary {
  background: #26A9E0;
  color: #ffffff; 
  border: 2px solid transparent;
}
.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #26A9E0; 
  border: 2px solid #26A9E0;
}