/* 사업분야 탭 스타일 */
.business_tabs {
    margin-bottom: 40px;
    margin-top: -100px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.business_tabs .tab_nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.business_tabs .tab_nav li {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.business_tabs .tab_nav li span {
    display: block;
    padding: 15px 10px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
}

.business_tabs .tab_nav li:hover span {
    color: #333;
    background: #f0f0f0;
}

.business_tabs .tab_nav li.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.business_tabs .tab_nav li.active span {
    color: #fff;
    font-weight: 700;
}

.business_tabs .tab_nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* 탭 콘텐츠 */
.tab_content {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.tab_content.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .business_tabs {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .business_tabs .tab_nav {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .business_tabs .tab_nav li {
        border-bottom: 1px solid #eee;
    }
    
    .business_tabs .tab_nav li:last-child {
        border-bottom: none;
    }
    
    .business_tabs .tab_nav li span {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .business_tabs .tab_nav li.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .business_tabs {
        padding: 10px;
    }
    
    .business_tabs .tab_nav li span {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* 탭 콘텐츠 내부 스타일 조정 */
.tab_content .chemicobiz_wrap {
    margin-top: 30px;
}

.tab_content h4 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

/* AOS 애니메이션과의 호환성 */
.tab_content [data-aos] {
    opacity: 0;
    transform: translateY(30px);
}

.tab_content.active [data-aos] {
    opacity: 1;
    transform: none;
}
