.page-index-featured-games {
    padding-top: var(--header-offset, 120px);
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index-featured-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient background for text readability */
}

.page-index-featured-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Make background image subtle */
}

.page-index-featured-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-index-featured-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-index-featured-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-featured-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-index-featured-games__hero-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, transform 0.2s ease;
    margin: 0 10px;
}

.page-index-featured-games__hero-button--primary {
    background-color: #FCBC45;
    color: #000000;
}

.page-index-featured-games__hero-button--primary:hover {
    background-color: #FFD700;
    transform: translateY(-3px);
}

.page-index-featured-games__hero-button--secondary {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #FCBC45;
}

.page-index-featured-games__hero-button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.page-index-featured-games__games-overview,
.page-index-featured-games__why-choose-us,
.page-index-featured-games__how-to-start,
.page-index-featured-games__responsible-gaming,
.page-index-featured-games__faq,
.page-index-featured-games__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible background for sections */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-index-featured-games__section-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #FCBC45;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index-featured-games__section-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-featured-games__category-grid,
.page-index-featured-games__features-grid,
.page-index-featured-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-featured-games__category-card,
.page-index-featured-games__feature-item,
.page-index-featured-games__step-item {
    background-color: rgba(0, 0, 0, 0.6); /* Darker background for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__category-card:hover,
.page-index-featured-games__feature-item:hover,
.page-index-featured-games__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.page-index-featured-games__card-image,
.page-index-featured-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too small for content area */
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-featured-games__card-title,
.page-index-featured-games__feature-title,
.page-index-featured-games__step-title {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-index-featured-games__card-text,
.page-index-featured-games__feature-text,
.page-index-featured-games__step-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-index-featured-games__card-button,
.page-index-featured-games__step-button,
.page-index-featured-games__responsible-gaming-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.page-index-featured-games__card-button:hover,
.page-index-featured-games__step-button:hover,
.page-index-featured-games__responsible-gaming-button:hover {
    background-color: #FFD700;
}

.page-index-featured-games__faq-item {
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for FAQ items */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.page-index-featured-games__faq-question {
    font-size: 1.5em;
    color: #FCBC45;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-index-featured-games__faq-answer {
    font-size: 1em;
    color: #e0e0e0;
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.page-index-featured-games__faq-question.active + .page-index-featured-games__faq-answer {
    display: block;
}

.page-index-featured-games__cta-section {
    background: linear-gradient(90deg, #FCBC45 0%, #FFD700 100%); /* Gold gradient for CTA */
    color: #000000;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-index-featured-games__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #000000;
}

.page-index-featured-games__cta-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 40px;
}

.page-index-featured-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-index-featured-games__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.page-index-featured-games__cta-button--primary {
    background-color: #000000;
    color: #FCBC45;
}

.page-index-featured-games__cta-button--primary:hover {
    background-color: #333333;
    color: #FFD700;
    transform: translateY(-3px);
}

.page-index-featured-games__cta-button--secondary {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.page-index-featured-games__cta-button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-featured-games__hero-title {
        font-size: 2.8em;
    }

    .page-index-featured-games__section-title {
        font-size: 2.2em;
    }

    .page-index-featured-games__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-index-featured-games {
        padding-top: var(--header-offset, 120px);
    }

    .page-index-featured-games__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-index-featured-games__hero-title {
        font-size: 2.2em;
    }

    .page-index-featured-games__hero-description {
        font-size: 1em;
    }

    .page-index-featured-games__hero-button {
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 5px 15px 5px;
        width: calc(100% - 20px);
    }

    .page-index-featured-games__section-title {
        font-size: 1.8em;
    }

    .page-index-featured-games__section-description {
        font-size: 0.9em;
    }

    .page-index-featured-games__category-grid,
    .page-index-featured-games__features-grid,
    .page-index-featured-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-featured-games__category-card,
    .page-index-featured-games__feature-item,
    .page-index-featured-games__step-item {
        padding: 20px;
    }

    .page-index-featured-games__card-image,
    .page-index-featured-games__feature-icon {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }

    .page-index-featured-games__card-title,
    .page-index-featured-games__feature-title,
    .page-index-featured-games__step-title {
        font-size: 1.5em;
    }

    .page-index-featured-games__card-text,
    .page-index-featured-games__feature-text,
    .page-index-featured-games__step-text {
        font-size: 0.9em;
    }

    .page-index-featured-games__cta-title {
        font-size: 2em;
    }

    .page-index-featured-games__cta-description {
        font-size: 1em;
    }

    .page-index-featured-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-featured-games__cta-button {
        width: calc(100% - 40px);
        font-size: 1.1em;
    }

    /* Ensure all images within main content are responsive and don't cause overflow */
    .page-index-featured-games img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index-featured-games__hero-title {
        font-size: 1.8em;
    }
    .page-index-featured-games__section-title {
        font-size: 1.5em;
    }
    .page-index-featured-games__cta-title {
        font-size: 1.8em;
    }
}