.page-index {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index__section-spacing {
    padding: 60px 0;
}

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

/* Hero Section */
.page-index__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    color: #FFFFFF;
    background-color: #000000; /* Fallback if image fails */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.2em;
    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;
}

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

.page-index__hero-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.3s ease;
}

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

.page-index__hero-button--register:hover {
    background-color: #E0E0E0;
    transform: translateY(-3px);
}

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

.page-index__hero-button--login:hover {
    background-color: #E5A83A;
    transform: translateY(-3px);
}

/* General Section Styling */
.page-index__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-index__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.page-index__button--primary:hover {
    background-color: #333333;
}

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

.page-index__button--secondary:hover {
    background-color: #E5A83A;
}

/* About Section */
.page-index__about-section {
    background-color: #FFFFFF;
}

.page-index__about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-index__about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444;
}

/* Games Section */
.page-index__games-section {
    background-color: #F8F8F8;
}

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

.page-index__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__game-card-image {
    width: 100%;
    height: 200px; /* Ensure image height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__game-card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__game-card-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-subtitle {
    color: #FFFFFF;
}

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

.page-index__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__promo-card-title {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-index__promo-card-description {
    font-size: 1.1em;
    color: #F0F0F0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-index__button--promo:hover {
    background-color: #E5A83A;
}

.page-index__promo-cta {
    text-align: center;
    margin-top: 50px;
}

/* Security Section */
.page-index__security-section {
    background-color: #FFFFFF;
}

.page-index__security-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-index__security-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444;
}

/* Mobile Section */
.page-index__mobile-section {
    background-color: #F8F8F8;
}

.page-index__mobile-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-index__mobile-text-content {
    flex: 1;
}

.page-index__mobile-text-content .page-index__section-title {
    text-align: left;
}

.page-index__mobile-text-content .page-index__section-subtitle {
    text-align: left;
    margin-bottom: 25px;
}

.page-index__mobile-text-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444;
}

.page-index__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__mobile-image {
    width: 400px;
    height: 450px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.page-index__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

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

.page-index__cta-description {
    font-size: 1.4em;
    color: #F0F0F0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__button--register-large,
.page-index__button--login-large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    margin: 0 10px;
}

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

.page-index__button--register-large:hover {
    background-color: #E0E0E0;
}

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

.page-index__button--login-large:hover {
    background-color: #E5A83A;
}

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

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

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

    .page-index__mobile-layout {
        flex-direction: column;
        text-align: center;
    }

    .page-index__mobile-text-content .page-index__section-title,
    .page-index__mobile-text-content .page-index__section-subtitle {
        text-align: center;
    }

    .page-index__mobile-image {
        width: 300px;
        height: 350px;
    }
}

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

    .page-index__hero-content {
        padding: 25px;
    }

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

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

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

    .page-index__hero-button {
        width: 100%;
        max-width: 300px;
    }

    .page-index__section-spacing {
        padding: 40px 0;
    }

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

    .page-index__section-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-index__game-grid,
    .page-index__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-index__game-card-image {
        height: 180px;
    }

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

    .page-index__cta-description {
        font-size: 1.2em;
    }

    .page-index__button--register-large,
    .page-index__button--login-large {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
    
    /* Ensure images do not overflow on mobile */
    .page-index img {
        max-width: 100%;
        height: auto;
    }

    /* Content area images must be >= 200px. These are only for responsive scaling, not reducing size below 200px */
    .page-index__game-card-image {
        min-width: 200px; /* Enforce minimum size if scaled down */
        min-height: 200px;
    }
    .page-index__mobile-image {
        min-width: 200px; /* Enforce minimum size if scaled down */
        min-height: 200px;
    }
}

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

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

    .page-index__hero-content {
        padding: 20px;
    }

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

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

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

    .page-index__hero-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}