/* style/jackpot-games-popular.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --text-dark-color: #000000;
  --card-bg-color: #FFFFFF;
  --background-color-page: #F4F7FB;
  --border-color: #D6E2FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --glow-color: #A5C4FF;
}

.page-jackpot-games-popular {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for light background body */
  background-color: var(--background-color-page);
}

.page-jackpot-games-popular__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  background-color: var(--background-color-page);
}

.page-jackpot-games-popular__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-jackpot-games-popular__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-jackpot-games-popular__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark-color);
  margin-bottom: 20px;
}

.page-jackpot-games-popular__description {
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-jackpot-games-popular__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-jackpot-games-popular__text-link:hover {
  text-decoration: underline;
}

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

.page-jackpot-games-popular__btn-primary,
.page-jackpot-games-popular__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-jackpot-games-popular__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-jackpot-games-popular__btn-primary:hover {
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

.page-jackpot-games-popular__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games-popular__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

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

.page-jackpot-games-popular__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-dark-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-jackpot-games-popular__intro-section {
  padding: 80px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-jackpot-games-popular__feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--background-color-page);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-jackpot-games-popular__feature-item:hover {
  transform: translateY(-5px);
}

.page-jackpot-games-popular__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-jackpot-games-popular__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-jackpot-games-popular__feature-item p {
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-jackpot-games-popular__games-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-jackpot-games-popular__games-section .page-jackpot-games-popular__section-title,
.page-jackpot-games-popular__games-section .page-jackpot-games-popular__description {
  color: #ffffff;
}

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

.page-jackpot-games-popular__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
}

.page-jackpot-games-popular__game-card:hover {
  transform: translateY(-5px);
}

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

.page-jackpot-games-popular__game-card h3,
.page-jackpot-games-popular__game-card p {
  padding: 0 20px;
}

.page-jackpot-games-popular__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-jackpot-games-popular__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-jackpot-games-popular__game-title a:hover {
  text-decoration: underline;
}

.page-jackpot-games-popular__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-games-popular__btn-small {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  border-radius: 6px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-jackpot-games-popular__btn-small:hover {
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.6);
  transform: translateY(-1px);
}

.page-jackpot-games-popular__how-to-play-section {
  padding: 80px 20px;
  background-color: var(--background-color-page);
}

.page-jackpot-games-popular__steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin-top: 40px;
  padding: 0;
}

.page-jackpot-games-popular__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 30px;
  padding-left: 60px;
  position: relative;
  color: var(--text-main-color);
}

.page-jackpot-games-popular__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-jackpot-games-popular__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-jackpot-games-popular__steps-list li p {
  font-size: 1.1em;
  line-height: 1.6;
}

.page-jackpot-games-popular__cta-single {
  text-align: center;
  margin-top: 50px;
}

.page-jackpot-games-popular__promotions-section {
  padding: 80px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games-popular__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-jackpot-games-popular__promo-list li {
  background-color: var(--background-color-page);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-left: 5px solid var(--secondary-color);
}

.page-jackpot-games-popular__promo-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-dark-color);
  margin-bottom: 10px;
}

.page-jackpot-games-popular__promo-list li p {
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-jackpot-games-popular__tips-section {
  padding: 80px 20px;
  background-color: var(--background-color-page);
}

.page-jackpot-games-popular__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-jackpot-games-popular__tips-list li {
  background-color: var(--card-bg-color);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.page-jackpot-games-popular__tip-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-jackpot-games-popular__tips-list li p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-jackpot-games-popular__faq-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-jackpot-games-popular__faq-section .page-jackpot-games-popular__section-title {
  color: #ffffff;
}

.page-jackpot-games-popular__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-jackpot-games-popular__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--text-main-color);
}

.page-jackpot-games-popular__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.page-jackpot-games-popular__faq-item[open] .page-jackpot-games-popular__faq-question {
  border-bottom: none;
}

.page-jackpot-games-popular__faq-question::-webkit-details-marker {
  display: none;
}

.page-jackpot-games-popular__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-jackpot-games-popular__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-jackpot-games-popular__cta-final {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color-page);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-jackpot-games-popular__main-title {
    font-size: 2.8em;
  }
  .page-jackpot-games-popular__section-title {
    font-size: 2em;
  }
  .page-jackpot-games-popular__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games-popular__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for H1 */
  }
  .page-jackpot-games-popular__description {
    font-size: 1em;
  }
  .page-jackpot-games-popular__section-title {
    font-size: 1.8em;
  }
  .page-jackpot-games-popular__hero-section,
  .page-jackpot-games-popular__intro-section,
  .page-jackpot-games-popular__games-section,
  .page-jackpot-games-popular__how-to-play-section,
  .page-jackpot-games-popular__promotions-section,
  .page-jackpot-games-popular__tips-section,
  .page-jackpot-games-popular__faq-section,
  .page-jackpot-games-popular__cta-final {
    padding: 40px 15px;
  }

  /* Mobile responsive for images */
  .page-jackpot-games-popular img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games-popular__hero-image-wrapper,
  .page-jackpot-games-popular__game-card,
  .page-jackpot-games-popular__feature-item,
  .page-jackpot-games-popular__promo-list li,
  .page-jackpot-games-popular__tips-list li,
  .page-jackpot-games-popular__faq-item,
  .page-jackpot-games-popular__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-jackpot-games-popular__hero-section {
    padding-top: 10px !important; /* body đã đảm nhận --header-offset */
  }

  /* Mobile responsive for buttons */
  .page-jackpot-games-popular__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-jackpot-games-popular__btn-primary,
  .page-jackpot-games-popular__btn-secondary,
  .page-jackpot-games-popular__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-jackpot-games-popular__cta-single .page-jackpot-games-popular__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-jackpot-games-popular__steps-list li {
    padding-left: 50px;
  }
  .page-jackpot-games-popular__steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }
  .page-jackpot-games-popular__step-title {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games-popular__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-jackpot-games-popular__section-title {
    font-size: 1.5em;
  }
  .page-jackpot-games-popular__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-jackpot-games-popular__game-image {
    height: 150px;
  }
}

/* Color Contrast Fixes (if needed) */
.page-jackpot-games-popular__dark-section {
  background: var(--primary-color);
  color: #ffffff;
}
.page-jackpot-games-popular__dark-section .page-jackpot-games-popular__text-block {
  color: #ffffff;
}
.page-jackpot-games-popular__dark-section .page-jackpot-games-popular__text-link {
  color: var(--glow-color);
}
.page-jackpot-games-popular__light-bg {
  background: var(--card-bg-color);
  color: var(--text-main-color);
}

/* Ensure all images are content images, not small icons */
.page-jackpot-games-popular__feature-icon {
  min-width: 200px; /* Enforce minimum size for features */
  min-height: 200px;
  width: 200px; /* Set explicit width/height for display */
  height: 200px;
}

/* Override the explicit width/height for feature-icon only in mobile if it causes overflow */
@media (max-width: 768px) {
  .page-jackpot-games-popular__feature-icon {
    width: 100px !important; /* Allow smaller display in mobile for icons, but still > 200px if possible */
    height: 100px !important; /* Re-evaluate based on actual usage. For now, keep it responsive */
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Content area images minimum size enforcement */
.page-jackpot-games-popular__content-area img,
.page-jackpot-games-popular__game-card img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-jackpot-games-popular img {
  filter: none !important;
}