.page-index {
    color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    background-color: #000000; /* Dark background for hero text */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly dim image for text readability */
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #F0F0F0;
}

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

.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-index__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-index__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__why-choose-us-section,
.page-index__app-download-section,
.page-index__blog-preview-section,
.page-index__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-index__about-title,
.page-index__games-title,
.page-index__promotions-title,
.page-index__why-choose-us-title,
.page-index__app-title,
.page-index__blog-preview-title,
.page-index__cta-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.page-index__about-text,
.page-index__games-subtitle,
.page-index__promotions-text,
.page-index__app-description,
.page-index__cta-description {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.page-index__button--learn-more,
.page-index__button--view-promos,
.page-index__button--play-now,
.page-index__button--bet-now,
.page-index__button--download-app,
.page-index__button--read-more,
.page-index__button--view-all-blog,
.page-index__button--join-now {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index__button--learn-more:hover,
.page-index__button--view-promos:hover,
.page-index__button--play-now:hover,
.page-index__button--bet-now:hover,
.page-index__button--download-app:hover,
.page-index__button--read-more:hover,
.page-index__button--view-all-blog:hover,
.page-index__button--join-now:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
    transform: translateY(-3px);
}

.page-index__about-container {
    text-align: center;
}

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

.page-index__game-card,
.page-index__feature-card,
.page-index__blog-card {
    background-color: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-index__game-image,
.page-index__feature-icon,
.page-index__blog-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too small */
    min-width: 200px;
    min-height: 200px;
    border-radius: 6px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-index__feature-icon {
    max-width: 250px;
    height: 188px;
}

.page-index__game-card-title,
.page-index__feature-title,
.page-index__blog-card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-index__game-card-title a,
.page-index__blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.page-index__game-card-title a:hover,
.page-index__blog-card-title a:hover {
    color: #FCBC45;
}

.page-index__game-card-description,
.page-index__feature-description,
.page-index__blog-card-excerpt {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__promotions-container {
    text-align: center;
}

.page-index__promotions-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    margin-top: 30px;
    object-fit: cover;
}

.page-index__app-download-section {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-index__app-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.page-index__app-content {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.page-index__app-title {
    text-align: left;
    font-size: 2.2em;
}

.page-index__app-description {
    text-align: left;
}

.page-index__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}

.page-index__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

.page-index__cta-title {
    color: #FFFFFF;
    font-size: 3em;
    margin-bottom: 20px;
}

.page-index__cta-description {
    color: #F0F0F0;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-index__button--join-now {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--join-now:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }

    .page-index__hero-description {
        font-size: 1.1em;
    }

    .page-index__about-title,
    .page-index__games-title,
    .page-index__promotions-title,
    .page-index__why-choose-us-title,
    .page-index__app-title,
    .page-index__blog-preview-title,
    .page-index__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }

    .page-index__hero-title {
        font-size: 2.5em;
    }

    .page-index__hero-description {
        font-size: 1em;
    }

    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-index__about-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__why-choose-us-section,
    .page-index__app-download-section,
    .page-index__blog-preview-section,
    .page-index__cta-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .page-index__about-title,
    .page-index__games-title,
    .page-index__promotions-title,
    .page-index__why-choose-us-title,
    .page-index__app-title,
    .page-index__blog-preview-title,
    .page-index__cta-title {
        font-size: 1.8em;
    }

    .page-index__about-text,
    .page-index__games-subtitle,
    .page-index__promotions-text,
    .page-index__app-description,
    .page-index__cta-description {
        font-size: 0.9em;
    }

    .page-index__game-grid,
    .page-index__features-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__app-download-section {
        flex-direction: column;
        text-align: center;
    }

    .page-index__app-image {
        max-width: 80%;
    }

    .page-index__app-content {
        text-align: center;
    }

    .page-index__app-title {
        text-align: center;
    }

    /* Ensure all images within .page-index are responsive */
    .page-index img {
        max-width: 100%;
        height: auto;
    }

    /* Content area images must be at least 200px, but responsive */
    .page-index__game-image,
    .page-index__feature-icon,
    .page-index__blog-image,
    .page-index__promotions-image,
    .page-index__app-image {
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px; /* Enforce minimum size for content images */
        width: 100%; /* Make them fill container, but respect max-width */
        height: auto; /* Maintain aspect ratio */
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }

    .page-index__hero-description {
        font-size: 0.9em;
    }

    .page-index__cta-title {
        font-size: 2em;
    }
}