/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games {
  color: var(--text-light); /* Dark body background #121212, so use light text */
  background-color: var(--bg-dark);
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

/* 🚨 Desktop padding-top for fixed header */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on actual header height */
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%), url('[GALLERY:bg:jun88v8,nổhũ,banner_video]') no-repeat center center/cover;
}

.page-slot-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-color);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
}

.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  opacity: 1;
}

.page-slot-games__video-click-hint {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid var(--primary-color);
}

.page-slot-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-slot-games__play-now-button:hover {
  background: #FFC400;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__title-section {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-dark);
  padding-top: 20px; /* Ensure content is below video section */
}

.page-slot-games__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: 44px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-slot-games__title-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--secondary-color);
  text-transform: uppercase;
}

.page-slot-games__cta-button:hover {
  background: #A00000;
  border-color: #A00000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__container {
  max-width: 100%;
  margin: 0 auto;
}

.page-slot-games__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__text-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
  opacity: 0.9;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

.page-slot-games__game-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-slot-games__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-slot-games__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-description {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-slot-games__card-button:hover {
  background: #FFC400;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__benefit-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-slot-games__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.page-slot-games__benefit-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__benefit-item p {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.8;
}

.page-slot-games__center-cta {
  text-align: center;
  margin-top: 50px;
}

.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__guide-step {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  position: relative;
  padding-top: 80px; /* Space for step number */
}

.page-slot-games__step-number {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}

.page-slot-games__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__guide-step p {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.8;
}

/* FAQ Section */
.page-slot-games__faq-section {
  background: var(--bg-dark);
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-slot-games__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.9;
}

/* Brand Section */
.page-slot-games__brand-section {
  background: var(--bg-dark);
}

.page-slot-games__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__brand-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-slot-games__brand-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__brand-item p {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.8;
}

/* Blog Section */
.page-slot-games__blog-section {
  background: var(--bg-dark);
}

.page-slot-games__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__blog-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-slot-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--border-color);
}

.page-slot-games__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--text-light);
}

.page-slot-games__blog-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-slot-games__blog-item-date {
  font-size: 14px;
  color: var(--primary-color);
  opacity: 0.7;
  display: block;
}

/* 🚨 Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 38px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__play-now-button {
    padding: 15px 40px;
    font-size: 18px;
  }
  .page-slot-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-slot-games__card-image {
    height: 180px;
  }
  .page-slot-games__blog-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    object-fit: contain; 
  }
  
  .page-slot-games__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .page-slot-games__video-cta {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__title-section {
    padding: 40px 15px;
  }

  .page-slot-games__main-title {
    font-size: 32px;
  }

  .page-slot-games__title-description {
    font-size: 16px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__content-area {
    padding: 40px 15px;
  }

  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-slot-games__text-block p {
    font-size: 16px;
  }

  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__game-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__brand-content,
  .page-slot-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__game-card,
  .page-slot-games__benefit-item,
  .page-slot-games__guide-step,
  .page-slot-games__brand-item,
  .page-slot-games__blog-item {
    padding: 20px;
  }

  .page-slot-games__card-image,
  .page-slot-games__blog-image {
    height: 160px;
  }

  .page-slot-games__card-title,
  .page-slot-games__benefit-title,
  .page-slot-games__step-title,
  .page-slot-games__brand-subtitle,
  .page-slot-games__blog-item-title {
    font-size: 20px;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }
  
  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 28px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__play-now-button {
    font-size: 16px;
    padding: 12px 25px !important;
  }
  .page-slot-games__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}