/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

.media-section {
    height: 100vh;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    align-items: center;
    scroll-snap-align: start;
}

.media-right-bg {
    position: absolute;
    top: 0;
    right: -0.625rem;
    width: 60vw;
    height: 100%;
    z-index: 0;
}

.media-left-bg {
    position: absolute;
    top: 0;
    left: -0.3125rem;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #d3d3d3;
    background-size: cover;
    background-position: left center;
    opacity: 0.08;
}

.media-inner-column {
    max-width: 95.25rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.media-header {
    margin-top: 7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    z-index: 2;
}

.media-title {
    font-size: 2.5875rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.media-more {
    display: block;
    width: fit-content;
    margin-top: 2.75rem;
    padding: 0.625rem 1.5625rem;
    border: 0.125rem solid var(--main-navi);
    border-radius: 1.875rem;
    color: var(--main-navi);
    font-weight: bold;
    font-size: 1rem;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    margin-left: 40%;
    margin-right: 0;
}

.media-more:hover {
    background-color: var(--main-navi);
    color: white;
}

.notice-box {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    background-color: #d8f0ff;
    border-left: 0.3125rem solid var(--main-navi);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

.notice-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--main-navi);
    margin-bottom: 0.625rem;
    display: block;
}

.notice-list li {
    margin-bottom: 0.625rem;
}

.notice-list li a {
    font-size: 1.15rem;
    color: #333;
    transition: color 0.2s;
    white-space: nowrap;       /* 한 줄로 표시 */
    overflow: hidden;          /* 넘치는 내용 숨김 */
    text-overflow: ellipsis;   /* 말줄임표(...) 표시 */
    display: block;            /* 블록 요소로 설정 */
    max-width: 100%;           /* 부모 기준 최대 너비 */
}


.notice-list li a:hover {
    color: var(--main-navi);
    text-decoration: underline;
}

.slide-column {
    width: 103.5%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.media-slide-list {
    display: flex;
    flex-direction: row;
    animation: scroll-left 30s linear infinite;
    width: max-content;
    padding: 0;
    margin: 0;
}

.media-slide-list li {
    flex: 0 0 auto;
    margin-right: 1rem;
}

.media-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    width: 25rem;
    height: 26rem;
    text-decoration: none;
    color: inherit;
}

.media-card img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    object-position: top;
    border-radius: 0.375rem 0.375rem 0 0;
}

.media-content {
    padding: 0.75rem 0.9375rem;
}

.media-headline {
    color: #1b4d64;
    font-size: 1.2375rem;
    font-weight: bold;
    margin-bottom: 0.3125rem;
    white-space: nowrap;            /* 줄바꿈 방지 */
    overflow: hidden;               /* 넘치는 내용 숨김 */
    text-overflow: ellipsis;        /* 말줄임표(...) 표시 */
    display: block;                 /* block 요소로 설정 */
    max-width: 100%;                /* 부모 크기 기준 제한 */
}

.media-date {
    font-size: 0.75rem;
    color: #777;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 90.0rem){

    .media-inner-column{
        margin:-4rem auto;
    }

}

@media screen and (min-width: 64.0625rem) and (max-width: 89.9375rem){

    .media-inner-column{
        margin: -4rem auto;
    }

    .media-more{
        margin-left: 35%;
        margin-top: -1%;
    }

}

@media screen and (min-width: 48.0rem) and (max-width: 64.0rem){

    .media-inner-column{
        margin: -4rem auto;
    }

    .media-more{
        margin-left: 35%;
        margin-top: -1%;
    }
}

@media screen and (min-width: 30.0625rem) and (max-width: 47.9375rem){

    .media-section{
        height: 260vh;
        margin-top: 30rem;
    }


    .notice-box{
        width: 95%;
    }

    .media-inner-column {
        padding: 0 1rem;
    }

    .media-card {
        width: 18rem;
    }

    .media-headline {
        font-size: 1rem;
    }

    .media-content{
        margin-top: 20px;
    }

    .media-left-bg{
        left: 0;
    }
}

@media screen and (max-width: 30.0rem) and (orientation: portrait) {

    .media-section{
        height: 1000px;
        margin-top: 10rem;
    }

    .media-title{
        font-size: 1.6rem;
    }


    .notice-box{
        width: 87%;
    }

    .media-inner-column {
        padding: 0 1rem;
    }

    .media-card {
        width: 18rem;
        height: 21rem;
    }

    .media-more{
        font-size: 1rem;
        margin-left: 18%;
    }

    .media-card img{
        height: 16rem;
    }

    .media-headline {
        font-size: 1rem;
    }

    .media-content{
    }

    .slide-column{
        margin-left: -5px;
    }
}
