/* ══════════════════════════════════════
   윤리실천 활동 (ethics-activity.html)
   GP: 1920px / GM: 360px
══════════════════════════════════════ */

/* ── 탭 모바일 전용 span (기본=데스크톱) ── */
.act-tab-mob-br {
    display: none;
}

.act-tab-mob-text {
    display: none;
}

.act-tab-desk-text {
    display: inline;
}







/* ── 도입 섹션 ── */
.act-intro-outer {
    position: relative;
    background: #fff;
}

.act-intro-inner {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

.act-intro-text-section {
    padding: 100px 30px 60px;
    text-align: center;
}

.act-intro-title {
    font-size: clamp(24px, 3.125vw, 60px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #E9E9E9;
    white-space: nowrap;
    text-align: center;
}

.act-intro-title .char {
    transition: color 0.4s ease;
}

.act-intro-title .char.active {
    color: #363636;
}

.act-intro-image-section {
    padding: 0 30px;
}

.act-intro-image-wrapper {
    width: 100%;
    height: clamp(300px, 28.125vw, 540px); /* 검수 0703: 윤리강령(eth) 기준으로 프레임 높이 통일 */
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.act-intro-image-wrapper picture {
    display: contents; /* <picture>가 레이아웃 박스를 만들지 않게 → img가 wrapper 기준으로 크기 잡힘 */
}

.act-intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.act-intro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.act-intro-overlay-text {
    font-size: 30px;
    font-weight: 500; /* 검수 0703: 상단 배경 위 오버레이 텍스트 Medium 일괄적용 */
    color: #fff;
    opacity: 0.9; /* 검수 0720: 히어로 오버레이 문구 투명도 90% 일괄 */
    line-height: 1.6;
    margin: 0;
    text-align: center;
    word-break: keep-all;
}

.act-intro-overlay-text--mobile {
    display: none;
}

/* ── 카드 섹션 ── */
.act-cards-section {
    background: #fff;
    padding: 100px 120px;
}

.act-cards-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px;
}

.act-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.act-card-img-wrap {
    width: 100%;
    height: 348px;
    border-radius: 30px;
    overflow: hidden;
}

.act-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.act-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.act-card-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

.act-card-desc {
    font-size: 20px;
    font-weight: 400;
    color: #4E4E4E;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}




/* ══════════════════════════════════════
   반응형 - 태블릿 (768~1439px)
══════════════════════════════════════ */
@media (max-width: 1439px) {


    .act-intro-outer {
    }

    .act-intro-text-section {
        padding: 80px 60px 40px;
    }

    .act-intro-title {
        font-size: 48px;
    }

    .act-intro-image-section {
        padding: 0 60px;
    }

    .act-intro-image-wrapper {
        height: clamp(300px, 28.125vw, 540px); /* 검수 0703: 윤리강령 기준 통일 */
    }

    .act-intro-overlay-text {
        font-size: 20px;
    }

    .act-cards-section {
        padding: 80px 60px;
    }

    .act-cards-inner {
        gap: 60px 30px;
    }

    .act-card-img-wrap {
        height: 280px;
    }

    .act-card-title {
        font-size: 28px;
    }

    .act-card-desc {
        font-size: 16px;
    }

}

/* ══════════════════════════════════════
   반응형 - 모바일 (≤767px) GM 360px
══════════════════════════════════════ */
@media (max-width: 767px) {

    /* 탭 모바일 전용 span */
    .act-tab-mob-br {
        display: inline;
    }

    .act-tab-desk-text {
        display: none;
    }

    .act-tab-mob-text {
        display: inline;
    }



    /* 도입 */
    .act-intro-outer {
    }

    .act-intro-inner {
        position: relative;
        padding-bottom: 40px;
    }

    .act-intro-text-section {
        padding: 40px 16px 24px;
    }

    .act-intro-title {
        font-size: 24px;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
        color: #E9E9E9;
    }

    .act-intro-title .char {
        color: #E9E9E9;
    }

    .act-intro-title .char.active {
        color: #363636;
    }

    .act-intro-image-section {
        padding: 0 16px;
    }

    .act-intro-image-wrapper {
        height: 448px; /* 검수 0703: 프레임 높이 448 유지 */
        border-radius: 16px;
    }

    .act-intro-img {
        height: 100%;
        object-position: center; /* 모바일 전용 이미지(1.5:1) 중앙 크롭 */
    }

    .act-intro-overlay {
        background: rgba(0, 0, 0, 0.4); /* #000000 40% dim */
    }

    .act-intro-overlay-text {
        font-size: 18px;   /* 검수 0720: 모바일 18px */
        line-height: 1.5;
        padding: 0 16px;
    }

    .act-intro-overlay-text--desktop {
        display: none;
    }

    .act-intro-overlay-text--mobile {
        display: block;
    }

    /* 카드 섹션 */
    .act-cards-section {
        padding: 40px 16px;
    }

    .act-cards-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .act-card {
        gap: 24px;
    }

    .act-card-img-wrap {
        height: 185px;
        border-radius: 16px;
    }

    .act-card-body {
        padding: 0 12px;
        gap: 16px;
    }

    .act-card-title {
        font-size: 26px;
        line-height: 1.5;
    }

    .act-card-desc {
        font-size: 16px;
        line-height: 1.6;
        color: #363636;
    }

}

/* ── 태블릿: border-radius 30px → 20px ── */
@media (min-width: 768px) and (max-width: 1439px) {
    /* 히어로 이미지 오버레이 안쪽 여백 20 (태블릿) */
    .act-intro-overlay { padding: 20px; box-sizing: border-box; }
    /* 도입 — 검수 0703: 태블릿 도입부 통일 (타이틀 최소 30px, 좌우 여백 20px) */
    /* 스크롤 인터렉션 텍스트 — 사회경영 히어로와 동일 (24px/700/1.4) */
    .act-intro-title { font-size: clamp(24px, 3.125vw, 60px); }
    .act-intro-text-section { padding-left: 20px; padding-right: 20px; }
    .act-intro-image-section { padding-left: 20px; padding-right: 20px; }
    /* 도입 이미지 높이 — 환경경영 기준으로 통일 */
    .act-intro-image-wrapper { height: clamp(300px, 35vw, 500px); }

    .act-intro-image-wrapper,
    .act-card-img-wrap {
        border-radius: 20px;
    }
}