/* style/index-app-features.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-card: #11271B;
    --bg-main: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-index-app-features {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--bg-main);
    line-height: 1.6;
}

.page-index-app-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-index-app-features__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background-color: var(--bg-main);
    overflow: hidden;
}

.page-index-app-features__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-index-app-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-index-app-features__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    z-index: 1;
    color: var(--text-main);
}

.page-index-app-features__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-index-app-features__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-index-app-features__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index-app-features__btn-primary,
.page-index-app-features__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    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;
    text-align: center;
}

.page-index-app-features__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-index-app-features__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
}

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

.page-index-app-features__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--bg-main);
    transform: translateY(-2px);
}

/* Section Titles and Text Blocks */
.page-index-app-features__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold-color);
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-index-app-features__section-title--dark {
    color: var(--deep-green-color);
    text-shadow: none;
}

.page-index-app-features__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-app-features__text-block--dark {
    color: #333333; /* Dark text for light background */
}

.page-index-app-features__text-block--small {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Dark Section Styling */
.page-index-app-features__dark-section {
    background-color: var(--bg-card);
    padding: 60px 0;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

/* Light Background Section Styling */
.page-index-app-features__light-bg {
    background-color: var(--text-main);
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

/* Video Section */
.page-index-app-features__video-section {
    padding: 60px 0;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--bg-main);
    text-align: center;
    border-bottom: 1px solid var(--divider-color);
}

.page-index-app-features__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-index-app-features__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    min-height: 200px; /* Ensure minimum size */
}

.page-index-app-features__cta-buttons--video {
    margin-top: 30px;
}

/* Features Section */
.page-index-app-features__features-section {
    padding: 60px 0;
}

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

.page-index-app-features__feature-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-index-app-features__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-index-app-features__feature-icon {
    width: 100%; /* Occupy card's main visual area */
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-index-app-features__feature-description {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Download Guide Section */
.page-index-app-features__download-guide-section {
    padding: 60px 0;
}

.page-index-app-features__download-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index-app-features__download-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-index-app-features__download-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.page-index-app-features__download-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index-app-features__download-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    color: var(--text-secondary);
}

.page-index-app-features__download-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-index-app-features__download-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

/* Benefits Section */
.page-index-app-features__benefits-section {
    padding: 60px 0;
}

.page-index-app-features__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-app-features__benefit-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-index-app-features__benefit-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-app-features__benefit-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-index-app-features__benefit-description {
    font-size: 1em;
    color: var(--text-secondary);
}

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

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

.page-index-app-features__faq-item {
    background-color: var(--deep-green-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-index-app-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green-color);
    transition: background-color 0.3s ease;
    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(--primary-color);
}

.page-index-app-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-index-app-features__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.page-index-app-features__faq-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.page-index-app-features__btn-primary--small,
.page-index-app-features__btn-secondary--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-app-features__hero-image-wrapper {
        max-height: 500px;
    }

    .page-index-app-features__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-index-app-features__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-index-app-features__container {
        padding: 0 15px;
    }

    .page-index-app-features__hero-section,
    .page-index-app-features__introduction-section,
    .page-index-app-features__video-section,
    .page-index-app-features__features-section,
    .page-index-app-features__download-guide-section,
    .page-index-app-features__benefits-section,
    .page-index-app-features__faq-section,
    .page-index-app-features__conclusion-section {
        padding: 40px 0;
    }

    .page-index-app-features__hero-image-wrapper {
        max-height: 400px;
    }

    .page-index-app-features__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }

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

    .page-index-app-features__section-title {
        font-size: clamp(1.4em, 5.5vw, 2em);
    }

    .page-index-app-features__text-block {
        font-size: 0.95em;
    }

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

    .page-index-app-features__btn-primary,
    .page-index-app-features__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-index-app-features__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Images responsive */
    .page-index-app-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-app-features__hero-image-wrapper,
    .page-index-app-features__video-wrapper,
    .page-index-app-features__feature-grid,
    .page-index-app-features__download-steps,
    .page-index-app-features__benefits-grid,
    .page-index-app-features__faq-list,
    .page-index-app-features__cta-buttons,
    .page-index-app-features__faq-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-index-app-features__feature-card,
    .page-index-app-features__download-item,
    .page-index-app-features__benefit-item {
        min-width: unset;
        max-width: 100%;
    }

    .page-index-app-features__video {
        min-height: unset;
    }

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

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

    .page-index-app-features__faq-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-index-app-features__hero-section {
        padding-top: 20px;
    }
    .page-index-app-features__main-title {
        font-size: clamp(1.4em, 7vw, 2.2em);
    }
    .page-index-app-features__section-title {
        font-size: clamp(1.2em, 6.5vw, 1.8em);
    }
    .page-index-app-features__faq-question {
        font-size: 1em;
    }
}