/* style/index-game-features.css */

/* --- General Styles & Body Background (from shared.css) --- */
/* Body background color is #1c1c1c (dark), so default text should be light */
.page-index-game-features {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1c1c1c; /* Inherited from body, but reinforce for clarity */
}

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

.page-index-game-features__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Light text for dark background */
    font-weight: bold;
}

.page-index-game-features__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0; /* Slightly off-white for description */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-index-game-features__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- Section Backgrounds & Text Colors --- */
.page-index-game-features__dark-bg {
    background-color: #1c1c1c;
    color: #ffffff;
}

.page-index-game-features__light-bg {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast with main body */
    color: #ffffff;
}

/* --- Hero Section --- */
.page-index-game-features__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-index-game-features__hero-section .page-index-game-features__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-index-game-features__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-index-game-features__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: bold;
}

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

.page-index-game-features__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-index-game-features__hero-image-wrapper {
    z-index: 0;
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    margin-top: 40px;
}

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

/* --- Features Overview Section --- */
.page-index-game-features__features-overview {
    padding: 80px 0;
}

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

.page-index-game-features__feature-card {
    background-color: #1c1c1c; /* Darker background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for card content */
}

.page-index-game-features__feature-card:hover {
    transform: translateY(-10px);
}

.page-index-game-features__feature-icon {
    width: 100%;
    max-width: 400px; /* Ensure images are large enough */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index-game-features__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

.page-index-game-features__card-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-index-game-features__card-link {
    display: inline-block;
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FFFF00;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-index-game-features__card-link:hover {
    color: #FFF;
    border-color: #FFF;
}

/* --- Why Choose Section --- */
.page-index-game-features__why-choose {
    padding: 80px 0;
}

.page-index-game-features__why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-game-features__reason-card {
    background-color: #017439; /* Brand color background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* White text for brand color background */
    text-align: center;
}

.page-index-game-features__reason-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-game-features__reason-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-index-game-features__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* --- FAQ Section --- */
.page-index-game-features__faq-section {
    padding: 80px 0;
}

.page-index-game-features__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-index-game-features__faq-item {
    background-color: #1c1c1c; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* Light text for FAQ */
}

.page-index-game-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff; /* White text for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-game-features__faq-question:hover {
    background-color: #005a2e; /* Slightly darker brand color on hover */
}

.page-index-game-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like for active */
}

.page-index-game-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1c1c1c; /* Dark background for answer */
    color: #e0e0e0;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px 25px;
}

.page-index-game-features__faq-answer p {
    margin: 0;
    color: #e0e0e0; /* Ensure paragraph text is light */
}

.page-index-game-features__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ */
    text-decoration: underline;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-index-game-features__hero-title {
        font-size: 3em;
    }
    .page-index-game-features__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index-game-features__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    }
    .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 {
        margin-right: 0; /* Remove margin for stacked buttons */
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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__why-grid {
        grid-template-columns: 1fr;
    }

    .page-index-game-features__feature-card,
    .page-index-game-features__reason-card {
        padding: 25px;
    }

    .page-index-game-features__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile image responsiveness */
    .page-index-game-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-game-features__hero-image-wrapper,
    .page-index-game-features__container,
    .page-index-game-features__section,
    .page-index-game-features__card,
    .page-index-game-features__box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure video containers also adapt (even if no video on this specific page) */
    .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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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