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

.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    min-height: 600px;
    background-color: #2C3E50; /* Dark background for hero */
    color: #ffffff;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

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

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

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

.page-index__hero-actions {
    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;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-index__button--primary {
    background-color: #FFD700;
    color: #2C3E50;
}

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

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

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #2C3E50;
}

.page-index__button--link {
    color: #2C3E50;
    text-decoration: underline;
    padding: 0;
    border: none;
    background: none;
}

.page-index__button--link:hover {
    color: #FFD700;
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

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

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

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__registration-guide-section,
.page-index__mobile-app-section,
.page-index__faq-section,
.page-index__cta-section {
    padding: 60px 0;
}

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

.page-index__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__about-image,
.page-index__promo-image,
.page-index__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

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

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__game-title {
    font-size: 1.5em;
    color: #2C3E50;
    margin-bottom: 10px;
}

.page-index__game-title a {
    color: #2C3E50;
    text-decoration: none;
}

.page-index__game-title a:hover {
    color: #FFD700;
}

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

.page-index__all-games-action {
    text-align: center;
    margin-top: 50px;
}

.page-index__promo-section {
    background-color: #2C3E50;
    color: #ffffff;
}

.page-index__promo-section .page-index__section-title,
.page-index__promo-section .page-index__section-subtitle {
    color: #ffffff;
}

.page-index__promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__promo-text h3 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__promo-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-index__registration-guide-section {
    background-color: #f9f9f9;
}

.page-index__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-index__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-index__step-card h3 {
    font-size: 1.6em;
    color: #2C3E50;
    margin-bottom: 15px;
}

.page-index__step-card p {
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

.page-index__faq-section {
    background-color: #f9f9f9;
}

.page-index__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-index__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-item h3 {
    font-size: 1.3em;
    color: #2C3E50;
    margin-bottom: 10px;
}

.page-index__faq-item p {
    color: #555555;
    line-height: 1.6;
}

.page-index__cta-section {
    background-color: #FFD700;
    color: #2C3E50;
    text-align: center;
    padding: 80px 20px;
}

.page-index__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #2C3E50;
}

.page-index__cta-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #444444;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
    .page-index__cta-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px);
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__grid-two-cols,
    .page-index__promo-content {
        grid-template-columns: 1fr;
    }
    .page-index__grid-two-cols--reversed-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
    .page-index__game-grid,
    .page-index__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-index__button {
        width: 100%;
        max-width: 300px;
    }
    .page-index__cta-actions {
        flex-direction: column;
    }
    .page-index__container {
        padding: 30px 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__cta-title {
        font-size: 1.8em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    /* Mobile image rules */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__about-image,
    .page-index__promo-image,
    .page-index__app-image,
    .page-index__game-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__cta-title {
        font-size: 1.6em;
    }
}