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

.page-index__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF; /* Light text for dark hero background */
}

.page-index__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.page-index__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight with a vibrant color */
    line-height: 1.2;
}

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

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

.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px;
    text-align: center;
    font-size: 1em;
}

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

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

.page-index__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-index__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for hero image container */
}

.page-index__hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

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

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__detail-pages,
.page-index__responsible-gaming,
.page-index__contact-support {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Light background for content sections */
}

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

.page-index__about-card,
.page-index__game-card,
.page-index__detail-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__about-card img,
.page-index__game-card img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images in cards are not too small */
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-index__card-title,
.page-index__game-title,
.page-index__detail-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #000000;
}

.page-index__game-title a,
.page-index__detail-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

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

.page-index__card-description,
.page-index__game-description,
.page-index__detail-description,
.page-index__promo-description,
.page-index__download-description,
.page-index__responsible-description,
.page-index__contact-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-index__button--view,
.page-index__button--details,
.page-index__button--promo,
.page-index__button--responsible,
.page-index__button--support {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index__button--view:hover,
.page-index__button--details:hover,
.page-index__button--promo:hover,
.page-index__button--responsible:hover,
.page-index__button--support:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
}

.page-index__promo-section,
.page-index__download-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.page-index__promo-content,
.page-index__download-content {
    flex: 1;
}

.page-index__promo-image,
.page-index__download-image {
    flex: 1;
    text-align: center;
}

.page-index__promo-image img,
.page-index__download-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

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

    .page-index__promo-section,
    .page-index__download-section {
        flex-direction: column;
        text-align: center;
    }
}

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

    .page-index__hero-section {
        padding: 40px 15px;
    }

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

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

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

    .page-index__button {
        width: 100%;
        max-width: 250px;
    }

    .page-index__section-title {
        font-size: 1.8em;
        margin: 40px 0 30px;
    }

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

    .page-index__about-card img,
    .page-index__game-card img,
    .page-index__promo-image img,
    .page-index__download-image img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for images */
        min-height: 200px;
    }

    /* Enforce max-width: 100% for all images in content area to prevent overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no image filter is applied */
.page-index img {
    filter: none !important; /* Strictly forbid any filter on images */
}

/* Ensure content area images are not small */
.page-index__about-card img,
.page-index__game-card img,
.page-index__promo-image img,
.page-index__download-image img,
.page-index__hero-image img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific button styles */
.page-index__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}
.page-index__button--download:hover {
    background-color: transparent;
    color: #FCBC45;
}