/* style/slot-games.css */

/* Base styles for the slot games page */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-slot-games__main-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.2em;
    margin-bottom: 30px;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
    filter: brightness(0.7); /* Darken image for text readability */
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-register,
.page-slot-games__btn-view-promo,
.page-slot-games__btn-faq {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

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

.page-slot-games__btn-primary:hover {
    background-color: #e02a2a;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-slot-games__btn-play,
.page-slot-games__btn-register,
.page-slot-games__btn-view-promo,
.page-slot-games__btn-faq {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__btn-play:hover,
.page-slot-games__btn-register:hover,
.page-slot-games__btn-view-promo:hover,
.page-slot-games__btn-faq:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-slot-games__view-all-promos {
    margin-top: 40px;
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__why-choose-section,
.page-slot-games__popular-games-section,
.page-slot-games__guide-section,
.page-slot-games__strategy-section,
.page-slot-games__promotions-section,
.page-slot-games__security-support-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

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

/* Background & Text Color Management */
.page-slot-games__dark-bg {
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__card-title,
.page-slot-games__light-bg .page-slot-games__game-title,
.page-slot-games__light-bg .page-slot-games__guide-step-title,
.page-slot-games__light-bg .page-slot-games__strategy-title,
.page-slot-games__light-bg .page-slot-games__faq-question {
    color: #017439; /* Brand primary color for titles on light background */
}

/* Images within content sections */
.page-slot-games__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-slot-games__feature-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-slot-games__feature-card .page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-slot-games__feature-card .page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.8;
}

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

.page-slot-games__game-card {
    background-color: #1a1a2e; /* Dark background for game cards */
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-card .page-slot-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin: 0; /* Override default margin */
    border-radius: 0; /* Remove border-radius for full width image */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__game-card .page-slot-games__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #ffffff; /* White title on dark card */
}

.page-slot-games__game-card .page-slot-games__game-description {
    font-size: 0.95em;
    margin: 0 15px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-slot-games__game-card .page-slot-games__btn-play {
    margin: 0 15px 20px;
    width: calc(100% - 30px); /* Adjust button width within card */
}

/* Guide Section */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__guide-step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-slot-games__guide-item p {
    margin-bottom: 15px;
}

.page-slot-games__guide-item .page-slot-games__btn-register {
    margin-top: 10px;
}

/* Strategy Section */
.page-slot-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__strategy-item {
    background-color: #f8f9fa; /* Light background for strategy items */
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-slot-games__strategy-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439; /* Brand primary color for titles */
}

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

.page-slot-games__promo-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-slot-games__promo-card .page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-slot-games__promo-card .page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.8;
}

.page-slot-games__promo-card .page-slot-games__btn-view-promo {
    margin-top: 20px;
}

/* Security and Support Section */
.page-slot-games__support-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.page-slot-games__security-list {
    list-style: none;
    padding: 0;
    text-align: left;
    flex: 1;
    min-width: 280px;
}

.page-slot-games__security-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #333333; /* Dark text on light background */
}

.page-slot-games__security-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439; /* Brand color for checkmark */
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff; /* White text for question on dark background */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0; /* Slightly off-white for answer text */
}

.page-slot-games__faq-answer p {
    margin-bottom: 15px;
}

.page-slot-games__faq-answer .page-slot-games__btn-faq {
    margin-top: 10px;
}

/* Conclusion Section */
.page-slot-games__conclusion-section .page-slot-games__cta-buttons {
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 2.8em;
    }

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

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

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games__btn-register,
.page-slot-games__btn-view-promo,
    .page-slot-games__btn-faq {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-slot-games__text-block {
        font-size: 0.95em;
    }

    /* Images */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }

    /* Ensure all image containers are responsive */
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__introduction-section,
    .page-slot-games__why-choose-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__guide-section,
    .page-slot-games__strategy-section,
    .page-slot-games__promotions-section,
    .page-slot-games__security-support-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section,
    .page-slot-games__game-card,
    .page-slot-games__support-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__game-card .page-slot-games__game-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-slot-games__security-list {
        margin-top: 20px;
    }

    .page-slot-games__security-item {
        font-size: 1em;
    }

    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }

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