/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color-page: #08160F; /* Use a distinct variable for page-specific background if needed, or rely on shared */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
    background-color: var(--background-color-page); /* Explicitly set page background */
    color: var(--text-main-color); /* Main text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for footer */
}

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

.page-slot-games__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
    color: var(--gold-color); /* Highlight section titles with gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top spacing for hero */
    background-color: var(--deep-green-color); /* Darker background for hero */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-slot-games__hero-content {
    max-width: 800px;
}

.page-slot-games__main-title {
    font-size: clamp(32px, 5vw, 50px); /* Responsive H1 font size with clamp */
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

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

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

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    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(--glow-color); /* Use glow color for secondary button text */
    border: 2px solid var(--glow-color);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
}

.page-slot-games__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px; /* Limit width for centered button */
}

/* General content sections */
.page-slot-games__introduction,
.page-slot-games__highlights,
.page-slot-games__how-to-play,
.page-slot-games__tips,
.page-slot-games__promotions,
.page-slot-games__faq,
.page-slot-games__cta-final {
    padding: 60px 0;
}

.page-slot-games__dark-section {
    background-color: var(--deep-green-color); /* Use deep green for dark sections */
}

.page-slot-games__image-content {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Grid layout for highlights and tips */
.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(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color); /* Ensure card text is light */
    transition: transform 0.3s ease;
}

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

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

/* How to play steps */
.page-slot-games__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-slot-games__step-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: var(--glow-color);
    margin-bottom: 15px;
}

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

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

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

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

.page-slot-games__promo-card .page-slot-games__card-title,
.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-slot-games__promo-card p {
    flex-grow: 1; /* Make paragraph take available space */
    padding: 0 15px 20px;
    color: var(--text-secondary-color);
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
    margin: 0 15px 20px;
    width: auto;
    align-self: center;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--deep-green-color); /* Darker background for question */
    color: var(--glow-color);
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter on hover */
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom-color: transparent; /* Remove border when open */
}

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

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

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

/* Links in content */
.page-slot-games a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

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

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-slot-games__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust H1 size for mobile */
    }

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

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

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

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

    .page-slot-games__introduction,
    .page-slot-games__highlights,
    .page-slot-games__how-to-play,
    .page-slot-games__tips,
    .page-slot-games__promotions,
    .page-slot-games__faq,
    .page-slot-games__cta-final {
        padding: 40px 0;
    }

    .page-slot-games__grid,
    .page-slot-games__steps,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

    .page-slot-games__card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__promo-image {
        height: 180px; /* Adjust promo image height for mobile */
    }

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

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

    /* Mobile image, video, container responsiveness */
    .page-slot-games img,
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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; /* Prevent content overflow */
    }
    .page-slot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}