:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register-bg: #C30808;
    --btn-register-text: #FFFF00;
    --btn-login-bg: #C30808;
    --btn-login-text: #FFFF00;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Body background is white */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-slot-games__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__section-subtitle {
    color: var(--text-light);
}

.page-slot-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-image-container {
    width: 100%;
    max-height: 675px;
    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 {
    padding: 40px 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 1;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-slot-games__hero-content .page-slot-games__description {
    font-size: 1.15em;
    color: var(--text-dark);
    margin-bottom: 30px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 10px 0;
    font-size: 1em;
}

.page-slot-games__btn-link:hover {
    text-decoration: underline;
}

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

.page-slot-games__feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-slot-games__feature-text {
    font-size: 1em;
    color: #555;
}

/* Popular Games Section */
.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 250px; /* Fixed height for desktop */
    object-fit: cover;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    padding: 15px 15px 5px 15px;
    margin: 0;
}

.page-slot-games__game-provider {
    font-size: 0.9em;
    color: #777;
    padding: 0 15px 15px 15px;
}

.page-slot-games__view-more-container {
    text-align: center;
    margin-top: 50px;
}

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

.page-slot-games__step-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-slot-games__step-text {
    font-size: 1em;
    color: #555;
}

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

.page-slot-games__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.page-slot-games__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    padding: 15px 15px 5px 15px;
    margin: 0;
}

.page-slot-games__promo-text {
    font-size: 1em;
    color: #555;
    padding: 0 15px 15px 15px;
    flex-grow: 1;
}

.page-slot-games__promo-card .page-slot-games__btn-link {
    margin-top: auto;
    display: block;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Security Section */
.page-slot-games__security-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-slot-games__security-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.page-slot-games__security-section .page-slot-games__btn-primary {
    margin-top: 30px;
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-slot-games__faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px 20px 20px;
    font-size: 1em;
    color: #555;
    line-height: 1.7;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    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-section {
    text-align: center;
    padding: 80px 0;
}

.page-slot-games__cta-bottom-section .page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #555;
}

/* Global Images and Buttons for Responsiveness */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
    max-width: 100%;
    width: auto; /* Allow natural width on desktop */
    min-width: 150px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__cta-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-slot-games__container {
        padding: 15px;
    }

    .page-slot-games__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-slot-games__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-slot-games__hero-section {
        padding-top: 10px !important;
    }
    
    .page-slot-games__hero-image {
        object-fit: contain !important; /* Ensure image is not cropped */
        height: auto !important;
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .page-slot-games__hero-content {
        margin-top: 0; /* No overlap on mobile */
        padding: 30px 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .page-slot-games__main-title {
        font-size: 2.2em;
    }

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

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

    /* Buttons */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-slot-games__cta-buttons,
    .page-slot-games__view-more-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* About Section */
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Game Grid */
    .page-slot-games__game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: hidden;
    }
    
    .page-slot-games__game-thumbnail {
        height: 150px; /* Adjust height for mobile grid */
        object-fit: cover;
    }

    .page-slot-games__game-card {
        width: 100%;
        box-sizing: border-box;
    }

    .page-slot-games__game-title {
        font-size: 1.1em;
    }

    .page-slot-games__game-provider {
        font-size: 0.85em;
    }

    /* Promotions Section */
    .page-slot-games__promo-image {
        height: 180px;
    }

    /* Security Section */
    .page-slot-games__security-content p {
        font-size: 1em;
    }

    /* FAQ Section */
    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    /* Generic image/container responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-slot-games__hero-section,
    .page-slot-games__about-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__security-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom-section,
    .page-slot-games__card,
    .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__dark-section, .page-slot-games__light-bg {
        padding: 30px 0;
    }
}