/************************************************

                    메인 배너
     
*************************************************/
/* 경로와 제목 스타일 */
.breadcrumb {
    position: relative; 
    z-index: 1;
    padding-top: 300px;

    padding-bottom: 40px;
    background-image: url('/assets/img/background/about.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    justify-content: flex-end; 
    text-align: right;
}

.breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 0;
}

.breadcrumb h1 {
    font-size: 50px;
    font-weight: 800px;
    color: rgb(218, 218, 218);
    margin-top: 10px;
    position: relative;
    z-index: 1;
    text-align: center;
  }
  
  .breadcrumb p {
      font-size: 20px;
      color: white;
      margin: 0;
      position: relative;
      z-index: 2;
  }


/* 본문 내용 스타일 */
@media screen and (max-width: 1100px) {
    .breadcrumb {
        padding-top: 150px;
        padding-bottom: 50px;        

    }

    .breadcrumb h1 {
        font-size: 32px;
    }
}
    

/* 조직도 */
.org-chart {
    --org-line: #9ea8b6;
    --org-navy: #132a59;
    position: relative;
    z-index: 10;
    width: min(1060px, calc(100% - 48px));
    margin: -40px auto 80px;
    padding: 0 18px 64px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 28, 59, 0.07);
    color: #1f2228;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.org-leadership {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 208px;
}

.ceo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    height: 220px;
    margin-top: -105px;
    box-sizing: border-box;
    padding-top: 122px;
    border: 1px solid var(--org-navy);
    border-radius: 50%;
    background: #fff;
    color: var(--org-navy);
    box-shadow: none;
}

.ceo img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(23%) saturate(2431%) hue-rotate(184deg) brightness(88%) contrast(97%);
}

.ceo strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 43px;
    background: var(--org-line);
}

.vice-president {
    position: absolute;
    top: 158px;
    left: 50%;
    z-index: 2;
    min-width: 132px;
    box-sizing: border-box;
    padding: 7px 22px 6px;
    border: 1px solid var(--org-navy);
    border-radius: 4px;
    background: #fff;
    color: var(--org-navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
}

.vice-president::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 16px;
    background: var(--org-line);
}

.org-departments {
    width: 100%;
}

.org-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px;
    width: 100%;
    margin-top: 44px;
}

.org-row:first-child {
    margin-top: 0;
}

.org-row::before {
    content: "";
    position: absolute;
    top: -22px;
    left: calc((100% - 120px) / 6);
    right: calc((100% - 120px) / 6);
    height: 1px;
    background: var(--org-line);
}

.department {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 100px;
    box-sizing: border-box;
    padding: 14px 20px 14px 16px;
    border: 1px solid #d7d9dd;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(20, 37, 65, 0.09);
    word-break: keep-all;
}

.department::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 22px;
    background: var(--org-line);
}

.org-row:not(:last-child) .department:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 45px;
    background: var(--org-line);
}

.department > img {
    display: block;
    width: 62px;
    height: 62px;
    margin: 0 auto;
    object-fit: contain;
}

.department-copy {
    min-width: 0;
}

.department h2 {
    margin: 0 0 4px;
    color: #272b31;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.details {
    margin: 0;
    padding-left: 16px;
    color: #25282d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.details li {
    margin: 1px 0;
}

.details-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

@media (max-width: 1100px) {
    .org-chart {
        width: calc(100% - 40px);
    }

    .org-row {
        gap: 32px;
    }

    .org-row::before {
        left: calc((100% - 64px) / 6);
        right: calc((100% - 64px) / 6);
    }

    .department {
        grid-template-columns: 64px minmax(0, 1fr);
        padding-right: 14px;
    }

    .department > img {
        width: 52px;
        height: 52px;
    }

    .department h2 {
        font-size: 16px;
    }

    .details {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .org-chart {
        width: calc(100% - 28px);
        margin-bottom: 56px;
        padding: 0 18px 38px;
    }

    .org-leadership {
        height: 174px;
    }

    .ceo {
        width: 260px;
        height: 168px;
        margin-top: -81px;
        padding-top: 96px;
    }

    .ceo img {
        width: 43px;
        height: 43px;
        margin-bottom: 4px;
    }

    .ceo strong {
        font-size: 16px;
    }

    .ceo::after {
        height: 39px;
    }

    .vice-president {
        top: 125px;
        min-width: 120px;
        padding: 7px 20px 6px;
        font-size: 14px;
    }

    .vice-president::after {
        height: 18px;
    }

    .org-row {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 18px;
        padding: 0 8px 0 18px;
        box-sizing: border-box;
    }

    .org-row:first-child {
        margin-top: 0;
    }

    .org-row::before {
        top: 0;
        bottom: -18px;
        left: 0;
        right: auto;
        width: 1px;
        height: auto;
    }

    .org-row:last-child::before {
        bottom: 54px;
    }

    .department {
        grid-template-columns: 66px minmax(0, 1fr);
        min-height: 108px;
        padding: 15px 16px 15px 12px;
        box-shadow: 0 6px 15px rgba(20, 37, 65, 0.09);
    }

    .department::before {
        top: 50%;
        bottom: auto;
        left: -18px;
        width: 18px;
        height: 1px;
    }

    .org-row:not(:last-child) .department:nth-child(2)::after {
        display: none;
    }

    .department > img {
        width: 50px;
        height: 50px;
    }

    .department h2 {
        font-size: 17px;
    }

    .details {
        font-size: 12.5px;
        line-height: 1.4;
    }
}

/* Keep the chart frame full-width on phones; spacing stays inside the panel. */
@media (max-width: 768px) {
    .org-chart {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
        background: #f5f7fa;
    }

    .org-row {
        padding-right: 14px;
    }
}
