.page-index {
    /* Body background is var(--secondary-color) which is #FFFFFF, so text should be dark */
    color: #333333; /* Dark text for light background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    overflow: hidden;
    min-height: 600px;
}

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

.page-index__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6); /* Only for darkening, not color change */
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #F0F0F0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__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;
    min-width: 200px;
    text-align: center;
}

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

.page-index__button--register:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

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

.page-index__button--login:hover {
    background-color: #E8A834;
    transform: translateY(-2px);
}

.page-index__section-title {
    font-size: 2.8em;
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 60px;
    font-weight: bold;
}

.page-index__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-index__advantages-section, .page-index__games-section, .page-index__latest-games-section, .page-index__promotions-section, .page-index__app-download-section, .page-index__resources-section, .page-index__about-us-section, .page-index__contact-cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-index__advantages-grid, .page-index__games-grid, .page-index__latest-games-grid, .page-index__promotions-grid, .page-index__resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index__advantage-card, .page-index__game-card, .page-index__latest-game-card, .page-index__promotion-card, .page-index__resource-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__advantage-card:hover, .page-index__game-card:hover, .page-index__latest-game-card:hover, .page-index__promotion-card:hover, .page-index__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__advantage-icon, .page-index__game-image, .page-index__latest-game-image, .page-index__promotion-image, .page-index__resource-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__card-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__card-title a {
    text-decoration: none;
    color: inherit;
}

.page-index__card-title a:hover {
    color: #FCBC45;
}

.page-index__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__button--learn-more, .page-index__button--play-now, .page-index__button--bet-now, .page-index__button--view-details, .page-index__button--claim-now, .page-index__button--view-all, .page-index__button--download, .page-index__button--read-more, .page-index__button--support, .page-index__button--contact {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 12px 25px;
    font-size: 0.95em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__button--learn-more:hover, .page-index__button--play-now:hover, .page-index__button--bet-now:hover, .page-index__button--view-details:hover, .page-index__button--claim-now:hover, .page-index__button--view-all:hover, .page-index__button--download:hover, .page-index__button--read-more:hover, .page-index__button--support:hover, .page-index__button--contact:hover {
    background-color: #E8A834;
    transform: translateY(-2px);
}

.page-index__app-download-section {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
}

.page-index__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-index__app-text {
    max-width: 500px;
    text-align: left;
}

.page-index__app-subtitle {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
}

.page-index__app-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-index__app-image-wrapper {
    width: 100%;
    max-width: 400px;
}

.page-index__app-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__about-us-section {
    background-color: #000000; /* Dark background */
    color: #F0F0F0;
    padding: 80px 20px;
}

.page-index__about-us-section .page-index__section-title {
    color: #FFFFFF;
}

.page-index__about-us-section .page-index__section-intro {
    color: #F0F0F0;
}

.page-index__about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-index__about-text {
    max-width: 600px;
    text-align: left;
}

.page-index__about-subtitle {
    font-size: 2em;
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-index__about-description {
    font-size: 1.1em;
    color: #F0F0F0;
    margin-bottom: 20px;
}

.page-index__about-image-wrapper {
    width: 100%;
    max-width: 450px;
}

.page-index__about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__contact-cta-section {
    background-color: #FCBC45;
    padding: 80px 20px;
    text-align: center;
    color: #000000;
}

.page-index__contact-cta-section .page-index__section-title {
    color: #000000;
}

.page-index__contact-cta-section .page-index__section-intro {
    color: #333333;
}

.page-index__contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.page-index__button--support, .page-index__button--contact {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-index__button--support:hover, .page-index__button--contact:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-2px);
}

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

    .page-index__section-title {
        font-size: 2.2em;
    }

    .page-index__app-text, .page-index__about-text {
        text-align: center;
        max-width: 100%;
    }

    .page-index__app-image-wrapper, .page-index__about-image-wrapper {
        max-width: 500px;
    }
}

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

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

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

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

    .page-index__button {
        min-width: unset;
        width: 100%;
    }

    .page-index__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }

    .page-index__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-index__advantages-section, .page-index__games-section, .page-index__latest-games-section, .page-index__promotions-section, .page-index__app-download-section, .page-index__resources-section, .page-index__about-us-section, .page-index__contact-cta-section {
        padding: 40px 15px;
    }

    .page-index__advantages-grid, .page-index__games-grid, .page-index__latest-games-grid, .page-index__promotions-grid, .page-index__resources-grid {
        grid-template-columns: 1fr;
    }

    .page-index__app-content, .page-index__about-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-index__app-text, .page-index__about-text {
        text-align: center;
    }

    .page-index__app-subtitle, .page-index__about-subtitle {
        font-size: 1.6em;
    }

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

    /* Ensure images do not overflow on mobile */
    .page-index img {
        max-width: 100%;
        height: auto;
    }

    /* Content area images must be at least 200px, so ensure no smaller fixed widths */
    .page-index__advantage-icon, .page-index__game-image, .page-index__latest-game-image, .page-index__promotion-image, .page-index__resource-image, .page-index__app-image, .page-index__about-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Allow natural scaling up to 100% of container */
        height: auto; /* Maintain aspect ratio */
    }
}

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

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

    .page-index__section-title {
        font-size: 1.5em;
    }

    .page-index__app-subtitle, .page-index__about-subtitle {
        font-size: 1.4em;
    }
}