/* style/slot-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space before footer */
}

/* Container for consistent spacing */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-slot-games__section-title {
    font-size: 36px;
    color: #ffffff; /* White text on dark background */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Text blocks within sections */
.page-slot-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
    text-align: justify;
}

/* Links within content */
.page-slot-games__text-block a,
.page-slot-games__list-item a,
.page-slot-games__faq-answer a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-slot-games__text-block a:hover,
.page-slot-games__list-item a:hover,
.page-slot-games__faq-answer a:hover {
    color: #C30808; /* Red on hover */
    text-decoration: none;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(135deg, #017439 0%, #004d2b 100%); /* Brand color gradient */
    overflow: hidden;
    min-height: 600px; /* Ensure hero has a minimum height */
}

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

.page-slot-games__hero-title {
    font-size: 58px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-description {
    font-size: 22px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Login font color */
    border: 2px solid #FFFF00;
}

.page-slot-games__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* --- About Section --- */
.page-slot-games__about-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- Features Section --- */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Even darker background */
    color: #ffffff;
}

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

.page-slot-games__feature-card {
    background-color: #1e1e1e; /* Dark card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-slot-games__card-image {
    width: 100%;
    max-width: 400px; /* Constraint card image size */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.page-slot-games__card-title {
    font-size: 24px;
    color: #FFFF00; /* Yellow title for cards */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-description {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* --- Video Section --- */
.page-slot-games__video-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer; /* Indicate video is clickable */
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* --- Tips Section --- */
.page-slot-games__tips-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__list-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__list-title {
    font-size: 22px;
    color: #017439; /* Brand green for list titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__list-item p {
    font-size: 17px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* --- CTA Section --- */
.page-slot-games__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.page-slot-games__cta-section .page-slot-games__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand green background for FAQ */
    color: #ffffff;
}

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2); /* Darker background for question */
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-title {
    font-size: 19px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFFF00; /* Yellow toggle icon */
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X or minus */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-slot-games__faq-answer p {
    font-size: 17px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}


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

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

    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    .page-slot-games__hero-title {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .page-slot-games__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 18px;
        padding: 12px 25px;
    }

    .page-slot-games__about-section,
    .page-slot-games__features-section,
    .page-slot-games__video-section,
    .page-slot-games__tips-section,
    .page-slot-games__cta-section,
    .page-slot-games__faq-section {
        padding: 60px 0;
    }

    .page-slot-games__features-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__card-image,
    .page-slot-games__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Added for explicit override */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Must be 100% of wrapper */
        object-fit: cover !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games__faq-question {
        padding: 15px 20px;
    }

    .page-slot-games__faq-title {
        font-size: 17px;
    }

    .page-slot-games__faq-toggle {
        font-size: 24px;
    }

    .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-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Tablet devices (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-slot-games__container {
        padding: 0 30px;
    }

    .page-slot-games__section-title {
        font-size: 32px;
    }

    .page-slot-games__hero-title {
        font-size: 48px;
    }

    .page-slot-games__hero-description {
        font-size: 20px;
    }

    .page-slot-games__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}