.page-index {
    color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    background-color: #000000; /* Dark background for hero content */
    color: #FFFFFF;
    overflow: hidden;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim image for text readability */
    z-index: 0;
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login color for emphasis */
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.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, color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
}

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

.page-index__hero-button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

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

.page-index__hero-button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

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

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

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

.page-index__section-text {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    color: #333333;
}

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

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

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

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

.page-index__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

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

.page-index__button--tertiary:hover {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-index__about-section .page-index__container {
    text-align: center;
}

.page-index__about-section .page-index__button {
    margin-top: 30px;
}

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

.page-index__game-card,
.page-index__feature-card,
.page-index__detail-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;
    justify-content: space-between;
    align-items: center;
    min-height: 400px; /* Ensure cards have a consistent height */
}

.page-index__game-image,
.page-index__feature-icon {
    width: 100%;
    max-width: 400px; /* Max width for images within cards */
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-index__game-title,
.page-index__feature-title,
.page-index__detail-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #000000;
    font-weight: bold;
}

.page-index__game-title a,
.page-index__feature-title a,
.page-index__detail-title a {
    text-decoration: none;
    color: #000000;
}

.page-index__game-title a:hover,
.page-index__feature-title a:hover,
.page-index__detail-title a:hover {
    color: #FCBC45;
}

.page-index__game-description,
.page-index__feature-description,
.page-index__detail-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__promotions-section {
    background-color: #F8F8F8;
    text-align: center;
}

.page-index__features-section {
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__features-section .page-index__section-title {
    color: #FCBC45;
}

.page-index__features-section .page-index__feature-title {
    color: #FCBC45;
}

.page-index__features-section .page-index__feature-description {
    color: #CCCCCC;
}

.page-index__cta-section {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 100px 20px;
}

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

.page-index__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* 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__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px);
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .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: 60px 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-text {
        font-size: 1em;
    }
    .page-index__games-grid,
    .page-index__features-grid,
    .page-index__detail-pages-grid {
        grid-template-columns: 1fr;
    }
    .page-index__game-image,
    .page-index__feature-icon {
        max-width: 100%;
        height: auto; /* Ensure images are responsive and not cut off */
        min-width: 200px;
        min-height: 200px;
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    /* Ensure all images in content area are responsive */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

@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 20px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__cta-title {
        font-size: 1.8em;
    }
}