
/* ===== Visual Section ===== */
.visual-container {
    position: relative;
}

.visual-sticky-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #eeeeee;
    overflow: hidden;
    padding: 40px 0 0;
}

/* ===== 캐러셀 클립 영역 ===== */
.visual-carousel-clip {
    position: relative;
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    padding: 24px 0;
}

/* ===== Navigation Arrows ===== */
.visual-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease;
}

.visual-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.visual-nav-prev {
    left: 10px;
}

.visual-nav-next {
    right: 10px;
}

/* ===== Swiper ===== */
.visual-swiper {
    width: 100%;
    overflow: visible !important;
}

.visual-swiper .swiper-wrapper {
    align-items: stretch;
}

/* 슬라이드 너비는 Swiper slidesPerView 가 자동 계산 */

/* ===== Campaign Card ===== */
.visual-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
}

/* 배경 이미지 */
.visual-item-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.visual-item-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 블랙 오버레이 */
.visual-item-overlay {
    position: absolute;
    inset: 0;
    transition: background 0.5s ease;
    /* 비활성 슬라이드: 액티브 기준 +0.30 */
    background: rgba(0, 0, 0, 0.60);
}

/* 두 번째 슬라이드(next)도 동일 */
.swiper-slide-next .visual-item-overlay {
    background: rgba(0, 0, 0, 0.60);
}

/* 첫 번째(active) 슬라이드: 현재 대비 10% 어둡게 */
.swiper-slide-active .visual-item-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        rgba(0, 0, 0, 0.15) 58%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* ===== Card Inner Content ===== */
.visual-item-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 30px;
    color: #fff;
}

/* 상단: 제목 영역 */
.visual-item-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visual-item-top .head-tit {
    font-size: 30px;
    font-family: 'SB-Aggro';
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    letter-spacing: -0.5px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visual-item-top .sub-tit {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.visual-item-top .discription {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-top: 2px;
}

/* 하단: 진행률 + 통계 */
.visual-item-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visual-progress-wrap .progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.visual-progress-wrap .progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    transition: width 0.8s ease;
}

.visual-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ===== Active 슬라이드 강조 컬러 ===== */
/* 차트(진행바) */
.swiper-slide-active .progress {    
    background: rgba(255, 255, 255, 0.70);    
}

.swiper-slide-active .progress-bar {
    background: #F2C94C;
}

/* 참여인원 값 (3번째 stat-item) */
.swiper-slide-active .visual-stats .stat-item:nth-child(3) .stat-value {
    color: #F2C94C;
}

/* 모금기간 값 (4번째 stat-item) */
.swiper-slide-active .visual-stats .stat-item:nth-child(4) .stat-value {
    color: #F2C94C;
}

/* ===== Bottom Tab Menu ===== */
.visual-menu {
    position: relative;
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.visual-menu::-webkit-scrollbar {
    display: none;
}

.visual-menu li {
    flex: 1;
    min-width: 100px;
}

.visual-menu li button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: #7D8086;
    padding: 0 10px;
    word-break: keep-all;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.visual-menu li.active button {
    color: #080717;
}

.visual-menu li.active button::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 28px;
    height: 14px;
    background: #002654;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.visual-menu li button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 5px;
    transition: all 0.3s ease-in-out;
    background: #002654;
}

.visual-menu li.active button::after {
    left: 0;
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .visual-menu li button {
        font-size: 15px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .visual-sticky-area {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .visual-carousel-clip {
        padding: 16px 20px;
    }
    .visual-menu {
        display: none;
    }
    .visual-nav {
        display: none;
    }
    .visual-item-top .head-tit {
        font-size: 20px;
    }
    .visual-item-top .sub-tit {
        font-size: 14px;
    }
    /* 모바일 stat 라벨 축약 */
    .stat-label {
        font-size: 0;
    }
    .stat-item:nth-child(1) .stat-label::before { content: '모금'; font-size: 12px; }
    .stat-item:nth-child(2) .stat-label::before { content: '목표'; font-size: 12px; }
    .stat-item:nth-child(3) .stat-label::before { content: '참여'; font-size: 12px; }
    .stat-item:nth-child(4) .stat-label::before { content: '모금'; font-size: 12px; }
}

