.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); /* Ensures content is not hidden by 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; /* Minimum height for hero section */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the background image to make text more readable */
    z-index: 1;
}

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

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

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

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

.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-index__button--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

.page-index__button--primary:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

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

.page-index__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-index__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--large:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index__button--small:hover {
    background-color: #333333;
    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: 40px;
    position: relative;
}

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

.page-index__paragraph {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.page-index__about-section, .page-index__responsible-gaming-section, .page-index__customer-support-section, .page-index__call-to-action-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.page-index__why-choose-us-section, .page-index__games-section, .page-index__promotions-section, .page-index__getting-started-section, .page-index__affiliate-vip-section, .page-index__faq-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__step-card, .page-index__split-card, .page-index__faq-item {
    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, .page-index__game-card:hover, .page-index__promo-card:hover, .page-index__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 400px; /* Max width for feature icons */
    margin: 0 auto 20px;
    border-radius: 5px;
    display: block;
    object-fit: cover;
}

.page-index__feature-title, .page-index__game-category-title, .page-index__promo-title, .page-index__step-title, .page-index__faq-question {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-index__feature-description, .page-index__game-category-description, .page-index__promo-description, .page-index__step-description, .page-index__faq-answer {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

.page-index__game-image, .page-index__promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

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

.page-index__split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-index__split-card {
    text-align: left;
}

.page-index__split-card .page-index__section-title {
    text-align: left;
    margin-left: 0;
}

.page-index__split-card .page-index__section-title::after {
    margin-left: 0;
}

.page-index__faq-item {
    text-align: left;
    margin-bottom: 20px;
}

.page-index__faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    font-size: 1.3em;
}

.page-index__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-index__faq-item.active .page-index__faq-question::after {
    transform: rotate(45deg);
}

.page-index__faq-answer {
    display: none;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid #FCBC45;
}

.page-index__faq-item.active .page-index__faq-answer {
    display: block;
}

.page-index__call-to-action-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__call-to-action-section .page-index__section-title {
    color: #FFFFFF;
}

.page-index__call-to-action-section .page-index__section-title::after {
    background-color: #FCBC45;
}

.page-index__call-to-action-section .page-index__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 100%;
    }
    .page-index__features-grid, .page-index__game-categories, .page-index__promo-grid, .page-index__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-index__split-content {
        grid-template-columns: 1fr;
    }
    .page-index__split-card .page-index__section-title {
        text-align: center;
    }
    .page-index__split-card .page-index__section-title::after {
        margin: 15px auto 0;
    }
    .page-index__paragraph {
        font-size: 0.95em;
    }
    .page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__step-card, .page-index__split-card, .page-index__faq-item {
        padding: 20px;
    }
    .page-index__feature-title, .page-index__game-category-title, .page-index__promo-title, .page-index__step-title, .page-index__faq-question {
        font-size: 1.3em;
    }
    /* Ensure all images within .page-index are responsive and do not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    /* Specific override for hero image if needed, though general img rule should cover it */
    .page-index__hero-image {
        max-width: 100%;
        height: auto;
    }
    /* Content images within cards */
    .page-index__feature-icon, .page-index__game-image, .page-index__promo-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
    }
}

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