/* General styles */
.page-slot-games-popular {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-slot-games-popular__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games-popular__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-slot-games-popular__section-title {
    font-size: 36px;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games-popular__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
}

.page-slot-games-popular__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games-popular__hero-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-slot-games-popular__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games-popular__main-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: #F0F0F0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-slot-games-popular__btn-register {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom color for Register font */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games-popular__btn-register:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular__btn-login {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom color for Login */
    color: #FFFF00; /* Custom color for Login font */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #FFFF00;
    cursor: pointer;
}

.page-slot-games-popular__btn-login:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular__btn-play,
.page-slot-games-popular__btn-view-promo,
.page-slot-games-popular__btn-all-promos,
.page-slot-games-popular__btn-browse-games {
    display: inline-block;
    padding: 12px 30px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games-popular__btn-play:hover,
.page-slot-games-popular__btn-view-promo:hover,
.page-slot-games-popular__btn-all-promos:hover,
.page-slot-games-popular__btn-browse-games:hover {
    background: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games-popular__btn-small-register {
    display: inline-block;
    padding: 8px 20px;
    background: #C30808;
    color: #FFFF00;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games-popular__btn-small-register:hover {
    background: #a30606;
    transform: translateY(-1px);
}

.page-slot-games-popular__btn-small-deposit,
.page-slot-games-popular__btn-small-browse,
.page-slot-games-popular__btn-small-play {
    display: inline-block;
    padding: 8px 20px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games-popular__btn-small-deposit:hover,
.page-slot-games-popular__btn-small-browse:hover,
.page-slot-games-popular__btn-small-play:hover {
    background: #005f2e;
    transform: translateY(-1px);
}

/* Introduction Section */
.page-slot-games-popular__introduction p {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 15px auto;
    text-align: left;
}
.page-slot-games-popular__introduction p strong {
    color: #017439;
}

/* Featured Games Grid */
.page-slot-games-popular__featured-games {
    background-color: #f0f8f0; /* Light green tint */
}

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

.page-slot-games-popular__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games-popular__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-slot-games-popular__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}
.page-slot-games-popular__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-slot-games-popular__card-title a:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-slot-games-popular__card-description {
    font-size: 15px;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Ensures buttons align at bottom */
}

/* How to Play Section */
.page-slot-games-popular__how-to-play .page-slot-games-popular__section-title {
    margin-bottom: 40px;
}

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

.page-slot-games-popular__step-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games-popular__step-item img {
    width: 100%;
     /* Fixed height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games-popular__step-title {
    font-size: 20px;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games-popular__step-item p {
    font-size: 15px;
    color: #666666;
    flex-grow: 1;
}

/* Strategy Section */
.page-slot-games-popular__strategy {
    background-color: #f9f9f9;
}

.page-slot-games-popular__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
}

.page-slot-games-popular__text-content {
    flex: 2;
}

.page-slot-games-popular__text-content p {
    font-size: 17px;
    margin-bottom: 20px;
}

.page-slot-games-popular__strategy-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #444444;
}

.page-slot-games-popular__strategy-list li {
    margin-bottom: 10px;
}

.page-slot-games-popular__strategy-list li strong {
    color: #017439;
}

.page-slot-games-popular__image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure image has minimum width */
}

.page-slot-games-popular__image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-slot-games-popular__promotions {
    background-color: #e6ffe6; /* Lighter green tint */
}

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

.page-slot-games-popular__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games-popular__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-slot-games-popular__promo-card .page-slot-games-popular__card-title {
    color: #017439;
}
.page-slot-games-popular__promo-card .page-slot-games-popular__card-title a {
    color: #017439;
}
.page-slot-games-popular__promo-card .page-slot-games-popular__card-title a:hover {
    color: #005f2e;
}

.page-slot-games-popular__promo-card .page-slot-games-popular__card-description {
    flex-grow: 1;
}

.page-slot-games-popular__cta-bottom {
    margin-top: 50px;
}

/* Why Choose Section */
.page-slot-games-popular__why-choose .page-slot-games-popular__section-title {
    margin-bottom: 40px;
}

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

.page-slot-games-popular__feature-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games-popular__feature-item img {
    width: 100%;
     /* Fixed height for feature images */
    object-fit: contain; /* Use contain to show full image without cropping */
    margin-bottom: 20px;
    max-width: 200px; /* Limit width for feature icons/illustrations */
}

.page-slot-games-popular__feature-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games-popular__feature-item p {
    font-size: 16px;
    color: #666666;
    flex-grow: 1;
}

/* FAQ Section */
.page-slot-games-popular__faq {
    background-color: #f0f8f0;
}

.page-slot-games-popular__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

/* FAQ container style */
.page-slot-games-popular__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-slot-games-popular__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

/* FAQ expanded state - \u26a0\ufe0f Use!important and sufficiently large max-height */
.page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
    max-height: 2000px !important; /* \u26a0\ufe0f Use!important to ensure priority, value large enough for any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-slot-games-popular__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games-popular__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-slot-games-popular__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-slot-games-popular__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 tag from blocking click event */
    color: #333333;
}

/* Toggle icon */
.page-slot-games-popular__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-toggle {
    color: #017439; /* Brand color for active toggle */
    transform: rotate(45deg); /* Plus to X */
}

/* Final CTA Section */
.page-slot-games-popular__cta-final {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 20px;
}

.page-slot-games-popular__cta-final .page-slot-games-popular__section-title {
    color: #FFFFFF;
    font-size: 40px;
}

.page-slot-games-popular__cta-final .page-slot-games-popular__section-description {
    color: #F0F0F0;
    font-size: 18px;
    margin-bottom: 50px;
}

.page-slot-games-popular__cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 40px;
}

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

.page-slot-games-popular__btn-browse-games:hover {
    background: #e0e0e0;
    color: #005f2e;
}

/* Image specific styles */
.page-slot-games-popular img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games-popular__main-title {
        font-size: 40px;
    }
    .page-slot-games-popular__section-title {
        font-size: 30px;
    }
    .page-slot-games-popular__intro-text,
    .page-slot-games-popular__section-description {
        font-size: 17px;
    }
    .page-slot-games-popular__content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-slot-games-popular__image-wrapper {
        margin-top: 30px;
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-slot-games-popular__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games-popular__hero-container img {
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .page-slot-games-popular__main-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .page-slot-games-popular__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

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

    .page-slot-games-popular__btn-register,
    .page-slot-games-popular__btn-login,
    .page-slot-games-popular__btn-play,
    .page-slot-games-popular__btn-view-promo,
    .page-slot-games-popular__btn-all-promos,
    .page-slot-games-popular__btn-browse-games,
    .page-slot-games-popular__btn-small-register,
    .page-slot-games-popular__btn-small-deposit,
    .page-slot-games-popular__btn-small-browse,
    .page-slot-games-popular__btn-small-play {
        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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-slot-games-popular__container {
        padding: 0 15px;
    }

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

    .page-slot-games-popular__section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

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

    .page-slot-games-popular__game-grid,
    .page-slot-games-popular__steps,
    .page-slot-games-popular__promo-grid,
    .page-slot-games-popular__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games-popular__game-card img,
    .page-slot-games-popular__promo-card img {
        
    }

    .page-slot-games-popular__card-title {
        font-size: 20px;
    }

    .page-slot-games-popular__step-title {
        font-size: 18px;
    }

    .page-slot-games-popular__feature-title {
        font-size: 20px;
    }

    .page-slot-games-popular__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-slot-games-popular__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-slot-games-popular__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
        padding: 15px !important;
    }

    .page-slot-games-popular__cta-final .page-slot-games-popular__section-title {
        font-size: 28px;
    }

    /* All content images and containers must be responsive */
    .page-slot-games-popular img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}