/* Hero Slider (Banner) */
.hero { padding: 0; margin-top: 10px; height: 70vh; min-height: 500px; position: relative; overflow: hidden; background: #000; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #fff; }
.swiper-slide img {
    width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 2.5s ease-in;
    filter: grayscale(10%); transition: var(--transition);
}
.swiper-slide-active img { transform: scale(1.05); }
.swiper-slide::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; /*background: rgba(0,0,0,0.4);*/ }

.banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; width: 90%; }
.banner-title { font-size: 48px; font-weight: 700; color: var(--white); text-shadow: 2px 2px 10px rgba(0,0,0,0.5); opacity: 0; transform: translateY(30px); transition: all 1s ease 0.5s; }
.swiper-slide-active .banner-title { opacity: 1; transform: translateY(0); }

/* 모바일 환경 배너 상하단 검은 영역 방지 및 이미지 찌그러짐(비율) 완벽 해결 */
@media screen and (max-width: 768px) {
    /* 고정 높이를 없애고, 가로 너비에 맞춰 세로 높이가 자동으로 비율에 맞게 조절되도록 aspect-ratio 적용 */
    .hero { height: auto; min-height: 250px; aspect-ratio: 4 / 3; margin-top: 15px; }
    /* object-fit: fill(찌그러짐의 원인)을 cover로 변경하여 원본 비율 유지 */
    .swiper-slide img { object-fit: cover; background: transparent; }
    .banner-title { font-size: 28px; }
}

/* Products Section (통합된 깔끔한 디자인) */
.bg-light-sec { background: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.product-card img { width: 100%; height: 300px; object-fit: cover; }
.product-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.product-content h3 { font-size: 24px; color: var(--primary-color); margin-bottom: 15px; }
.product-content p { font-size: 15px; line-height: 1.7; color: var(--text-light); }

/* History Timeline (역순 정렬) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--secondary-color); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; position: relative; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { width: 45%; background: var(--white); padding: 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.timeline-year { font-weight: 700; color: var(--primary-color); font-size: 20px; margin-bottom: 5px; }
.timeline-dot { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; background: var(--primary-color); border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--secondary-color); }

/* Clients 슬라이드 스타일 (Swiper 활성화로 인한 크기/위치 변형 방지 및 마우스 오버 시에만 컬러 전환) */
#service.bg-light-sec { background: transparent !important; }
.client-swiper { width: 100%; padding: 20px 0; }
.client-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; background: transparent !important; transform: none !important; }
.client-swiper .client-box { width: 180px; height: 90px; display: flex; justify-content: center; align-items: center; background: transparent !important; padding: 10px; }
.client-swiper img {
    width: 100%; height: 100%; object-fit: contain; background: transparent !important; 
    filter: grayscale(100%); transition: var(--transition);
}
.client-swiper img:hover,
.client-swiper .swiper-slide-active img { filter: grayscale(100%); transform: none !important; } 
.client-swiper .client-box img:hover { filter: grayscale(0%); transform: none !important; } 

/* Video Section */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.cert-item { display: block; background: var(--white); padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid #eee; }
.cert-item:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.cert-item img { height: 120px; margin: 0 auto 15px; object-fit: contain; }
.cert-title { font-weight: 600; color: var(--text-dark); }

/* 미디어 쿼리 (반응형) */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-end; }
    .timeline-content { width: calc(100% - 50px); }
    .timeline-dot { left: 20px; }
}