/* Section 3 Styles */
.section-3 {
    max-width: 100%;
    padding: 40px 30px 80px;
    background: white;
}

.section-3-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-3-divider{
    width: 100%;
    height: 1px;
    background: #303030;
    margin-bottom: 60px;
}

/* Card container - mobile vertical layout */
.section-3-cards {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Individual card */
.s3-feature-card {
    display: flex;
    flex-direction: column;
}

/* Card header (icon + title) */
.s3-feature-header {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Check icon */
.s3-feature-check-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s3-feature-check-icon svg {
    width: 100%;
    height: 100%;
}

/* Feature title */
.s3-feature-title {
    font-size: 12px;
    font-weight: 700;
    color: #303030;
    line-height: 1.4;
    padding: 4px 0;
}

/* Hide line breaks on mobile */
.s3-feature-title br {
    display: none;
}

/* Image container */
.s3-feature-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.s3-feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover overlay */
.s3-feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.s3-overlay-text {
    color: white;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* hover */
.s3-feature-card:hover .s3-feature-overlay {
    opacity: 1;
        visibility: visible;
}

/* Show mobile image, hide desktop image on mobile */
.s3-feature-image-pc {
    display: none;
}

.s3-feature-image-mobile {
    display: block;
}

/* Desktop styles */
@media (min-width: 768px) {
    .section-3 {
        padding-top: 140px;
        padding-bottom: 0;
    }

    .section-3-container {
        max-width: 1200px;
    }

    .section-3-divider {
        margin-bottom: 140px;
    }

    /* Desktop horizontal layout */
    .section-3-cards {
        flex-direction: row;
        justify-content: space-between;
    }

    .s3-feature-card {
        flex: 1;
        max-width: 350px;
    }

    /* Center header on desktop */
    .s3-feature-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        height: 86px;
        background: #303030;
        position: relative;
    }

    /* Position check icon above black block */
    .s3-feature-check-icon {
        width: 45px;
        height: 45px;
        position: absolute;
        top: -95px;
        left: 50%;
        transform: translateX(-50%);
        background: transparent;
        border-radius: 50%;
    }

    .s3-feature-title {
        width: 100%;
        height: 86px;
        font-size: 24px;
        font-weight: 500;
        line-height: 30px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Show line breaks on desktop */
    .s3-feature-title br {
        display: block;
    }

    .s3-feature-image-wrapper {
        border-radius: 0;
        margin-top: -1px;
    }

    /* Show desktop image, hide mobile image on desktop */
    .s3-feature-image-pc {
        display: block;
    }

    .s3-feature-image-mobile {
        display: none;
    }

    .s3-feature-card:hover .s3-feature-image {
        transform: scale(1.05);
    }

    .s3-feature-overlay{
        padding: 20px;
    }

    .s3-overlay-text {
        font-size: 16px;
        line-height: 30px;
        padding: 20px;
    }
}
