/* =======================
   COOPERATIVE PAGE (협력사)
   ======================= */

:root {
    --coop-red: #e11d2e;
    --coop-gray: #555;
    --coop-black: #111;
}

/* ===== 기본 래퍼 ===== */
.cooperative-wrap {
    position: relative;
    width: 100%;
    text-align: center;
    overflow: hidden;
    background: #fff;
    margin: clamp(4rem, 6vw, 8rem) auto clamp(8rem, 10vw, 10rem);
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

/* ===== 배경 이미지 ===== */
.cooperative-bg-01 {
    position: relative;
    width: 65%;
    z-index: 1;
}

.cooperative-bg-02 {
    width: 70%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ===== 협력사 본문 (배경 위 절대 위치) ===== */
.cooperative-body {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    color: #fff;
    z-index: 5;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===== 협력사 그리드 ===== */
.cooperative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* ===== 협력사 카드 ===== */
.cooperative-card {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cooperative-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cooperative-card img {
    max-width: clamp(100px, 10vw, 150px);
    height: auto;
    margin: clamp(1rem, 2vw, 1.5rem) auto;
}

.cooperative-card .sub {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    opacity: 0.8;
    margin-bottom: 1rem;
    border: 1px solid #999;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    background: #f8f8f8;
    color: #333;
}

.cooperative-card .title {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    color: var(--coop-black);
    margin-bottom: 0.3rem;
}

.cooperative-card .desc {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: var(--coop-gray);
    line-height: 1.6;
    margin-top: 0.8rem;
}

/* ===== 하단 설명 ===== */
.cooperative-footer {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
}

.cooperative-footer h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--coop-black);
}

.cooperative-footer p {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: var(--coop-gray);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== 로고 ===== */
.cooperative-logo {
    display: flex;
    justify-content: center;
}

.cooperative-logo img {
    width: clamp(100px, 10vw, 130px);
    margin-top: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1700px) {
    .cooperative-grid {
        margin-top : 10rem
    }
}

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    /* 지도는 그대로 유지 */
    .cooperative-bg {
        position: relative;
        z-index: 1;
        margin-bottom: -15rem; /* 핵심: 콘텐츠를 위로 끌어올릴 여백 */
    }

    .cooperative-body {
        position: relative;
        z-index: 2;
        width: 92%;
        text-align: center;
        color: #111;
        text-shadow: none;
    }

    .cooperative-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        margin-top : 0
    }

    .cooperative-card {
        padding: 1.2rem;
    }

    .cooperative-card img {
        max-width: 120px;
    }

    .cooperative-card .desc {
        font-size: 0.9rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 700px) {
    /* 지도는 숨김 */

    .cooperative-bg {
        position: relative;
        z-index: 1;
        margin-bottom: -5rem;
    }

    .cooperative-bg-01 {
        display: none;
    }

    .cooperative-wrap {
        display: grid;
        place-items: center;
        text-align: center;
        margin-top: clamp(4rem, 6vw, 8rem);
        margin-bottom : 0;
    }

    /* 본문 카드 정렬 */
    .cooperative-body {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: grid;
        gap: 1.5rem;
        justify-items: center;
        z-index: 2;
    }

    .cooperative-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
        margin-top : 5rem
    }

    /* 카드 스타일 */
    .cooperative-card {
        width: 90%;
        padding: 1.2rem;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin : 0 auto;
    }

    .cooperative-card img {
        max-width: 100px;
        margin-bottom: 1rem;
    }

    .cooperative-card .title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .cooperative-card .desc {
        font-size: 0.85rem;
        color: #555;

    }
    .cooperative-body {
        transform: translate(-50%, -10%);
    }
    .cooperative-logo {
        width: 100%;
    }
    .cooperative-logo img {
        width: 20%
    }
}