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

.page-index__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-index__hero-container {
    position: relative;
    max-width: 100%; /* Ensure it doesn't cause horizontal scroll */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic */
}

.page-index__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    color: #FFFFFF;
}

.page-index__hero-title {
    font-size: clamp(2.5em, 5vw, 4em);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-index__hero-description {
    font-size: clamp(1em, 2vw, 1.3em);
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-index__hero-cta-group {
    display: flex;
    gap: 20px;
}

.page-index__cta-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.3s ease;
}

.page-index__cta-button--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-index__cta-button--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-index__cta-button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-index__cta-button--login:hover {
    background-color: #e0a030;
    transform: translateY(-2px);
}

.page-index__cta-button--download {
    background-color: #FCBC45;
    color: #000000;
}

.page-index__cta-button--download:hover {
    background-color: #e0a030;
    transform: translateY(-2px);
}

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

.page-index__cta-button--contact:hover {
    background-color: #333333;
    border-color: #FCBC45;
    transform: translateY(-2px);
}

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

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

.page-index__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-index__text-content {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555555;
    text-align: center;
    margin-bottom: 25px;
}

.page-index__text-content--center {
    text-align: center;
}

.page-index__read-more-link, .page-index__view-all-promos-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 25px;
    border: 2px solid #FCBC45;
    color: #FCBC45;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__read-more-link:hover, .page-index__view-all-promos-link:hover {
    background-color: #FCBC45;
    color: #000000;
}

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

.page-index__game-card, .page-index__promo-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-index__game-card-image, .page-index__promo-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-index__game-card-title, .page-index__promo-card-title {
    font-size: 1.5em;
    color: #000000;
    margin: 20px 20px 10px;
    text-align: center;
}

.page-index__game-card-title a, .page-index__promo-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.page-index__game-card-description, .page-index__promo-card-description {
    font-size: 0.95em;
    color: #666666;
    text-align: center;
    padding: 0 20px;
    flex-grow: 1;
}

.page-index__game-card-button, .page-index__promo-card-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-index__game-card-button:hover, .page-index__promo-card-button:hover {
    background-color: #FCBC45;
    color: #000000;
}

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

.page-index__app-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-index__app-content {
    flex: 1;
    min-width: 300px;
}

.page-index__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__security-section, .page-index__contact-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

/* Ensure all content area images are not small icons */
.page-index img {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2em;
    }

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

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

    .page-index__cta-button {
        width: 100%;
    }

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

    .page-index__text-content {
        font-size: 1em;
    }

    .page-index__game-grid, .page-index__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-index__app-container {
        flex-direction: column;
    }
    
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no horizontal scrolling */
.page-index {
    overflow-x: hidden;
}