.sub-visual {
    width: 100%;
    height: 250px;
    background-color: #1a375f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

}


/* ==========================================
   BUSINESS CARD DESIGN (사업 카드)
   ========================================== */
.biz-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border: 1px solid #f0f0f0;
}

.biz-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.biz-card .icon-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.biz-card .icon-box i {
    font-size: 24px;
    color: #1a375f;
}

.biz-card:hover .icon-box {
    background: #1a375f;
}

.biz-card:hover .icon-box i {
    color: #fff;
}

.biz-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a375f;
}

.biz-sub-blue {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 5px;
}

.biz-sub-blue {
    color: #3498db;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* 설명글 생략 처리 (3줄 이상 시... 처리 가능)*/
.biz-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0 20px 0;
}

.tag-box {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 8px;
    border: none;
}



/* ==========================================
   2. MODAL SYSTEM (상세보기 모달)
   ========================================== */
.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 배경 어둡게 */
}

.modal-content {
    background: #fff;
    margin: 3% auto;
    width: 90%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    animation: slideDown 0.4s ease; /* 등장 애니메이션 */
}

.modal-header-top {
    padding: 25px 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 왼쪽 이미지 / 오른쪽 텍스트 분할 */
.modal-split-body {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    max-height: 70vh;
}


.modal-gallery-side {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
    overflow-y: auto;
    max-height: 70vh;
    background: none !important;
    padding: 0 !important;
}

.modal-gallery-side {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-gallery-side img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    border: none !important;
    background: none !important;
    border-radius: 0;
}

.modal-info-side {
    flex: 1.2; /* 오른쪽을 약간 더 넓게 */
    overflow-y: auto;
    padding-right: 15px;
}

.modal-list {
    list-style: none;
    padding-left: 5px;
}

.modal-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #4a5568;
    position: relative;
    padding-left: 15px;
}

.modal-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.modal-content {
    max-width: 1100px;
    padding: 0;
}

.modal-header-top {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-split-body {
    display: flex;
    padding: 40px;
    gap: 40px;
}

.modal-gallery-side {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-gallery-side img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-info-side {
    flex: 1.2;
}

.modal-list {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 30px;
}

.modal-list li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.modal-list li::before {
    content: '-';
    position: absolute;
    left: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.4s;
}

.modal-body {
    display: flex;
    gap: 40px;
    padding: 50px;
}

.modal-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1.2;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-description h4 {
    margin: 25px 0 10px;
    color: #1a375f;
    font-size: 18px;
    border-left: 4px solid #1a375f;
    padding-left: 10px;
}

.modal-description ul {
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
}

/* 1. 모달창 메인 제목 색상 변경 (검은색 -> 남색) */
#modalTitle {
    color: #1a375f !important;
    font-weight: 700;
}

/* 2. 모달창 왼쪽 상단 아이콘 박스 내부 아이콘 색상 */
#modalIcon {
    color: #1a375f !important;
}

.image-box {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

.info-section {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.info-section h4 {
    color: #1a375f;
    font-size: 17px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section h4 i {
    color: #3498db;
    font-size: 14px;
}

.tech-list li {
    font-size: 14px;
    color: #4a5568;
    position: relative;
    padding-left: 12px;
}

.tech-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}


/* ==========================================
   3. DETAIL ELEMENTS (세부 요소)
   ========================================== */
.desc-text {
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
    background: #f8fafc; /* 강조 텍스트 배경 */
    padding: 15px;
    border-radius: 6px;
}

.tech-list {
    list-style: none;
    padding-left: 5px;
    display: flex;
    flex-wrap: wrap; /* 기술 태그가 많으면 자동 줄바꿈 */
    /* 내용이 많으면 다음 줄로 넘어가게 */
    gap: 10px 20px;
    /* 위아래 10px, 좌우 20px 간격 */
}

.tech-list {
    list-style: none;
    padding-left: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}



@media (max-width: 768px) {
    /* 1. 사업분야 메인 그리드: 3열에서 1열로 변경 */
    .business-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 1열 배치 */
        width: 90% !important;
        margin: 50px auto 80px auto !important; /* 순서: 상(50) 좌우(auto) 하(80) */
        gap: 25px !important;
    }

    /* 상단 남색 박스 자체에도 모바일 높이 여유를 줄 경우 (선택사항) */
    .sub-visual {
        height: 200px !important; /* 모바일에서 너무 높으면 조절 */
    }


    /* 2. 사업분야 카드 여백 조정 */
    .biz-card {
        padding: 25px 20px !important;
        min-height: auto !important; /* 내용에 맞춰 늘어나도록 */
    }

    /* 3. 모달창(Modal) 모바일 최적화 */
    .modal-content {
        width: 95% !important; /* 모달은 조금 더 넓게 */
        margin: 10% auto !important; /* 위쪽 여백 살짝 부여 */
        max-height: 85vh; /* 화면을 너무 넘지 않게 */
        overflow-y: auto;
    }

    .modal-header-top {
        padding: 20px !important;
        flex-direction: column !important; /* 제목과 X버튼 위치 조정 */
        align-items: flex-start !important;
    }

    .close-modal {
        top: 10px !important;
        right: 15px !important;
    }

    /* 4. 모달 내부 레이아웃: 이미지와 글을 위아래로 */
    .modal-split-body {
        flex-direction: column !important; /* 이미지 아래로 글이 오게 */
        padding: 0 !important;
        gap: 0 !important;
    }

    .modal-gallery-side {
        width: 100% !important;
        max-height: none !important; /* 이미지 영역 제한 */
        display: block !important;
    }

    .modal-gallery-side .image-box img {
        height: none !important;
        object-fit: cover !important;
    }

    .modal-info-side {
        width: 100% !important;
        padding: 25px 20px !important;
        box-sizing: border-box;
    }

    .modal-list li, .tech-list li {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }


        /* 모달 하얀창 자체의 여백 */
    .modal-content {
        width: 92% !important; /* 화면 양옆에 여백 생성 */
        margin: 10% auto !important; 
        border-radius: 15px;
    }

    /* 모달 헤더 (제목 부분) */
    .modal-header-top {
        padding: 20px !important;
    }

    /* 모달 본문 텍스트 여백 */
    .modal-info-side {
        padding: 20px !important; /* 텍스트가 박스 끝에 붙지 않게 */
    }

    
    /* 5. 모달 내 텍스트 및 리스트 조정 */
    .info-section h4 {
        font-size: 16px !important;
    }

    .desc-text {
        font-size: 14px !important;
        word-break: keep-all; /* 단어 단위 줄바꿈 */
    }


    .wb-box {
        width: 90% !important; /* 가로폭 제한 */
        margin: 20px auto !important; /* 중앙 정렬 및 위아래 간격 */
        padding: 30px 20px !important; /* 내부 여백 */
        box-sizing: border-box;
    }

    /* 시행일 위치 조정 (제목 아래로) */
    .wb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wb-header span {
        margin-left: 0 !important;
        font-size: 13px;
        color: #888;
    }



    /* 장비개요 회색 박스 여백 */
    .desc-text {
        padding: 15px !important;
        margin: 10px 0 !important;
        line-height: 1.6;
    }


}
