/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --register-button-text: #000000; /* Adjusted for WCAG AA contrast with #C30808 */
    --login-button-bg: #C30808;
    --login-button-text: #000000; /* Adjusted for WCAG AA contrast with #C30808 */
    --background-color: #FFFFFF;
    --text-color-light-bg: #333333;
    --text-color-dark-bg: #FFFFFF;
    --highlight-color: #FFFF00; /* For text highlights if contrast allows */
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg);
    background-color: var(--background-color);
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-slot-games__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

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

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

.page-slot-games__dark-bg .page-slot-games__section-title::after {
    background-color: var(--secondary-color);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px; /* Base padding, header offset added inline */
    box-sizing: border-box;
}

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

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-color-dark-bg);
    max-width: 900px;
    padding: 20px;
}

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

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: var(--register-button-bg); /* Use specific color for register */
    color: var(--register-button-text); /* Use specific color for register font */
    border: 2px solid var(--register-button-bg);
}

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

.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);
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 80px 0;
}

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

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
}

.page-slot-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: var(--text-color-light-bg);
    padding: 0 15px;
}

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

/* Guide Section */
.page-slot-games__guide-section {
    padding: 80px 0;
}

.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-slot-games__guide-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    padding: 30px;
    position: relative;
    padding-left: 70px; /* Space for step number */
}

.page-slot-games__guide-item::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 20px;
    top: 30px;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

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

.page-slot-games__guide-item-description {
    font-size: 1em;
    color: var(--text-color-light-bg);
}

.page-slot-games__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Advantages Section */
.page-slot-games__advantages-section {
    padding: 80px 0;
}

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

.page-slot-games__advantage-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
}

.page-slot-games__advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
}

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

.page-slot-games__promotion-item {
    background-color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 25px;
    color: var(--text-color-light-bg);
}

.page-slot-games__promotion-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__promotion-description {
    font-size: 1em;
    color: var(--text-color-light-bg);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
}

.page-slot-games__faq-list {
    margin-top: 40px;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

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

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

.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: 20px 25px;
    font-size: 1em;
    color: var(--text-color-light-bg);
    border-top: 1px solid #eee;
    background-color: var(--secondary-color);
}

.page-slot-games__faq-item:not([open]) .page-slot-games__faq-answer {
    display: none;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

/* Global image styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__guide-item-title {
        font-size: 1.4em;
    }
    .page-slot-games__promotion-title {
        font-size: 1.5em;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        height: auto;
        min-height: 70vh;
        padding: 40px 15px !important; /* Adjust padding for mobile */
    }
    .page-slot-games__hero-title {
        font-size: 2.5em;
    }
    .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 {
        padding: 12px 20px;
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__container,
    .page-slot-games__game-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__guide-list,
    .page-slot-games__promotion-list,
    .page-slot-games__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__game-grid,
    .page-slot-games__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__guide-item {
        padding-left: 60px;
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-slot-games__guide-item::before {
        left: 15px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
    .page-slot-games__guide-item-title {
        font-size: 1.2em;
    }
    .page-slot-games__card-image,
    .page-slot-games__advantage-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all images and their containers are responsive */
    .page-slot-games img,
    .page-slot-games__hero-image,
    .page-slot-games__card-image,
    .page-slot-games__advantage-icon {
        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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset to hero */
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 0.9em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__card-title {
        font-size: 1.1em;
    }
    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }
    .page-slot-games__guide-item {
        padding-left: 50px;
    }
    .page-slot-games__guide-item::before {
        left: 10px;
        top: 15px;
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
}