.page-index-game-features {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--page-background, #FFFFFF); /* Default background color from shared */
}

.page-index-game-features__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    color: #FFFFFF;
    min-height: 600px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    background-color: #017439; /* Solid primary background for text readability */
}

.page-index-game-features__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3; /* Use opacity for background image to ensure text readability */
}

.page-index-game-features__hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-index-game-features__hero-content,
.page-index-game-features__hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.page-index-game-features__hero-content {
    max-width: 600px;
}

.page-index-game-features__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register and Login Font color for highlight */
}

.page-index-game-features__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-index-game-features__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-game-features__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register and Login Font color */
    border: 2px solid #C30808;
}

.page-index-game-features__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-index-game-features__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-index-game-features__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

.page-index-game-features__hero-image-wrapper {
    flex-shrink: 0;
    margin-left: 40px;
}

.page-index-game-features__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-index-game-features__section {
    padding: 60px 20px;
}

.page-index-game-features__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-index-game-features__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-index-game-features__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

.page-index-game-features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-game-features__feature-grid,
.page-index-game-features__mode-grid,
.page-index-game-features__why-grid,
.page-index-game-features__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index-game-features__feature-card,
.page-index-game-features__mode-card,
.page-index-game-features__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-index-game-features__feature-icon,
.page-index-game-features__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-index-game-features__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-index-game-features__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

.page-index-game-features__btn-link {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index-game-features__btn-link:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-index-game-features__why-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index-game-features__why-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 150px;
}

.page-index-game-features__why-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

.page-index-game-features__why-text {
    color: #555555;
}

.page-index-game-features__cta-center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index-game-features__video-section {
    background-color: #f0f0f0;
}

.page-index-game-features__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
}

.page-index-game-features__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.page-index-game-features__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* FAQ styles */
.page-index-game-features__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-game-features__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-index-game-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-index-game-features__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-index-game-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-index-game-features__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
}

.page-index-game-features__faq-answer p {
    margin-bottom: 10px;
}

.page-index-game-features__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-index-game-features__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-index-game-features__faq-answer a:hover {
    color: #005f2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-game-features__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-index-game-features__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-index-game-features__hero-image-wrapper {
        margin-left: 0;
    }

    .page-index-game-features__hero-title {
        font-size: 2.8em;
    }

    .page-index-game-features__feature-grid,
    .page-index-game-features__mode-grid,
    .page-index-game-features__why-grid,
    .page-index-game-features__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-game-features__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-index-game-features__hero-title {
        font-size: 2.2em;
    }

    .page-index-game-features__hero-description {
        font-size: 1em;
    }

    .page-index-game-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-game-features__btn-primary,
    .page-index-game-features__btn-secondary,
    .page-index-game-features a[class*="button"],
    .page-index-game-features a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-index-game-features__cta-buttons,
    .page-index-game-features__button-group,
    .page-index-game-features__btn-container,
    .page-index-game-features__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-index-game-features__cta-center {
        flex-direction: column; /* For vertical stacking on mobile */
    }

    .page-index-game-features__section {
        padding: 30px 15px;
    }

    .page-index-game-features__section-title {
        font-size: 1.8em;
    }

    .page-index-game-features__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-index-game-features__feature-grid,
    .page-index-game-features__mode-grid,
    .page-index-game-features__why-grid,
    .page-index-game-features__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Images responsiveness */
    .page-index-game-features img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-game-features__section,
    .page-index-game-features__card,
    .page-index-game-features__container,
    .page-index-game-features__hero-image-wrapper,
    .page-index-game-features__feature-card,
    .page-index-game-features__mode-card,
    .page-index-game-features__promo-card,
    .page-index-game-features__why-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness */
    .page-index-game-features video,
    .page-index-game-features__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-game-features__video-section,
    .page-index-game-features__video-container,
    .page-index-game-features__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-index-game-features__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    
    .page-index-game-features__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-index-game-features__faq-answer {
        padding: 15px 20px;
    }
}