/* style/slot-games-how-to-play.css */

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

/* Base Styles for the Page */
.page-slot-games-how-to-play {
    background-color: var(--oqen88-background);
    color: var(--oqen88-text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

.page-slot-games-how-to-play__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-slot-games-how-to-play__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: var(--oqen88-deep-green); /* Use a darker green for the hero section background */
}

.page-slot-games-how-to-play__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.page-slot-games-how-to-play__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-slot-games-how-to-play__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
    color: var(--oqen88-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games-how-to-play__description {
    font-size: 1.1em;
    color: var(--oqen88-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games-how-to-play__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Buttons */
.page-slot-games-how-to-play__btn-primary,
.page-slot-games-how-to-play__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games-how-to-play__btn-primary {
    background: var(--oqen88-button-gradient);
    color: var(--oqen88-text-main);
    border: 2px solid transparent;
}

.page-slot-games-how-to-play__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    box-shadow: 0 0 15px var(--oqen88-glow);
}

.page-slot-games-how-to-play__btn-secondary {
    background-color: transparent;
    color: var(--oqen88-primary);
    border: 2px solid var(--oqen88-primary);
}

.page-slot-games-how-to-play__btn-secondary:hover {
    background-color: var(--oqen88-primary);
    color: var(--oqen88-text-main);
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* Section Titles */
.page-slot-games-how-to-play__section-title {
    font-size: 2.2em;
    color: var(--oqen88-gold);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-weight: 600;
}

/* Text Blocks */
.page-slot-games-how-to-play__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--oqen88-text-secondary);
}

.page-slot-games-how-to-play__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-slot-games-how-to-play__list,
.page-slot-games-how-to-play__numbered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--oqen88-text-main);
}

.page-slot-games-how-to-play__numbered-list {
    list-style-type: decimal;
}

.page-slot-games-how-to-play__list-item {
    margin-bottom: 10px;
    color: var(--oqen88-text-secondary);
}

.page-slot-games-how-to-play__list-item strong {
    color: var(--oqen88-text-main);
}

.page-slot-games-how-to-play__sub-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.page-slot-games-how-to-play a {
    color: var(--oqen88-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games-how-to-play a:hover {
    color: var(--oqen88-gold);
    text-decoration: underline;
}

/* Card Grid */
.page-slot-games-how-to-play__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-slot-games-how-to-play__card {
    background-color: var(--oqen88-card-bg);
    border: 1px solid var(--oqen88-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--oqen88-text-secondary);
}

.page-slot-games-how-to-play__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--oqen88-glow);
}

.page-slot-games-how-to-play__card-title {
    font-size: 1.5em;
    color: var(--oqen88-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games-how-to-play__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Dark Sections */
.page-slot-games-how-to-play__dark-section {
    background-color: var(--oqen88-deep-green);
    color: var(--oqen88-text-main);
    padding: 60px 0;
}

.page-slot-games-how-to-play__dark-section .page-slot-games-how-to-play__section-title {
    color: var(--oqen88-gold);
}

.page-slot-games-how-to-play__dark-section .page-slot-games-how-to-play__text-block {
    color: var(--oqen88-text-secondary);
}

/* CTA Center */
.page-slot-games-how-to-play__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-slot-games-how-to-play__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games-how-to-play__faq-item {
    background-color: var(--oqen88-card-bg);
    border: 1px solid var(--oqen88-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--oqen88-text-main);
}

.page-slot-games-how-to-play__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--oqen88-gold);
    cursor: pointer;
    background-color: var(--oqen88-deep-green);
    border-bottom: 1px solid var(--oqen88-divider);
}

.page-slot-games-how-to-play__faq-item[open] .page-slot-games-how-to-play__faq-question {
    border-bottom: 1px solid var(--oqen88-border);
}

.page-slot-games-how-to-play__faq-qtext {
    flex-grow: 1;
}

.page-slot-games-how-to-play__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--oqen88-gold);
    transition: transform 0.3s ease;
}

.page-slot-games-how-to-play__faq-item[open] .page-slot-games-how-to-play__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-slot-games-how-to-play__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--oqen88-text-secondary);
    line-height: 1.7;
}

.page-slot-games-how-to-play__faq-answer p {
    margin-bottom: 10px;
}

.page-slot-games-how-to-play__faq-answer a {
    color: var(--oqen88-glow);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games-how-to-play__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-slot-games-how-to-play__section-title {
        font-size: 2em;
    }

    .page-slot-games-how-to-play__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-slot-games-how-to-play {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games-how-to-play__container {
        padding: 0 15px;
    }

    .page-slot-games-how-to-play__hero-section {
        padding-bottom: 30px;
    }

    .page-slot-games-how-to-play__hero-image {
        margin-bottom: 20px;
    }

    .page-slot-games-how-to-play__main-title {
        font-size: clamp(2em, 7vw, 2.5em) !important; /* Mobile specific font size */
        margin-bottom: 10px;
    }

    .page-slot-games-how-to-play__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-slot-games-how-to-play__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-slot-games-how-to-play__btn-primary,
    .page-slot-games-how-to-play__btn-secondary {
        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-how-to-play__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding-top: 30px;
    }

    .page-slot-games-how-to-play__text-block {
        font-size: 0.95em;
    }

    .page-slot-games-how-to-play__list,
    .page-slot-games-how-to-play__numbered-list {
        margin-left: 20px;
    }

    .page-slot-games-how-to-play__grid-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games-how-to-play__card {
        padding: 20px;
    }

    .page-slot-games-how-to-play__card-title {
        font-size: 1.3em;
    }

    .page-slot-games-how-to-play__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-slot-games-how-to-play__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Mobile image responsive rules */
    .page-slot-games-how-to-play img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games-how-to-play__section,
    .page-slot-games-how-to-play__card,
    .page-slot-games-how-to-play__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games-how-to-play__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure images meet minimum size requirements for desktop */
.page-slot-games-how-to-play__hero-image,
.page-slot-games-how-to-play__image-content {
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}
/* Ensure content area images do not get smaller than 200px */
.page-slot-games-how-to-play__terminology-section img,
.page-slot-games-how-to-play__types-section img,
.page-slot-games-how-to-play__tips-section img {
    width: auto; /* Allow natural width or max-width: 100% */
    max-width: 800px; /* Example max width */
    min-width: 200px; /* Enforce min width */
    height: auto;
    min-height: 200px; /* Enforce min height */
}

/* No CSS filter for images */
.page-slot-games-how-to-play img {
    filter: none !important;
}