.page-index {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

.page-index__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding: 60px 20px;
}

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

.page-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff; /* White text on dark/rich background image */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
    padding: 30px;
    border-radius: 10px;
}

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

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

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

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

.page-index__button--primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e6c200;
    color: #5c0000;
    transform: translateY(-3px);
}

.page-index__button--secondary {
    background-color: #8B0000;
    color: #FFD700;
    border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
    background-color: #5c0000;
    color: #ffe680;
    transform: translateY(-3px);
}

.page-index__button--tertiary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__button--tertiary:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffe680;
    transform: translateY(-3px);
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-index__sub-title {
    font-size: 1.8em;
    color: #8B0000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index__text-content {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
}

.page-index__content-area,
.page-index__advantages-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__about-section,
.page-index__download-section,
.page-index__details-pages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.page-index__advantage-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__details-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__advantage-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__details-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__advantage-image,
.page-index__game-image,
.page-index__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__advantage-title,
.page-index__game-title,
.page-index__promo-title,
.page-index__details-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-index__details-title a {
    color: #8B0000;
    text-decoration: none;
}

.page-index__details-title a:hover {
    text-decoration: underline;
}

.page-index__advantage-text,
.page-index__game-text,
.page-index__promo-text,
.page-index__details-description {
    font-size: 1em;
    color: #666666;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-index__download-section {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-index__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #333333;
}

.page-index__app-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-index__app-features li::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-index__qr-code {
    width: 250px;
    height: 250px;
    border: 5px solid #FFD700;
    border-radius: 10px;
    object-fit: cover;
}

.page-index__qr-instruction {
    margin-top: 15px;
    font-size: 1.1em;
    color: #555555;
}

/* Responsive adjustments */
@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;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-index__hero-content {
        padding: 20px;
    }
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 100%;
        max-width: 280px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-index__advantages-grid,
    .page-index__games-grid,
    .page-index__promo-grid,
    .page-index__details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index__advantage-card,
    .page-index__game-card,
    .page-index__promo-card,
    .page-index__details-card {
        padding: 20px;
    }
    .page-index__advantage-image,
    .page-index__game-image,
    .page-index__promo-image,
    .page-index__qr-code {
        max-width: 100%; /* Ensure images are responsive and don't overflow */
        height: auto;
    }
    .page-index__download-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-index__download-text-area {
        text-align: center;
    }
    .page-index__app-features {
        text-align: left;
        padding-left: 20px;
    }
    .page-index__app-features li {
        padding-left: 20px;
    }
    .page-index__app-features li::before {
        left: 0;
    }
    /* Ensure all images within .page-index are responsive and do not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__sub-title {
        font-size: 1.4em;
    }
}