/* Biến màu sắc */
:root {
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-background: #0A0A0A;
    --color-card-bg: #111111;
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

.page-jackpot-games__section-spacing {
    padding: 60px 0;
}

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

.page-jackpot-games__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.page-jackpot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.page-jackpot-games__text-block {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--color-text-main);
}

.page-jackpot-games__text-block strong {
    color: var(--color-secondary);
}

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-jackpot-games__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-jackpot-games__cta-buttons--center {
    justify-content: center;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--color-background);
    overflow: hidden;
}

.page-jackpot-games__hero-image-wrap {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-jackpot-games__hero-content {
    position: relative; /* Ensure content is above image when stacked */
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 900px;
}

.page-jackpot-games__hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Intro Section */
.page-jackpot-games__intro-section {
    background-color: var(--color-background);
}

.page-jackpot-games__image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.page-jackpot-games__grid-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Benefits Section */
.page-jackpot-games__benefits-section {
    background-color: var(--color-card-bg);
}

.page-jackpot-games__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-jackpot-games__benefit-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

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

.page-jackpot-games__benefit-title {
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-jackpot-games__benefit-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Game Types Section */
.page-jackpot-games__game-types-section {
    background-color: var(--color-background);
}

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

.page-jackpot-games__game-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

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

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

.page-jackpot-games__card-title {
    font-size: 24px;
    color: var(--color-secondary);
    padding: 20px 20px 10px;
    font-weight: 600;
}

.page-jackpot-games__game-card p {
    font-size: 16px;
    color: #e0e0e0;
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Strategy Section */
.page-jackpot-games__strategy-section {
    background-color: var(--color-card-bg);
}

.page-jackpot-games__content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-jackpot-games__text-content {
    flex: 1;
}

.page-jackpot-games__image-wrap {
    flex: 1;
    min-width: 300px;
}

.page-jackpot-games__strategy-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-games__strategy-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-jackpot-games__strategy-list li {
    background-color: var(--color-background);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 5px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__strategy-list li strong {
    color: var(--color-secondary);
}

/* Join Section */
.page-jackpot-games__join-section {
    background-color: var(--color-background);
}

.page-jackpot-games__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-jackpot-games__steps-list li {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    position: relative;
    text-align: center;
}

.page-jackpot-games__steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid var(--color-background);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.5);
}

.page-jackpot-games__step-title {
    font-size: 22px;
    color: var(--color-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-jackpot-games__steps-list p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
    background-color: var(--color-card-bg);
}

.page-jackpot-games__promo-card {
    display: flex;
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    margin-top: 40px;
}

.page-jackpot-games__promo-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-games__promo-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-jackpot-games__promo-title {
    font-size: 28px;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-jackpot-games__promo-content p {
    font-size: 17px;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
    background-color: var(--color-background);
}

details.page-jackpot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
}
details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--color-text-main);
}
details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question:hover {
  background: #1a1a1a;
}
.page-jackpot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-secondary);
}
.page-jackpot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-jackpot-games__faq-item .page-jackpot-games__faq-answer {
  padding: 0 20px 20px;
  background: var(--color-background);
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
}

/* Conclusion Section */
.page-jackpot-games__conclusion-section {
    background-color: var(--color-card-bg);
}

/* General image styling for responsiveness */
.page-jackpot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: clamp(32px, 4.5vw, 55px);
    }

    .page-jackpot-games__hero-description {
        font-size: 18px;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }

    .page-jackpot-games__benefits-list,
    .page-jackpot-games__game-cards,
    .page-jackpot-games__steps-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-jackpot-games__promo-card {
        flex-direction: column;
    }

    .page-jackpot-games__promo-image {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__container {
        padding: 0 15px;
    }

    .page-jackpot-games__hero-section {
        padding-top: 10px;
    }

    .page-jackpot-games__hero-image-wrap {
        max-height: unset;
    }

    .page-jackpot-games__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        filter: brightness(0.8); /* Slightly less dim on mobile */
    }

    .page-jackpot-games__hero-content {
        padding: 30px 15px 40px;
    }

    .page-jackpot-games__hero-title {
        font-size: clamp(28px, 8vw, 45px);
        margin-bottom: 15px;
    }

    .page-jackpot-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        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__section-spacing {
        padding: 40px 0;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 30px;
    }

    .page-jackpot-games__text-block {
        font-size: 15px;
        line-height: 1.7;
    }

    .page-jackpot-games__image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .page-jackpot-games__grid-image {
        min-width: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-jackpot-games__benefit-item,
    .page-jackpot-games__game-card,
    .page-jackpot-games__steps-list li {
        padding: 25px;
    }

    .page-jackpot-games__benefit-title,
    .page-jackpot-games__step-title {
        font-size: 20px;
    }

    .page-jackpot-games__benefit-item p,
    .page-jackpot-games__game-card p,
    .page-jackpot-games__steps-list p {
        font-size: 15px;
    }

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

    .page-jackpot-games__image-wrap {
        min-width: unset;
    }

    .page-jackpot-games__strategy-image {
        min-width: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-jackpot-games__strategy-list li {
        font-size: 15px;
        padding: 12px 15px;
    }

    .page-jackpot-games__promo-card {
        margin-top: 30px;
    }

    .page-jackpot-games__promo-image {
        height: 200px;
        min-width: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-jackpot-games__promo-content {
        padding: 20px;
    }

    .page-jackpot-games__promo-title {
        font-size: 22px;
    }

    .page-jackpot-games__promo-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question { padding: 15px; }
    .page-jackpot-games__faq-qtext { font-size: 16px; }
    .page-jackpot-games__faq-toggle { font-size: 20px; width: 24px; }
    details.page-jackpot-games__faq-item .page-jackpot-games__faq-answer { padding: 0 15px 15px; }

    /* Ensure all images in content areas are responsive */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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__intro-section .page-jackpot-games__container,
    .page-jackpot-games__benefits-section .page-jackpot-games__container,
    .page-jackpot-games__game-types-section .page-jackpot-games__container,
    .page-jackpot-games__strategy-section .page-jackpot-games__container,
    .page-jackpot-games__join-section .page-jackpot-games__container,
    .page-jackpot-games__promotions-section .page-jackpot-games__container,
    .page-jackpot-games__faq-section .page-jackpot-games__container,
    .page-jackpot-games__conclusion-section .page-jackpot-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}