/* 통합 테마 공통 변수 */
:root {
    --box-pd: 24px;
    --white: #ffffff;
    --border-radius: 32px;
}

/* box-wrap 기본 스타일 고정 (추가 조작 제어 제외) */
.box-wrap {
    padding: var(--box-pd);
    background: var(--white);
    border-radius: var(--border-radius);
}

/* 비디오 슬라이더 전체 프레임 배치 */
.video-slider-container {
    font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
    width: 100%;
    max-width: 900px; /* 영상 슬라이더는 폭이 여유로워야 성과 가시성이 높습니다 */
    margin: 20px auto;
    position: relative;
    box-sizing: border-box;
}

/* 타이틀 정렬 */
.video-slider-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
    text-align: left;
    padding-left: 44px; /* 화살표 여백과의 정렬 일치 */
}

/* 조작 화살표와 슬라이더 본체를 묶는 래퍼 */
.video-swiper-outer-wrapper {
    position: relative;
    padding: 0 44px; /* 좌우 화살표가 안정적으로 안착될 여백 확보 */
}

.video-swiper-body {
    width: 100%;
    padding: 4px 4px 10px 4px !important;
}

/* 개별 카드식 동영상 카드 레이아웃 */
.video-slide-card {
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.video-slide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

/* ★ 핵심 설정 : 유튜브 가로 세로 16:9 비율 강제 고정 및 모서리 라운딩 */
.video-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 전 세계 미디어 규격 비율 대응 */
    border-radius: 12px;
    overflow: hidden;
    background-color: #000000;
}
.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 카드 하단 텍스트 정보 */
.video-info-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.video-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
}
.video-card-desc {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    word-break: keep-all;
}

/* 좌우 전용 조작 화살표 스타일 */
.video-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
    color: #64748b;
}
.video-arrow-btn:hover {
    color: #5496e4;
    border-color: #5496e4;
    box-shadow: 0 4px 10px rgba(84, 150, 228, 0.15);
}
.video-arrow-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}
.video-arrow-btn.prev-btn {
    left: 0;
}
.video-arrow-btn.next-btn {
    right: 0;
}

/* 하단 페이지네이션 도트 래퍼 */
.video-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.video-pagination-wrapper .swiper-pagination-bullet {
    background-color: #94a3b8;
    opacity: 0.5;
    margin: 0 4px !important;
}
.video-pagination-wrapper .swiper-pagination-bullet-active {
    background-color: #5496e4 !important;
    opacity: 1;
}

/* 모바일 뷰 반응형 보정 */
@media (max-width: 768px) {
    .video-swiper-outer-wrapper {
        padding: 0; /* 화살표 제거에 맞춰 여백 리셋 */
    }
    .video-arrow-btn {
        display: none; /* 모바일은 스와이프를 권장하므로 화살표 배제 */
    }
    .video-slider-title {
        padding-left: 0;
        font-size: 18px;
        margin-bottom: 16px;
    }
}