/* style/slot-games.css */

/* --- General Page Styles --- */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background #FFFFFF */
}

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

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

.page-slot-games__section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #017439; /* Brand primary color */
}

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

/* --- 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); /* Fixed header spacing */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Gradient background for visual appeal */
    overflow: hidden; /* Ensure no overflow from image */
}

.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-main {
    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.2);
    margin-bottom: 40px;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text readability */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__hero-description {
    font-size: 20px;
    color: #333333;
    margin-bottom: 30px;
}

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

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

.page-slot-games__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    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; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
    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);
}

/* --- Introduction Section --- */
.page-slot-games__introduction {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-slot-games__image-content {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__image-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* --- Game Types Section --- */
.page-slot-games__dark-section {
    background-color: #017439; /* Brand primary color for dark background */
    color: #ffffff; /* White text for contrast */
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-slot-games__dark-section .page-slot-games__text-block {
    color: #f0f0f0;
}

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

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

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

.page-slot-games__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-slot-games__card-title {
    font-size: 22px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slot-games__card-text {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

.page-slot-games__card-link {
    display: inline-block;
    margin-top: 15px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-slot-games__card-link:hover {
    color: #005a2e;
    text-decoration: underline;
}

.page-slot-games__cta-section {
    margin-top: 40px;
}

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

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

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

.page-slot-games__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* --- How to Play Section --- */
.page-slot-games__how-to-play {
    background-color: #f9f9f9;
    color: #333333;
}

.page-slot-games__list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-slot-games__list-item {
    background-color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #444444;
}

.page-slot-games__list-item strong {
    color: #017439;
}

.page-slot-games__list-item a {
    color: #C30808; /* Login/Register link color */
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__list-item a:hover {
    text-decoration: underline;
}

/* --- Promotions Section --- */
.page-slot-games__promotions {
    background-color: #017439;
    color: #ffffff;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f0f0f0;
    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;
}

.page-slot-games__faq-question:hover {
    background: #e5e5e5;
    border-color: #d5d5d5;
}

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

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-question a {
    color: #017439; /* Link color within FAQ question */
    text-decoration: none;
    pointer-events: auto; /* Allow links inside h3 to be clickable */
}

.page-slot-games__faq-question a:hover {
    text-decoration: underline;
}

.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    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: #C30808;
    transform: rotate(180deg); /* Optional: rotate for visual feedback */
}

.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 25px;
    opacity: 0;
    background: #ffffff;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid #e0e0e0;
    border-top: none;
}

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

.page-slot-games__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__faq-answer a:hover {
    text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-slot-games__cta-final {
    padding: 80px 0;
    background: linear-gradient(90deg, #017439, #005a2e); /* Darker gradient */
    color: #ffffff;
}

.page-slot-games__cta-final .page-slot-games__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__section-title--white {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 20px;
}

.page-slot-games__text-block--white {
    color: #f0f0f0;
    font-size: 20px;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 42px;
    }
    .page-slot-games__hero-description {
        font-size: 18px;
    }
    .page-slot-games__section-title {
        font-size: 32px;
    }
    .page-slot-games__text-block {
        font-size: 17px;
    }
    .page-slot-games__card img {
        
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-image-main {
        border-radius: 8px;
        margin-bottom: 30px;
    }
    .page-slot-games__hero-content {
        padding: 25px 20px;
    }
    .page-slot-games__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure button container takes full width */
    }
    .page-slot-games__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-slot-games__text-block {
        font-size: 15px;
        padding: 0 15px;
    }
    .page-slot-games__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__card img {
        width: 100%;
        height: auto !important; /* Ensure image adapts to width */
        max-width: 100% !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-slot-games__list {
        margin: 30px auto;
        padding: 0 15px;
    }
    .page-slot-games__list-item {
        padding: 15px 20px;
        font-size: 15px;
    }
    .page-slot-games__faq-list {
        margin: 30px auto;
        padding: 0 15px;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 16px;
    }
    .page-slot-games__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px !important;
    }
    .page-slot-games__faq-answer p {
        font-size: 15px;
    }
    .page-slot-games__cta-final {
        padding: 60px 20px;
    }
    .page-slot-games__section-title--white {
        font-size: 30px;
    }
    .page-slot-games__text-block--white {
        font-size: 17px;
    }
    /* Ensure all images inside .page-slot-games are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__container,
    .page-slot-games__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 28px;
    }
    .page-slot-games__hero-description {
        font-size: 15px;
    }
    .page-slot-games__section-title {
        font-size: 24px;
    }
    .page-slot-games__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 15px;
    }
    .page-slot-games__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    .page-slot-games__section-title--white {
        font-size: 26px;
    }
    .page-slot-games__text-block--white {
        font-size: 16px;
    }
}