/* style/slot-games.css */

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

.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--kv999-text-main);
    background-color: var(--kv999-background); /* Ensures consistent background */
}

/* Section Styling */
.page-slot-games__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--kv999-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-slot-games p {
    margin-bottom: 1em;
    color: var(--kv999-text-secondary);
}

.page-slot-games__center-text {
    text-align: center;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small padding top to avoid overlap with fixed header, body already has --header-offset */
    min-height: 500px;
    text-align: center;
    color: var(--kv999-text-main);
    background-color: var(--kv999-deep-green); /* Fallback background for hero */
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image to make text more readable */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    margin-top: 50px; /* Adjust as needed */
}

.page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    color: var(--kv999-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--kv999-text-secondary);
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__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;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--kv999-button-gradient);
    color: var(--kv999-text-main);
    border: 2px solid var(--kv999-primary);
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-slot-games__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Game Types Section */
.page-slot-games__game-types {
    background-color: var(--kv999-deep-green);
}

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

.page-slot-games__card {
    background-color: var(--kv999-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--kv999-border);
    transition: transform 0.3s ease;
    color: var(--kv999-text-main); /* Ensure text is readable on card background */
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-slot-games__card p {
    color: var(--kv999-text-secondary);
    font-size: 0.95em;
}

/* How To Play Section */
.page-slot-games__how-to-play {
    background-color: var(--kv999-background);
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-slot-games__step-item {
    background-color: var(--kv999-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--kv999-primary);
    position: relative;
    color: var(--kv999-text-main);
}

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--kv999-gold);
    color: var(--kv999-background);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: var(--kv999-gold);
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Benefits Section */
.page-slot-games__benefits {
    background-color: var(--kv999-deep-green); /* Dark section */
    color: var(--kv999-text-main);
}

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

.page-slot-games__feature-item {
    background-color: var(--kv999-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--kv999-border);
    color: var(--kv999-text-main);
}

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make icons round */
    border: 2px solid var(--kv999-primary);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__feature-title {
    font-size: 1.6em;
    color: var(--kv999-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Promotions Section */
.page-slot-games__promotions {
    background-color: var(--kv999-background);
}

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

.page-slot-games__promo-item {
    background-color: var(--kv999-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kv999-border);
    color: var(--kv999-text-main);
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--kv999-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming {
    background-color: var(--kv999-background); /* Using a slightly lighter background for contrast against deep-green sections */
    color: var(--kv999-text-main);
}

.page-slot-games__content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-slot-games__text-block {
    flex: 1;
}

.page-slot-games__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kv999-border);
}

.page-slot-games__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--kv999-text-secondary);
}

.page-slot-games__list li {
    margin-bottom: 0.5em;
}


/* FAQ Section */
.page-slot-games__faq {
    background-color: var(--kv999-deep-green);
}

.page-slot-games__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-slot-games__faq-item {
    background-color: var(--kv999-card-bg);
    border-radius: 10px;
    border: 1px solid var(--kv999-border);
    overflow: hidden;
    color: var(--kv999-text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--kv999-gold);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow for details tag */
}

.page-slot-games__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: var(--kv999-text-secondary);
    border-top: 1px solid var(--kv999-divider);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

/* For details tag, we don't control max-height via JS, browser handles it */
.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: fit-content; /* Or a large value like 2000px if fit-content causes issues */
    padding: 15px 25px 25px;
}

/* Final CTA Section */
.page-slot-games__cta-final {
    background-color: var(--kv999-background);
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__cta-final .page-slot-games__section-title {
    color: var(--kv999-gold);
    margin-bottom: 30px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
    .page-slot-games__hero-content {
        padding: 15px;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__feature-title {
        font-size: 1.4em;
    }
    .page-slot-games__promo-title {
        font-size: 1.3em;
    }
    .page-slot-games__grid,
    .page-slot-games__features-grid,
    .page-slot-games__promo-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-slot-games__content-wrapper {
        flex-direction: column;
    }
    .page-slot-games__text-block,
    .page-slot-games__image-block {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure full width on mobile */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__hero-section {
        min-height: 400px;
        padding-top: 10px !important;
    }
    .page-slot-games__hero-content {
        margin-top: 20px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.5em, 8vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to buttons themselves */
        padding-right: 15px;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__sub-title {
        font-size: 1.5em;
    }
    .page-slot-games__grid,
    .page-slot-games__features-grid,
    .page-slot-games__promo-list {
        grid-template-columns: 1fr;
    }
    .page-slot-games__card-image,
    .page-slot-games__feature-icon,
    .page-slot-games__responsive-image,
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__card,
    .page-slot-games__feature-item,
    .page-slot-games__promo-item,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px;
    }
    .page-slot-games__step-item::before {
        left: 15px;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-slot-games__faq-answer {
        padding: 10px 20px 20px;
    }
}