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

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

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

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-dark);
}

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

.page-slot-games__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
    overflow: hidden;
    text-align: center;
}

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

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Bring content up slightly over image for visual flow */
    background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.page-slot-games__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__intro-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-slot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Card Styles */
.page-slot-games__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why Choose Section */
.page-slot-games__why-choose .page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.page-slot-games__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-slot-games__type-card {
    padding: 25px;
}

.page-slot-games__type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__type-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__type-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How to Play Section */
.page-slot-games__how-to-play .page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.page-slot-games__step-title {
    font-size: 1.7em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__step-image {
    width: 100%;
    max-width: 350px;
    height: 220px; /* Fixed height for visual consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text take available space */
}

/* Strategy Tips Section */
.page-slot-games__strategy-tips .page-slot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__tip-card {
    padding: 25px;
}

.page-slot-games__tip-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__tip-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__tip-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding-bottom: 80px;
}

.page-slot-games__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-slot-games__faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Bottom Section */
.page-slot-games__cta-bottom {
    padding-top: 80px;
    padding-bottom: 100px;
}

.page-slot-games__cta-bottom .page-slot-games__btn-primary {
    margin-top: 30px;
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

    .page-slot-games__main-title {
        font-size: clamp(30px, 4.5vw, 48px);
    }

    .page-slot-games__intro-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-slot-games__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        border-radius: 10px;
    }

    .page-slot-games__main-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 10px;
    }

    .page-slot-games__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__features-grid,
    .page-slot-games__types-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__container,
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__faq-item,
    .page-slot-games__hero-section,
    .page-slot-games__hero-content,
    .page-slot-games__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Images responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Content area images minimum size */
    .page-slot-games__feature-image,
    .page-slot-games__type-image,
    .page-slot-games__step-image,
    .page-slot-games__tip-image {
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
        height: auto !important; /* Allow auto height to maintain aspect ratio */
    }

    .page-slot-games__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-slot-games__cta-bottom .page-slot-games__btn-primary {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}

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

    .page-slot-games__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-slot-games__intro-description,
    .page-slot-games__section-description {
        font-size: 0.95em;
    }

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