* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 탭 콘텐츠 내부의 column 클래스 리셋 */
.tab-content .column.mcb-column.one.column_column {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* 플로우차트 컨테이너 */
.flowchart-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 프로세스 컨테이너 */
.top-process,
.bottom-process {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 프로세스 아이템 */
.process-item {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.flowchart-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 상단 프로세스 */
.top-process {
    display: flex;
    margin-bottom: 2%;
    gap: 0;
}

.process-item {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
}

/* 슬라이드 애니메이션 */
.process-item.slide-in {
    animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 각 아이템 순차 딜레이 */
.process-item:nth-child(1) { animation-delay: 0s; }
.process-item:nth-child(2) { animation-delay: 0.2s; }
.process-item:nth-child(3) { animation-delay: 0.4s; }
.process-item:nth-child(4) { animation-delay: 0.6s; }

.bottom-process .process-item {
    opacity: 0;
    transform: translateX(100%);
}

/* 하단 HTML 순서가 8-7-6-5이므로 */
.bottom-process .process-item:nth-child(1) { animation-delay: 1.4s; } /* 8번 */
.bottom-process .process-item:nth-child(2) { animation-delay: 1.2s; } /* 7번 */
.bottom-process .process-item:nth-child(3) { animation-delay: 1.0s; } /* 6번 */
.bottom-process .process-item:nth-child(4) { animation-delay: 0.8s; } /* 5번 */

/* 번호 헤더 */
.process-header {
    color: white;
    text-align: center;
    margin: 0 10px;
    padding: 15px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'dinpro-regular', sans-serif;
    position: relative;
}

.process-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid currentColor;
}
/* 상단 헤더 색상 - blue */
.process-header.blue1 {
    background: #4b87e5;
    color: #fff;
}

.process-header.blue1::after {
    border-top-color: #4b87e5;
}

.process-header.blue2 {
    background: #3d6fbe;
    color: #fff;
}

.process-header.blue2::after {
    border-top-color: #3d6fbe;
}

.process-header.blue3 {
    background: #3260AB;
    color: #fff;
}

.process-header.blue3::after {
    border-top-color: #3260AB;
}

.process-header.blue4 {
    background: #295399;
    color: #fff;
}

.process-header.blue4::after {
    border-top-color: #295399;
}

/* 하단 헤더 색상 */
.process-header.blue5 {
    background: #204687;
    color: white;
}

.process-header.blue5::after {
    border-top-color: #204687;
}

.process-header.blue6 {
    background: #173975;
    color: white;
}

.process-header.blue6::after {
    border-top-color: #173975;
}

.process-header.blue7 {
    background: #0E2C63;
    color: white;
}

.process-header.blue7::after {
    border-top-color: #0E2C63;
}

.process-header.blue8 {
    background: #061F51;
    color: white;
}

.process-header.blue8::after {
    border-top-color: #061F51;
}
/* 상단 헤더 색상 */
.process-header.gray1 {
    background: #f4f2f2;
    color: #333;
}

.process-header.gray1::after {
    border-top-color: #f4f2f2;
}

.process-header.gray2 {
    background: #dedede;
    color: #333;
}

.process-header.gray2::after {
    border-top-color: #dedede;
}

.process-header.gray3 {
    background: #b0b0b0;
    color: #333;
}

.process-header.gray3::after {
    border-top-color: #b0b0b0;
}

.process-header.gray4 {
    background: #919191;
    color: #333;
}

.process-header.gray4::after {
    border-top-color: #919191;
}

/* 하단 헤더 색상 */
.process-header.gray5 {
    background: #919191;
    color: white;
}

.process-header.gray5::after {
    border-top-color: #919191;
}

.process-header.gray6 {
    background: #808080;
    color: white;
}

.process-header.gray6::after {
    border-top-color: #808080;
}

.process-header.gray7 {
    background: #636363;
    color: white;
}

.process-header.gray7::after {
    border-top-color: #636363;
}

.process-header.gray8 {
    background: #555555;
    color: white;
}

.process-header.gray8::after {
    border-top-color: #555555;
}

.process-content {
    margin: 0 10px;
    background: white;
    padding: 25px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 50px 50px;
}

.process-content hr {
    display: none;
}

.process-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #242e43;
}

.process-details {
    font-size: 1.1em;
    text-align: left;
    color: #666;
    line-height: 1.7;
    padding: 0 5px;
}

.process-details div {
    margin-bottom: 8px;
}

.checkmark {
    color: #932448;
    margin-right: 6px;
    font-weight: bold;
}

/* 하단 프로세스 - 역순 배치 */
.bottom-process {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
}

.bottom-process .process-item {
    flex: 1;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .flowchart-container {
        padding: 10px;
    }

    .top-process,
    .bottom-process {
        flex-wrap: wrap;
    }

    .process-item {
        flex: 1 1 48%;
        margin-bottom: 20px;
    }

    .process-content {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .flowchart-container {
        padding: 5px;
    }

    .top-process {
        margin-bottom: 30px;
    }

    /* 모바일에서만 순서 변경 */
    .top-process,
    .bottom-process {
        flex-direction: column;
    }

    .bottom-process {
        display: flex;
        flex-direction: column-reverse;
    }

    .process-item {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .process-header {
        padding: 12px;
        font-size: 20px;
        margin: 0 5px;
    }

    .process-header::after {
        bottom: -6px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid currentColor;
    }

    .process-content {
        min-height: auto;
        padding: 20px 12px;
        margin: 10px 5px 0;
        background-size: 40px 40px;
    }

    .process-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .process-details {
        font-size: 12px;
        padding: 0;
    }

    .checkmark {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .process-header {
        font-size: 1.6em;
        padding: 10px;
    }

    .process-title {
        font-size: 1.6em;
    }

    .process-details {
        font-size: 1.3em;
    }
}