/* Differentiation Section Refonte */

.refonte-differentiation-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 64px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    /* Change to column to stack content and button */
    align-items: center;
    gap: 48px;
    position: relative;
    box-sizing: border-box;
}

.diff-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
}

/* Sticky Header */
.diff-header-sticky {
    position: sticky;
    top: 150px;
    /* Adjust based on header height */
    width: 50%;
    /* Half width */
    flex: 1;
    /* Grow to fill space */
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* or flex-start if title should be left aligned, but title has text-align center */
    gap: 48px;
}

.diff-title {
    color: var(--Dark-green, var(--Dark-green, #003329));
    font-family: var(--font-primary);
    font-size: 48px;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    line-height: 48px;
    /* 100% */
    letter-spacing: -0.576px;
    margin-top: 0;
    /* Ensure no top margin by default if needed */
}

/* Cards Container */
.diff-cards-container {
    flex: 1;
    /* Grow to fill space */
    width: 50%;
    /* Half width */
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 80px;
    /* Space at bottom for scroll comfort */
    box-sizing: border-box;
    align-items: flex-start;
    /* Align cards to left of their column */
}

/* Card */
.diff-card {
    background: #F7F9F8;
    /* Very light grey/green from image background */
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    opacity: 0;
    transform: translateY(100px);
    /* Start lower for scroll animation */
    /* Ensure padding + content respects border-box model */
    box-sizing: border-box;
    width: 100%;
    max-width: 559px;
    /* Max width from request */
}

.diff-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-image-container {
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    /* Maintain aspect ratio if needed, or let content dictate */
}

.card-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex-direction: column;
    /* gap: 8px; - Replaced by margin-bottom on title for explicit control */
}

.card-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    color: #181D27;
    /* Or #003329? Image looks dark. */
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.card-description {
    color: var(--Colors-Text-text-primary-900, #181D27);
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 137.5% */
    margin: 0;
}

/* CTA Button */
.diff-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.btn-diff-demo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #003329;
    /* Dark Green */
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-diff-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 41, 0.3);
}

.btn-diff-demo span {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #D8F283;
    /* Lime Green */
    line-height: 1;
}

.btn-diff-demo .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* The SVG inside already has the correct colors: lime rect, dark arrow */
}

.btn-diff-demo .btn-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1024px) {
    .diff-content-wrapper {
        flex-direction: column;
    }

    .refonte-differentiation-section {
        padding: 64px 24px;
    }

    .diff-header-sticky {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 40px;
    }

    .diff-cards-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .refonte-differentiation-section {
        padding: 48px 16px;
        align-items: stretch;
    }

    .diff-header-sticky {
        width: 100%;
        margin-bottom: 32px;
        align-items: center;
        /* Center header content */
    }

    .diff-title {
        font-size: 28px;
        /* Slightly smaller */
        text-align: center;
        width: 100%;
    }

    .diff-cards-container {
        width: 100%;
        align-items: stretch;
        /* Ensure cards fill width */
        padding-bottom: 0;
    }

    .diff-card {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .card-title {
        font-size: 22px;
    }

    .card-description {
        font-size: 15px;
    }

    .btn-diff-demo {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}