/* assets/css/services.css */

.section--services-group {
    padding: 140px 0;
}

.group-header {
    margin-bottom: 50px;
}

/* 탭 버튼 그룹 (Strength와 동일한 레이아웃) */
.tab-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.tab-btn {
    padding: 16px 32px;
    border-radius: 40px;
    background: #f0f0f2;
    /* 기본 회색 배경 */
    color: #666;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e2e2e5;
    color: #111;
}

/* 활성화 상태 (M3TECH 시그니처 블루) */
.tab-btn.active {
    background: #001A8E !important;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 26, 142, 0.25);
    border-color: transparent;
}

/* 콘텐츠 패널 애니메이션 (Strength와 동일) */
.panel-container {
    position: relative;
    min-height: 400px;
}

.services-panel {
    display: none;
    animation: fadeUpPanel 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.services-panel.active {
    display: block;
}

@keyframes fadeUpPanel {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 대응 */
@media (max-width: 980px) {
    .section--services-group {
        padding: 100px 0;
    }

    .tab-button-group {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        flex-wrap: nowrap;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 14px 24px;
        font-size: 15px;
    }

    .services-panel .row {
        flex-direction: column;
        gap: 40px;
    }
}
