﻿.article-container {
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    position: relative;
    max-width: 2560px;
    margin: auto;
    background-color: #f7f8fa;
    padding: 0 0 120px;
}

/* 기본 폰트 및 여백 초기화 */
.article-banner-wrapper {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.article-banner-carousel {
    display: flex;
    width: 100%;
    max-width: 2560px;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 20;
    height: 480px;
    margin: 0 auto;
    margin-top: -91px;
}

.article-banner-inner {
    display: flex;
    position: absolute;
    -webkit-transition: -webkit-transform .5s ease-out;
    left: 0;
    transform: translateX(0%);
    width: 100%;
}
/* 배너 아이템: 이미지와 텍스트를 모두 감싸는 기준점 */
.article-banner-item {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: top;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 100%;
    height: 480px;
}

.article-banner-image-container {
    cursor: default;
}

picture {
    line-height: 0;
}

.article-banner-image-container img {
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    height: 480px;
    border-style: none;
}

/* 텍스트 정보 영역: 이미지 위에 배치될 컨테이너 */
.article-banner-info {
    position: absolute;
    box-sizing: border-box;
    width: 540px;
    transform: translateY(-50%);
    left: calc(50% - 542px);
    top: calc((100% + 72px) / 2);
}

    /* 텍스트 스타일 */
    .article-banner-info h1 {
        display: -webkit-box;
        margin-bottom: 17px;
        text-align: left;
        font-size: 2.875rem;
        width: 100%;
        color: #181818;
        font-weight: 500;
        margin: 0;
        line-height: 1.16em;
    }

    .article-banner-info p {
        color: #181818;
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 125%;
        max-height: 126px;
        margin-top: 16px;
        text-align: left;
        cursor: default;
    }

.article-layout-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 0 0;
    background: #f7f8fa;
}


.article-page-layout {
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    width: 100%;
    max-width: 1236px;
    -webkit-column-gap: 32px;
    -moz-column-gap: 32px;
    column-gap: 32px;
    margin: auto;
}

.article-main-content-area {
    width: 100%;
    background: #fff;
    border-radius: 8px;
}

.article-wrapper {
    padding: 56px 56px 0;
    box-sizing: border-box;
    width: 100%;
}

.article-content-box {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.article-date {
    color: #161617;
    margin-block-end: 12px;
    font-size: 16px;
    font-style: normal;
    line-height: 170%;
    letter-spacing: 0.48px;
    text-decoration: none;
}

.article-title {
    margin-block-start: 0;
    color: #181818;
    font-weight: 700;
    font-size: 36px;
    font-style: normal;
    line-height: 125%;
    text-decoration: none;
    margin-block-end: 32px;
}

.article-content-box p {
    color: #161617;
    margin-block-start: 0;
    margin-block-end: 32px;
    font-size: 16px;
    font-style: normal;
    line-height: 170%;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.article-content-box a {
    text-decoration: none;
    color: #13547a;
}

    .article-content-box a:hover {
        text-decoration: underline;
        color: #0051a8;
    }

.article-video-wrapper {
    margin-block: 32px;
    margin-inline: 0;
    margin-block-start: 0;
}

.article-video-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

    .article-video-box iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

picture {
    line-height: 0;
}

.article-img {
    margin-bottom: 32px;
}

    .article-img img {
        display: block;
        max-width: 100%;
        -o-object-fit: contain;
        object-fit: contain;
        height: auto;
        width: auto;
    }

/* ============================================= */
/* 소셜 미디어 공유 바                           */
/* ============================================= */

.article-social-media-bar {
    display: flex;
    margin-block-start: 16px;
    box-sizing: border-box;
    width: 100%;
    padding: 0 56px 40px;
}

.article-share-label {
    color: #181818;
    font-weight: 700;
    font-size: 18px;
    line-height: 170%;
    letter-spacing: .48px;
    text-decoration: none;
    margin-right: 16px;
}

.article-social-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.article-social-button {
    list-style: none;
    width: 32px;
    height: 32px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 16px;
}

.article-icon-wrapper {
    cursor: pointer;
    word-break: break-word;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

    svg {
        outline: none;
    }


/* ============================================= */
/* 사이드바 영역                                 */
/* ============================================= */

.article-sidebar-wrapper {
    max-width: 276px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    row-gap: 48px;
}

.article-sidebar-section {
    box-sizing: border-box;
}

.article-sidebar-title {
    color: #181818;
    margin-block-end: 12px;
    font-weight: 700;
    font-size: 24px;
    line-height: 135%;
    letter-spacing: .02em;
    text-decoration: none;
}

.article-sidebar-toolbar {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    flex-wrap: wrap;
    row-gap: 16px;
}

.article-sidebar-link {
    color: #13547a;
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    background-color: rgba(0, 0, 0, 0);
    word-break: break-word;
    cursor: pointer;
    justify-content: stretch;
    -webkit-box-align: baseline;
    align-items: baseline;
    display: flex;
    cursor: default;
}

.article-sidebar-link-text {
    word-break: break-word;
    color: #13547a;
    -webkit-transition: all .5s;
    transform: translateY(-2px);
    position: relative;
    font-weight: 650;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: .48px;
    text-decoration: none;
}

/*.article-sidebar-link:hover .article-sidebar-link-text {
    color: #002e52;
}*/

.article-sidebar-link svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    -webkit-transition: all .2s ease-in-out;
    transform: translateY(15%);
    margin-right: 8px;
}

    .article-sidebar-link svg path {
        stroke: #13547a;
    }

/*.article-sidebar-link:hover .article-sidebar-link svg path {
    stroke: #002e52;
}
*/
@media (max-width: 768px) {
    /* ============================================= */
    /* 배너 영역 (모바일)                             */
    /* ============================================= */
    .article-banner-carousel {
        height: 320px;
        margin-top: -72px; /* 헤더 높이에 따라 조정 */
    }

    .article-banner-item,
    .article-banner-image-container img {
        height: 320px;
    }

    .article-banner-info {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

        .article-banner-info h1,
        .article-banner-info p{
            text-align: center;
        }

        .article-banner-info h1 {
            max-width: 80px;
            margin: 0 auto;
            font-size: 2rem;
        }

        .article-banner-info p {
            font-size: 1rem;
        }

    /* ============================================= */
    /* 본문 레이아웃 (모바일)                         */
    /* ============================================= */
    .article-layout-wrapper {
        padding: 24px 16px 0;
    }

    .article-page-layout {
        flex-direction: column; /* 본문과 사이드바를 수직으로 쌓음 */
        row-gap: 40px;
    }

    .article-wrapper {
        padding: 24px;
    }

    .article-title {
        font-size: 28px;
        margin-block-end: 24px;
    }

    .article-content-box p {
        font-size: 14px;
        margin-block-end: 24px;
    }

    .article-img {
        margin-bottom: 24px;
    }

    /* ============================================= */
    /* 소셜 미디어 및 사이드바 (모바일)                  */
    /* ============================================= */
    .article-social-media-bar {
        padding: 0 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
    }

    .article-share-label {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .article-sidebar-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .article-sidebar-title {
        font-size: 20px;
    }

    .article-sidebar-link-text {
        font-size: 15px;
    }
}