/* ========== 배경 슬라이더 영역 ========== */
.slider-area-deptmain {
    position: relative;
    width: 100%;
    /* 2294×647 ≈ 3.54:1 → 가로 대비 높이 28.2% */
    height: calc(100vw * 0.282);
    margin: 0 auto;
    z-index: 3;
    overflow: hidden;
}

.slider-area-deptmain img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: -1;
    pointer-events: none;
}

.slider-area-deptmain img.active {
    opacity: 1;
}

/* ========== 슬라이더 화살표 ========== */
.arrow-btn-deptmain {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    cursor: pointer;
    z-index: 150;
}

.arrow-btn-deptmain::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 20px;
    height: 20px;
    border-right: 4px solid white;
    border-top: 4px solid white;
}

.arrow-left-deptmain {
    left: 20px;
    transform: translateY(-50%) rotate(180deg);
}

.arrow-right-deptmain {
    right: 20px;
}

.arrow-btn-deptmain:hover::before {
    border-color: #006400;
}

/* ========== 텍스트 오버레이 ========== */
.slider-text-deptmain {
    position: absolute;
    bottom: 25%;
    right: 10%;
    transform: translateY(50%);
    z-index: 20;
    text-align: right;
    color: white;
    font-family: 'Malgun Gothic', sans-serif;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    max-width: 800px;
}

.slider-text-deptmain h2 {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.slider-text-deptmain p {
    font-size: 30px;
    line-height: 1.6;
}

.title-strong-deptmain {
    font-weight: 900;
    color: #ffffff;
    display: block;
    letter-spacing: -1px;
}

/* ========== 고정 헤더 영역 ========== */
.header-wrap-deptmain {
    position: relative;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: white;
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.header-wrap-deptmain.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-title-deptmain {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.title-main-deptmain {
    font-size: 30px;
    font-weight: bold;
}

.title-sub-deptmain {
    font-size: 18px;
    font-weight: bold;
    color: #006400;
    margin-top: 4px;
}

.menu-bar-deptmain {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.menu-bar-deptmain a {
    font-size: 20px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-bar-deptmain a:hover {
    color: #666;
}

.menu-bar-deptmain a.on-deptmain {
    color: #006400;
    font-weight: bold;
}





/* ========== 반응형 ========== */
@media (max-width: 1025px) {
    .slider-text-deptmain h2 {
        font-size: 24px;
    }

    .slider-text-deptmain p {
        font-size: 16px;
    }

    .header-wrap-deptmain {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .header-title-deptmain {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .menu-bar-deptmain {
        flex-wrap: wrap;
        gap: 15px 20px;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .menu-bar-deptmain a {
        font-size: 25px;
    }
}

@media (max-width: 840px) {
    .slider-text-deptmain h2 {
        font-size: 24px;
    }

    .slider-text-deptmain p {
        font-size: 16px;
    }

    .header-wrap-deptmain {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .header-title-deptmain {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .menu-bar-deptmain {
        flex-wrap: wrap;
        gap: 15px 20px;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .menu-bar-deptmain a {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .slider-area-deptmain {
        height: calc(100vw * 0.75);
        /* 가로의 75% */
    }
}

@media (max-width: 480px) {
    .slider-text-deptmain {
        left: 12%;
        bottom: 0%;
        transform: translateY(-50%);
        max-width: 94%;
    }

    .slider-text-deptmain h2 {
        font-size: 18px;
    }

    .slider-text-deptmain p {
        font-size: 12px;
    }

    .title-main-deptmain {
        font-size: 22px;
    }

    .title-sub-deptmain {
        font-size: 14px;
    }

    .menu-bar-deptmain a {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .slider-text-deptmain {
        left: 12%;
        bottom: 0%;
        transform: translateY(-50%);
        max-width: 94%;
    }

    .slider-text-deptmain h2 {
        font-size: 18px;
    }

    .slider-text-deptmain p {
        font-size: 12px;
    }

    .title-main-deptmain {
        font-size: 22px;
    }

    .title-sub-deptmain {
        font-size: 14px;
    }

    .menu-bar-deptmain a {
        font-size: 13px;
    }
}