@charset "utf-8";

.s3-wrapper {
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
}

.s3-slider-wrap {
    position: relative;
    margin-bottom: 20px;
}

.s3-swiper {
    overflow: hidden;
}

.s3-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.s3-arrow:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.s3-prev {
    left: -60px;
}

.s3-next {
    right: -60px;
}

.s3-top-grid {
    display: flex;
}

.s3-article {
    padding: 20px 30px;
    border-right: 1px solid #e5e5e5;
    position: relative;
    padding-bottom: 70px;
    box-sizing: border-box;
    height: 300px;
}

.s3-article.swiper-slide {
}

.s3-article:last-child {
    border-right: none;
}

.s3-article-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #111;
}

.s3-article-header::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #222;
    margin-right: 10px;
}

.s3-article h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #111;
    word-break: keep-all;
    height: 51px; /* 2줄 고정 높이 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.s3-article p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 68px; /* 3줄 고정 높이 */
    margin-bottom: 20px;
}

.s3-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
}

.s3-date {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
}

.s3-date i {
    margin-right: 5px;
    font-size: 14px;
}

.s3-plus {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

.s3-plus i {
    vertical-align: middle;
}

.s3-bottom-services {
    display: flex;
    align-items: stretch;
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.s3-service-title {
    background: #5a5d62;
    color: #fff;
    padding: 25px 40px;
    font-weight: 700;
    font-size: 17px;
    position: relative;
    display: flex;
    align-items: center;
}

.s3-service-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-left: 15px solid #5a5d62;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    z-index: 2;
}

.s3-service-list {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.s3-service-item {
    text-align: center;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    padding: 10px;
    box-sizing: border-box;
    word-break: keep-all;
}

.s3-service-item:hover {
    color: #000;
}

.s3-service-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
    color: #444;
}

.s3-service-text {
    font-size: 14px;
    letter-spacing: -0.5px;
    font-weight: 500;
}

.color-blue {
    color: #0056b3 !important;
}

@media (max-width: 1350px) {
    .s3-prev {
        left: -10px;
    }

    .s3-next {
        right: -10px;
    }

    .s3-arrow {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 991px) {
    .s3-article {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .s3-article:nth-child(odd) {
        border-right: 1px solid #e5e5e5;
    }

    .s3-bottom-services {
        flex-direction: column;
    }

    .s3-service-title {
        justify-content: center;
        padding: 15px;
    }

    .s3-service-title::after {
        display: none;
    }

    .s3-service-list {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .s3-article {
        border-right: none !important;
        border-bottom: 1px solid #e5e5e5;
    }

    .s3-service-item {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 5px;
    }
    
    .s3-service-text {
        font-size: 13px;
        word-break: keep-all;
    }
}
