/* style/slot-games.css */

:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page, assuming dark background */
    background-color: var(--color-background);
}

.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;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-background);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-slot-games__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.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;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

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

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

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.2);
}

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

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

/* General Section Styling */
.page-slot-games__about-section,
.page-slot-games__types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-slot-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-slot-games__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

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

.page-slot-games__game-type-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-type-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__game-type-title {
    font-size: 1.4em;
    color: var(--color-primary);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-slot-games__game-type-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* How-To-Play Steps */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 15px;
    background-color: var(--color-deep-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-gold);
}

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

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

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

.page-slot-games__tip-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-slot-games__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--color-primary);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-slot-games__promo-card .page-slot-games__btn-primary,
.page-slot-games__promo-card .page-slot-games__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-slot-games__faq-question::marker {
    display: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-gold);
    margin-left: 15px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid var(--color-divider);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: "−";
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
    background-color: var(--color-card-bg);
}

/* CTA Bottom Section */
.page-slot-games__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
}

.page-slot-games__cta-content {
    max-width: 900px;
}

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

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }

    .page-slot-games__description {
        font-size: 1em;
    }

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

    .page-slot-games__features-grid,
    .page-slot-games__game-type-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__tips-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

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

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

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

    .page-slot-games__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

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

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

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

    .page-slot-games__about-section,
    .page-slot-games__types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom-section {
        padding: 40px 0;
    }

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

    .page-slot-games__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .page-slot-games__step-card,
    .page-slot-games__tip-card,
    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__game-type-image,
    .page-slot-games__promo-image {
        height: 180px;
    }

    .page-slot-games img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__container,
    .page-slot-games__features-grid,
    .page-slot-games__game-type-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__tips-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__faq-list,
    .page-slot-games__cta-buttons,
    .page-slot-games__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-slot-games__hero-section {
        padding-top: 10px !important;
    }
    
    .page-slot-games__promo-card .page-slot-games__btn-primary,
    .page-slot-games__promo-card .page-slot-games__btn-secondary {
        margin: 0 0 15px;
        width: 100%;
    }

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

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