/* style/slot-games.css */

/* Base styles for the page content area */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly white background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Sections */
.page-slot-games__section {
    padding: 60px 20px;
    text-align: center;
}

.page-slot-games__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #ffffff; /* White text for dark background */
}

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

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for containers */
    box-sizing: border-box;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section (dark or light) */
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

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

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Essential for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%;
}

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

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

.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__cta-buttons--center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-slot-games__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439; /* Brand main color for titles */
    text-align: center;
}

.page-slot-games__card-text {
    font-size: 1em;
    text-align: center;
}

/* Game Types Section */
.page-slot-games__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__type-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-slot-games__type-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
}

.page-slot-games__type-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Push image to bottom */
}

.page-slot-games__type-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto; /* Aligns image to bottom */
    min-height: 200px; /* Minimum size for content images */
}

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

.page-slot-games__step-item {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    transition: transform 0.2s ease;
}

.page-slot-games__step-item:hover {
    transform: translateY(-3px);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    font-size: 0.95em;
}

/* Promotions Section */
.page-slot-games__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}

.page-slot-games__promotion-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* App Download Section */
.page-slot-games__app-download-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-slot-games__app-text-content {
    flex: 1;
}

.page-slot-games__app-features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-slot-games__app-features-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #ffffff;
}

.page-slot-games__app-features-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFF00; /* Highlight checkmark */
}

.page-slot-games__app-image-wrapper {
    flex: 0 0 auto;
    width: 400px;
    max-width: 100%;
    text-align: center;
}

.page-slot-games__app-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

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

.page-slot-games__faq-question:hover {
    background-color: #e6f7ed; /* Lighter green on hover */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808; /* Red for toggle */
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus to X/Minus */
}

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

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

.page-slot-games__faq-answer p {
    margin: 0;
}

/* Conclusion Section */
.page-slot-games__conclusion-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Responsive Design --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-slot-games__advantages-grid,
    .page-slot-games__grid-layout,
    .page-slot-games__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-slot-games__app-download-content {
        flex-direction: column;
        text-align: center;
    }

    .page-slot-games__app-image-wrapper {
        width: 100%;
        margin-top: 30px;
    }
}

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

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