:root {
    /* Backgrounds */
    --page-index-platform-features-bg: #08160F; /* Background */
    --page-index-platform-features-card-bg: #11271B; /* Card BG */

    /* Text Colors */
    --page-index-platform-features-text-main: #F2FFF6; /* Text Main */
    --page-index-platform-features-text-secondary: #A7D9B8; /* Text Secondary */

    /* Brand Colors */
    --page-index-platform-features-primary: #11A84E; /* Main color */
    --page-index-platform-features-secondary: #22C768; /* Auxiliary color */

    /* Other */
    --page-index-platform-features-border: #2E7A4E; /* Border */
    --page-index-platform-features-glow: #57E38D; /* Glow */
    --page-index-platform-features-gold: #F2C14E; /* Gold */
    --page-index-platform-features-divider: #1E3A2A; /* Divider */
    --page-index-platform-features-deep-green: #0A4B2C; /* Deep Green */

    /* Button Gradient */
    --page-index-platform-features-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-index-platform-features {
    background-color: var(--page-index-platform-features-bg);
    color: var(--page-index-platform-features-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

.page-index-platform-features__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure no overflow */
}

.page-index-platform-features__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content is positioned */
}

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

.page-index-platform-features__hero-content {
    position: relative; /* Relative positioning to ensure it's in normal flow */
    z-index: 2; /* Ensure content is above image if needed, but not overlapping */
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image */
    padding: 40px 20px;
    background-color: var(--page-index-platform-features-card-bg); /* Use card background for contrast */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-index-platform-features-border);
}

.page-index-platform-features__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    color: var(--page-index-platform-features-gold); /* Using gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

.page-index-platform-features__description {
    font-size: 1.1em;
    color: var(--page-index-platform-features-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-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 max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary,
.page-index-platform-features__btn-text {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-index-platform-features__btn-primary {
    background: var(--page-index-platform-features-btn-gradient);
    color: var(--page-index-platform-features-text-main); /* White text on dark button */
    border: 2px solid var(--page-index-platform-features-glow);
    box-shadow: 0 0 15px var(--page-index-platform-features-glow);
}

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

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

.page-index-platform-features__btn-secondary:hover {
    background-color: var(--page-index-platform-features-glow);
    color: var(--page-index-platform-features-bg); /* Dark text on light button */
    transform: translateY(-2px);
}

.page-index-platform-features__btn-text {
    background: none;
    border: none;
    color: var(--page-index-platform-features-glow);
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

.page-index-platform-features__btn-text:hover {
    color: var(--page-index-platform-features-gold);
}

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

.page-index-platform-features__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--page-index-platform-features-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index-platform-features__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--page-index-platform-features-glow);
    border-radius: 2px;
}

.page-index-platform-features__text-block {
    color: var(--page-index-platform-features-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-index-platform-features__sub-title {
    font-size: 1.5em;
    color: var(--page-index-platform-features-text-main);
    margin-bottom: 15px;
}

/* About we1win section */
.page-index-platform-features__about-we1win .page-index-platform-features__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index-platform-features__image-text-content {
    flex: 1;
    min-width: 300px;
}

.page-index-platform-features__image-text-img {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size for content images */
}

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

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

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

.page-index-platform-features__feature-icon {
    width: 100%; /* Card image takes full width of card */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-index-platform-features__card-title {
    font-size: 1.3em;
    color: var(--page-index-platform-features-text-main);
    margin-bottom: 10px;
}

.page-index-platform-features__card-description {
    color: var(--page-index-platform-features-text-secondary);
    font-size: 0.95em;
}

/* Why Choose Us Section */
.page-index-platform-features__why-choose-us .page-index-platform-features__text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-platform-features__why-choose-us .page-index-platform-features__text-item {
    background-color: var(--page-index-platform-features-deep-green);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--page-index-platform-features-border);
}

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

.page-index-platform-features__faq-item {
    background-color: var(--page-index-platform-features-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--page-index-platform-features-divider);
}

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

.page-index-platform-features__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

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

.page-index-platform-features__faq-qtext {
    flex-grow: 1;
}

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

.page-index-platform-features__faq-answer {
    padding: 20px 25px;
    color: var(--page-index-platform-features-text-secondary);
    font-size: 0.95em;
    border-top: 1px solid var(--page-index-platform-features-divider);
}

.page-index-platform-features__faq-answer p {
    margin-bottom: 15px;
}

.page-index-platform-features__faq-answer .page-index-platform-features__btn-text {
    margin-top: 10px;
    display: inline-block;
}

/* Bottom CTA section */
.page-index-platform-features__cta-bottom {
    text-align: center;
    background-color: var(--page-index-platform-features-deep-green);
    border-radius: 15px;
    padding: 50px 20px;
    margin-top: 60px;
    border: 1px solid var(--page-index-platform-features-border);
}

.page-index-platform-features__cta-bottom .page-index-platform-features__section-title {
    margin-bottom: 20px;
}

.page-index-platform-features__cta-bottom .page-index-platform-features__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Global image responsive rules for content images */
.page-index-platform-features img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-index-platform-features__hero-content {
        margin-top: -50px; /* Adjust for smaller screens */
        padding: 30px 15px;
        border-radius: 10px;
    }

    .page-index-platform-features__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-index-platform-features__description {
        font-size: 1em;
        padding: 0 5px;
    }

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

    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        padding: 12px 15px;
    }

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

    .page-index-platform-features__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-index-platform-features__image-text-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-index-platform-features__image-text-img {
        min-width: unset;
    }

    .page-index-platform-features__feature-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-index-platform-features__feature-card {
        padding: 20px;
        border-radius: 10px;
    }

    .page-index-platform-features__feature-icon {
        height: 180px; /* Slightly smaller card image height on mobile */
    }

    .page-index-platform-features__why-choose-us .page-index-platform-features__text-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-index-platform-features__faq-answer {
        padding: 15px 20px;
    }
    
    /* Mobile specific image, video, button overflow fixes */
    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-index-platform-features__hero-image-wrapper,
    .page-index-platform-features__image-text-block,
    .page-index-platform-features__feature-card,
    .page-index-platform-features__why-choose-us .page-index-platform-features__text-grid,
    .page-index-platform-features__faq-list,
    .page-index-platform-features__cta-bottom,
    .page-index-platform-features__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

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