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

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

.page-index__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background-color: #0056B3; /* Fallback background */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    max-width: 900px;
}

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

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__hero-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;
    white-space: nowrap;
}

.page-index__hero-button--primary {
    background-color: #FFD700;
    color: #0056B3;
    border: 2px solid #FFD700;
}

.page-index__hero-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-index__hero-button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__hero-button--secondary:hover {
    background-color: #FFD700;
    color: #0056B3;
    transform: translateY(-2px);
}

.page-index__section-title {
    font-size: 2.5em;
    color: #0056B3;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.page-index__section-text {
    font-size: 1.1em;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.page-index__about-section, .page-index__why-choose-us-section, .page-index__games-section, .page-index__promo-section, .page-index__mobile-section, .page-index__payments-section, .page-index__resources-section, .page-index__responsible-gaming-section, .page-index__cta-section {
    padding: 60px 0;
}

.page-index__about-section {
    background-color: #f8f8f8;
}

.page-index__why-choose-us-section {
    background-color: #ffffff;
}

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

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

.page-index__feature-card:hover {
    transform: translateY(-10px);
}

.page-index__feature-icon {
    width: 200px;
    height: 133px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-index__feature-title {
    font-size: 1.8em;
    color: #0056B3;
    margin-bottom: 15px;
}

.page-index__feature-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
    flex-grow: 1;
}

.page-index__games-section {
    background-color: #f0f5fa;
}

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

.page-index__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__game-card:hover {
    transform: translateY(-10px);
}

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__game-title {
    font-size: 1.6em;
    color: #0056B3;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

.page-index__game-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
    background-color: #e6c200;
}

.page-index__promo-section {
    background-color: #0056B3;
    color: #ffffff;
    text-align: center;
}

.page-index__promo-section .page-index__section-title {
    color: #FFD700;
}

.page-index__promo-section .page-index__section-text {
    color: #f0f0f0;
}

.page-index__promo-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
    background-color: #e6c200;
}

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

.page-index__mobile-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.page-index__mobile-image {
    flex: 1;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Ensure minimum size */
}

.page-index__mobile-button {
    display: inline-block;
    background-color: #0056B3;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.page-index__mobile-button:hover {
    background-color: #004080;
}

.page-index__payments-section {
    background-color: #f8f8f8;
    text-align: center;
}

.page-index__payments-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-index__payments-button:hover {
    background-color: #e6c200;
}

.page-index__resources-section {
    background-color: #f0f5fa;
}

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

.page-index__resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-index__resource-title {
    font-size: 1.5em;
    color: #0056B3;
    margin-bottom: 10px;
}

.page-index__resource-title a {
    color: #0056B3;
    text-decoration: none;
}

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

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

.page-index__resource-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.page-index__resource-button:hover {
    background-color: #e6c200;
}

.page-index__responsible-gaming-section {
    background-color: #0056B3;
    color: #ffffff;
    text-align: center;
}

.page-index__responsible-gaming-section .page-index__section-title {
    color: #FFD700;
}

.page-index__responsible-gaming-section .page-index__section-text {
    color: #f0f0f0;
}

.page-index__responsible-gaming-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-index__responsible-gaming-button:hover {
    background-color: #e6c200;
}

.page-index__cta-section {
    background-color: #ffffff;
    text-align: center;
}

.page-index__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0056B3;
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

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

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

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

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

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

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

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

    .page-index__section-text {
        font-size: 1em;
        padding: 0 15px;
    }

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

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

    .page-index__mobile-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

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

    .page-index__feature-icon, .page-index__game-image {
        min-width: 200px;
        min-height: 133px; /* Maintain aspect ratio for feature icons */
    }

    .page-index__game-image {
        height: auto; /* Allow height to adjust based on aspect ratio */
    }
    
    .page-index__mobile-image {
        min-width: 200px;
        min-height: 267px; /* Maintain aspect ratio for mobile image */
    }
}

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

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

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

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