html, body {
    /* pan-x pan-y: 상하좌우 스크롤은 허용하되, 확대(pinch) 제스처는 무시 */
    touch-action: pan-x pan-y !important;
    -ms-touch-action: pan-x pan-y !important;

    /* 가로 스크롤 방지 (확대 시 레이아웃 깨짐 방지) */
    width: 100%;
    overflow-x: hidden;
}

@media screen and (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .site-wrap {
        transform: none !important;
        width: 100% !important;
        position: relative;
        top: 0;
        left: 0;
        overflow-x: hidden;
    }

    .main-visual {
        position: relative;
        top: 0;
        height: auto;
        min-height: 600px;
        background: #00538E;
        overflow: hidden;
        margin-top: 70px;
    }

    .main-visual-slides {
        display: flex;
        width: 100%;
        will-change: transform;
    }

    .main-visual-slides > [id^="slide"] {
        flex: 0 0 100%;
    }

    .main-slider-image {
        width: 100%;
        height: 600px;
        object-fit: cover;
        position: relative;
    }

    .main-text-block {
        left: 20px;
        top: 38px;
        width: calc(100% - 40px);
        text-align: center;
    }

    .img_text_header {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .img_text_title {
        font-size: 40px;
        line-height: 1.2;
        bottom: 0;
        margin-bottom: 20px;
    }

    .img_text_sub {
        font-size: 18px;
        margin-top: 20px;
        bottom: 0;
    }

    .main-btn {
        top: auto;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 16px;
        width: 122px;
        height: 43px;
    }

    .web-slider-controls {
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 50px;
        width: 90%;
    }

    .mobile-slider-controls {
        display: none;
    }

    .nav-bar-1 {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    .nav-bar-flex {
        flex-direction: column;
        height: 110px;
    }

    .nav-bar-left, .nav-bar-right {
        width: 100%;
        padding: 0;
    }

    .nav-btn {
        width: 100%;
        height: 60px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-bar-right {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        font-size: 13px;
        font-weight: 600;
        color: #052959;
        white-space: nowrap;
    }

    .nav-bar-right a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .nav-bar-right .bar {
        width: 2px;
        height: 10px;
        background: #143355;
        display: inline-block;
        margin: 0 2px;
        vertical-align: middle;
    }

    #news-section {
        margin-top: 30px;
        width: 100%;
    }

    .wrap-news {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100% !important;
        margin-left: 0;
    }

    .news-cols {
        flex-direction: column;
        width: 100% !important;
        gap: 20px;
    }

    .news-col {
        flex: none;
        width: 100%;
        padding: 0 20px;
        margin-top: 40px;
        box-sizing: border-box;
    }

    .news-header {
        height: auto;
        padding-top: 10px;
        position: relative;
    }

    .news-tabs {
        gap: 15px;
        font-size: 18px;
        margin-left: 0;
        flex-wrap: wrap;
        padding-bottom: 15px;
        white-space: nowrap;
    }

    .tab-content {
        width: 100% !important;
    }

    .news-item {
        width: 100%;
        margin: 10px 0;
        padding: 10px 0;
        height: auto;
        box-sizing: border-box;
    }

    .news-content {
        font-size: 14px;
        flex-grow: 1;
        flex-shrink: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-title {
        font-size: 21px;
        display: block;
        padding-bottom: 13px;
    }

    .news-tabs {
        gap: 8px;
        font-size: 15px;
        margin-left: 0;
        flex-wrap: wrap;
        padding-bottom: 13px;
    }

    .news-more_1,
    .news-more_2,
    .acad-more,
    .people-more {
        position: absolute;
        right: -2%;
        font-size: 1rem;
        padding: 5px 8px;
    }


    .people-more {
        position: static;
        margin-top: 25px;
        margin-bottom: 13px;
        margin-left: 72%;
    }

    .news-more_1 {
        font-size: 1rem;
        margin-left: 18%;
        margin-top: 21px;
    }

    .news-more_2 {
        margin-left: 90%;
        font-size: 1rem;
        margin-top: 6%;
    }


    .acad-more {
        margin-left: 80%;
        font-size: 1rem;
    }


    .acad-header .sdu-title {
        position: relative;
        top: 38px;
        margin-right: 80%;
    }

    .news-tag {
        font-size: 11px;
        padding: 4px 8px;
        margin-right: 8px;
    }

    .news-date {
        font-size: 13px;
        padding-left: 8px;
        min-width: auto;
        white-space: nowrap;
    }

    .sdu-department-container {
        width: calc(100% - 20px) !important;
        margin: 50px auto 10px auto !important;
        min-height: 640px !important;
        height: auto !important;
        padding: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        transform: none !important;
        top: 0;
        left: 0;
    }

    .deps-header .sdu-title {
        position: absolute !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
        width: auto !important;
        transform: none !important;
        margin-left: 2%;
    }

    .deps-btn .sdu-department,
    .acad-nav .sdu-department,
    .mob-sns-btn .sdu-department {
        width: 32px;
        height: 32px;
        font-size: 20px;
        margin: 4px;
        line-height: 0;
    }

    .sdu-title {
        position: static;
        margin: 0 auto;
        font-size: 22px;
        padding-top: 0;
        left: 0 !important;
        bottom: 0 !important;
    }

    .acad-nav {
        position: relative;
        margin-top: -40px;
        left: 82px;
    }

    .deps-btn {
        position: absolute !important;
        margin: 0 !important;
        left: 87px !important;
        bottom: 605px !important;
        top: auto !important;
        display: flex;
        gap: 5px;
        z-index: 3;
    }

    .sdu-department {
        position: static;
        margin: 0 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .dept-grid-group {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: auto !important;

        transition: transform 0.4s ease-in-out;
        transform: translateX(100%);

        display: grid !important;
        box-sizing: border-box !important;
        background-color: #fff;
        margin-top: 50px;
    }

    .dept-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .dept-box {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border: 1px solid #e3ebf4;
        padding: 10px 5px !important;
        height: 190px;
        white-space: normal;
        background: #fff;
        opacity: 1 !important;
        aspect-ratio: 1/1;
    }

    .dept-title {
        display: inline-block;
        font-size: 13px;
        font-weight: 600;
        background: #256edd;
        color: #fff;
        padding: 3px 7px;
        margin-bottom: 5px;
        border-radius: 5px;
        max-width: 120px;
        white-space: nowrap;
    }

    .dept-title.new {
        background: #fff;
        color: #00467F;
        font-weight: 700;
        margin-left: 0;
        padding: 3px 7px;
        border: 1px solid #00548E;
        font-size: 12px;
    }

    .dept-grid-group.active {
        transform: translateX(0);
        z-index: 2;
    }

    /*#group-2 {*/
    /*    display: none !important;*/
    /*}*/

    .dept-list li {
        width: 100%;
        margin: 6px 0 6px 5px;
        font-size: 14px;
        top: 0;
    }

    .dept-list-new {
        width: 33px;
        height: 23px;
        margin-top: 10px;
        margin-left: -40px;
        font-size: 13px;
    }

    .acad-card-container {
        position: relative !important;
        top: 0 !important;
        left: 3px !important;
        transform: none !important;
        display: block;
        width: 90% !important;
        padding: 0 15px;
        margin-top: 10px;
    }

    .acad-header {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }

    .acad-more {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }

    .acad-card {
        position: relative !important;  /* PC의 left 위치값 영향을 없애기 위해 relative 권장 */
        left: 0 !important;             /* PC의 left: 620px 초기화 (화면 밖으로 나가는 원인) */
        bottom: 20px !important;           /* PC의 bottom 값 초기화 */

        width: 100% !important;         /* 가로 꽉 차게 */
        height: 490px;
        margin: 0 auto !important;
        border-radius: 10px;
        padding-bottom: 40px;
    }

    .acad-year {
        font-size: 4.5rem;
        color: #fff;
        font-weight: bold;
        padding-top: 45px;
        margin: 35px 60px;
        font-family: DIN Condensed sans-serif;
    }

    .acad-date {
        font-size: 2.5rem;
        font-weight: bold;
        color: #fff;
        min-width: 90px;
        white-space: nowrap;
        position: relative;
        top: 20px;
    }

    .acad-desc {
        font-size: 1.2rem;
        color: #fff;
        font-weight: 500;
        margin-top: 20px;
        white-space: nowrap;
    }


    .sdu-person span {
        display: block;
        margin-top: 10px;
        font-size: 16px;
        color: #000;
        transition: color 0.4s ease;
    }

    .notice-alram {
        position: relative !important;
        top: auto !important;
        left: 0 !important;             /* PC의 left: 50% 초기화 */
        transform: none !important;

        width: 100% !important;         /* PC의 1493px 초기화 */
        margin: 20px 0;                 /* 위아래 여백 */
        height: 50px !important;
        border-radius: 0;
        background: #f7f7f7;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .notice-alram > div {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .alram-icon {
        width: 24px !important;
        height: auto !important;
        margin: 0 8px 0 15px !important;
    }

    .alram-new {
        font-size: 11px !important;
        padding: 2px 6px !important;
        margin-right: 10px !important;
        white-space: nowrap;
        display: inline-block;
    }

    #slidingTextWrapper {
        flex: 1;
        height: 100% !important;
        overflow: hidden;
    }

    #noticeList {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        height: 100%;
        width: 100%;
    }

    .notice-item {
        height: 50px !important;
        line-height: 50px !important;
        overflow: hidden;
        margin: 0 !important;
        width: 100%;
    }

    .notice-item a {
        display: block;
        width: 100%;
        height: 100%;

        font-size: 14px !important;
        color: #555;
        text-decoration: none;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        padding: 0;
        margin: 0;
    }



    .sdu-people-header {
        position: relative !important;
        top: 0px !important;
        left: 0 !important;
        margin-left: 0 !important;
        transform: none !important;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
        margin-top: 50px;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .people-more {
        position: static;
        margin-top: 25px;
        margin-bottom: 13px;
        margin-left: 72%;
    }

    .sdu-people-header .people-more {
        position: static !important;
        margin: 0 !important;
    }

    .sdu-people-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;             /* PC의 left: 50% 초기화 */
        transform: none !important;

        display: flex;
        flex-direction: column;         /* 모바일에서는 세로 배치 */
        width: 100% !important;
        height: auto !important;
        padding: 40px 0;
        background-color: #f7f7f7;
    }

    .sdu-people-header .sdu-title {
        position: static !important;
        margin: 0 !important;
        top: 0 !important;
        left: 0 !important;
    }


    .sdu-people-left {
        margin-left: 0 !important;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .sdu-video-item {
        position: static;
        right: 0;
        margin-left: 0;
        width: 100%;
        margin-bottom: 40px;
    }

    .sdu-video-item a, .sdu-video-info {
        width: 100%;
        height: auto;
    }

    .sdu-video-info {
        padding: 20px;
        box-sizing: border-box;
    }

    .sdu-video-title {
        font-size: 24px;
        margin-left: 0;
    }

    .sdu-video-sub {
        font-size: 16px;
        margin-left: 0;
    }

    .sdu-video-icon {
        margin-left: auto;
        margin-bottom: 0;
    }

    .sdu-people-right {
        right: 0;
        bottom: 15px;
        width: 100%;
    }

    .sdu-person {
        width: 200px !important;
        flex-shrink: 0 !important;
    }

    .sdu-sns-container .sns-header {
        padding-left: 20px !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .snsbox-text {
        font-size: 20px;
        margin-left: 20px;
        max-width: 215px;
        min-width: 190px;
        width: 100%;
    }

    .carousel-viewport {
        width: 100%;
        height: auto;
        display: block;
        margin-left: 0;
        margin-bottom: -140px;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        animation: none !important;
        transform: none !important;
        gap: var(--gap, 15px) !important;
    }

    .sdu-sns-container {
        position: relative;
        transform: none;
        width: 100%;
        margin-top: 86px;
        padding-bottom: 100px;
        overflow: hidden;
        left: 0;
        -webkit-clip-path: none;
    }

    .sns-btn-group {
        position: static;
        justify-content: center;
        margin-left: 57% !important;
        margin-top: -35px;
    }

    .sns-btn {
        width: 25px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 6%;
        margin-bottom: 10%;
    }

    .sns-container {
        display: flex !important;
        width: 100% !important;
        padding-left: 10px !important;
        margin: 0 !important;
        gap: 0 !important;
        transition: transform 0.3s ease-out;
    }

    .snsbox {
        flex: 0 0 250px !important;
        width: 250px !important;
        height: 420px !important;
        margin: 0 !important;
        margin-right: 15px !important;
        box-sizing: border-box;
        background-color: #fbfbfb;
        border: 1px solid #e3ebf4;
    }

    .sns-img {
        width: 90%;
        height: auto;
        margin-left: 5%;
        bottom: 68px;
    }

    .mob-sns-btn {
          position: absolute;
          margin-left: 87px;
          top: -63px;
    }

    .sns-btn img {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sns-box-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        width: 24px;
    }

    . sns-btn {
        width: 30px;
        height: 30px;
        margin-left: -70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer {
        position: relative;
        top: 0;
        margin-top: 0;
        white-space: normal;
        padding: 20px;
    }

    .tab.active::after {
        bottom: -21px;
    }

    /* js 이벤트 구간*/
    /* hover 효과 */
    .sdu-person:hover .people-photo,
    .sdu-person.active .people-photo {
        filter: grayscale(0%);
        transform: scale(1.03);
    }

    .sdu-person:hover .overlay,
    .sdu-person.active .overlay {
        opacity: 1;
    }

    .sdu-person:hover span,
    .sdu-person.active span {
        color: #006EFA;
    }

    .carousel-track--scrolling {
        animation-name: sduScrollUp;
        animation-duration: var(--scroll-duration, 100s);
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-play-state: running;
        will-change: transform;
    }

    @keyframes sduScrollUp {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    .sdu-person.cloned {
        display: block !important;
    }

    .my-scroll-element {
        overflow: hidden;
    }

    .sdu-video-item a {
        position: relative;
        z-index: 3;
        display: block;
    }

    .sdu-video-item img {
        display: block;
        pointer-events: auto;
    }

    .sdu-video-info {
        position: relative;
        z-index: 2;
    }

    :root {
        --person-size: 200px;
        --gap: 15px;
        /* 항목 간 간격 (JS와도 일치해야 함) */
        --visible-count: 4;
        --transition-time: 600ms;
        --auto-interval: 2800ms;
    }

    .dept-list .material-symbols-outlined {
        font-size: 0 !important;
        color: transparent !important;
        display: inline-block;
        width: 13px;
        height: 15px;
        background-image: url('/type/KOR_2025/img/main/right_arrow.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        vertical-align: middle;
        margin-right: 4px;
        border: none;
    }

    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        border-bottom: 1px solid #e3ebf4;
    }

    .dept-grid-group-container{
        position: static !important;
    }
}