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

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

.page-index__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #000; /* Dark background for hero image */
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
}

.page-index__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

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

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

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

.page-index__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, color 0.3s ease;
}

.page-index__button--primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red */
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e0b800;
    color: #6a0000;
}

.page-index__button--secondary {
    background-color: #8B0000; /* Dark Red */
    color: #FFD700; /* Gold */
    border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
    background-color: #6a0000;
    color: #ffe066;
}

.page-index__button--text {
    background: none;
    border: none;
    color: #8B0000; /* Dark Red */
    padding: 0;
    font-size: 1em;
}

.page-index__button--text:hover {
    text-decoration: underline;
    color: #FFD700;
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-index__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark Red */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__features-section, .page-index__security-section, .page-index__download-section, .page-index__community-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__cta-final-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-index__about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__about-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

.page-index__about-image-wrapper {
    text-align: center;
}

.page-index__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-index__games-grid, .page-index__promo-grid, .page-index__community-grid, .page-index__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.page-index__game-card:hover, .page-index__promo-card:hover, .page-index__community-card:hover, .page-index__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__game-image, .page-index__promo-image, .page-index__community-image, .page-index__security-icon {
    width: 100%;
    height: 200px; /* Consistent height for card images */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-index__game-title, .page-index__promo-title, .page-index__community-title, .page-index__security-title {
    font-size: 1.5em;
    color: #8B0000; /* Dark Red */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__game-title a, .page-index__promo-title a, .page-index__community-title a {
    text-decoration: none;
    color: inherit;
}

.page-index__game-title a:hover, .page-index__promo-title a:hover, .page-index__community-title a:hover {
    color: #FFD700;
}

.page-index__game-description, .page-index__promo-description, .page-index__community-description, .page-index__security-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-index__cta-center {
    text-align: center;
    margin-top: 20px;
}

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

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

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__feature-title {
    font-size: 1.6em;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

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

.page-index__download-section {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff;
}

.page-index__download-section .page-index__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__download-content .page-index__section-title {
    color: #FFD700; /* Gold */
    text-align: left;
}

.page-index__download-content .page-index__section-subtitle {
    color: #f0f0f0;
    text-align: left;
    margin-bottom: 30px;
}

.page-index__download-image-wrapper {
    text-align: center;
}

.page-index__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index__responsible-gaming-content {
    text-align: center;
}

.page-index__responsible-gaming-content .page-index__section-title {
    color: #8B0000;
}

.page-index__responsible-gaming-content .page-index__section-subtitle {
    color: #555555;
}

.page-index__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    font-size: 1.3em;
    color: #8B0000; /* Dark Red */
    padding: 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-index__faq-answer.active {
    max-height: 200px; /* Adjust based on content */
    padding: 20px;
}

.page-index__faq-answer p {
    margin-bottom: 10px;
}

.page-index__faq-answer a {
    color: #8B0000;
    text-decoration: none;
}

.page-index__faq-answer a:hover {
    text-decoration: underline;
}

.page-index__cta-final-section {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red */
    text-align: center;
}

.page-index__cta-final-section .page-index__section-title {
    color: #8B0000;
}

.page-index__cta-final-section .page-index__section-subtitle {
    color: #6a0000;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }

    .page-index__hero-description {
        font-size: 1.1em;
    }

    .page-index__section-title {
        font-size: 2em;
    }

    .page-index__about-grid, .page-index__download-section .page-index__container {
        grid-template-columns: 1fr;
    }

    .page-index__about-image-wrapper, .page-index__download-content {
        order: -1; /* Image first on mobile */
    }

    .page-index__download-content .page-index__section-title,
    .page-index__download-content .page-index__section-subtitle {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.2em;
    }

    .page-index__hero-description {
        font-size: 1em;
    }

    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__button {
        width: 80%;
        margin: 0 auto;
    }

    .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__features-section, .page-index__security-section, .page-index__download-section, .page-index__community-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__cta-final-section {
        padding: 40px 0;
    }

    .page-index__game-image, .page-index__promo-image, .page-index__community-image, .page-index__security-icon {
        max-width: 100%;
        height: auto; /* Allow height to adjust */
    }

    /* Ensure all images within .page-index are responsive and don't overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__hero-section .page-index__hero-image {
        height: 50vh;
    }
}

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

    .page-index__hero-description {
        font-size: 0.9em;
    }

    .page-index__hero-buttons {
        width: 100%;
    }
    .page-index__button {
        width: 90%;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__faq-question {
        font-size: 1.1em;
    }
    .page-index__faq-answer p {
        font-size: 0.9em;
    }
}