/* style/slot-games.css */

/* Custom Colors */
: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;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Overall dark background */
}

/* Ensure default text color for light background sections */
.page-slot-games__light-bg {
    background-color: #ffffff; /* Default light background */
    color: #333333; /* Dark text for light background */
}

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

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

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

.page-slot-games__text-secondary {
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for first section */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and text */
    box-sizing: border-box;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    position: relative; /* Ensure content is above image wrapper if any overlap */
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not overflow */
    text-align: center;
}

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

.page-slot-games__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* General Section Styles */
.page-slot-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    margin-bottom: 30px;
    text-align: center;
    color: var(--color-gold);
    font-weight: bold;
}

.page-slot-games__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

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

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 60px 0;
}

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

.page-slot-games__feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f8f8; /* Light background for features in light section */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: #333333; /* Dark text for light background */
}

.page-slot-games__feature-icon {
    min-width: 200px;
    min-height: 200px;
    width: 200px; /* Set specific width for display */
    height: 200px; /* Set specific height for display */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    object-fit: contain;
    margin-bottom: 15px;
}

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

.page-slot-games__feature-description {
    font-size: 0.95em;
    color: #555555;
    text-align: center;
}

/* Game Categories Section */
.page-slot-games__game-categories {
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

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

.page-slot-games__category-card {
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
}

.page-slot-games__category-image {
    min-width: 200px;
    min-height: 200px;
    width: 400px; /* Set specific width for display */
    height: 300px; /* Set specific height for display */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px;
}

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

.page-slot-games__category-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    text-align: center;
}

/* How To Play Section */
.page-slot-games__how-to-play {
    padding: 60px 0;
}

.page-slot-games__numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-slot-games__list-item {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
    text-align: left;
    color: #333333;
}

.page-slot-games__list-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-slot-games__list-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.page-slot-games__list-description {
    font-size: 1em;
    color: #555555;
    text-align: left;
    margin: 0;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
}

.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 {
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
}

.page-slot-games__promo-image {
    min-width: 200px;
    min-height: 200px;
    width: 600px; /* Set specific width for display */
    height: 400px; /* Set specific height for display */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px;
}

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

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming {
    padding: 60px 0;
    text-align: center;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than card-bg */
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

/* Bottom CTA Section */
.page-slot-games__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

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

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

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

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles offset, only small decorative padding */
    }

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

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-slot-games__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__feature-item,
    .page-slot-games__category-card,
    .page-slot-games__promo-card {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__feature-icon,
    .page-slot-games__category-image,
    .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min image size */
        min-height: 200px !important; /* Enforce min image size */
        box-sizing: border-box !important;
        padding: 0 !important; /* No padding on img itself */
    }

    .page-slot-games__list-item {
        padding-left: 50px;
    }

    .page-slot-games__list-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

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

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