/* 1. 메인 배너 슬라이더 */
.main-slider-section { width: 100%; overflow: hidden; position: relative; cursor: grab; }
.main-slider-section:active { cursor: grabbing; }
.slider-container { width: 100%; height: 520px; position: relative; }
.slide-track { display: flex; width: 100%; height: 100%; }
.slide { width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; flex-shrink: 0; user-select: none; -webkit-user-drag: none; }
.slide-content { max-width: 800px; text-align: center; color: #ffffff; padding: 0 20px; pointer-events: none; }
.slide-content h3 { font-size: 36px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; }
.slide-content p { font-size: 18px; line-height: 1.6; font-weight: 300; opacity: 0.9; }

/* 화살표 최상위 레이어 인덱싱 보장 */
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.3); color: #fff; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 20; transition: background 0.2s; }
.slide-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.prev-arrow { left: 30px; }
.next-arrow { right: 30px; }

.slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; margin: 0 6px; cursor: pointer; transition: background 0.2s; }
.dot.active { background: #ffffff; width: 24px; border-radius: 6px; }

/* 2. 미니멀 요약 소개 섹션 */
.intro-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.intro-card { background: #ffffff; border: 1px solid #eef2f6; border-radius: 8px; padding: 40px 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: transform 0.3s; }
.intro-card:hover { transform: translateY(-5px); border-color: var(--point-color); }
.intro-icon { font-size: 40px; margin-bottom: 20px; }
.intro-card h4 { font-size: 19px; color: #222; margin-bottom: 15px; }
.intro-card p { font-size: 15px; color: #666; word-break: keep-all; }
.intro-footer-text { margin-top: 50px; max-width: 900px; margin-left: auto; margin-right: auto; font-size: 16px; color: #444; font-weight: 500; background: #f4f6fa; padding: 25px; border-radius: 6px; border-left: 4px solid var(--point-color); }

/* 3. 이미지 갤러리 영역 */
.gallery-section { background-color: #f8f9fa; padding: 80px 0; }
.gallery-wrapper { max-width: 1200px; margin: 0 auto; position: relative; padding: 0 50px; overflow: hidden; cursor: grab; }
.gallery-wrapper:active { cursor: grabbing; }
.gallery-track { display: flex; user-select: none; }
.gallery-item { padding: 0 10px; flex-shrink: 0; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s ease; -webkit-user-drag: none; }
.gallery-item img:hover { transform: scale(1.02); }

.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffff; border: 1px solid #ddd; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 20; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.gallery-arrow:hover { background: var(--point-color); color: #fff; border-color: var(--point-color); }
.g-prev { left: 5px; }
.g-next { right: 5px; }

/* 이미지 확대 라이트박스 */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 48px; cursor: pointer; transition: transform 0.2s; }
.lightbox-close:hover { transform: scale(1.1); }
.lightbox-content-wrap { max-width: 85%; max-height: 85%; transform: scale(0.9); transition: transform 0.3s ease; }
.lightbox.open .lightbox-content-wrap { transform: scale(1); }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* 4. 미디어 및 연계 영역 */
.media-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.media-container { display: flex; gap: 40px; }
.video-box { flex: 2; }
.links-box { flex: 1; }
.sub-section-title { font-size: 20px; color: var(--point-color); margin-bottom: 20px; font-weight: 700; border-left: 3px solid var(--point-color); padding-left: 10px; }
.video-ratio-wrapper { position: relative; padding-top: 56.25%; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.video-ratio-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.vertical-slider-container {
    height: 410px; width: 253px;
    border: 1px solid #eef2f6; background: #fff; border-radius: 6px; padding: 10px; overflow: hidden; position: relative;
}
.vertical-track { display: flex; flex-direction: column; }
.link-item { padding: 8px 0; text-align: center; }
.link-item img { max-width: 100%; height: auto; max-height: 68px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; }

/* 5. 주요 거래처 파트너스 자동 무한 롤링 트랙 */
.clients-section { max-width: 100%; padding: 40px 0 80px 0; overflow: hidden; }
.clients-ticker-container { width: 100%; overflow: hidden; position: relative; background: #fafafa; padding: 20px 0; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }
.clients-ticker-track { display: flex; width: max-content; animation: clientTicker linear infinite; }
.clients-ticker-container:hover .clients-ticker-track { animation-play-state: paused; }
.client-logo-card {
    background: #ffffff; border: 1px solid #e8ecf0; border-radius: 4px;
    width: 150px; height: 119px;
    display: flex; align-items: center; justify-content: center; padding: 5px; margin: 0 10px; flex-shrink: 0; text-align: center;
}
.client-logo-card span { font-size: 13px; font-weight: 600; color: #555; word-break: keep-all; cursor: default; }
.client-logo-card img { height: calc(100% - 10px); }

@keyframes clientTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
    .slider-container { height: 380px; }
    .slide-content h3 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .intro-grid { grid-template-columns: 1fr; gap: 20px; }
    .media-container { flex-direction: column; }
    .gallery-wrapper { padding: 0 30px; }
    .g-prev { left: -5px; }
    .g-next { right: -5px; }
    .vertical-slider-container { margin: 0 auto; }
}

/* Youtube */
.yt-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 비율 유지 */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.yt-thumb-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 45, 107, 0.2);
}
.yt-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.yt-thumb-container:hover .yt-bg-img {
    transform: scale(1.05);
}
.yt-overlay-mask {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    transition: background 0.3s ease;
}
.yt-thumb-container:hover .yt-overlay-mask {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}
.yt-badge-tag {
    align-self: flex-start;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}
.yt-play-trigger-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yt-play-trigger-btn i {
    color: var(--point-color);
    font-size: 24px;
    margin-left: 4px;
}
.yt-thumb-container:hover .yt-play-trigger-btn {
    background: #e11d48;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
}
.yt-thumb-container:hover .yt-play-trigger-btn i {
    color: #fff;
}
.yt-caption-meta h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: keep-all;
}
.yt-caption-meta p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
}

/* 🎬 비디오 레이어 팝업 컨테이너 (자바스크립트 강제 애니메이션 제어용 베이스 레이아웃) */
.video-layer-popup {
    display: none; /* 초기는 자바스크립트 제어를 위해 하이딩 */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.popup-video-container {
    position: relative;
    width: 92%;
    max-width: 960px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
}

.popup-video-ratio-fluid {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
}
.popup-video-ratio-fluid iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}
.popup-close-trigger {
    position: absolute;
    top: -50px; right: 0;
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex; align-items: center; gap: 8px;
}
.popup-close-trigger:hover {
    color: #fff;
}
.popup-close-trigger span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .popup-close-trigger {
        top: 16px; right: 16px;
        z-index: 10;
        background: rgba(0,0,0,0.6);
        width: 40px; height: 40px;
        border-radius: 50%;
        justify-content: center;
    }
    .popup-close-trigger span { display: none; }
}