/* style/slot-games.css */

/* --- Base Styles --- */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity, matches default */
}

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

.page-slot-games__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-slot-games__section--intro {
    background-color: #f9f9f9;
}

.page-slot-games__section--games {
    background-color: #ffffff;
}

.page-slot-games__section--promotions {
    background-color: #017439; /* Primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-slot-games__section--guide {
    background-color: #f9f9f9;
}

.page-slot-games__section--tips {
    background-color: #ffffff;
}

.page-slot-games__section--security {
    background-color: #017439; /* Primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-slot-games__section--faq {
    background-color: #f9f9f9;
}

.page-slot-games__section--cta-final .page-slot-games__container {
    background-color: #017439; /* Primary color as background */
    color: #ffffff; /* White text for dark background */
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

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

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

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles */
}

.page-slot-games__section--promotions .page-slot-games__section-title,
.page-slot-games__section--security .page-slot-games__section-title,
.page-slot-games__section--cta-final .page-slot-games__section-title {
    color: #ffffff; /* White for dark sections */
}

.page-slot-games__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.7;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient background */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games__main-title {
    font-size: 48px;
    font-weight: 900;
    color: #017439; /* Brand color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons on mobile */
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-slot-games__btn-register:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-login:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-primary:hover {
    background: #005f2e;
    border-color: #005f2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__center-cta {
    text-align: center;
    margin-top: 40px;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card,
.page-slot-games__tip-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__game-card img,
.page-slot-games__promo-card img,
.page-slot-games__tip-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-slot-games__promo-card img {
    height: 280px; /* Slightly taller for promo images */
}

.page-slot-games__tip-card img {
     /* Slightly shorter for tips images */
}

.page-slot-games__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-slot-games__promo-card .page-slot-games__card-title {
    color: #017439; /* Ensure contrast on white card background */
}

.page-slot-games__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-slot-games__card-title a:hover {
    text-decoration: underline;
}

.page-slot-games__card-text {
    font-size: 16px;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
    align-self: flex-start;
    margin: 0 20px 20px;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 5px;
}

/* --- Guide List --- */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-slot-games__guide-list li {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-slot-games__guide-list li:last-child {
    margin-bottom: 0;
}

.page-slot-games__list-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-slot-games__guide-list p {
    font-size: 16px;
    color: #555555;
    margin: 0;
}

/* --- Security Features --- */
.page-slot-games__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    color: #ffffff;
}

.page-slot-games__security-features li {
    font-size: 18px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    margin-top: 40px;
}

/* FAQ container style */
.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
    padding: 20px !important;
    opacity: 1;
    background: #f0f0f0; /* Lighter background for answer */
    border-radius: 0 0 8px 8px;
    color: #333333;
}

/* Question style */
.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #017439; /* Brand color for questions */
}

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

.page-slot-games__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click events */
    color: inherit; /* Inherit color from parent */
}

/* Toggle icon */
.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Brand color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: #005f2e; /* Darker green when active */
    transform: rotate(45deg); /* Example: rotate to form an 'X' or '−' */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 40px;
    }
    .page-slot-games__description {
        font-size: 18px;
    }
    .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-slot-games__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-slot-games__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-slot-games__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image responsiveness for mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games__section,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__tip-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-slot-games__text-block {
        font-size: 16px;
    }

    .page-slot-games__game-card img,
    .page-slot-games__promo-card img,
    .page-slot-games__tip-card img {
        height: auto; /* Allow height to adjust */
        min-
    }

    .page-slot-games__card-title {
        font-size: 20px;
        margin: 15px 15px 8px;
    }

    .page-slot-games__card-text {
        font-size: 15px;
        padding: 0 15px 15px;
    }

    .page-slot-games__promo-card .page-slot-games__btn-secondary {
        margin: 0 15px 15px;
        padding: 8px 20px;
        font-size: 14px;
    }

    .page-slot-games__guide-list li {
        padding: 20px;
    }

    .page-slot-games__list-title {
        font-size: 20px;
    }

    .page-slot-games__security-features {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-slot-games__security-features li {
        font-size: 16px;
        padding: 15px;
    }

    /* FAQ Mobile */
    .page-slot-games__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-slot-games__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
        margin-bottom: 0;
    }
    
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }

    .page-slot-games__section--cta-final .page-slot-games__container {
        padding: 30px 15px;
    }
}