/* style/index.css */
.page-index {
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF;
    font-family: Arial, sans-serif;
}

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

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

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #000000;
    overflow: hidden;
}

.page-index__hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 600px;
}

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

.page-index__hero-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

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

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

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

.page-index__hero-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__hero-button--register {
    background-color: #FFFFFF;
    color: #000000;
}

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

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

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

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

.page-index__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-index__about-content p {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
}

.page-index__about-image {
    flex-shrink: 0;
    width: 500px;
    height: 375px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__learn-more-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 25px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__learn-more-button:hover {
    background-color: #333333;
}

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

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

.page-index__game-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-index__game-title {
    font-size: 1.5em;
    margin: 15px 0 10px 0;
    color: #000000;
}

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

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

.page-index__game-text {
    padding: 0 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555555;
    min-height: 70px; /* Ensure consistent height for text */
}

.page-index__game-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
    background-color: #e0a53b;
}

/* Promo Section */
.page-index__promo-section {
    padding: 60px 0;
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__promo-section .page-index__section-title,
.page-index__promo-section .page-index__section-description {
    color: #FFFFFF;
}

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

.page-index__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-index__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-index__promo-title {
    font-size: 1.6em;
    margin: 15px 0 10px 0;
    color: #FFFFFF;
}

.page-index__promo-text {
    padding: 0 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #e0e0e0;
    min-height: 70px;
}

.page-index__promo-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
    background-color: #e0a53b;
}

.page-index__view-all-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 25px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__view-all-button:hover {
    background-color: #e0a53b;
}

/* Security Section */
.page-index__security-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-index__security-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index__feature-item {
    text-align: center;
    max-width: 300px;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-index__feature-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

.page-index__feature-text {
    font-size: 0.95em;
    color: #555555;
}

.page-index__safety-guide-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 25px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__safety-guide-button:hover {
    background-color: #333333;
}

/* App Section */
.page-index__app-section {
    padding: 60px 0;
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__app-section .page-index__section-title,
.page-index__app-section .page-index__section-description {
    color: #FFFFFF;
}

.page-index__app-download-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-index__app-image {
    width: 600px;
    height: 450px;
    object-fit: contain;
}

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

.page-index__app-button {
    display: inline-flex;
    align-items: center;
    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__app-button--android {
    background-color: #FCBC45;
    color: #000000;
}

.page-index__app-button--android:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__app-button--ios {
    background-color: #FFFFFF;
    color: #000000;
}

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

.page-index__learn-more-app-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 25px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__learn-more-app-button:hover {
    background-color: #e0a53b;
}

/* Support Section */
.page-index__support-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-index__support-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__support-button--chat {
    background-color: #FCBC45;
    color: #000000;
}

.page-index__support-button--chat:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__support-button--contact {
    background-color: #000000;
    color: #FFFFFF;
}

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

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

.page-index__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.page-index__advantage-item {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: #333333;
    position: relative;
    padding-left: 40px;
}

.page-index__advantage-item::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: #FCBC45;
    font-weight: bold;
    font-size: 1.2em;
}

.page-index__explore-advantages-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 25px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__explore-advantages-button:hover {
    background-color: #333333;
}

/* Call to Action Section */
.page-index__cta-section {
    padding: 60px 0;
    background-color: #FCBC45;
    color: #000000;
    text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-description {
    color: #000000;
}

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

.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: #000000;
    color: #FFFFFF;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__about-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__about-image {
        width: 100%;
        height: auto;
    }
    .page-index__app-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions, .page-index__app-buttons, .page-index__support-actions, .page-index__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__hero-button, .page-index__app-button, .page-index__support-button, .page-index__cta-button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-index__game-grid, .page-index__promo-grid, .page-index__security-features, .page-index__advantage-list {
        grid-template-columns: 1fr;
    }
    .page-index__about-image {
        width: 100%;
        height: auto;
    }
    .page-index__feature-item {
        max-width: none;
        width: 100%;
    }
    .page-index__container {
        padding: 15px;
    }
    /* Mobile content overflow prevention */
    .page-index img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-index {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__hero-button, .page-index__app-button, .page-index__support-button, .page-index__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}