.page-index-platform-features {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-index-platform-features__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-index-platform-features__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Subtle overlay */
}

.page-index-platform-features__main-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__intro-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-index-platform-features__btn {
    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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-platform-features__btn--primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-index-platform-features__btn--primary:hover {
    background-color: #EA7C07; /* Use login color for hover */
    border-color: #EA7C07;
}

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

.page-index-platform-features__btn--secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

/* General Section Styles */
.page-index-platform-features__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff; /* Default for dark background */
}

.page-index-platform-features__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-index-platform-features__light-bg {
    background-color: #ffffff; /* White background for sections */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}
.page-index-platform-features__light-bg .page-index-platform-features__section-title {
    color: #333333;
}
.page-index-platform-features__light-bg .page-index-platform-features__text-block {
    color: #333333;
}

.page-index-platform-features__dark-bg {
    background-color: rgba(38, 169, 224, 0.1); /* Subtle brand color overlay on dark body */
    color: #ffffff;
    padding: 60px 0;
}
.page-index-platform-features__dark-bg .page-index-platform-features__section-title {
    color: #ffffff;
}
.page-index-platform-features__dark-bg .page-index-platform-features__text-block {
    color: #ffffff;
}


/* About Section */
.page-index-platform-features__about-section {
    padding: 60px 0;
}

/* Features Section */
.page-index-platform-features__features-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: rgba(255, 255, 255, 0.08); /* Slightly lighter card on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}
.page-index-platform-features__dark-bg .page-index-platform-features__feature-card {
    color: #ffffff;
}


.page-index-platform-features__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-platform-features__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-index-platform-features__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes content down for equal height */
    text-align: justify;
}

.page-index-platform-features__feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    margin-top: auto; /* Pushes list to bottom for equal height */
}

.page-index-platform-features__feature-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #f0f0f0;
}

.page-index-platform-features__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

.page-index-platform-features__cta-bottom {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Benefits Section */
.page-index-platform-features__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-platform-features__benefit-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    height: 100%;
    box-sizing: border-box;
}

.page-index-platform-features__benefit-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-index-platform-features__benefit-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* How to Join Section */
.page-index-platform-features__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-platform-features__step-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    color: #ffffff;
    height: 100%;
    box-sizing: border-box;
}

.page-index-platform-features__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(38, 169, 224, 0.5);
}

.page-index-platform-features__step-card .page-index-platform-features__card-title {
    margin-top: 30px; /* Adjust for step number */
    color: #26A9E0;
}
.page-index-platform-features__step-card .page-index-platform-features__card-description {
    color: #f0f0f0;
}

/* Video Section */
.page-index-platform-features__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: rgba(38, 169, 224, 0.1); /* Subtle brand color overlay on dark body */
    color: #ffffff;
}

.page-index-platform-features__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px; /* Max width for the video */
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    width: 100%; /* Ensure responsiveness */
}

.page-index-platform-features__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate clickable video */
}

.page-index-platform-features__video-description {
    margin-top: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-platform-features__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-index-platform-features__faq-item {
    border-bottom: 1px solid #eee;
}

.page-index-platform-features__faq-item:last-child {
    border-bottom: none;
}

.page-index-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-platform-features__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-platform-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px;
}

.page-index-platform-features__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-index-platform-features__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Solid brand color background for strong CTA */
    color: #ffffff;
}
.page-index-platform-features__cta-final .page-index-platform-features__section-title {
    color: #ffffff;
}
.page-index-platform-features__cta-final .page-index-platform-features__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-index-platform-features {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-index-platform-features__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-index-platform-features__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-index-platform-features__main-title {
        font-size: 2.2em;
    }
    .page-index-platform-features__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-index-platform-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-platform-features__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Padding */
    .page-index-platform-features__light-bg,
    .page-index-platform-features__dark-bg {
        padding: 40px 0;
    }
    .page-index-platform-features__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important; /* ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    .page-index-platform-features__feature-icon {
        width: 150px !important; /* Smaller but still >200px equivalent for card context */
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Card/Container responsiveness */
    .page-index-platform-features__feature-card,
    .page-index-platform-features__benefit-item,
    .page-index-platform-features__step-card {
        padding: 25px;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Video responsiveness */
    .page-index-platform-features__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-index-platform-features__video-wrapper {
        margin: 30px auto;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-index-platform-features__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-platform-features__faq-list {
        margin: 30px auto 0 auto;
    }
    .page-index-platform-features__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-index-platform-features__faq-answer {
        padding: 0 20px;
    }
    .page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Ensure content sections don't cause horizontal scroll */
    .page-index-platform-features__hero-section,
    .page-index-platform-features__about-section,
    .page-index-platform-features__features-section,
    .page-index-platform-features__benefits-section,
    .page-index-platform-features__how-to-join-section,
    .page-index-platform-features__faq-section,
    .page-index-platform-features__cta-final {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-index-platform-features__main-title {
        font-size: 1.8em;
    }
    .page-index-platform-features__section-title {
        font-size: 1.5em;
    }
}