/* 페이드인 애니메이션 정의 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.subPage { position: relative; display: flex; padding: 5rem 0 3.5rem; width: 100%; height: 100%; align-items: center; justify-content: center; flex-wrap: wrap; background: #F4F6F9; animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.subPage .inner { position: relative; max-width: 60rem; width: 100%; }
.subWrap { margin-top: 2.1rem; opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; }

/* 뒤로가기 버튼 */
.titWrap {
    padding-left: 120px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
.titWrap h3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}
.titWrap p {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}
.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.back-btn:hover {
    background: #376CFB;
    color: #fff;
    border-color: #376CFB;
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 4px 12px rgba(55, 108, 251, 0.25);
}
.back-btn i {
    font-size: 1.2rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .titWrap {
        padding-left: 0;
        padding-top: 3rem;
    }
    .back-btn {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    .back-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Swiper */
.swiper-container-wrapper { position: relative; opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards; }
.swiper { width: 100%; overflow: visible !important; }
.swiper-wrapper { align-items: center; }
.swiper-slide { border-radius: 0.75rem; overflow: hidden; background-color: #ddd; transition: all 0.3s ease; cursor: pointer; }
.swiper-slide::before {font-family: 'remixicon'; content: "\f4b1"; position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%) scale(0.8);width: 2.25rem;height: 2.25rem;background-color: rgba(255, 255, 255, 0.1);color: #fff; backdrop-filter: blur(2px); border:1px solid rgba(255, 255, 255, 0.1); border-radius: 50%;display: flex;justify-content: center;align-items: center;font-size: 1rem;font-weight: normal;opacity: 0;z-index: 10; transition: all 0.3s ease;}
.swiper-slide::after{content: ""; position: absolute; top:0; left:0; width:100%; height: 100%; opacity: 0; z-index: 0; transition: all 0.3s ease;}
.swiper-slide:hover::before {opacity: 1; transform: translate(-50%, -50%) scale(1); }
.swiper-slide:hover::after {opacity: 0.8; background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), linear-gradient(180deg, rgba(0, 0, 0, 0) 30.88%, rgba(0, 0, 0, 0.8) 90.59%),rgba(0, 0, 0, 0.4);}


/* Active 상태 스타일 */
.swiper-slide-custom-active {box-shadow: 4px 4px 10px rgba(0,0,0,0.4); border: 1px solid #fff; }
.slide-bg { width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
/* noItem */
.swiper-slide.noItem .slide-bg img {object-fit: none;}
.swiper-slide.noItem .slide-content{display: none;}
.slide-content { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; padding: 1.2rem; color: #fff; display: flex; flex-direction: column; z-index: 1;}
.slide-date { font-size: 12px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(255 255 255 / 30%); padding: 2px 8px; border-radius: 12px; width: fit-content; backdrop-filter: blur(4px); color: #000; font-weight: 400; font-size: 0.7rem; line-height: 1.4; letter-spacing: -0.5px; margin-bottom: auto; }
.slide-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.5px; line-height: 1.4; text-align: left; }
.slide-desc { margin-top: 0.3rem; font-size: 0.8rem; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.5px; line-height: 1.4; text-align: left; }

/* Controls */
.controls-container { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; gap: 1.2rem; }
.custom-scrollbar { position: relative !important; flex-grow: 1; height: 3px !important; background: #DDDDDD !important; position: relative; border-radius: 50px; overflow: hidden; }
.swiper-pagination-progressbar-fill { background: #231f20 !important; transition: width 0.3s ease; }
.custom-scrollbar .fill-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #231f20; transition: width 0.3s ease; display: block; content: ''; }
.control-right { display: flex; align-items: center; gap: 1.35rem; }
.fraction-pagination { font-size: 0.85rem; color: #999; font-weight: 600; min-width: 60px; text-align: center; letter-spacing: -0.5px; }
.fraction-pagination span.current { color: #376cfb; font-weight: 700; }
.nav-btns { display: flex; gap: 8px; }
.nav-btn { width: 2.25rem; height: 2.25rem; border: 1px solid #d9d9d9; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; background: #fff; color: #666; transition: all 0.2s; font-size: 1rem; }
.nav-btn:hover { border-color: #3b82f6; color: #3b82f6; }

/* Detail Area */
.wrapper { width: 100%; background: url(../images/sub/sub_bg.png) no-repeat center; background-size: cover; margin: 4rem auto 0 auto; position: relative; min-height: 400px; padding: 1.65rem 0.7rem; opacity: 0; animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.item { display: none; background: #fff; padding: 3.85rem 3.05rem; box-shadow: 0 20px 40px rgba(0,0,0,0.05); animation: fadeInItem 0.6s ease-out; }
.item.active { display: block; }
@keyframes fadeInItem { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 나머지 상세 스타일 */
.item .header { text-align: center; margin-bottom: 40px; opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
.year-month { font-size: 1.8rem; font-weight: 600; line-height: 1.4; color: #000; letter-spacing: -0.5px; }
.year-month span { color: #376CFB; }
.profile-img-wrapper { position: relative; width: 13.5rem; height: 13.5rem; border-radius: 50%; margin: 3rem auto 1.5rem auto; box-shadow: 4px 4px 0px 0px #e2e2e2; opacity: 0; animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards; }
.profile-img-wrapper:before { content: ""; position: absolute; width: 124px; height: 217px; background: url(../images/sub/left_obj.png) no-repeat; bottom: -8px; left: -100px; }
.profile-img-wrapper:after { content: ""; position: absolute; width: 124px; height: 217px; background: url(../images/sub/right_obj.png) no-repeat; bottom: -18px; right: -93px; }
.profile-img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; border-radius: 50%;}
.info { text-align: center; }
.name { font-size: 1.6rem; font-weight: 600; color: #000; line-height: 1.4; letter-spacing: -0.5px; margin-bottom: 0.4rem; }
.company { font-size: 0.9rem; color: #000; font-weight: 400; letter-spacing: -0.5px; line-height: 1.4; }
.tabs { display: flex; justify-content: center; gap: 10px; margin: 40px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; background: #fdfdfd; }
.tab { padding: 8px 20px; font-size: 14px; color: #555; background: #eee; border-radius: 20px; font-weight: 600; }
.tab.active { background: #111; color: #fff; }
.main-desc { font-size: 1.1rem; font-weight: 600; margin: 5rem 0 4rem; color: #12233d; word-break: keep-all; line-height: 1.6; letter-spacing: -0.5px; text-align: center; }
.sub-desc { position: relative; text-align: left; padding: 0 1.2rem; }
.sub-desc .txt { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.75; font-weight: 400; letter-spacing: -0.05px; color: #333; }
.sub-desc .txt strong { font-weight: 600; }
.tit1 { position: relative; padding-left: 1rem; color: #000; font-weight: 600; font-size: 1rem; letter-spacing: -0.5px; line-height: 1.75; }
.tit1::before { content: ""; position: absolute; width: 15px; height: 12px; top: 10px; left: 0; background: url(../images/sub/tit1.png) no-repeat; }

/* 리스트스타일 */
.list_st1 > li {position: relative;font-size: 0.8rem;line-height: 1.75;font-weight: 600;letter-spacing: -0.05px;color: #333;}
.list_st1 > li + li {margin-top: 0.6rem;}
.list_st2 > li {position: relative;padding-left: 0.5rem;color: #333; font-weight: 400; margin-left: 1rem;}
.list_st2 > li:before {position: absolute;content: "•"; color: #333; left: 0;top: 0;transition: 0.3s all;}

/* 서브타이틀 스타일 */
.subTitle {position: relative; font-size: 0.85rem; font-weight: 600; color: #333; margin: 1rem 0 0.5rem 1rem; letter-spacing: -0.5px; line-height: 1.75;}
.subTitle + .list_st2 {margin-left: 1rem;}

/* 이미지 박스 스타일 */
.imgBox {margin-top: 0.5rem; padding: 0.3rem 0; text-align: left;}
.imgBox img {max-width: 100%; height: auto; border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1);}

/* 더 알아보기 버튼 */
.moreBtn { display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.5rem; padding: 0.2rem 0.5rem; font-size: 0.65rem; font-weight: 500; color: #376cfb; background: transparent; border: 1px solid #376cfb; border-radius: 0.8rem; transition: all 0.3s ease; vertical-align: middle; }
.moreBtn:hover { background: #376cfb; color: #fff; }
.moreBtn i { font-size: 0.7rem; transition: transform 0.3s ease; }
.moreBtn:hover i { transform: translate(2px, -2px); }
.tit1 .moreBtn { position: relative; top: -1px; }

/* 탭리스트 */
.tabWrap { width: 100%; margin-top: 5rem; opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }
.tab_list { width: 100%; height: 3.45rem; display: flex; justify-content: space-between; align-items: center; background-color: #f4f4f4; border-radius: 2.5rem; margin: 0 auto; overflow: hidden;}
.tab_list li { display: flex; width: auto; height: 100%; flex: 1; text-align: center; align-items: center; justify-content: center; }
.tab_list li a { display: flex; width: calc(100% - 0.9rem); height: calc(100% - 0.9rem); transition: all 0.3s; align-items: center; justify-content: center; padding: 0.25rem 1rem; border-radius: 2.5rem; }
.tab_list li a span { position: relative; font-size: 0.9rem; letter-spacing: -0.5px; color: #444; font-weight: 500; transition: 0.3s all; white-space: nowrap;overflow: hidden;text-overflow: ellipsis; }
.tab_list li.on a { background-color: #111; }
.tab_list li.on a span { color: #fff; font-weight: 600; padding-left: 1.25rem; }
.tab_list li.on a span:before { content: "\eb79"; position: absolute; font-family: 'remixicon'; top: 50%; left: 0rem; transform: translateY(-50%); font-weight: normal; }
.main-desc { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.contBox.on { display: block; animation: contentFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.contBox { display: none; min-height: 18.1rem; }

/* 미니 인터뷰 바로가기 버튼 */
.interViewBtn { position: relative; display: inline-block; margin-top: 0.6rem; }
.interViewBtn a { position: relative; display: flex; width: auto; padding: 0.75rem 0.75rem 0.75rem 4.9rem; background: #FFE866; align-items: center; gap: 0.4rem; }
.interViewBtn a::before { position: absolute; content: ""; background: url(../images/sub/btn_ico.png) no-repeat center; width: 3rem; height: 1.75rem; top: 50%; left: 1rem; transform: translateY(-50%); }
.interViewBtn span { color: #333; font-size: 0.8rem; letter-spacing: -0.5px; font-weight: 500; }
.interViewBtn i { color: #000; font-size: 1.1rem; }

/* Media Query */
@media screen and (max-width: 1200px) {
.subPage {padding: 2rem 0;}
.subPage .inner {padding: 0 1rem;}
}
@media screen and (max-width: 1024px) {
    /* 탭리스트 */
     .tabWrap {margin-top:2rem;}
    .tab_list {flex-wrap: wrap;height: auto;padding: 0.45rem;border-radius: 0.5rem;}
    .tab_list li {width: 100%;flex:auto;}
    .tab_list li a {width:100%; height:100%;}
    .tab_list li a span {font-size:0.8rem;}
}
@media screen and (min-width: 769px) {
    .swiper-slide { position: relative; width: 13.5rem !important; height: 16.5rem !important;}
    .swiper-slide-custom-active {width: 16.5rem !important; height: 20.15rem !important;}
}
@media screen and (max-width: 768px) {
    .swiper-slide { position: relative; width: 10rem !important; height: 12.5rem !important; }
    .swiper-slide-custom-active { width: 12.5rem !important; height: 15rem !important; }
    .year-month{font-size: 1.3rem;}
    .name {font-size: 1.2rem;}
    .item {padding:1.5rem 1rem;}
    .main-desc { font-size: 0.9rem; line-height: 1.4; margin: 2rem 0;}

}
@media (max-width: 640px) {
.profile-img-wrapper { position: relative; width: 6rem; height: 6rem;margin: 1rem auto;}
.profile-img-wrapper:before { content: ""; position: absolute; width: 70px; height: 123px; background: url(../images/sub/left_obj.png) no-repeat; bottom: -8px; left: -63px; background-size: contain; }
.profile-img-wrapper:after { content: ""; position: absolute; width: 70px; height: 123px; background: url(../images/sub/right_obj.png) no-repeat; bottom: -18px; right: -63px; background-size: contain; }
}