/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-dark: #121212;
    --background-light: #FFFFFF;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default for main content on dark body background */
    background-color: var(--background-dark); /* Ensure consistency with shared body background */
}

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

.page-slot-games__light-bg {
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    min-height: 600px;
    gap: 40px;
    overflow: hidden;
    background-color: var(--background-dark);
    color: var(--text-color-dark-bg);
}

.page-slot-games__hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    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;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: var(--button-register);
    color: var(--button-font-color);
    border: 2px solid var(--button-register);
}

.page-slot-games__btn-primary:hover {
    background-color: #e00b0b;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-slot-games__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* General Sections */
.page-slot-games__features-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__strategies-section,
.page-slot-games__promotions-section,
.page-slot-games__security-section,
.page-slot-games__faq-section {
    padding: 80px 0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    opacity: 0.8;
    color: inherit;
}

/* Cards Grid */
.page-slot-games__features-grid,
.page-slot-games__game-types-grid,
.page-slot-games__steps-grid,
.page-slot-games__promotions-grid,
.page-slot-games__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__feature-card,
.page-slot-games__game-card,
.page-slot-games__step-card,
.page-slot-games__promotion-card,
.page-slot-games__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent for dark bg */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color-dark-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-card:hover,
.page-slot-games__step-card:hover,
.page-slot-games__promotion-card:hover,
.page-slot-games__security-item:hover {
    transform: translateY(-10px);
}

.page-slot-games__light-bg .page-slot-games__feature-card,
.page-slot-games__light-bg .page-slot-games__step-card,
.page-slot-games__light-bg .page-slot-games__promotion-card,
.page-slot-games__light-bg .page-slot-games__security-item {
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
    border: 1px solid #e0e0e0;
}

.page-slot-games__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-slot-games__game-image,
.page-slot-games__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    width: 100%;
    min-height: 200px;
}

/* Strategies List */
.page-slot-games__strategy-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__strategy-list li {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-color-dark-bg);
}

.page-slot-games__strategy-list li h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.4em;
}

/* CTA Buttons in sections */
.page-slot-games__cta-buttons {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #f5f5f5;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-light-bg);
    background-color: var(--background-light);
}

.page-slot-games__faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 20px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-slot-games__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-slot-games__hero-title {
        font-size: 2.8em;
    }

    .page-slot-games__hero-description {
        font-size: 1.1em;
    }

    .page-slot-games__hero-buttons {
        justify-content: center;
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-types-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promotions-grid,
    .page-slot-games__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__step-card,
    .page-slot-games__promotion-card,
    .page-slot-games__security-item {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

    .page-slot-games__section-title {
        font-size: 1.8em;
    }

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

    .page-slot-games__features-section,
    .page-slot-games__game-types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__strategies-section,
    .page-slot-games__promotions-section,
    .page-slot-games__security-section,
    .page-slot-games__faq-section {
        padding: 50px 0;
    }

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

    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__step-card,
    .page-slot-games__promotion-card,
    .page-slot-games__security-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 15px !important;
    }

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

    .page-slot-games__faq-answer p {
        padding-bottom: 15px;
    }
    
    .page-slot-games p, .page-slot-games li {
        font-size: 15px;
    }
}

/* Ensure content area images are not too small */
.page-slot-games__game-image,
.page-slot-games__promotion-image {
    min-width: 200px;
    min-height: 200px;
}

/* Override for images within specific content areas to ensure minimum size */
.page-slot-games__game-card img,
.page-slot-games__promotion-card img {
    width: 100%; /* Ensure it fills the card width */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 200px;
}

/* Image color filter restriction */
.page-slot-games img {
    filter: none; /* Absolutely no filter to change color */
}

/* Content area images CSS size lower bound */
.page-slot-games img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-slot-games img:not(.shared-header img):not(.shared-footer img) {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}