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

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

.page-index-platform-features {
    font-family: 'Arial', sans-serif;
    color: var(--vnjun88-text-secondary);
    background-color: var(--vnjun88-background); /* Body background handled by shared.css, this is for main content area */
}

.page-index-platform-features__dark-bg {
    background-color: var(--vnjun88-background);
    color: var(--vnjun88-text-secondary);
}

.page-index-platform-features__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-index-platform-features__text-main {
    color: var(--vnjun88-text-main);
}

.page-index-platform-features__text-secondary {
    color: var(--vnjun88-text-secondary);
}

.page-index-platform-features__card-bg {
    background-color: var(--vnjun88-card-bg);
}

/* Hero Section */
.page-index-platform-features__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    text-align: center;
}

.page-index-platform-features__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

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

.page-index-platform-features__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Ensure content is above image if z-index issues */
    z-index: 2; /* Ensure content is always visible */
}

.page-index-platform-features__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--vnjun88-gold-color); /* Using gold for main title for prominence */
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-index-platform-features__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--vnjun88-text-main);
}

.page-index-platform-features__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-index-platform-features__btn-primary {
    background: var(--vnjun88-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-index-platform-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-index-platform-features__btn-secondary {
    background-color: transparent;
    color: var(--vnjun88-text-main);
    border: 2px solid var(--vnjun88-primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-index-platform-features__btn-secondary:hover {
    background-color: var(--vnjun88-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* General Section Styles */
.page-index-platform-features__section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-index-platform-features__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--vnjun88-text-main);
}

.page-index-platform-features__section-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--vnjun88-text-secondary);
}

/* Features Grid */
.page-index-platform-features__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-platform-features__feature-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--vnjun88-border-color);
}

.page-index-platform-features__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.page-index-platform-features__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index-platform-features__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-index-platform-features__feature-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Image Text Block */
.page-index-platform-features__image-text-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 60px;
    text-align: left;
}

.page-index-platform-features__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-index-platform-features__content-image {
    flex: 1;
    width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index-platform-features__text-content {
    flex: 1;
}

.page-index-platform-features__sub-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Promotions Section */
.page-index-platform-features__promotions-section {
    background-color: var(--vnjun88-deep-green);
    padding: 80px 20px;
}

.page-index-platform-features__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-platform-features__promotion-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid var(--vnjun88-border-color);
}

.page-index-platform-features__promotion-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index-platform-features__promotion-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--vnjun88-gold-color);
}

.page-index-platform-features__promotion-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Steps Grid */
.page-index-platform-features__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-platform-features__step-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--vnjun88-border-color);
}

.page-index-platform-features__step-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index-platform-features__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--vnjun88-text-main);
}

.page-index-platform-features__step-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--vnjun88-text-secondary);
}

.page-index-platform-features__cta-bottom {
    margin-top: 50px;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
    background-color: var(--vnjun88-deep-green);
    padding: 80px 20px;
}

.page-index-platform-features__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-index-platform-features__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--vnjun88-border-color);
}

.page-index-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--vnjun88-card-bg);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--vnjun88-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-index-platform-features__faq-item[open] > .page-index-platform-features__faq-question {
    background-color: var(--vnjun88-primary-color);
    color: #ffffff;
}

.page-index-platform-features__faq-item[open] > .page-index-platform-features__faq-question .page-index-platform-features__faq-toggle {
    color: #ffffff;
}

.page-index-platform-features__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vnjun88-primary-color);
    margin-left: 15px;
}

.page-index-platform-features__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    background-color: rgba(17, 39, 27, 0.8);
    border-top: 1px solid var(--vnjun88-divider-color);
    color: var(--vnjun88-text-secondary);
}

/* Conclusion Section */
.page-index-platform-features__conclusion-section {
    padding: 80px 20px;
    background-color: var(--vnjun88-background);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-platform-features__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-index-platform-features__image-text-block--reverse {
        flex-direction: column;
    }

    .page-index-platform-features__content-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-platform-features__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-index-platform-features__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-index-platform-features__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .page-index-platform-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-index-platform-features__section {
        padding: 50px 15px;
    }

    .page-index-platform-features__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-index-platform-features__section-description {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        margin-bottom: 30px;
    }

    .page-index-platform-features__features-grid,
    .page-index-platform-features__promotion-cards,
    .page-index-platform-features__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-platform-features__feature-card,
    .page-index-platform-features__promotion-card,
    .page-index-platform-features__step-card {
        padding: 25px;
    }

    .page-index-platform-features__feature-title {
        font-size: 1.3rem;
    }

    .page-index-platform-features__sub-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .page-index-platform-features__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-platform-features__container,
    .page-index-platform-features__hero-content,
    .page-index-platform-features__cta-buttons,
    .page-index-platform-features__faq-list,
    .page-index-platform-features__image-text-block,
    .page-index-platform-features__features-grid,
    .page-index-platform-features__promotion-cards,
    .page-index-platform-features__steps-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Ensure all images inside page-index-platform-features are responsive */
    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all video elements inside page-index-platform-features are responsive */
    .page-index-platform-features video,
    .page-index-platform-features__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video containers mobile adaptation */
    .page-index-platform-features__video-section,
    .page-index-platform-features__video-container,
    .page-index-platform-features__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}