/* style/index.css */
.page-index {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for max width and centering */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Hero Section --- */
.page-index__hero-section {
    background-color: #1A2E44; /* Main color as hero background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff; /* Light text on dark background */
}

.page-index__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-index__hero-content {
    max-width: 800px;
}

.page-index__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
    line-height: 1.2;
}

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

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

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

.page-index__button--primary {
    background-color: #FFD700; /* Accent color */
    color: #1A2E44; /* Dark text on accent */
    border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #1A2E44;
}

.page-index__button--download {
    background-color: #1A2E44;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__button--download:hover {
    background-color: #0d1e2e;
    border-color: #FFD700;
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-index__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-index__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- Section Titles & Intros --- */
.page-index__section-title {
    font-size: 2.5em;
    color: #1A2E44;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

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

/* --- About Section --- */
.page-index__about-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-index__about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* --- Games Section --- */
.page-index__games-section {
    padding: 60px 0;
}

.page-index__game-categories {
    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: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-index__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-index__game-card .page-index__card-title {
    font-size: 1.4em;
    color: #1A2E44;
    margin: 0 15px 10px 15px;
}

.page-index__game-card .page-index__card-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-index__game-card .page-index__button {
    margin-top: auto; /* Pushes button to the bottom */
    background-color: #1A2E44;
    color: #FFD700;
    border: none;
    margin-left: 15px;
    margin-right: 15px;
}

.page-index__game-card .page-index__button:hover {
    background-color: #0d1e2e;
}

/* --- Promotions Section --- */
.page-index__promotions-section {
    background-color: #1A2E44;
    padding: 60px 0;
    color: #ffffff;
}

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

.page-index__promotions-section .page-index__section-intro {
    color: #f0f0f0;
}

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

.page-index__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
    transform: translateY(-5px);
}

.page-index__promo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-index__promo-card .page-index__card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 0 15px 10px 15px;
}

.page-index__promo-card .page-index__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__promo-card .page-index__button {
    margin-top: auto;
    background-color: #FFD700;
    color: #1A2E44;
    border: none;
    margin-left: 15px;
    margin-right: 15px;
}

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

.page-index__full-promo-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- Why Choose Section --- */
.page-index__why-choose-section {
    padding: 60px 0;
}

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

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

.page-index__why-choose-item:hover {
    transform: translateY(-5px);
}

.page-index__why-choose-item img {
    width: 200px; /* Enforce min size */
     /* Enforce min size */
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
}

.page-index__item-title {
    font-size: 1.3em;
    color: #1A2E44;
    margin-bottom: 10px;
}

.page-index__item-description {
    font-size: 0.95em;
    color: #666666;
}

.page-index__full-details-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- Latest News Section --- */
.page-index__latest-news-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

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

.page-index__news-card:hover {
    transform: translateY(-5px);
}

.page-index__news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-index__news-card .page-index__card-title {
    font-size: 1.4em;
    color: #1A2E44;
    margin: 0 15px 10px 15px;
}

.page-index__news-card .page-index__card-title a {
    color: #1A2E44;
    text-decoration: none;
}

.page-index__news-card .page-index__card-title a:hover {
    color: #FFD700;
}

.page-index__news-card .page-index__card-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__news-card .page-index__button {
    margin-top: auto;
    background-color: #1A2E44;
    color: #FFD700;
    border: none;
    margin-left: 15px;
    margin-right: 15px;
}

.page-index__news-card .page-index__button:hover {
    background-color: #0d1e2e;
}

.page-index__full-news-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- Call to Action Section --- */
.page-index__cta-section {
    background-color: #FFD700; /* Accent color as CTA background */
    padding: 80px 20px;
    text-align: center;
    color: #1A2E44; /* Dark text on accent background */
}

.page-index__cta-section .page-index__section-title {
    color: #1A2E44;
}

.page-index__cta-section .page-index__section-intro {
    color: #333333;
}

.page-index__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 40px 15px;
    }

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

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

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

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

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

    .page-index__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-index__game-categories,
    .page-index__promo-grid,
    .page-index__why-choose-grid,
    .page-index__news-grid {
        grid-template-columns: 1fr;
    }

    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__news-card img {
        height: 200px; /* Adjust height for mobile */
    }

    /* Ensure content area images are responsive and not too small */
    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__why-choose-item img,
    .page-index__news-card img {
        max-width: 100%; /* Must be present for mobile */
        height: auto; /* Must be present for mobile */
        min-width: 200px; /* Ensure images are not too small */
        min- /* Ensure images are not too small */
    }
}

@media (min-width: 769px) {
    .page-index__hero-container {
        flex-direction: row;
        text-align: left;
    }
    .page-index__hero-content {
        flex: 1;
        text-align: left;
    }
    .page-index__hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

/* JS Fade-in Effect Styles */
.page-index--fade-in-initial {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-index--fade-in {
    opacity: 1;
    transform: translateY(0);
}