.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 content is below fixed header */
    background-color: #000000; /* Dark background for hero content area */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

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

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

.page-index__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

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

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #ffffff;
    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;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    min-width: 200px; /* Ensure buttons are large enough */
    text-align: center;
}

.page-index__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-index__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

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

.page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__mobile-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__cta-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-index__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

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

.page-index__category-card {
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-index__category-title {
    font-size: 1.6em;
    padding: 15px 20px 5px;
    color: #FCBC45;
}

.page-index__category-description {
    font-size: 0.95em;
    padding: 0 20px 20px;
    line-height: 1.5;
    color: #cccccc;
}

.page-index__center-button {
    text-align: center;
    margin-top: 50px;
}

.page-index__button--primary {
    background-color: #000000;
    color: #FCBC45;
    border: 2px solid #000000;
}

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

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

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

.page-index__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

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

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

.page-index__button--secondary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 10px 20px;
    font-size: 1em;
    min-width: unset;
}

.page-index__button--secondary:hover {
    background-color: #000000;
    color: #FCBC45;
    border-color: #000000;
}

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

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

.page-index__mobile-text {
    flex: 1;
}

.page-index__mobile-text .page-index__section-title {
    color: #FCBC45;
    text-align: left;
}

.page-index__mobile-text .page-index__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-index__mobile-text .page-index__section-intro {
    text-align: left;
    color: #e0e0e0;
    max-width: none;
}

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

.page-index__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(252, 188, 69, 0.4);
}

.page-index__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 30px;
    min-width: 220px;
}

.page-index__button--download:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: #000000;
}

.page-index__responsible-gaming-section {
    background-color: #f0f0f0;
    text-align: center;
}

.page-index__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    margin-top: 40px;
}

.page-index__button--learn-more:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

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

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

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

.page-index__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-index__cta-section {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

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

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

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

.page-index__button--large {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 40px;
    min-width: 250px;
}

.page-index__button--large:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__mobile-text .page-index__section-title,
    .page-index__mobile-text .page-index__section-title::after,
    .page-index__mobile-text .page-index__section-intro {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }
    .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__button {
        min-width: 80%;
    }
    .page-index__container {
        padding: 30px 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-index__features-grid, .page-index__game-categories, .page-index__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__mobile-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__cta-section {
        padding: 50px 0;
    }
    .page-index__mobile-image-wrapper {
        padding: 20px 0;
    }
    .page-index__faq-question {
        font-size: 1.1em;
    }
    .page-index__faq-answer {
        font-size: 0.9em;
    }
    /* Mobile overflow prevention */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__hero-image {
        width: 100%; /* Ensure hero image is responsive */
        height: 100%;
    }
    .page-index__feature-image,
    .page-index__category-image,
    .page-index__promo-image,
    .page-index__mobile-image {
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
}