/* =========================================================
   지구집행부 및 감사
========================================================= */

.executive-section {
    padding: 88px 0 120px;
}


/* =========================================================
   조직도 외곽
========================================================= */

.executive-board {
    position: relative;
    overflow: hidden;
    padding: 40px 42px 56px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(11, 76, 140, 0.055),
            transparent 24%
        ),
        var(--white);
    box-shadow: 0 22px 52px rgba(4, 29, 56, 0.10);
}

.executive-board::before,
.executive-board::after {
    content: "";
    position: absolute;
    top: 0;
    width: 170px;
    height: 54px;
    background: var(--navy);
}

.executive-board::before {
    left: 0;
    clip-path: polygon(
        0 0,
        100% 0,
        78% 100%,
        0 100%
    );
}

.executive-board::after {
    right: 0;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        22% 100%
    );
}


/* =========================================================
   상단 로고
========================================================= */

.executive-board__brand {
    position: relative;
    z-index: 2;
    width: 78px;
    margin: -18px auto 17px;
}

.executive-board__brand img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   조직도 제목
========================================================= */

.executive-board__heading {
    position: relative;
    z-index: 2;
    text-align: center;
}

.executive-board__heading span {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.executive-board__heading strong {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--navy);
    border-radius: 14px;
    color: var(--navy);
    background: var(--white);
    font-size: clamp(27px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.045em;
    word-break: keep-all;
    box-shadow:
        0 0 0 5px var(--white),
        0 0 0 7px rgba(200, 155, 44, 0.70);
}


/* =========================================================
   조직도 전체
========================================================= */

.executive-tree {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 58px auto 0;
}

.executive-tree__row {
    position: relative;
    z-index: 2;
    display: grid;
    justify-content: center;
    gap: 36px;
}

.executive-tree__row--single {
    grid-template-columns: 156px;
}

.executive-tree__row--two {
    grid-template-columns: repeat(2, 156px);
}

.executive-tree__row--three {
    grid-template-columns: repeat(3, 156px);
}

.executive-tree__row--leadership {
    align-items: start;
}


/* =========================================================
   직급 그룹
========================================================= */

.executive-tree__group {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 32px 24px 25px;
    border: 1px solid #e1e8ef;
    border-radius: 22px;
    background: #f8fafc;
}

.executive-tree__group-title {
    position: absolute;
    left: 50%;
    top: -17px;
    z-index: 4;
    margin: 0;
    padding: 7px 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}


/* =========================================================
   조직도 연결선
========================================================= */

.executive-tree__connector {
    position: relative;
    z-index: 1;
    height: 60px;
}

.executive-tree__connector::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #91b0cc;
    transform: translateX(-50%);
}

.executive-tree__connector--wide::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 0;
    height: 2px;
    background: #91b0cc;
}


/* =========================================================
   인물 카드
========================================================= */

.executive-card {
    position: relative;
    width: 100%;
    min-width: 0;
    text-align: center;
}


/* =========================================================
   인물 사진
   - 모든 사진 동일 크기
   - 원본 사진에 포함된 검은 테두리를 상하좌우 크롭
========================================================= */

.executive-card__photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 5 / 6;
    border: 1px solid #becbd8;
    border-radius: 15px;
    background: #edf2f6;
    box-shadow: 0 9px 19px rgba(4, 29, 56, 0.09);
}

.executive-card__photo img {
    position: absolute;
    top: -8px;
    left: -8px;

    display: block;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    max-width: none !important;

    object-fit: cover;
    object-position: center center;

    transform: none !important;
}

/* 기존에 넣었던 사진 가림막 제거 */
.executive-card__photo::before,
.executive-card__photo::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   직책
========================================================= */

.executive-card__role {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    margin: 10px 0 0;
    padding: 6px 12px;
    border: 2px solid var(--gold-muted);
    border-radius: 999px;
    color: var(--white);
    background: var(--navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   이름
========================================================= */

.executive-card__name {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}


/* =========================================================
   소속 클럽
========================================================= */

.executive-card__club {
    margin: 3px 0 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.03em;
    word-break: keep-all;
}


/* =========================================================
   총재 카드
========================================================= */

.executive-card--governor {
    width: 156px;
    margin: 0 auto;
}

.executive-card--governor .executive-card__photo {
    border-color: var(--gold-muted);
    box-shadow: 0 13px 27px rgba(4, 29, 56, 0.13);
}

.executive-card--governor .executive-card__role {
    min-width: 100px;
    padding: 7px 14px;
    font-size: 14px;
}

.executive-card--governor .executive-card__name {
    font-size: 18px;
}

.executive-card--governor .executive-card__club {
    font-size: 14px;
}

/* 총재 사진만 확대 */
.executive-card--governor .executive-card__photo img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 6%;
    transform: scale(1.8) !important;
    transform-origin: 53% 0
}


/* =========================================================
   태블릿
========================================================= */

@media (max-width: 900px) {
    .executive-board {
        padding: 36px 24px 46px;
    }

    .executive-tree {
        max-width: 720px;
    }

    .executive-tree__row {
        gap: 28px;
    }

    .executive-tree__row--single {
        grid-template-columns: 152px;
    }

    .executive-tree__row--two {
        grid-template-columns: repeat(2, 152px);
    }

    .executive-tree__row--three {
        grid-template-columns: repeat(3, 145px);
    }

    .executive-card--governor {
        width: 152px;
    }

    .executive-card__club {
        font-size: 11px;
    }

    .executive-card--governor .executive-card__club {
        font-size: 13px;
    }

    .executive-tree__group {
        width: min(100%, 650px);
    }
}


/* =========================================================
   모바일
========================================================= */

@media (max-width: 768px) {
    .executive-section {
        padding: 72px 0 80px;
    }

    .executive-board {
        padding: 30px 18px 40px;
        border-radius: 24px;
    }

    .executive-board::before,
    .executive-board::after {
        width: 96px;
        height: 42px;
    }

    .executive-board__brand {
        width: 66px;
        margin-top: -14px;
    }

    .executive-board__heading span {
        font-size: 10px;
    }

    .executive-board__heading strong {
        padding: 11px 16px;
        font-size: 26px;
    }

    .executive-tree {
        margin-top: 50px;
    }

    .executive-tree__row {
        gap: 25px;
    }

    .executive-tree__row--single {
        grid-template-columns: 150px;
    }

    .executive-tree__row--two {
        grid-template-columns: repeat(2, 145px);
    }

    .executive-tree__row--three {
        grid-template-columns: repeat(2, 145px);
    }

    .executive-tree__row--three .executive-card:last-child {
        grid-column: 1 / -1;
        width: 145px;
        margin: 0 auto;
    }

    .executive-card--governor {
        width: 150px;
    }

    .executive-tree__group {
        width: 100%;
        padding: 32px 18px 24px;
    }

    .executive-tree__connector--wide::after {
        left: 24%;
        right: 24%;
    }
}


/* =========================================================
   작은 모바일
========================================================= */

@media (max-width: 520px) {
    .executive-board {
        padding-inline: 14px;
    }

    .executive-board__heading strong {
        padding: 10px 13px;
        font-size: 22px;
    }

    .executive-tree__row,
    .executive-tree__row--single,
    .executive-tree__row--two,
    .executive-tree__row--three {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .executive-tree__row .executive-card,
    .executive-tree__row--three .executive-card:last-child {
        grid-column: auto;
        width: 150px;
        margin: 0 auto;
    }

    .executive-card--governor {
        width: 150px;
    }

    .executive-tree__connector {
        height: 38px;
    }

    .executive-tree__connector--wide::after {
        display: none;
    }

    .executive-tree__group {
        padding: 31px 14px 22px;
    }

    .executive-tree__group-title {
        font-size: 12px;
    }
}