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

/* Ensure text is light on dark body background */
.page-slot-games {
    color: var(--text-main); /* Light text on dark background */
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-slot-games__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-slot-games__light-bg {
    background-color: var(--bg-color);
    color: var(--text-main);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
}

.page-slot-games__hero-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    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;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 300px; /* Limit button width */
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Sections */
.page-slot-games__intro-section,
.page-slot-games__why-choose-section,
.page-slot-games__popular-games-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__mobile-app-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--glow-color);
}

.page-slot-games__content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-slot-games__content-area p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-slot-games__content-area a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-slot-games__content-area a:hover {
    text-decoration: underline;
}

.page-slot-games__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--glow-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-slot-games__list li {
    margin-bottom: 10px;
}

.page-slot-games__list li strong {
    color: var(--text-main);
}

.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

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

.page-slot-games__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__game-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-slot-games__btn-small {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-slot-games__btn-small:hover {
    opacity: 0.9;
}

/* How to Play Section */
.page-slot-games__ordered-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.page-slot-games__ordered-list li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
    color: var(--text-secondary);
}

.page-slot-games__ordered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--glow-color);
    color: var(--card-bg);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mobile App Section */
.page-slot-games__app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-slot-games__feature-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.page-slot-games__feature-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-slot-games__feature-item p {
    color: var(--text-secondary);
}

/* FAQ Section */
.page-slot-games__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

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

.page-slot-games__faq-answer {
    padding: 15px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-slot-games__faq-answer p {
    margin-bottom: 0;
}

/* Last CTA Section */
.page-slot-games__cta-final-section {
    text-align: center;
    background-color: var(--deep-green-color);
}

.page-slot-games__cta-final-section .page-slot-games__description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-slot-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .page-slot-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }

    .page-slot-games__hero-image-wrapper {
        max-height: 400px;
    }

    .page-slot-games__hero-content-wrapper {
        padding: 20px 0;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        padding: 0 15px;
    }

    .page-slot-games__description {
        font-size: 1rem;
        padding: 0 15px;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }

    .page-slot-games__intro-section,
    .page-slot-games__why-choose-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__mobile-app-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-slot-games__content-area {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games p,
    .page-slot-games li {
        font-size: 0.95rem;
    }

    .page-slot-games__image-content {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__game-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__game-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__ordered-list li {
        padding-left: 45px;
    }

    .page-slot-games__ordered-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .page-slot-games__app-features {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

    .page-slot-games__faq-answer {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-slot-games__cta-final-section .page-slot-games__description {
        font-size: 1.05rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-slot-games__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}