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

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

.page-index__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__section-description {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

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

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

.page-index__button--login:hover {
    background-color: #e0a538;
    border-color: #e0a538;
}

.page-index__button--large {
    padding: 15px 30px;
    font-size: 1.2em;
    min-width: 250px;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
}

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

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

.page-index__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-index__hero-buttons .page-index__hero-button {
    font-size: 1.1em;
    padding: 15px 30px;
    min-width: 180px;
}

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

.page-index__hero-button--register:hover {
    background-color: #f0f0f0;
}

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

.page-index__hero-button--login:hover {
    background-color: #e0a538;
}

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-index__about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__about-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #333333;
}

.page-index__about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-index__game-card {
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.page-index__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__game-card-description {
    font-size: 0.95em;
    padding: 0 15px;
    color: #CCCCCC;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-index__promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__promo-content .page-index__section-title,
.page-index__promo-content .page-index__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* App Section */
.page-index__app-section {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__app-text .page-index__section-title,
.page-index__app-text .page-index__section-description {
    text-align: left;
    color: #FFFFFF;
    margin-left: 0;
    margin-right: 0;
}

.page-index__app-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-index__security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__security-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-index__security-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #333333;
}

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

.page-index__section-title--cta,
.page-index__section-description--cta {
    color: #FFFFFF;
}

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

@media (max-width: 768px) {
    .page-index {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-index__hero-section {
        padding: 60px 0;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-index__hero-buttons .page-index__hero-button {
        margin-bottom: 15px;
        margin-left: 0;
        width: 80%;
    }
    
    .page-index__about-grid,
    .page-index__promo-grid,
    .page-index__app-grid,
    .page-index__security-grid {
        grid-template-columns: 1fr;
    }

    .page-index__about-image,
    .page-index__promo-image,
    .page-index__app-image,
    .page-index__security-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }

    .page-index__promo-content .page-index__section-title,
    .page-index__promo-content .page-index__section-description,
    .page-index__app-text .page-index__section-title,
    .page-index__app-text .page-index__section-description {
        text-align: center;
    }

    .page-index__button--primary,
    .page-index__button--secondary,
    .page-index__button--register,
    .page-index__button--login {
        width: 100%;
        margin-left: 0;
    }

    .page-index__game-card-image,
    .page-index__about-image,
    .page-index__promo-image,
    .page-index__app-image,
    .page-index__security-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-index__container {
        padding: 0 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 1em;
    }

    /* Ensure no horizontal scroll for content */
    .page-index {
        overflow-x: hidden;
    }
}