@charset "utf-8";

/* [Biz 전용 배경 이미지] */
.sub-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/sub_menu.png');
}

/* =========================================
   사업분야(Biz) 페이지 고유 스타일
   ========================================= */
.biz-desc {
    font-size: 20px;
    color: #555;
    margin-bottom: 60px;
    line-height: 1.8;
    word-break: keep-all;
}

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

.detail-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.detail-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #0056b3;
    transition: all 0.3s;
}

.detail-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-box h3 {
    font-size: 22px;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
}

.detail-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.detail-box.link-box {
    cursor: pointer;
    background-color: #f0f7ff;
    border-color: #cce5ff;
}

.detail-box.link-box:hover {
    background-color: #0056b3;
}

.detail-box.link-box:hover h3,
.detail-box.link-box:hover p {
    color: #fff;
}

@media (max-width: 1024px) {
    .biz-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .biz-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* PDF 다운로드 및 라인업 링크 */
.pdf-btn {
    display: inline-block;
    margin-top: 20px;
    color: #0056b3;
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s;
}

.pdf-btn:hover {
    color: #3b82f6;
    text-decoration: none;
}

.lineup-link {
    display: block;
    margin-top: 15px;
    color: #0056b3;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.lineup-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* 큰 이미지 컨테이너 공통 스타일 (Custom, PCB, SMT, LCD 모두 적용) */
#custom-big-image-container,
#pcb-big-image-container,
#smt-big-image-container,
#lcd-big-image-container {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    text-align: center;
    transition: all 0.4s ease-in-out;
}

/* 활성화되었을 때 (공통) */
#custom-big-image-container.active,
#pcb-big-image-container.active,
#smt-big-image-container.active,
#lcd-big-image-container.active {
    opacity: 1;
    visibility: visible;
    max-height: 800px;
    margin-top: 40px;
}

/* 내부 이미지 스타일 (공통) */
#custom-big-image-container img,
#pcb-big-image-container img,
#smt-big-image-container img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#lcd-big-image-container img {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

/* SMT 두 장 사진 레이아웃 */
.double-img-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.double-img-wrap img {
    width: calc(50% - 10px);
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.double-img-wrap img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .double-img-wrap {
        flex-direction: column;
    }

    .double-img-wrap img {
        width: 100%;
        margin-bottom: 10px;
    }
}