/* style/slot-games.css */

/* Custom Colors */
:root {
    --cm88p-primary-color: #11A84E;
    --cm88p-secondary-color: #22C768;
    --cm88p-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --cm88p-card-bg: #11271B;
    --cm88p-background: #08160F;
    --cm88p-text-main: #F2FFF6;
    --cm88p-text-secondary: #A7D9B8;
    --cm88p-border: #2E7A4E;
    --cm88p-glow: #57E38D;
    --cm88p-gold: #F2C14E;
    --cm88p-divider: #1E3A2A;
    --cm88p-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--cm88p-text-main); /* Default text color for the page */
    background-color: var(--cm88p-background); /* Ensure consistent background */
}

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3, .page-slot-games h4, .page-slot-games h5, .page-slot-games h6 {
    color: var(--cm88p-text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-slot-games h1 {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-slot-games h2 {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    text-align: center;
    margin-bottom: 30px;
    color: var(--cm88p-gold);
}

.page-slot-games h3 {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--cm88p-text-main);
}

.page-slot-games p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--cm88p-text-secondary);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-slot-games__hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 40px;
}

.page-slot-games__hero-content {
    text-align: center;
    background: var(--cm88p-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cm88p-border);
}

.page-slot-games__main-title {
    color: var(--cm88p-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--cm88p-text-secondary);
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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;
    font-size: 1.1em;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--cm88p-button-gradient);
    color: var(--cm88p-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--cm88p-secondary-color);
    border: 2px solid var(--cm88p-secondary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--cm88p-secondary-color);
    color: var(--cm88p-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.3);
}

/* Intro Section */
.page-slot-games__intro-section {
    padding: 80px 0;
    background-color: var(--cm88p-background);
}

.page-slot-games__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__text-block p {
    color: var(--cm88p-text-secondary);
}

.page-slot-games__image-block {
    text-align: center;
}

.page-slot-games__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--cm88p-border);
    min-width: 200px;
    min-height: 200px;
}

/* Benefits Section */
.page-slot-games__benefits-section {
    padding: 80px 0;
    background-color: var(--cm88p-deep-green);
    color: var(--cm88p-text-main);
}

.page-slot-games__benefits-section h2 {
    color: var(--cm88p-gold);
}

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

.page-slot-games__benefit-card {
    background-color: var(--cm88p-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cm88p-border);
}

.page-slot-games__benefit-card .page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__benefit-card .page-slot-games__card-title {
    color: var(--cm88p-text-main);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-slot-games__benefit-card .page-slot-games__card-description {
    color: var(--cm88p-text-secondary);
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 80px 0;
    background-color: var(--cm88p-background);
}

.page-slot-games__section-subtitle {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--cm88p-text-secondary);
}

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

.page-slot-games__type-card {
    background-color: var(--cm88p-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cm88p-border);
    text-align: center;
}

.page-slot-games__type-card .page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__type-card .page-slot-games__card-title {
    color: var(--cm88p-text-main);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-slot-games__type-card .page-slot-games__card-description {
    color: var(--cm88p-text-secondary);
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--cm88p-deep-green);
    color: var(--cm88p-text-main);
}

.page-slot-games__how-to-play-section h2 {
    color: var(--cm88p-gold);
}

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

.page-slot-games__step-card {
    background-color: var(--cm88p-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cm88p-border);
}

.page-slot-games__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--cm88p-gold);
    margin-bottom: 15px;
    line-height: 1;
}

.page-slot-games__step-title {
    color: var(--cm88p-text-main);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-slot-games__step-description {
    color: var(--cm88p-text-secondary);
    margin-bottom: 20px;
}

.page-slot-games__btn-text {
    display: inline-block;
    color: var(--cm88p-secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid var(--cm88p-secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-slot-games__btn-text:hover {
    background-color: var(--cm88p-secondary-color);
    color: var(--cm88p-text-main);
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: var(--cm88p-background);
}

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

.page-slot-games__promo-card {
    background-color: var(--cm88p-card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cm88p-border);
    overflow: hidden;
}

.page-slot-games__promo-card .page-slot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__promo-title {
    color: var(--cm88p-text-main);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-slot-games__promo-description {
    color: var(--cm88p-text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--cm88p-deep-green);
    color: var(--cm88p-text-main);
}

.page-slot-games__faq-section h2 {
    color: var(--cm88p-gold);
}

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

.page-slot-games__faq-item {
    background-color: var(--cm88p-card-bg);
    border: 1px solid var(--cm88p-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--cm88p-text-main);
    list-style: none;
    user-select: none;
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--cm88p-gold);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--cm88p-text-secondary);
    line-height: 1.6;
    font-size: 1em;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: var(--cm88p-deep-green);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--cm88p-background);
    text-align: center;
}

.page-slot-games__cta-final-section h2 {
    color: var(--cm88p-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-slot-games__grid-2-cols {
        grid-template-columns: 1fr;
    }
    .page-slot-games__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
    .page-slot-games__hero-content {
        padding: 25px;
    }
    .page-slot-games__hero-content-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .page-slot-games h1 {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-slot-games h2 {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-slot-games h3 {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }

    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }
    .page-slot-games__hero-content-wrapper {
        padding: 0 15px;
    }
    .page-slot-games__hero-content {
        padding: 20px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__intro-section,
    .page-slot-games__benefits-section,
    .page-slot-games__game-types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }

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

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

    /* Ensure all image containers are responsive */
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__image-block,
    .page-slot-games__benefit-card,
    .page-slot-games__type-card,
    .page-slot-games__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__benefit-card .page-slot-games__card-image,
    .page-slot-games__type-card .page-slot-games__card-image,
    .page-slot-games__promo-card .page-slot-games__card-image {
        height: auto !important; /* Allow height to adjust */
    }

    /* Video section (if present) top padding */
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* FAQ item padding */
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
}