.section-4 {
    width: 100%;
    background: white;
}

/* Container */
.s4-container {
    padding-top: 40px 24px 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* Title area */
.s4-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.s4-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

/* Grid layout */
.s4-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Feature Item */
.s4-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 77px;
    background-color: #F2F2F2;
    position: relative;
    overflow: hidden;
}

/* Icon wrapper */
.s4-icon-wrapper {
    flex-shrink: 0;
    width: 77px;
    height: 77px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #3660FD;
}

/* Icon */
.s4-icon {
    width: 61px;
    height: 61px;
    /* Mobile: white icon */
    filter: brightness(0) invert(1);
}

/* Desktop-only icon */
.s4-icon-desktop {
    display: none;
}

/* Mobile-only icon */
.s4-icon-mobile {
    display: block;
}

/* Title */
.s4-item-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    width: 100%;
}

/* Description (hidden on mobile) */
.s4-description {
    display: none;
}

/* Hover overlay */
.s4-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #3660FD;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.s4-overlay-text {
    color: white;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Desktop styles */
@media (min-width: 768px) {
    .s4-container {
        max-width: 1200px;
        padding: 0;
        padding-top: 200px;
    }

    .s4-title-section {
        margin-bottom: 100px;
    }

    .s4-title {
        font-size: 48px;
    }

    .s4-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 90px 23px;
    }

    /* Feature item - desktop */
    .s4-item {
        flex-direction: column;
        max-width: 280px;
        min-height: 280px;
        background-color: white;
        padding: 32px 7px;
        text-align: center;
        box-shadow: 0px 4px 21.4px 0px #00000021;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .s4-item:hover {
        transform: translateY(-4px);
    }

    /* Desktop hover effect */
    .s4-item:hover .s4-overlay {
        opacity: 1;
        visibility: visible;
    }

    .s4-overlay-text {
        font-size: 14px;
        line-height: 1.8;
        text-align: center;
    }

    .s4-icon-wrapper {
        width: 122px;
        height: 122px;
        margin: 0 auto 16px;
        background-color: transparent;
    }

    .s4-icon {
        width: 100%;
        height: 100%;
        transform: none;
        /* Desktop: black icon */
        filter: brightness(0);
    }

    .s4-icon-desktop {
        display: block;
    }

    .s4-icon-mobile {
        display: none;
    }

    .s4-item-title {
        justify-content: center;
        min-height: auto;
        font-size: 26px;
        font-weight: 500;
        padding: 0;
        max-width: none;
        line-height: 1.25;
        white-space: pre-line;
    }

    .s4-description {
        display: none;
    }
}
