/* 푸터 전체 래퍼 */
footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-top: 0px;
}

.footer_wrapper {
    width: 100%;
}

/* PC 푸터 기본 표시, 모바일 푸터 숨김 */
.footer_pc {
    display: block;
}

.footer_mobile {
    display: none;
}

/* PC 푸터 스타일 */
.footer_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer_logo {
    flex: 0 0 auto;
}

.footer_logo img {
    height: 40px;
    width: auto;
}

.footer_links {
    display: flex;
    gap: 30px;
}

.footer_links a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer_links a:hover {
    color: #333;
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer_info {
    flex: 1;
}

.company_info {
    margin-bottom: 10px;
}

.company_info span {
    color: #666;
    font-size: 13px;
    margin-right: 15px;
    display: inline-block;
    line-height: 1.8;
}

.copyright {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.footer_menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer_menu a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer_menu a:hover {
    color: #333;
}

/* 모바일 푸터 스타일 */
.footer_mobile {
    background-color: #fff;
    padding: 30px 0 20px 0;
}

.footer_mobile_content {
    padding: 0 20px;
    text-align: left; /* 왼쪽 정렬 */
}

/* 모바일 푸터 상단 정렬 개선 */
.footer_mobile_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* 모바일 푸터 로고 스타일 수정 */
.footer_mobile_logo {
    flex: 0 0 auto;
}

.footer_mobile_logo img {
    height: 24px; /* 적절한 높이 설정 */
    width: auto; /* 비율 유지 */
    display: block;
}

.footer_mobile_links {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 12px;
}

.footer_mobile_links a {
    color: #666;
    text-decoration: none;
}

.footer_mobile_links .divider {
    color: #ddd;
    margin: 0 8px;
}

/* 모바일 푸터 토글 버튼 */
.footer_mobile_toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    padding: 0;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    line-height: inherit;
}

.footer_toggle_icon {
    transition: transform 0.2s ease;
}

.footer_mobile_info {
    color: #888;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer_mobile_copyright {
    color: #999;
    font-size: 11px;
    text-align: left;
    margin-top: 12px;
}

.footer_mobile_menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    border: none;
}

.footer_mobile_menu a {
    color: #666;
    text-decoration: none;
}

.footer_mobile_menu .divider {
    color: #ddd;
    margin: 0 10px;
}

/* 모바일 하단 탭 메뉴 - Floating Glass Tab Bar */
.mobile_bottom_tab {
    display: none !important;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(180, 155, 255, 0.12), rgba(150, 120, 240, 0.08), rgba(200, 175, 255, 0.10));
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border: 1px solid rgba(200, 180, 255, 0.20);
    border-radius: 40px;
    height: auto;
    padding: 8px 4px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(120, 80, 200, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.mobile_bottom_tab .tab_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #999;
    transition: all 0.25s ease;
    position: relative;
    padding: 6px 14px;
    gap: 4px;
    border-radius: 20px;
    background: transparent;
}

/* 아이콘 래퍼 */
.mobile_bottom_tab .tab_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.25s ease;
    background-color: transparent;
}

.mobile_bottom_tab .tab_item svg {
    width: 24px;
    height: 24px;
    transition: all 0.25s ease;
}

.mobile_bottom_tab .tab_item svg path,
.mobile_bottom_tab .tab_item svg circle,
.mobile_bottom_tab .tab_item svg polyline,
.mobile_bottom_tab .tab_item svg polygon,
.mobile_bottom_tab .tab_item svg rect,
.mobile_bottom_tab .tab_item svg line,
.mobile_bottom_tab .tab_item svg text {
    transition: all 0.25s ease;
}

.mobile_bottom_tab .tab_item span {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* 활성 탭 - Pill indicator */
.mobile_bottom_tab .tab_item.active {
    background: #F2F3F5;
    color: #222;
}

.mobile_bottom_tab .tab_item.active .tab_icon {
    transform: scale(1.15);
}

.mobile_bottom_tab .tab_item.active span {
    color: #222;
    font-weight: 700;
}

/* 활성 탭 아이콘 색상 - 진하게 */
.mobile_bottom_tab .tab_item.active svg path,
.mobile_bottom_tab .tab_item.active svg circle,
.mobile_bottom_tab .tab_item.active svg polyline,
.mobile_bottom_tab .tab_item.active svg polygon,
.mobile_bottom_tab .tab_item.active svg rect,
.mobile_bottom_tab .tab_item.active svg line {
    stroke: #222 !important;
}

.mobile_bottom_tab .tab_item.active svg circle[fill="currentColor"] {
    fill: #222 !important;
}

.mobile_bottom_tab .tab_item.active svg text {
    fill: #222 !important;
}

/* active 상태에서 컬러 배경 유지 (파스텔 톤) */
.mobile_bottom_tab .tab_item.active svg rect[fill="#C5A3F0"],
.mobile_bottom_tab .tab_item.active svg circle[fill="#C5A3F0"] {
    fill: #C5A3F0 !important;
}

.mobile_bottom_tab .tab_item.active svg rect[fill="#F8C8D4"],
.mobile_bottom_tab .tab_item.active svg path[fill="#F8C8D4"] {
    fill: #F8C8D4 !important;
}

.mobile_bottom_tab .tab_item.active svg path[fill="#B2E0D6"] {
    fill: #B2E0D6 !important;
}

.mobile_bottom_tab .tab_item.active svg circle[fill="#A8D8EA"],
.mobile_bottom_tab .tab_item.active svg path[fill="#A8D8EA"] {
    fill: #A8D8EA !important;
}

/* 비활성 탭 */
.mobile_bottom_tab .tab_item:not(.active) {
    color: #999;
}

.mobile_bottom_tab .tab_item:not(.active):active {
    background: rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
}

/* 반응형 디자인 - 태블릿 */
@media all and (max-width: 1024px) {
    footer {
        padding: 30px 20px;
    }
    
    .footer_wrapper .inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .footer_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer_bottom {
        flex-direction: column;
        gap: 30px;
    }
    
    .company_info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .footer_menu {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* 반응형 디자인 - 모바일 (768px 이하에서만 모바일 탭 표시) */
@media all and (max-width: 768px) {
    /* 기존 인라인 스타일 제거하고 CSS로 관리 */
    .footer_mobile_logo {
        width: auto;
        margin-top: 0;
    }
    
    .footer_mobile_logo img {
        height: 24px;
        max-width: 100px;
        width: auto;
    }
    
    footer {
        background-color: #fff;
        padding: 0;
        margin-top: 10px;
        margin-bottom: 0;
        border-top: 1px solid #eee;
    }
    
    .footer_wrapper {
        background-color: #fff;
    }
    
    .footer_wrapper .inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    /* PC 푸터 숨기고 모바일 푸터 표시 */
    .footer_pc {
        display: none;
    }
    
    .footer_mobile {
        display: block;
    }
    
    /* 모바일에서만 하단 탭 메뉴 표시 */
    .mobile_bottom_tab {
        display: flex !important;
    }
    
    /* 전체 페이지에 하단 여백 추가 (플로팅 탭바 높이 + 여백) */
    body {
        padding-bottom: 100px;
    }
}

/* PC 화면 크기에서 모바일 탭 메뉴 강제 숨김 */
@media all and (min-width: 769px) {
    .mobile_bottom_tab {
        display: none !important;
    }
    
    /* PC에서는 body padding-bottom 제거 */
    body {
        padding-bottom: 0;
    }
}