.page-index {
    color: #333333; /* Dark text for default light body background */
}

.page-index__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #FFD700, #8B0000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    min-height: 600px;
}

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

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__hero-button--primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

.page-index__hero-button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-index__hero-button--secondary {
    background-color: #8B0000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__hero-button--secondary:hover {
    background-color: #6a0000;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-index__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-index__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__about-section,
.page-index__game-categories-section,
.page-index__promo-section,
.page-index__login-guide-section,
.page-index__responsible-gaming-section,
.page-index__faq-section,
.page-index__final-cta-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-index__about-section:nth-of-type(even),
.page-index__promo-section:nth-of-type(even),
.page-index__faq-section:nth-of-type(even) {
    background-color: #ffffff;
}

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

.page-index__feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    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-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-index__feature-title {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 15px;
}

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

.page-index__game-categories-section {
    background-color: #f0f0f0;
}

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

.page-index__category-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333333;
    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.15);
}

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

.page-index__category-card h3,
.page-index__category-card p {
    padding: 0 20px;
}

.page-index__category-title {
    font-size: 1.4em;
    color: #8B0000;
    margin: 20px 0 10px;
}

.page-index__category-description {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.page-index__view-all-games {
    text-align: center;
    margin-top: 60px;
}

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

.page-index__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__promo-title {
    font-size: 1.5em;
    color: #8B0000;
    margin: 20px 0 10px;
    padding: 0 20px;
}

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

.page-index__promo-button {
    display: inline-block;
    background-color: #FFD700;
    color: #8B0000;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

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

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

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

.page-index__guide-step {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-index__step-number {
    background-color: #FFD700;
    color: #8B0000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__step-title {
    font-size: 1.4em;
    color: #8B0000;
    margin-bottom: 15px;
}

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

.page-index__guide-cta-group {
    text-align: center;
    margin-top: 60px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-index__responsible-gaming-section .page-index__section-title {
    color: #FFD700;
    border-color: #ffffff;
}

.page-index__responsible-gaming-section .page-index__section-intro {
    color: #f0f0f0;
}

.page-index__responsible-gaming-section .page-index__hero-button--secondary {
    background-color: #FFD700;
    color: #8B0000;
    border-color: #FFD700;
}

.page-index__responsible-gaming-section .page-index__hero-button--secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-index__faq-accordion {
    margin-top: 40px;
}

.page-index__faq-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    color: #8B0000;
    background-color: #fefefe;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index__faq-question:hover {
    background-color: #fff8e1;
}

.page-index__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-index__faq-answer p {
    padding-bottom: 20px;
    line-height: 1.6;
    color: #555555;
}

.page-index__contact-support {
    text-align: center;
    margin-top: 60px;
}

.page-index__contact-support p {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-index__final-cta-section {
    background: linear-gradient(135deg, #8B0000, #FFD700);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.page-index__final-cta-section .page-index__section-title {
    color: #ffffff;
    border-color: #FFD700;
}

.page-index__final-cta-section .page-index__section-intro {
    color: #f0f0f0;
}

.page-index__final-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 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: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
        padding-bottom: 60px;
        min-height: 500px;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-index__about-section, .page-index__game-categories-section, .page-index__promo-section, .page-index__login-guide-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__final-cta-section {
        padding: 60px 0;
    }
    .page-index__hero-image, .page-index__feature-icon, .page-index__category-image, .page-index__promo-image {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    .page-index__category-image {
        height: 180px;
    }
    .page-index__promo-image {
        height: 200px;
    }
    .page-index__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-index__hero-cta-group, .page-index__guide-cta-group, .page-index__final-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__hero-button {
        width: 100%;
        max-width: 280px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__feature-card, .page-index__category-card, .page-index__promo-card, .page-index__guide-step {
        padding: 20px;
    }
    .page-index__category-image {
        height: 150px;
    }
}