/* style/slot-games.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bg-card: #11271B;
  --bg-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--bg-main);
}

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

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

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

.page-slot-games__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-slot-games__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.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: 80px;
  overflow: hidden;
  background-color: var(--deep-green-color);
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối ảnh nền để chữ dễ đọc */
}

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

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* H1 font-size with clamp */
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-slot-games__btn-text {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-slot-games__btn-text:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-slot-games__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-slot-games__content-grid > div {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__image-block {
  flex: 1.2;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1.05em;
}

.page-slot-games__text-block .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-slot-games__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232AD16F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 0 1-18.05 4.96L2 11.08z"/><polyline points="22 4 12 14 7 9"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.05em;
}

.page-slot-games__list-highlight {
  color: var(--glow-color);
}

.page-slot-games__games-section .page-slot-games__section-title,
.page-slot-games__strategy-section .page-slot-games__section-title,
.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: var(--gold-color);
}

.page-slot-games__games-section .page-slot-games__section-description,
.page-slot-games__strategy-section .page-slot-games__section-description,
.page-slot-games__cta-final-section .page-slot-games__section-description {
  color: var(--text-secondary);
}

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

.page-slot-games__game-card,
.page-slot-games__strategy-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%; /* Ensure image takes full width of card */
  min-height: 200px; /* Minimum size for content images */
  object-fit: cover;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-slot-games__cta-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-item {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-slot-games__guide-step-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--glow-color));
}

.page-slot-games__step-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__step-text {
  font-size: 1em;
  color: var(--text-secondary);
}

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

.page-slot-games__promotion-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-slot-games__promotion-card .page-slot-games__card-image {
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-slot-games__promotion-card .page-slot-games__card-title {
  padding: 20px 20px 0;
  color: var(--gold-color);
}

.page-slot-games__promotion-card .page-slot-games__card-text {
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

.page-slot-games__promotion-card .page-slot-games__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

.page-slot-games__faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-slot-games__faq-item[open] {
  background-color: var(--deep-green-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

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

.page-slot-games__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--secondary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  color: var(--gold-color);
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-slot-games__cta-final-content {
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 3.5em);
  }
  .page-slot-games__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-slot-games__sub-title {
    font-size: 1.5em;
  }

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

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

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__game-cards-grid,
  .page-slot-games__strategy-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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__hero-image-wrapper,
  .page-slot-games__image-block,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
  
  .page-slot-games__promotion-card .page-slot-games__btn-primary {
    width: calc(100% - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-slot-games__faq-answer {
    padding: 15px;
  }

  .page-slot-games__guide-step-icon {
    width: 120px;
    height: 120px;
  }
}