.page-index {
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    color: #333333; /* Default text color for light body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-index__hero-section {
    background-color: #007bff; /* Main brand color for hero background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure hero section has a decent height */
}

.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;
    margin: 0 auto;
}

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

.page-index__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-index__button--primary {
    background-color: #ffc107;
    color: #007bff;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.page-index__button--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

.page-index__button--secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    border-radius: 2px;
}

.page-index__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-index__about-section .page-index__section-description {
    text-align: left;
}

.page-index__about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-index__about-text {
    flex: 1;
}

.page-index__about-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-index__about-image {
    width: 100%;
    min-height: 300px;
    display: block;
}

.page-index__games-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: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-index__game-card-image {
    width: 100%;
    height: 250px; /* Enforce min height for images */
    display: block;
}

.page-index__game-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__game-card-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 10px;
}

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

.page-index__promo-section {
    background-color: #f8f9fa;
}

.page-index__promo-card {
    background-color: #007bff;
    color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-index__promo-title {
    font-size: 2.2em;
    color: #ffc107;
    margin-bottom: 20px;
}

.page-index__promo-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-index__app-section {
    background-color: #ffffff;
}

.page-index__app-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-index__app-text {
    flex: 1;
    text-align: left;
}

.page-index__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-index__app-image {
    width: 100%;
    min-height: 300px;
    display: block;
}

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

.page-index__trust-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-index__trust-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-index__trust-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-index__trust-description {
    font-size: 0.95em;
    color: #555555;
}

.page-index__trust-buttons {
    margin-top: 40px;
}

.page-index__final-cta-section {
    background-color: #007bff;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-index__final-cta-title {
    font-size: 3em;
    color: #ffc107;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__final-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

    .page-index__about-image-wrapper,
    .page-index__app-image-wrapper {
        max-width: 600px;
        min-width: unset;
    }
}

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

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

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

    .page-index__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-index__section {
        padding: 40px 15px;
    }

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

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

    .page-index__games-grid,
    .page-index__trust-grid {
        grid-template-columns: 1fr;
    }

    /* Enforce min-size for content images and prevent overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px; /* Enforce minimum size */
        object-fit: cover;
    }

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

    .page-index__about-image,
    .page-index__app-image {
        min-height: 250px;
    }

    .page-index__promo-card {
        padding: 30px 20px;
    }

    .page-index__promo-title {
        font-size: 1.6em;
    }

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

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