/* style/jackpot-games.css */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-jackpot-games {
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: -100px; /* Adjust to bring content slightly over image bottom */
}

.page-jackpot-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--color-glow);
}

.page-jackpot-games__description {
  font-size: 1.1em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-jackpot-games__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: 2px solid var(--color-button-gradient-end);
}

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

.page-jackpot-games__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-text-main);
  border: 2px solid var(--color-border);
}

.page-jackpot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-jackpot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px var(--color-glow);
}

.page-jackpot-games__info-section,
.page-jackpot-games__game-types-section,
.page-jackpot-games__features-section,
.page-jackpot-games__guide-section,
.page-jackpot-games__strategy-section,
.page-jackpot-games__security-section,
.page-jackpot-games__promotions-section,
.page-jackpot-games__app-download-section,
.page-jackpot-games__customer-support-section,
.page-jackpot-games__faq-section,
.page-jackpot-games__cta-bottom-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
}

.page-jackpot-games__dark-section {
  background-color: var(--color-card-bg);
}

.page-jackpot-games p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--color-text-secondary);
}

.page-jackpot-games a {
  color: var(--color-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jackpot-games a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

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

.page-jackpot-games__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

.page-jackpot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__card-title {
  font-size: 1.4em;
  color: var(--color-gold);
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-jackpot-games__card p {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

.page-jackpot-games__feature-list,
.page-jackpot-games__guide-list,
.page-jackpot-games__security-list,
.page-jackpot-games__app-benefits-list,
.page-jackpot-games__support-channels-list,
.page-jackpot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-jackpot-games__feature-item,
.page-jackpot-games__guide-item,
.page-jackpot-games__security-item,
.page-jackpot-games__strategy-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__feature-title,
.page-jackpot-games__guide-title,
.page-jackpot-games__security-title,
.page-jackpot-games__strategy-title,
.page-jackpot-games__app-subtitle,
.page-jackpot-games__support-subtitle {
  font-size: 1.3em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__app-content,
.page-jackpot-games__support-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-jackpot-games__app-info,
.page-jackpot-games__support-info {
  flex: 1;
  min-width: 300px;
}

.page-jackpot-games__app-image-wrapper,
.page-jackpot-games__support-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-jackpot-games__app-image,
.page-jackpot-games__support-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__app-benefits-list li,
.page-jackpot-games__support-channels-list li {
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.page-jackpot-games__faq-list {
  margin-top: 40px;
}

.page-jackpot-games__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-gold);
  cursor: pointer;
  background-color: var(--color-deep-green);
}

.page-jackpot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-jackpot-games__faq-answer {
  padding: 0 20px 20px;
  color: var(--color-text-secondary);
}

.page-jackpot-games__cta-bottom-section {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-content {
    margin-top: -50px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-jackpot-games__hero-content {
    margin-top: -30px;
    padding: 15px;
    width: 90%;
  }

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

  .page-jackpot-games__description {
    font-size: 1em;
  }

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-jackpot-games__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-jackpot-games__info-section,
  .page-jackpot-games__game-types-section,
  .page-jackpot-games__features-section,
  .page-jackpot-games__guide-section,
  .page-jackpot-games__strategy-section,
  .page-jackpot-games__security-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__app-download-section,
  .page-jackpot-games__customer-support-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-bottom-section {
    padding: 40px 0;
  }

  .page-jackpot-games p {
    font-size: 0.95em;
  }

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

  .page-jackpot-games__card-image {
    height: 180px;
  }

  .page-jackpot-games__feature-list,
  .page-jackpot-games__guide-list,
  .page-jackpot-games__security-list,
  .page-jackpot-games__app-benefits-list,
  .page-jackpot-games__support-channels-list,
  .page-jackpot-games__strategy-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-jackpot-games__feature-item,
  .page-jackpot-games__guide-item,
  .page-jackpot-games__security-item,
  .page-jackpot-games__strategy-item {
    padding: 20px;
  }

  .page-jackpot-games__app-content,
  .page-jackpot-games__support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-jackpot-games__app-image,
  .page-jackpot-games__support-image {
    max-width: 100%;
  }

  .page-jackpot-games__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-jackpot-games__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  .page-jackpot-games__app-image-wrapper, .page-jackpot-games__support-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness (if any) */
  .page-jackpot-games video,
  .page-jackpot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games__video-section,
  .page-jackpot-games__video-container,
  .page-jackpot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-jackpot-games__video-section {
    padding-top: 10px !important;
  }

  .page-jackpot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-jackpot-games__cta-button,
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games a[class*="button"],
  .page-jackpot-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-jackpot-games__cta-buttons,
  .page-jackpot-games__button-group,
  .page-jackpot-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-jackpot-games__cta-buttons {
    flex-direction: column;
  }
}