/* style/slot-games.css */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF;
}

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

.page-slot-games__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section background */
}

.page-slot-games__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-promo,
.page-slot-games__btn-step {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: #017439;
    color: #ffffff; /* WCAG AA compliant */
    border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
    background-color: #025c2d;
    border-color: #025c2d;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-slot-games__btn-promo,
.page-slot-games__btn-step {
    background-color: #C30808; /* Custom color for register/login */
    color: #ffffff; /* WCAG AA compliant: #C30808 (R:195 G:8 B:8) vs #FFFFFF (R:255 G:255 B:255) -> 4.6:1 */
    border: 2px solid #C30808;
}

.page-slot-games__btn-promo:hover,
.page-slot-games__btn-step:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-slot-games__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* How to Play */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-slot-games__step-item {
    background-color: #025c2d;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-slot-games__step-text a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-slot-games__step-text a:hover {
    color: #fff;
}

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

.page-slot-games__promo-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__promo-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__promo-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Tips */
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 900px;
    margin: 50px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-slot-games__tips-item {
    background-color: #025c2d;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__tips-title {
    font-size: 1.7em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-slot-games__tips-text {
    font-size: 1.05em;
    color: #e0e0e0;
}

.page-slot-games__tips-text a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-slot-games__tips-text a:hover {
    color: #fff;
}

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

.page-slot-games__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fefefe;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0fdf5;
    transition: background-color 0.3s ease;
}

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

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

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: #555555;
}

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

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

.page-slot-games__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
    color: #025c2d;
}

/* CTA Bottom */
.page-slot-games__cta-bottom {
    padding: 80px 0;
}

.page-slot-games__cta-content {
    max-width: 900px;
}

.page-slot-games__cta-title {
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-slot-games__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

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

    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .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;
        width: 100%;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-promo,
    .page-slot-games__btn-step {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

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

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

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

    .page-slot-games__feature-title,
    .page-slot-games__promo-title,
    .page-slot-games__step-title,
    .page-slot-games__tips-title {
        font-size: 1.3em;
    }

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

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

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

    .page-slot-games__cta-bottom {
        padding: 60px 0;
    }

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

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

    /* Image, Video, Container responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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__hero-section,
    .page-slot-games__hero-image-wrapper,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.6em;
    }
    .page-slot-games__cta-title {
        font-size: 1.8em;
    }
    .page-slot-games__feature-icon {
        max-width: 180px;
    }
}