.video-gallery-section {
    padding: 2rem 0;
}
.video-gallery-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}
.video-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    scroll-snap-type: x mandatory;
    /* 스크롤바 디자인 */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}
.video-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.video-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.video-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.video-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 유지 */
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-info {
    padding: 20px;
}
.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #222;
}
.video-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: keep-all;
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .video-card {
        flex: 0 0 85%; /* 모바일에서는 카드가 화면의 85% 차지 */
    }
}

/* =========================================
   비디오 슬라이더 캠페인 CSS
========================================= */
.video-slider-wrap {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* 메인 슬라이더 영역 (영상 + 버튼) */
.slider-main {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* iframe 16:9 비율 유지 컨테이너 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 좌우 이동 버튼 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* 메인 비디오 텍스트 정보 */
.video-info-box {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.video-info-box .main-video-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 0.8rem;
}

.video-info-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    word-break: keep-all;
}

/* 하단 가로 리스트 (썸네일/네비게이션 역할) */
.video-list-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* 파이어폭스 스크롤 숨김 */
}

.video-list-container::-webkit-scrollbar {
    display: none; /* 크롬/사파리 스크롤 숨김 */
}

.list-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.list-item:hover {
    background: #e9ecef;
}

.list-item.active {
    background: #fff;
    border: 2px solid #0056b3;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.15);
}

.list-num {
    font-weight: bold;
    color: #999;
    font-size: 0.9rem;
}

.list-item.active .list-num {
    color: #0056b3;
}

.list-title {
    font-weight: 500;
    color: #333;
}

.list-item.active .list-title {
    color: #0056b3;
    font-weight: bold;
}

/* 반응형 처리 (모바일 기기 대응) */
@media (max-width: 768px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    
    .video-list-container {
        justify-content: flex-start; /* 모바일에서는 왼쪽 정렬 후 스와이프 */
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 1.3.5 법칙 캠페인 영상 영역 스타일 */
.campaign-video-area {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #eaeaea;
    text-align: center;
}
.campaign-rule-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111;
}
.campaign-rule-subtitle {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* 1, 3, 5 포인트 컬러 */
.campaign-color-1 { color: #4285F4; } /* 파랑 */
.campaign-color-3 { color: #F29900; } /* 주황 */
.campaign-color-5 { color: #34A853; } /* 초록 */

/* 1.3.5 설명 박스 */
.campaign-rule-box {
    background-color: #f0f7ff;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.campaign-rule-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.campaign-rule-box li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}
.campaign-rule-box li:last-child {
    margin-bottom: 0;
}
.campaign-rule-box strong {
    font-size: 1.6rem;
    font-weight: 800;
    margin-right: 0.8rem;
    line-height: 1;
}
.campaign-rule-desc-sub {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.4rem;
    margin-left: 2.4rem;
    display: block;
    word-break: keep-all;
}

/* 영상 프레임 목업 */

/* CTR 버튼 그룹 */
.campaign-cta-button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.campaign-cta-btn {
    background-color: #ffeaa7; /* 연노랑 배경 */
    color: #333;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.campaign-cta-btn:hover {
    background-color: #fce07a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: #111;
}

/* Vimeo 영상 프레임 (반응형 16:9 비율 유지) */
.campaign-vimeo-area {
    border: 14px solid #333;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 3rem auto;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    aspect-ratio: 15.7 / 9; /* 16:9 비율 고정 */
}

.campaign-vimeo-area iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 모바일 대응 (기존 모바일 미디어 쿼리 안의 내용 교체) */
@media (max-width: 768px) {
    .campaign-vimeo-area { border-width: 8px; }
    .campaign-cta-button-group { flex-direction: column; gap: 1rem; }
    .campaign-cta-btn { width: 100%; min-width: unset; }
    .campaign-rule-box { padding: 1.5rem; }
    .campaign-rule-box li { flex-direction: column; }
    .campaign-rule-box strong { margin-bottom: 0.5rem; }
    .campaign-rule-desc-sub { margin-left: 0; }
}