/* =============================================
   about_business_detail.css
   주요 사업 상세 서브페이지 전용 스타일
   max-width: 860px 단일 컨테이너 패턴
   ============================================= */

/* ===== 컨테이너 ===== */

.business-detail-container {
    max-width: 860px;
    margin: 0 auto;
    /* school·archive·system 페이지와 위쪽 여백 통일 (180px) */
    padding: 180px 24px 40px 24px;
}

/* ===== S1. 브레드크럼 ===== */

.bd-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 28px;
    color: #999;
}

.bd-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.bd-breadcrumb a:hover {
    color: #008385;
}

.bd-sep {
    color: #ccc;
    margin: 0 6px;
}

.bd-current {
    color: #008385;
    font-weight: 600;
}

/* ===== S2. 페이지 헤더 ===== */

.bd-page-header {
    margin-bottom: 0;
}

.bd-page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 14px 0 0 0;
}

.bd-subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin: 12px 0 0 0;
}

/* ===== 카테고리 배지 ===== */

.bd-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.bd-badge-heritage {
    background: #e4f0f0;
    color: #006e70;
}

.bd-badge-planning {
    background: #eef6f6;
    color: #007a7c;
}

.bd-badge-consulting {
    background: #d8eaea;
    color: #005b5c;
}

/* ===== S3. 대표 이미지 ===== */

.bd-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin: 32px 0;
}

.bd-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* ===== S4. 사업 개요 ===== */

.bd-overview {
    background: #f7fbfb;
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 40px;
}

/* 과업개요 표 형식 (과업명/과업기간/발주기관) */
.bd-overview-list {
    margin: 0;
    padding: 0;
}
.bd-overview-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #e6eded;
}
.bd-overview-row:last-child { border-bottom: none; }
.bd-overview-row dt {
    flex: 0 0 110px;
    font-weight: 600;
    color: #008385;
    font-size: 0.95rem;
    margin: 0;
}
.bd-overview-row dd {
    flex: 1;
    margin: 0;
    color: #333;
    font-size: 1.02rem;
    line-height: 1.6;
}

.bd-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #008385;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.bd-section-bar {
    display: block;
    width: 40px;
    height: 3px;
    background: #008385;
    border-radius: 2px;
    margin-bottom: 20px;
}

.bd-overview p {
    font-size: 1.08rem;
    color: #444;
    line-height: 2.0;
    letter-spacing: 0.02em;
}

/* ===== S5. 주요 수행 내용 ===== */

.bd-contents {
    background: #f7fbfb;
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 40px;
}

.bd-contents h2,
.bd-overview h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.bd-contents-text-block {
    font-size: 1.02rem;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-top: 16px;
    white-space: pre-line;
}

/* 주요 과업내용 — 줄 단위 정리 (과업개요 행과 동일한 톤) */
.bd-contents-lines {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.bd-contents-lines li {
    position: relative;
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid #e6eded;
    font-size: 1.02rem;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.02em;
}
.bd-contents-lines li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 10px;
    color: #008385;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
}
.bd-contents-lines li:last-child {
    border-bottom: none;
}

/* ===== 과업 성과물 미디어 ===== */
.bd-outcomes-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.bd-outcomes-image-link { display: block; }
.bd-outcomes-image,
.bd-outcomes-video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
    border: 1px solid #e8e8e8;
}
.bd-outcomes-image:hover { opacity: 0.9; }

.bd-outcomes-youtube {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.bd-outcomes-youtube-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.bd-outcomes-youtube-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.bd-contents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-contents-item {
    background: #fff;
    border: 1px solid #e8eded;
    border-radius: 10px;
    padding: 18px 20px 18px 64px;
    margin-bottom: 12px;
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
}

.bd-contents-item:last-child {
    margin-bottom: 0;
}

.bd-num {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #008385;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-contents-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
}

.bd-contents-text p {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* ===== S6. 관련 사업 ===== */

.bd-related {
    border-top: 1px solid #ececec;
    padding-top: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.bd-related h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.bd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bd-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.bd-related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.bd-related-card-content {
    padding: 16px;
}

.bd-related-card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.bd-related-card-content p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.45;
    margin: 0;
}

/* ===== S7. 하단 내비게이션 ===== */

.bd-navigation {
    border-top: 1px solid #e0e0e0;
    margin-top: 48px;
    padding-top: 36px;
}

.bd-cta-box {
    background: #f7fbfb;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 28px;
}

.bd-cta-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.bd-cta-box p {
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 20px 0;
}

.bd-cta-btn {
    display: inline-block;
    background: #008385;
    color: #fff;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.bd-cta-btn:hover {
    background: #006e70;
    color: #fff;
}

.bd-back-wrap {
    text-align: center;
}

.bd-back-btn {
    display: inline-block;
    background: #444;
    color: #fff;
    border-radius: 5px;
    padding: 11px 28px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bd-back-btn:hover {
    background: #555;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 반응형 768px ===== */

@media (max-width: 768px) {
    .business-detail-container {
        margin: 0 auto;
        padding: 140px 20px 40px 20px;
    }

    .bd-page-header h1 {
        font-size: 1.8rem;
    }

    .bd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bd-contents {
        padding: 24px 20px;
    }

    .bd-cta-box {
        padding: 22px 18px;
    }
}

/* ===== 반응형 480px ===== */

@media (max-width: 480px) {
    .business-detail-container {
        margin: 0 auto;
        padding: 130px 16px 40px 16px;
    }

    .bd-page-header h1 {
        font-size: 1.5rem;
    }

    .bd-subtitle {
        font-size: 0.95rem;
    }

    .bd-related-grid {
        grid-template-columns: 1fr;
    }

    .bd-contents-item {
        padding: 14px 16px 14px 54px;
        min-height: 64px;
    }

    .bd-num {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        left: 14px;
    }

    .bd-cta-box h3 {
        font-size: 1rem;
    }

    .bd-cta-btn,
    .bd-back-btn {
        display: block;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
    }

    .bd-back-wrap {
        margin-top: 16px;
    }
}
