/* style/slot-games-popular.css */
.page-slot-games-popular {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--neon-dark-bg); /* Inherit from shared.css, assumed dark */
}

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

.page-slot-games-popular__center {
    text-align: center;
}

/* Hero Section */
.page-slot-games-popular__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #017439; /* Use brand color for hero background */
    color: #ffffff;
    overflow: hidden;
    min-height: 600px;
}

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

.page-slot-games-popular__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image to ensure text contrast */
}

.page-slot-games-popular__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games-popular__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* General Section Styling */
.page-slot-games-popular__section {
    padding: 80px 0;
}

.page-slot-games-popular__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games-popular__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games-popular__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFF00; /* Highlight important titles */
}

.page-slot-games-popular__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Buttons */
.page-slot-games-popular__btn-primary,
.page-slot-games-popular__btn-secondary,
.page-slot-games-popular__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-slot-games-popular__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-slot-games-popular__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

/* Features Grid */
.page-slot-games-popular__features-grid,
.page-slot-games-popular__game-types-grid,
.page-slot-games-popular__promotions-grid,
.page-slot-games-popular__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games-popular__feature-item,
.page-slot-games-popular__game-type-card,
.page-slot-games-popular__promotion-card,
.page-slot-games-popular__step-item {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-slot-games-popular__feature-item:hover,
.page-slot-games-popular__game-type-card:hover,
.page-slot-games-popular__promotion-card:hover,
.page-slot-games-popular__step-item:hover {
    transform: translateY(-10px);
}

.page-slot-games-popular__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games-popular__feature-title,
.page-slot-games-popular__game-type-title,
.page-slot-games-popular__promotion-title,
.page-slot-games-popular__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-slot-games-popular__feature-text,
.page-slot-games-popular__game-type-text,
.page-slot-games-popular__promotion-text,
.page-slot-games-popular__step-text {
    font-size: 1em;
    color: #333333;
}

.page-slot-games-popular__game-type-image,
.page-slot-games-popular__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games-popular__step-link {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games-popular__step-link:hover {
    text-decoration: underline;
}

/* Strategy List */
.page-slot-games-popular__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games-popular__strategy-item {
    background-color: #ffffff;
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-slot-games-popular__strategy-heading {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games-popular__strategy-text {
    font-size: 1em;
}

.page-slot-games-popular__strategy-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 50px auto 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ */
.page-slot-games-popular__faq-list {
    margin-top: 40px;
}

.page-slot-games-popular__faq-item {
    background-color: #ffffff;
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games-popular__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-slot-games-popular__faq-question:hover {
    background-color: #f0f0f0;
}

.page-slot-games-popular__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-slot-games-popular__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games-popular__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-slot-games-popular__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #333333;
}

.page-slot-games-popular__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Bottom CTA */
.page-slot-games-popular__cta-bottom {
    padding: 60px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games-popular__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlight important titles */
}

.page-slot-games-popular__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-slot-games-popular__hero-title {
        font-size: 3em;
    }
    .page-slot-games-popular__section-title {
        font-size: 2em;
    }
    .page-slot-games-popular__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-slot-games-popular__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    
    .page-slot-games-popular__hero-image-wrapper {
        position: relative;
        height: 250px;
        width: 100%;
        margin-bottom: 30px;
    }

    .page-slot-games-popular__hero-image {
        position: relative;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        filter: brightness(0.6);
    }

    .page-slot-games-popular__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-slot-games-popular__btn-primary,
    .page-slot-games-popular__btn-secondary,
    .page-slot-games-popular__cta-button,
    .page-slot-games-popular a[class*="button"],
    .page-slot-games-popular 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-popular__hero-buttons,
    .page-slot-games-popular__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games-popular__section {
        padding: 40px 0;
    }

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

    .page-slot-games-popular__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-slot-games-popular__features-grid,
    .page-slot-games-popular__game-types-grid,
    .page-slot-games-popular__promotions-grid,
    .page-slot-games-popular__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-slot-games-popular__feature-item,
    .page-slot-games-popular__game-type-card,
    .page-slot-games-popular__promotion-card,
    .page-slot-games-popular__step-item {
        padding: 20px;
    }

    .page-slot-games-popular__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-slot-games-popular__game-type-image,
    .page-slot-games-popular__promotion-image {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-slot-games-popular__strategy-image {
        margin: 30px auto 0;
        max-width: 100% !important;
        width: 100% !important;
    }

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

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

    /* Ensure all images are responsive */
    .page-slot-games-popular img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games-popular__section,
    .page-slot-games-popular__card,
    .page-slot-games-popular__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games-popular__faq-question,
    .page-slot-games-popular__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}