/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

/* Header offset for fixed header */
.page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    position: relative;
    padding: 60px 20px;
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    z-index: 0;
}

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

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

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

/* Section Styling */
.page-slot-games__intro-section,
.page-slot-games__how-to-play,
.page-slot-games__why-choose,
.page-slot-games__cta-section,
.page-slot-games__strategies-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__games-showcase,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: inherit;
}

.page-slot-games__paragraph--extra-margin {
    margin-top: 40px;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

.page-slot-games__btn-primary:hover {
    background-color: #005a2e; /* Darker green on hover */
    border-color: #005a2e;
}

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

/* Custom button colors for Register/Login */
a.page-slot-games__btn-primary[href*="redirect?plink_id"],
a.page-slot-games__btn-secondary[href*="redirect?plink_id"] {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login button text color */
    border-color: #C30808;
}

a.page-slot-games__btn-primary[href*="redirect?plink_id"]:hover,
a.page-slot-games__btn-secondary[href*="redirect?plink_id"]:hover {
    background-color: #a30606; /* Darker red on hover */
    border-color: #a30606;
    color: #FFFF00;
}


.page-slot-games__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-slot-games__game-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    padding-bottom: 20px;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    margin: 0 15px 10px 15px;
    color: #017439; /* Brand primary color for titles */
}

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

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

.page-slot-games__card-description {
    font-size: 0.95em;
    margin: 0 15px 20px 15px;
    color: #555555;
}

.page-slot-games__game-card .page-slot-games__btn-primary {
    margin: 0 15px;
    width: calc(100% - 30px);
    text-align: center;
}

/* How To Play Steps */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__step-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

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

/* Promotions Section */
.page-slot-games__promo-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 50px auto 30px auto;
    text-align: left;
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-content {
    padding: 30px;
}

.page-slot-games__promo-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games__promo-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 25px;
}

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

.page-slot-games__list-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-slot-games__faq-item {
    background-color: #ffffff;
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden; /* For smooth transition */
}

.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: #017439;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: none; /* Remove border when open */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

/* details tag specific styling to remove default marker */
.page-slot-games__faq-item summary {
    list-style: none;
}
.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

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

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

    /* Fixed header offset for mobile */
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-slot-games__hero-title {
        font-size: 2.5em;
    }

    .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 a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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

    .page-slot-games__intro-section,
    .page-slot-games__games-showcase,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions-section,
    .page-slot-games__why-choose,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section,
    .page-slot-games__strategies-section {
        padding: 40px 0;
    }

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

    /* Image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__game-thumbnail {
        height: auto !important; /* Allow height to adjust */
    }

    /* Card adjustments */
    .page-slot-games__game-card,
    .page-slot-games__step-card,
    .page-slot-games__list-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__promo-card {
        flex-direction: column;
        text-align: center;
    }

    .page-slot-games__promo-content {
        padding: 20px;
    }

    .page-slot-games__promo-title {
        font-size: 1.5em;
    }
    
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
}