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

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

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

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

.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;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    font-size: 1em;
}

.page-index__button--register {
    background-color: #000000; /* Dark background for register */
    color: #FFFFFF; /* White text for register */
    border: 2px solid #000000;
}

.page-index__button--register:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-index__button--login {
    background-color: #FCBC45; /* Yellow background for login */
    color: #000000;
    border: 2px solid #FCBC45;
    margin-left: 15px;
}

.page-index__button--login:hover {
    background-color: #e0a53a;
    border-color: #e0a53a;
}

.page-index__button--play-now, .page-index__button--claim {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
    min-width: 120px;
}

.page-index__button--play-now:hover, .page-index__button--claim:hover {
    background-color: #e0a53a;
}

.page-index__button--view-all, .page-index__button--learn-more, .page-index__button--join-community {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 10px 25px;
    font-size: 1em;
}

.page-index__button--view-all:hover, .page-index__button--learn-more:hover, .page-index__button--join-community:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-index__button--download-app {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    margin-top: 25px;
    min-width: 200px;
}

.page-index__button--download-app:hover {
    background-color: #e0a53a;
}

.page-index__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
    min-width: 220px;
}

/* Hero Section */
.page-index__hero-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

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

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

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

.page-index__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

.page-index__hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-index__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

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

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

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

.page-index__game-card-title {
    font-size: 1.6em;
    color: #000000;
    margin: 20px 0 10px;
    font-weight: bold;
}

.page-index__game-card-title a {
    color: #000000;
    text-decoration: none;
}

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

.page-index__game-card-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-index__promo-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: bold;
}

.page-index__promo-description {
    font-size: 1em;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-index__view-all-promos {
    text-align: center;
    margin-top: 50px;
}

/* Mobile App Section */
.page-index__mobile-app-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-index__mobile-app-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-index__mobile-text-content {
    flex: 1;
    text-align: left;
}

.page-index__app-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-index__app-features-list li {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-index__app-features-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FCBC45;
}

.page-index__mobile-image-wrapper {
    flex: 1;
    text-align: center;
}

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

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

.page-index__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-index__security-image-wrapper {
    flex: 1;
    text-align: center;
}

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

.page-index__security-text-content {
    flex: 1;
    text-align: left;
}

.page-index__security-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-index__security-features-list li {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-index__security-features-list li::before {
    content: '🛡️';
    position: absolute;
    left: 0;
}

/* Community Section */
.page-index__community-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.page-index__community-cta {
    margin-top: 50px;
}

.page-index__community-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* CTA Section */
.page-index__cta-section {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-index__cta-content {
    max-width: 900px;
}

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

.page-index__cta-section .page-index__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-index__cta-buttons .page-index__button--register {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-index__cta-buttons .page-index__button--register:hover {
    background-color: #e0a53a;
    border-color: #e0a53a;
}

.page-index__cta-buttons .page-index__button--login {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.page-index__cta-buttons .page-index__button--login:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__mobile-app-content, .page-index__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__mobile-text-content, .page-index__security-text-content {
        text-align: center;
    }
    .page-index__app-features-list, .page-index__security-features-list {
        margin: 30px auto;
        max-width: 500px;
    }
    .page-index__app-features-list li, .page-index__security-features-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-index__button--login {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-app-section, .page-index__security-section, .page-index__community-section, .page-index__cta-section {
        padding: 60px 0;
    }
    .page-index__game-image {
        height: 200px;
    }
    .page-index__promo-image {
        height: 220px;
    }
    .page-index__button {
        padding: 10px 20px;
        min-width: 120px;
        font-size: 0.9em;
    }
    .page-index__button--large {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 180px;
    }
    .page-index__hero-image-wrapper, .page-index__mobile-image-wrapper, .page-index__security-image-wrapper {
        max-width: 100%;
    }
    .page-index__hero-image, .page-index__mobile-image, .page-index__security-image, .page-index__community-image {
        max-width: 100%;
        height: auto;
    }
    .page-index__container {
        padding: 0 15px;
    }
    /* Ensure content area images do not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__button {
        min-width: unset;
        width: 100%;
        margin-left: 0 !important;
    }
    .page-index__button--login {
        margin-top: 10px;
    }
    .page-index__button--large {
        width: 100%;
    }
    .page-index__promotions-grid {
        grid-template-columns: 1fr;
    }
}