@charset "utf-8";

/* 애니메이션 키프레임 정의 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes borderAnim {
    0% {
        width: 0;
    }

    100% {
        width: 50px;
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 애니메이션 클래스 */
.animate {
    opacity: 0;
}

.animate.show {
    opacity: 1;
}

.animate.fadeInUp {
    animation: none;
}

.animate.fadeInUp.show {
    animation: fadeInUp 1s ease forwards;
}

.animate.fadeInRight {
    animation: none;
}

.animate.fadeInRight.show {
    animation: fadeInRight 1s ease forwards;
}

.animate.fadeInLeft {
    animation: none;
}

.animate.fadeInLeft.show {
    animation: fadeInLeft 1s ease forwards;
}

.animate.scaleUp {
    animation: none;
}

.animate.scaleUp.show {
    animation: scaleUp 1s ease forwards;
}

.animate.delay-200.show {
    animation-delay: 0.2s;
}

.animate.delay-400.show {
    animation-delay: 0.4s;
}

.animate.delay-600.show {
    animation-delay: 0.6s;
}

.animate.delay-800.show {
    animation-delay: 0.8s;
}

/* 커뮤니티 페이지 스타일 */
.sub_visual {
    position: relative;
    width: 100%;
    height: 550px;
    /* 서브메뉴 높이를 포함하도록 높이 증가 + 100px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    /* 우측 하단 라운드 컷 */
    border-bottom-right-radius: 120px;
}

.sub_visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/community_bg.jpg') no-repeat center;
    background-size: cover;
    animation: slowZoom 2s ease-out forwards;
    z-index: 0;
    border-bottom-right-radius: inherit;
}

.sub_visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    /* 배경 오버레이 거의 제거 */
    z-index: 1;
    border-bottom-right-radius: inherit;
}

.sub_visual_txt {
    /* 중앙 정렬로 변경 */
    position: relative;
    width: 1200px;
    margin: 0 auto;
    padding: 250px 0 100px;
    /* 서브메뉴가 아래로 내려가므로 패딩 조정 */

    z-index: 2;
    text-align: center;
    /* 중앙 정렬로 변경 */
    color: #fff;
    /* 텍스트 색상을 흰색으로 변경 */
}

.sub_visual_txt h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    /* 텍스트 색상을 흰색으로 변경 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* 텍스트 그림자 강화 */

    /* 첫 번째로 올라오는 애니메이션 */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.2s;
}

.sub_visual_txt p {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    /* 텍스트 색상을 흰색으로 변경 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* 텍스트 그림자 강화 */

    /* 두 번째로 올라오는 애니메이션 */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}



/* 서브 메뉴 */
.sub_menu {
    background: rgba(22, 22, 22, 0.1);
    /* 배경 오버레이 거의 제거 */
    border-bottom: 1px solid rgba(12, 57, 170, 0.1);
    /* 테두리 색상 변경 */
    position: absolute;
    /* 절대 위치로 변경 */
    bottom: 0;
    /* 서브비주얼 하단에 배치 */
    left: 0;
    width: 100%;
    z-index: 10;
    /* 이미지 위에 표시되도록 z-index 설정 */
}

.sub_menu_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 서브메뉴 중앙 정렬 */
}

.home_btn {
    display: none;
    /* 홈 아이콘 숨김 */
    color: #fff;
    font-size: 16px;
    margin-right: 20px;
    text-decoration: none;
}

.sub_menu_list {
    display: flex;
}

.sub_menu_list li {
    position: relative;
    overflow: hidden;
}

.sub_menu_list li a {
    display: block;
    padding: 0 30px;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    color: #fff;
    /* border-right 제거 */
    transition: all 0.3s;
    position: relative;
}

/* 호버 시 하단 라인 애니메이션 */
.sub_menu_list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #93d4ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sub_menu_list li a:hover::after {
    width: 100%;
}

/* 선택된 메뉴 항목 스타일 */
.sub_menu_list li.on a {
    color: #ffffff;
    font-weight: 500;
}

.sub_menu_list li.on a::after {
    width: 100%;
    background-color: #93d4ff;
}

.sub_menu_list li a:hover {
    color: #ffffff;
}

.sub_menu_list li.on a {
    color: #ffffff;
    font-weight: 500;
}

/* 호버 시 배경 오버레이 제거 - 밑줄만 유지 */

/* 컨텐츠 영역 */
.sub_content {
    padding: 80px 0;
}

.sub_content_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 반응형 서브비주얼 스타일 */
@media (max-width: 1024px) {
    .sub_visual {
        height: 350px;
        /* 반응형에서도 100px 추가 */
        border-bottom-right-radius: 80px;
    }

    .sub_visual_txt h2 {
        font-size: 32px;
    }

    .sub_visual_txt p {
        font-size: 16px;
    }

    .sub_content {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .sub_visual {
        height: 300px;
        /* 모바일에서도 100px 추가 */
        border-bottom-right-radius: 48px;
    }

    .sub_visual_txt h2 {
        font-size: 28px;
    }

    .sub_visual_txt p {
        font-size: 14px;
    }

    .sub_menu_list li a {
        padding: 0 20px;
        font-size: 14px;
    }

    .sub_content {
        padding: 40px 0;
    }
}