/**
 * NextBio Website - 생산설비 페이지 스타일
 */

.production-page {
    width: 100%;
    background: #ffffff;
    overflow-x: hidden;
    padding: 160px 0;
}

.production-page .content-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 160px;
}

/* 섹션 공통 */
.production-page .infra-section {
    width: 100%;
}

.production-page .infra-section.last {
    padding-bottom: 0;
}

.production-page .sec-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 48px 0;
    font-family: var(--font-family-suit);
    font-weight: 700;
}

/* 그리드 시스템 - 박스 크기 갯수와 상관없이 통일, 1개일 때 왼쪽 정렬 */
.production-page .grid {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(3, 1fr);
}

.production-page .grid.column-2 {
    grid-template-columns: repeat(3, 1fr);
}

.production-page .grid.column-3 {
    grid-template-columns: repeat(3, 1fr);
}

.production-page .grid.column-1 {
    grid-template-columns: repeat(3, 1fr);
    justify-items: start;
}

/* 카드(박스) 스타일 */
.production-page .box {
    border: 1px solid #dfdfdf;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    background: #ffffff;
}

.production-page .box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.production-page .box.full-width {
    width: 100%;
}

/* 이미지 처리 - 비율 고정(4:3)으로 큰 화면에서 늘어짐 방지 */
.production-page .img-box {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.production-page .img-fit {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
}

/* 병입라인 35mm 등 이미지가 박스 안에 맞게 표시 */
.production-page .img-fit.img-fit-contain {
    object-fit: contain;
    background: #f9f9f9;
}

.production-page .img-group {
    display: flex;
    height: 320px;
}

.production-page .img-group img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* 텍스트 영역 - 한글 디자인 통일 여백 */
.production-page .txt-box {
    padding: 28px 24px;
    border-top: 1px solid #dfdfdf;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    box-sizing: border-box;
}

.production-page .item-name {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    font-family: var(--font-family-suit);
    font-weight: 700;
    line-height: 1.35;
}

/* 살균 라인 등 박스 내 항목·텍스트 여백 통일 */
.production-page .infra-section .txt-box:only-child,
.production-page .infra-section .box .txt-box {
    padding: 28px 24px;
}

.production-page .desc {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    word-break: keep-all;
    margin: 0;
    font-family: "Suit-Regular", sans-serif;
}

/* 상세 리스트 (ul/li) - 살균 라인 등 박스 내 항목·텍스트 여백 통일 */
.production-page .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.production-page .info-list li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    min-height: 1.6em;
}

.production-page .info-list .label {
    color: var(--main, #8dc63f);
    font-size: 18px;
    font-weight: 600;
    min-width: 80px;
    font-family: var(--font-family-suit);
    font-weight: 600;
}

.production-page .info-list .val {
    color: #555555;
    font-size: 18px;
    font-weight: 400;
    font-family: "Suit-Regular", sans-serif;
}

/* 반응형 */
@media (max-width: 1440px) {
    .production-page .content-wrap {
        padding: 0 120px;
    }
}

@media (max-width: 1200px) {
    .production-page {
        padding: 120px 0;
    }
    
    .production-page .grid.column-2,
    .production-page .grid.column-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .production-page .grid.column-1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .production-page {
        padding: 100px 0;
    }
    
    .production-page .content-wrap {
        padding: 0 40px;
        gap: 100px;
    }
    
    .production-page .sec-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .production-page {
        padding: 60px 0;
        overflow-y: visible;
        min-height: 0;
        display: block;
    }
    
    .production-page .content-wrap {
        padding: 0 20px;
        gap: 60px;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .production-page .grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .production-page .box.full-width .img-group {
        flex-direction: column;
        height: auto;
    }
    
    .production-page .box.full-width .img-group img {
        width: 100%;
        height: 250px;
    }
    
    .production-page .sec-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .production-page .item-name {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .production-page .info-list .label,
    .production-page .info-list .val,
    .production-page .desc {
        font-size: 16px;
    }
    
    .production-page .img-group {
        height: auto;
    }
    
    .production-page .img-group img {
        height: 200px;
    }
}
