/* style/slot-games-popular.css */

/* Base styles for the page content */
.page-slot-games-popular {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #121212 from shared.css */
}

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

/* Section styling */
.page-slot-games-popular__hero-section,
.page-slot-games-popular__features-section,
.page-slot-games-popular__games-section,
.page-slot-games-popular__strategy-section,
.page-slot-games-popular__providers-section,
.page-slot-games-popular__faq-section,
.page-slot-games-popular__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow issues */
}

/* Color contrast based on body background #121212 */
.page-slot-games-popular__dark-bg {
    background-color: #017439; /* Brand green */
    color: #ffffff;
}

.page-slot-games-popular__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-slot-games-popular__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit from parent section */
}

.page-slot-games-popular__section-title--white {
    color: #ffffff;
}

.page-slot-games-popular__section-intro {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Hero Section */
.page-slot-games-popular__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    text-align: center;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
    position: relative;
}

.page-slot-games-popular__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)); /* Overlay for text readability */
    z-index: 1;
}

.page-slot-games-popular__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-slot-games-popular__hero-section .page-slot-games-popular__container {
    z-index: 2;
    position: relative;
}

.page-slot-games-popular__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games-popular__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-slot-games-popular__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

.page-slot-games-popular__btn-primary,
.page-slot-games-popular__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    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: #a30606;
    border-color: #a30606;
}

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

.page-slot-games-popular__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

.page-slot-games-popular__feature-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    color: #333333;
    text-align: left;
}

.page-slot-games-popular__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games-popular__feature-icon {
    width: 100%; /* Ensure large image, not small icon */
    height: auto;
    max-width: 200px; /* Adjust based on actual image size */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games-popular__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand green */
}

.page-slot-games-popular__feature-description {
    font-size: 1em;
    color: #555555;
}

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

.page-slot-games-popular__game-card {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #ffffff;
    text-align: left;
}

.page-slot-games-popular__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games-popular__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-slot-games-popular__game-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* Strategy Section */
.page-slot-games-popular__strategy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games-popular__strategy-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games-popular__strategy-list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-slot-games-popular__strategy-list li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-slot-games-popular__strategy-item-title {
    font-size: 1.2em;
    color: #017439;
    margin-bottom: 5px;
}

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

.page-slot-games-popular__provider-card {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
}

.page-slot-games-popular__provider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular__provider-logo {
    width: 100%;
    height: 120px; /* Fixed height for logos */
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Slightly brighten logos on dark background */
}

.page-slot-games-popular__provider-name {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-slot-games-popular__provider-description {
    font-size: 0.9em;
    color: #cccccc;
}

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

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

.page-slot-games-popular__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-slot-games-popular__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-slot-games-popular__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.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;
    color: #555555;
}

.page-slot-games-popular__faq-answer p {
    margin: 0;
    padding-bottom: 20px; /* Consistent padding at the bottom */
}

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

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

/* CTA Section at the bottom */
.page-slot-games-popular__cta-section {
    background-color: #017439;
    padding: 60px 0;
}

.page-slot-games-popular__cta-container {
    background-color: #017439;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.page-slot-games-popular__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games-popular__hero-title {
        font-size: 3em;
    }
    .page-slot-games-popular__section-title {
        font-size: 2.2em;
    }
    .page-slot-games-popular__strategy-content {
        flex-direction: column;
    }
    .page-slot-games-popular__strategy-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-slot-games-popular__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        min-height: 450px;
    }
    .page-slot-games-popular__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games-popular__hero-description {
        font-size: 1em;
    }
    .page-slot-games-popular__section-title {
        font-size: 1.8em;
    }
    .page-slot-games-popular__section-intro {
        font-size: 1em;
    }
    .page-slot-games-popular__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games-popular__btn-primary,
    .page-slot-games-popular__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-slot-games-popular img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games-popular__container,
    .page-slot-games-popular__section,
    .page-slot-games-popular__card,
    .page-slot-games-popular__features-grid,
    .page-slot-games-popular__games-grid,
    .page-slot-games-popular__providers-grid,
    .page-slot-games-popular__faq-list,
    .page-slot-games-popular__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games-popular__game-image {
        height: 180px; /* Adjust height for smaller screens */
    }
    .page-slot-games-popular__provider-logo {
        height: 100px;
    }
    .page-slot-games-popular__strategy-image {
        min-width: unset;
        max-width: 100%;
    }
    .page-slot-games-popular__strategy-list {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .page-slot-games-popular__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games-popular__section-title {
        font-size: 1.5em;
    }
    .page-slot-games-popular__features-grid,
    .page-slot-games-popular__games-grid,
    .page-slot-games-popular__providers-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games-popular__feature-card,
    .page-slot-games-popular__game-card,
    .page-slot-games-popular__provider-card {
        padding: 20px;
    }
    .page-slot-games-popular__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-slot-games-popular__faq-item.active .page-slot-games-popular__faq-answer {
        padding: 15px !important;
    }
    .page-slot-games-popular__cta-container {
        padding: 40px 20px;
    }
}