/* Retain Customers Section */
.retain-customers {
    background: #f6f6f6;
    padding: 100px 20px;
    text-align: center;
}

.retain-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.retain-header {
    margin-bottom: 80px;
}

.retain-title {
    font-size: 3em;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.retain-title .highlight {
    color: #993ab3;
}

.retain-subtitle {
    font-size: 1.3em;
    font-weight: 400;
    color: #59626b;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* Features Row */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 90%;
    margin: 0 auto 120px auto;
    align-items: start;
}

.feature-column {
    text-align: left;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.retain-feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    object-fit: contain;
}

.plus-icon {
    display: none;
}

.feature-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Default state - only first feature (Broadcast) is unblurred and active */
.feature-column:not(.active) .feature-name {
    color: #c0c0c0;
}

.feature-column:not(.active) .feature-tagline,
.feature-column:not(.active) .retain-feature-description {
    filter: blur(1.5px);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.feature-column.active .feature-name {
    color: #333;
}

.feature-column.active .feature-tagline,
.feature-column.active .retain-feature-description {
    filter: blur(0);
    opacity: 1;
}

/* Remove hover effects for desktop */

.feature-tagline {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-shrink: 0;
}

.retain-feature-description {
    font-size: 0.9em;
    color: #59626b;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
}

/* Video Section Below Features Container (Desktop) */
.desktop-video-section {
    display: none;
}

.desktop-video-section.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.desktop-video-container {
    width: 60%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
    margin: 0 auto;
}

.desktop-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide individual feature videos on desktop */
.feature-video {
    display: none;
}

/* Hide mobile videos on desktop */
.feature-video-mobile {
    display: none;
}

/* Vertical Layout for screens smaller than 900px */
@media (max-width: 900px) {
    .features-row {
        width: 65%;
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 600px;
        margin-bottom: 80px;
    }

    .feature-column {
        display: flex;
        flex-direction: column;
        padding: 30px 0;
        cursor: pointer;
    }

    /* Feature Header Row */
    .feature-header {
        display: flex;
        justify-content: space-between;
        padding-bottom: 5px;
        border-bottom: 2px solid;
        border-image: linear-gradient(to right, #d4a5e8, #ede2f2) 1;
        align-items: center;
        margin-bottom: 20px;
    }

    .feature-header-left {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .feature-column .retain-feature-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .feature-column .feature-name {
        font-size: 1.3em;
    }

    .plus-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #993ab3;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 300;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .plus-icon:hover {
        background: #7c2d92;
        transform: rotate(45deg);
    }

    .plus-icon.active {
        transform: rotate(45deg);
        background: #7c2d92;
    }

    /* Feature Content */
    .feature-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .feature-column .feature-tagline {
        font-size: 1.1em;
        margin-bottom: 10px;
        color: #333;
        font-weight: 600;
    }

    .feature-column .retain-feature-description {
        font-size: 1em;
        line-height: 1.6;
        text-align: center;
        color: #59626b;
        margin-bottom: 20px;
    }

    /* Show mobile videos on mobile */
    .feature-video-mobile {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        opacity: 0;
    }

    .feature-video-mobile.active {
        max-height: 300px;
        opacity: 1;
        margin-top: 20px;
    }

    .feature-video-mobile .video-container {
        border-radius: 10px;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        background: white;
    }

    .feature-video-mobile .video-container video {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Hide desktop video section on mobile */
    .desktop-video-section {
        display: none !important;
    }

    /* Reset blur effects for mobile - all content visible */
    .feature-column .feature-name,
    .feature-column .feature-tagline,
    .feature-column .retain-feature-description {
        color: #000000 !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .retain-customers {
        padding: 80px 15px;
    }

    .retain-container {
        max-width: 85%;
    }

    .retain-title {
        font-size: 2.5em;
    }

    .retain-subtitle {
        font-size: 1.2em;
    }

    .features-row {
        max-width: 100%;
    }

    .feature-column {
        padding: 25px 0;
    }

    .feature-header-left {
        gap: 15px;
    }

    .feature-column .retain-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .feature-column .feature-name {
        font-size: 1.2em;
    }

    .plus-icon {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .retain-customers {
        padding: 60px 15px;
    }

    .retain-title {
        font-size: 2em;
    }

    .retain-subtitle {
        font-size: 1.1em;
    }

    .feature-column {
        padding: 20px 0;
    }

    .feature-header-left {
        gap: 12px;
    }

    .feature-column .retain-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .feature-column .feature-name {
        font-size: 1.1em;
    }

    .feature-column .feature-tagline {
        font-size: 1em;
    }

    .feature-column .retain-feature-description {
        font-size: 0.9em;
    }

    .plus-icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .feature-video-mobile .close-video {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}
