/* ============================================================
   계열회사(Affiliates) 섹션 스타일
   ============================================================ */

.affiliates-section {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

/* 제목 및 텍스트 설정 */
h2.section-title-subj {
    font-size: 2.7rem !important;
}

.title_detail {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* 상단 계열사 정보 카드 */
.aff-info-card {
    background-color: rgba(24, 39, 84, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    padding: 20px;
    height: auto;
    transition: 0.3s;
}

.aff-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.aff-round-icon {
    width: 86px;
    height: 86px;
    background-color: rgba(0, 212, 170, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--primary);
}

.aff-info-card h5 {
    font-size: 1.2rem !important;
    /* 원하는 크기로 조절 */
    letter-spacing: -0.5px;
    /* 글자 간격도 살짝 줄이면 더 깔끔합니다 */
}

/* ============================================================
   중앙 프로세스 (애니메이션 핵심)
   ============================================================ */

.process-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* 배경 연결선 (데스크탑 전용) */
.process-line {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.4), transparent);
    z-index: 1;
}

.line-arrow {
    position: absolute;
    color: var(--primary);
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.arrow-left {
    left: 30%;
}

.arrow-right {
    right: 30%;
}

/* STEP 뱃지 공통 */
.step-badge {
    display: inline-block;
    padding: 4px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
}

/* 원형 박스 공통 */
.process-circle-outer {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: #2D3748;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.process-circle-inner {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(24, 39, 84, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ------------------------------------------------------------
   STEP 02 (중앙) 강조 및 파동 애니메이션
   ------------------------------------------------------------ */

.bg-accent {
    background-color: #03C4AC !important;
    color: #0d1b3e !important;
}

.text-accent {
    color: #03C4AC !important;
}

.main-circle-outer {
    width: 200px;
    height: 200px;
    border: 6px solid #03C4AC !important;
    background: #182754;
    /* 배경색 통일 */
}

/* 파동 효과를 위한 가상 요소 설정 */
.main-circle-outer::before,
.main-circle-outer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid #03C4AC;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

/* 첫 번째 파동 */
.main-circle-outer::before {
    animation: ripple-spread 3s infinite;
}

/* 두 번째 파동 (시간차) */
.main-circle-outer::after {
    animation: ripple-spread 3s infinite 1.5s;
}

/* 파동 애니메이션 정의 */
@keyframes ripple-spread {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    100% {
        width: 180%;
        /* 1.8배까지 확장 */
        height: 180%;
        opacity: 0;
        /* 흐릿해지며 사라짐 */
    }
}

.main-circle-inner {
    width: 175px;
    height: 175px;
    border: 2px solid rgba(3, 196, 172, 0.3);
    color: #03C4AC !important;
}

/* 하단 시너지 바 */
.synergy-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.synergy-label-box {
    background-color: rgba(0, 212, 170, 0.1);
    padding: 30px;
}

.syn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   반응형 설정
   ============================================================ */

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 991.98px) {
    h2.section-title-subj {
        font-size: 2.2rem !important;
    }

    .process-line {
        display: none;
    }

    .main-circle-outer {
        width: 160px;
        height: 160px;
    }

    .main-circle-inner {
        width: 140px;
        height: 140px;
    }

    .synergy-label-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767px) {
	    h2.section-title-subj {
        display: flex;
        flex-direction: column;
        /* 세로 배치 */
        align-items: center;
        /* 왼쪽 정렬 */
        font-size: 1.6rem !important;
    }

    h2.section-title-subj span {
        display: block;
        /* span을 블록으로 변경 */
        margin-left: 0;
        /* 기존 ms-2 제거 효과 */
        margin-top: 5px;
        /* 위쪽 여백 추가 */
    }
    .process-circle-outer {
        width: 120px;
        height: 120px;
    }

    .process-circle-inner {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }

    .main-circle-outer {
        width: 140px;
        height: 140px;
    }

    .main-circle-inner {
        width: 125px;
        height: 125px;
    }
}