/* style/slot-games.css */

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

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--sp88-text-main); /* Default text color for the page */
    background-color: var(--sp88-background); /* Overall page background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Base styles for sections */
.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(--sp88-gold-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--sp88-text-secondary);
}

.page-slot-games__text-block strong {
    color: var(--sp88-text-main);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    padding-top: 10px; /* Small top padding for the section itself */
    background-color: var(--sp88-deep-green); /* Background for the whole section */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height on desktop */
}

.page-slot-games__hero-content-wrapper {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--sp88-background);
}

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive font size */
    color: var(--sp88-gold-color);
    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: clamp(1.1em, 2vw, 1.3em);
    color: var(--sp88-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary,
.page-slot-games__game-card-button,
.page-slot-games__promo-card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--sp88-button-gradient-start) 0%, var(--sp88-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--sp88-gold-color);
    border: 2px solid var(--sp88-gold-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(var(--sp88-gold-color), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-slot-games__btn-tertiary {
    background-color: var(--sp88-deep-green);
    color: var(--sp88-text-main);
    border: 1px solid var(--sp88-border-color);
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-slot-games__btn-tertiary:hover {
    background-color: var(--sp88-primary-color);
    border-color: var(--sp88-primary-color);
    color: #ffffff;
}

.page-slot-games__cta-buttons--centered {
    margin-top: 40px;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
    background-color: var(--sp88-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.page-slot-games__game-card-image,
.page-slot-games__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--sp88-border-color);
}

.page-slot-games__game-card-title,
.page-slot-games__promo-card-title {
    font-size: 1.5em;
    color: var(--sp88-text-main);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-slot-games__game-card-description,
.page-slot-games__promo-card-description {
    font-size: 0.95em;
    color: var(--sp88-text-secondary);
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-slot-games__game-card-button,
.page-slot-games__promo-card-button {
    margin: 0 15px 20px 15px;
    padding: 12px 25px;
    font-size: 0.9em;
    background: linear-gradient(180deg, var(--sp88-button-gradient-start) 0%, var(--sp88-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
}

.page-slot-games__game-card-button:hover,
.page-slot-games__promo-card-button:hover {
    opacity: 0.9;
}


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

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

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

.page-slot-games__benefit-title,
.page-slot-games__strategy-title {
    font-size: 1.4em;
    color: var(--sp88-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__benefit-description,
.page-slot-games__strategy-description {
    font-size: 1em;
    color: var(--sp88-text-secondary);
}

/* How To Play Section */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--sp88-card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-left: 5px solid var(--sp88-primary-color);
}

.page-slot-games__step-title {
    font-size: 1.6em;
    color: var(--sp88-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__step-description {
    font-size: 1.05em;
    color: var(--sp88-text-secondary);
}

/* Strategy Section */
.page-slot-games__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    max-width: 100%;
}

/* Promotions Section (Dark Background) */
.page-slot-games__dark-section {
    background-color: var(--sp88-deep-green);
    color: var(--sp88-text-main); /* Ensure light text on dark background */
    padding: 60px 0;
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: var(--sp88-gold-color);
}

.page-slot-games__dark-section .page-slot-games__text-block {
    color: var(--sp88-text-secondary);
}

.page-slot-games__dark-section .page-slot-games__text-block strong {
    color: var(--sp88-text-main);
}

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

.page-slot-games__faq-item {
    background-color: var(--sp88-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 1px solid var(--sp88-border-color);
}

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--sp88-text-main);
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    color: var(--sp88-primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

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

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

.page-slot-games__faq-answer a {
    color: var(--sp88-primary-color);
    text-decoration: underline;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-slot-games__hero-section {
        padding-top: 10px !important;
    }
    .page-slot-games__hero-content-wrapper {
        padding: 30px 15px;
    }
    .page-slot-games__hero-content {
        border-radius: 10px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: clamp(1em, 2.5vw, 1.1em);
        margin-bottom: 25px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary,
    .page-slot-games__game-card-button,
    .page-slot-games__promo-card-button {
        padding: 12px 20px;
        font-size: 0.95em;
        width: 100% !important; /* Full width buttons on mobile */
    }

    .page-slot-games__game-cards-grid,
    .page-slot-games__promo-cards-grid,
    .page-slot-games__benefit-list,
    .page-slot-games__strategy-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-slot-games__game-card-title,
    .page-slot-games__promo-card-title {
        font-size: 1.3em;
    }
    .page-slot-games__game-card-description,
    .page-slot-games__promo-card-description {
        font-size: 0.9em;
    }
    .page-slot-games__step-title {
        font-size: 1.4em;
    }
    .page-slot-games__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Mobile image and video responsive adaptation */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__hero-image {
        max-height: 300px;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper,
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}