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

:root {
    --b888-app-primary-color: #11A84E;
    --b888-app-secondary-color: #22C768;
    --b888-app-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --b888-app-card-bg: #11271B;
    --b888-app-background: #08160F;
    --b888-app-text-main: #F2FFF6;
    --b888-app-text-secondary: #A7D9B8;
    --b888-app-border: #2E7A4E;
    --b888-app-glow: #57E38D;
    --b888-app-gold: #F2C14E;
    --b888-app-divider: #1E3A2A;
    --b888-app-deep-green: #0A4B2C;
}

.page-index-app-features {
    font-family: Arial, sans-serif;
    color: var(--b888-app-text-main); /* Default text color for the main content area */
    background-color: var(--b888-app-background);
}

/* Hero Section */
.page-index-app-features__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--b888-app-background);
    overflow: hidden;
}

.page-index-app-features__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-index-app-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-index-app-features__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-index-app-features__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--b888-app-gold);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.page-index-app-features__intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--b888-app-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-app-features__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-index-app-features__btn-primary,
.page-index-app-features__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-app-features__btn-primary {
    background: var(--b888-app-button-gradient);
    color: #ffffff; /* Explicit white for contrast */
    border: none;
}

.page-index-app-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-index-app-features__btn-secondary {
    background-color: transparent;
    color: var(--b888-app-primary-color);
    border: 2px solid var(--b888-app-primary-color);
}

.page-index-app-features__btn-secondary:hover {
    background-color: var(--b888-app-primary-color);
    color: #ffffff; /* Explicit white for contrast */
    transform: translateY(-2px);
}

/* Content Sections */
.page-index-app-features__content-section,
.page-index-app-features__promotions-section,
.page-index-app-features__guide-section,
.page-index-app-features__faq-section,
.page-index-app-features__conclusion-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-index-app-features__dark-bg {
    background-color: var(--b888-app-background);
    color: var(--b888-app-text-main);
}

.page-index-app-features__light-bg {
    background-color: var(--b888-app-card-bg);
    color: var(--b888-app-text-main);
    border: 1px solid var(--b888-app-border);
    border-radius: 10px;
}

.page-index-app-features__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--b888-app-gold);
    text-align: center;
    margin-bottom: 25px;
}

.page-index-app-features__section-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--b888-app-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-index-app-features__features-grid,
.page-index-app-features__promotions-grid,
.page-index-app-features__guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-app-features__feature-card,
.page-index-app-features__promotion-card,
.page-index-app-features__guide-block {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-app-features__feature-icon,
.page-index-app-features__promotion-image,
.page-index-app-features__guide-image {
    width: 100%;
    max-width: 400px; /* Recommended size for content images */
    height: auto;
    display: block;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-app-features__feature-title,
.page-index-app-features__promotion-title,
.page-index-app-features__guide-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--b888-app-primary-color);
    margin-bottom: 15px;
}

.page-index-app-features__feature-text,
.page-index-app-features__promotion-text,
.page-index-app-features__guide-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--b888-app-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-app-features__feature-list {
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--b888-app-text-secondary);
    list-style-type: disc;
}

.page-index-app-features__feature-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.page-index-app-features__feature-list strong {
    color: var(--b888-app-text-main);
}

/* FAQ Section */
.page-index-app-features__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-index-app-features__faq-item {
    background-color: var(--b888-app-card-bg);
    border: 1px solid var(--b888-app-border);
    border-radius: 8px;
    overflow: hidden;
}

.page-index-app-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--b888-app-text-main);
    cursor: pointer;
    background-color: var(--b888-app-deep-green);
    border-bottom: 1px solid var(--b888-app-divider);
    list-style: none; /* For details/summary */
}

.page-index-app-features__faq-question::-webkit-details-marker {
    display: none;
}

.page-index-app-features__faq-question:hover {
    background-color: var(--b888-app-primary-color);
}

.page-index-app-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--b888-app-gold);
}

.page-index-app-features__faq-item[open] .page-index-app-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-app-features__faq-answer {
    padding: 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--b888-app-text-secondary);
    border-top: none;
}

.page-index-app-features__faq-answer p {
    margin-bottom: 0;
}

/* Conclusion Section */
.page-index-app-features__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-app-features__main-title {
        font-size: 2.5em;
    }

    .page-index-app-features__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index-app-features__hero-section,
    .page-index-app-features__content-section,
    .page-index-app-features__promotions-section,
    .page-index-app-features__guide-section,
    .page-index-app-features__faq-section,
    .page-index-app-features__conclusion-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-app-features__main-title {
        font-size: 2em;
    }

    .page-index-app-features__intro-text {
        font-size: 1em;
    }

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

    .page-index-app-features__section-description {
        font-size: 0.95em;
    }

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

    .page-index-app-features__btn-primary,
    .page-index-app-features__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-app-features__features-grid,
    .page-index-app-features__promotions-grid,
    .page-index-app-features__guide-content {
        grid-template-columns: 1fr;
    }

    .page-index-app-features__feature-icon,
    .page-index-app-features__promotion-image,
    .page-index-app-features__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index-app-features__feature-card,
    .page-index-app-features__promotion-card,
    .page-index-app-features__guide-block {
        padding: 20px;
    }

    .page-index-app-features__feature-title,
    .page-index-app-features__promotion-title,
    .page-index-app-features__guide-title {
        font-size: 1.3em;
    }

    .page-index-app-features__feature-text,
    .page-index-app-features__promotion-text,
    .page-index-app-features__guide-text {
        font-size: 0.9em;
    }

    .page-index-app-features__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-index-app-features__faq-answer {
        font-size: 0.85em;
        padding: 15px;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-index-app-features__hero-image-wrapper,
    .page-index-app-features__features-grid,
    .page-index-app-features__promotions-grid,
    .page-index-app-features__guide-content,
    .page-index-app-features__feature-card,
    .page-index-app-features__promotion-card,
    .page-index-app-features__guide-block,
    .page-index-app-features__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-index-app-features__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}