.page-index-platform-advantages {
    background-color: #f8f8f8; /* Light background for the main content area */
    color: #333333; /* Dark text for readability on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-index-platform-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-index-platform-advantages__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text on dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-index-platform-advantages__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-index-platform-advantages__hero-section .page-index-platform-advantages__container {
    position: relative;
    z-index: 2;
}

.page-index-platform-advantages__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for emphasis */
}

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

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

.page-index-platform-advantages__btn-primary,
.page-index-platform-advantages__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-index-platform-advantages__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-index-platform-advantages__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-index-platform-advantages__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-index-platform-advantages__intro-section,
.page-index-platform-advantages__features-section,
.page-index-platform-advantages__why-choose-us,
.page-index-platform-advantages__faq-section {
    padding: 60px 0;
}

.page-index-platform-advantages__intro-section,
.page-index-platform-advantages__why-choose-us,
.page-index-platform-advantages__faq-section {
    background-color: #ffffff; /* Light background for these sections */
    color: #333333;
}

.page-index-platform-advantages__features-section {
    background-color: #017439; /* Dark background for features section */
    color: #ffffff;
}

.page-index-platform-advantages__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section, ensuring contrast */
}

.page-index-platform-advantages__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-index-platform-advantages__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-index-platform-advantages__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 800px; /* Max width for video */
}

.page-index-platform-advantages__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block; /* Ensure video takes full width */
}

.page-index-platform-advantages__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent; /* Make it invisible */
}

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

.page-index-platform-advantages__feature-card {
    background-color: #ffffff; /* Light background for feature cards */
    color: #333333; /* Dark text on light background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 450px; /* Ensure cards have consistent height */
}

.page-index-platform-advantages__feature-card:hover {
    transform: translateY(-5px);
}

.page-index-platform-advantages__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px; /* Max width for feature images */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 200px; /* Minimum size for content images */
    max-height: 250px; /* Max height to keep card consistent */
}

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

.page-index-platform-advantages__card-description {
    font-size: 0.95em;
    text-align: justify;
}

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

.page-index-platform-advantages__faq-item {
    background-color: #f0f0f0; /* Slightly off-white for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-index-platform-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff; /* White background for question */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-index-platform-advantages__faq-question:hover {
    background-color: #f5f5f5;
}

.page-index-platform-advantages__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #017439; /* Brand color for FAQ questions */
}

.page-index-platform-advantages__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-index-platform-advantages__faq-item.active .page-index-platform-advantages__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #C30808; /* Red for active toggle */
}

.page-index-platform-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0; /* Answer background */
}

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

.page-index-platform-advantages__faq-answer p {
    margin: 0;
    color: #555555;
}

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

@media (max-width: 768px) {
    .page-index-platform-advantages__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-index-platform-advantages__hero-title {
        font-size: 2.5em;
    }
    .page-index-platform-advantages__hero-description {
        font-size: 1em;
    }
    .page-index-platform-advantages__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-platform-advantages__btn-primary,
    .page-index-platform-advantages__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure full width on mobile */
    }

    .page-index-platform-advantages__intro-section,
    .page-index-platform-advantages__features-section,
    .page-index-platform-advantages__why-choose-us,
    .page-index-platform-advantages__faq-section {
        padding: 40px 0;
    }
    .page-index-platform-advantages__section-title {
        font-size: 1.8em;
    }
    .page-index-platform-advantages__section-subtitle {
        font-size: 0.9em;
    }
    .page-index-platform-advantages__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-index-platform-advantages__feature-card {
        min-height: auto; /* Allow height to adjust on mobile */
    }
    .page-index-platform-advantages__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile image responsiveness */
    .page-index-platform-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-platform-advantages__section,
    .page-index-platform-advantages__card,
    .page-index-platform-advantages__container,
    .page-index-platform-advantages__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile video responsiveness */
    .page-index-platform-advantages video,
    .page-index-platform-advantages__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-platform-advantages__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-platform-advantages__video-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile button responsiveness */
    .page-index-platform-advantages__cta-button,
    .page-index-platform-advantages__btn-primary,
    .page-index-platform-advantages__btn-secondary,
    .page-index-platform-advantages a[class*="button"],
    .page-index-platform-advantages a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding for buttons on mobile */
        padding-right: 15px;
    }
    .page-index-platform-advantages__cta-buttons,
    .page-index-platform-advantages__button-group,
    .page-index-platform-advantages__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Ensure content area doesn't cause horizontal scroll */
.page-index-platform-advantages {
    overflow-x: hidden;
}