/* ================================================
   TOTAL_CARDIMG_sw1 - 이미지 카드 스와이퍼
   TOTAL_CARDIMG1 기반 + Swiper 컨트롤
   ================================================ */

/* 외곽 컨테이너 - Grid 안에서 확장 방지 */
.CARDIMG_SW1_outer {
    width: 0;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, calc(0.78vw + 7.5px), 15px);
    overflow: hidden;
}

/* 스와이퍼 래퍼 */
.CARDIMG_SW1_wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 스와이퍼 - Swiper CSS 미로드 대비 직접 선언 */
.CARDIMG_SW1_swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.CARDIMG_SW1_swiper .swiper-wrapper {
    display: flex;
    width: 100%;
}

.CARDIMG_SW1_swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 이미지 크기 제한 */
.CARDIMG_SW1_swiper .swiper-slide img {
    max-width: 100%;
    display: block;
}

/* ================================================
   컨트롤 영역 (CSS 변수로 위치/배치/표시 제어)
   --sw-ctrl-order: 0(상단) / 2(하단)
   --sw-ctrl-justify: flex-end(우측) / space-between(양쪽)
   --sw-prev-order: 0(기본) / -1(spread)
   --sw-dots-display: flex / none
   --sw-arrows-display: flex / none
   ================================================ */
.CARDIMG_SW1_controls {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: var(--sw-ctrl-justify, flex-end);
    gap: 10px;
    height: 48px;
    order: var(--sw-ctrl-order, 0);
}

/* 네비게이션 화살표 */
.CARDIMG_SW1_prev,
.CARDIMG_SW1_next {
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: var(--sw-arrows-display, flex);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.CARDIMG_SW1_prev {
    order: var(--sw-prev-order, 0);
}

.CARDIMG_SW1_prev:hover,
.CARDIMG_SW1_next:hover {
    opacity: 0.6;
}

.CARDIMG_SW1_prev:after,
.CARDIMG_SW1_next:after {
    font-size: 40px;
    color: #555;
    font-weight: bold;
    font-family: unicons-line;
}

.CARDIMG_SW1_prev:after {
    content: "\ec49";
}

.CARDIMG_SW1_next:after {
    content: "\eb9f";
}

/* 페이지네이션 dots */
.CARDIMG_SW1_pagination {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto !important;
    height: 48px;
    display: var(--sw-dots-display, flex);
    align-items: center;
    gap: 8px;
}

.CARDIMG_SW1_pagination .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background: #ccc;
    opacity: 1;
    margin: 0 !important;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.CARDIMG_SW1_pagination .swiper-pagination-bullet-active {
    background: #666;
}

/* ================================================
   카드 슬라이드 (SWCF_totalnotice 원본 유지)
   ================================================ */

/* 카드 아이템 */
.SWCF_totalnotice .card_item {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
}

.SWCF_totalnotice .card_item:hover {
    transform: none;
    box-shadow: none;
}

/* 이미지 래퍼 - CSS 변수 thumb-ratio 지원 */
.SWCF_totalnotice .card_img_wrap {
    position: relative;
    width: 100%;
    aspect-ratio: var(--thumb-ratio, 16/10);
}

/* 이미지 외부 컨테이너 */
.SWCF_totalnotice .card_img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    background: transparent;
}

/* 이미지 마스크 */
.SWCF_totalnotice .card_img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    z-index: 0;
    background: #f3f4f6;
}

/* SVG 컷아웃 코너 */
.SWCF_totalnotice .card_img::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    z-index: 3;
    width: 90px;
    height: 92px;
    background-image: url("data:image/svg+xml,%3Csvg width='110' height='112' viewBox='0 0 110 112' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M110 112H0C17.67 112 32 97.67 32 80V64C32 46.3269 46.3269 32 64 32H78C95.67 32 110 17.67 110 0V112Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    pointer-events: none;
}

/* 이미지 래퍼 (실제 클리핑) */
.SWCF_totalnotice .card_img_inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.SWCF_totalnotice .card_img_inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.SWCF_totalnotice .card_item:hover .card_img_inner img {
    transform: scale(1.05);
}

/* MORE 버튼 */
.SWCF_totalnotice .card_more {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52px;
    height: 52px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.SWCF_totalnotice .card_more i {
    color: #fff;
    font-size: 22px;
}

.SWCF_totalnotice .card_item:hover .card_more {
    background: var(--card-more-hover, var(--primary, #333));
    transform: scale(1.05);
}

/* 텍스트 영역 */
.SWCF_totalnotice .card_info {
    padding: 16px 8px 0 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* 라벨 */
.SWCF_totalnotice .card_label {
    display: inline-block;
    width: fit-content;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #10b981);
    margin-bottom: 4px;
}

/* 제목 */
.SWCF_totalnotice .card_title {
    font-size: calc(var(--tit-mds-size, 16px) * 0.8);
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 설명 */
.SWCF_totalnotice .card_desc {
    font-size: calc(var(--tx-sm-size, 14px) * 0.9);
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-top: 4px;
}

/* ================================================
   모바일 스타일
   ================================================ */
@media only all and (max-width:767px) {
    .SWCF_totalnotice .card_img_wrap {
        aspect-ratio: var(--thumb-ratio, 16/9);
    }

    .SWCF_totalnotice .card_img::before,
    .SWCF_totalnotice .card_img_inner {
        border-radius: 12px;
    }

    .SWCF_totalnotice .card_img::after {
        width: 68px;
        height: 70px;
    }

    .SWCF_totalnotice .card_more {
        width: 40px;
        height: 40px;
    }

    .SWCF_totalnotice .card_more i {
        font-size: 16px;
    }

    .SWCF_totalnotice .card_info {
        padding: 12px 0 0 0;
        gap: 4px;
    }

    .SWCF_totalnotice .card_label {
        font-size: 12px;
    }

    .SWCF_totalnotice .card_title {
        font-size: calc(var(--tit-mds-size, 16px) * 0.9);
    }

    .SWCF_totalnotice .card_desc {
        font-size: calc(var(--tx-sm-size, 14px) * 0.9);
        -webkit-line-clamp: 2;
    }

    .CARDIMG_SW1_controls {
        height: 40px;
    }

    .CARDIMG_SW1_prev,
    .CARDIMG_SW1_next {
        width: 40px;
        height: 40px;
    }

    .CARDIMG_SW1_prev:after,
    .CARDIMG_SW1_next:after {
        font-size: 30px;
    }

    .CARDIMG_SW1_pagination {
        height: 40px;
        gap: 6px;
    }

    .CARDIMG_SW1_pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
}

/* ================================================
   페이징바 모드: [← →] [━━ progress ━━]
   ================================================ */
.CARDIMG_SW1_paging_bar {
    display: flex;
    align-items: center;
    gap: 0;
    height: 48px;
    order: 2;
}

.CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev,
.CARDIMG_SW1_paging_bar .CARDIMG_SW1_next {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev:hover,
.CARDIMG_SW1_paging_bar .CARDIMG_SW1_next:hover {
    opacity: 0.6;
}

.CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev:after,
.CARDIMG_SW1_paging_bar .CARDIMG_SW1_next:after {
    font-size: 30px;
    color: #333;
    font-weight: bold;
    font-family: unicons-line;
}
.CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev:after { content: "\ec49"; }
.CARDIMG_SW1_paging_bar .CARDIMG_SW1_next:after { content: "\eb9f"; }

.CARDIMG_SW1_progress_wrap {
    flex: 1;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.CARDIMG_SW1_progress_fill {
    height: 100%;
    width: 0%;
    background: #333;
    border-radius: 2px;
    transition: width 0.3s ease;
}

@media only all and (max-width:767px) {
    .CARDIMG_SW1_paging_bar {
        height: 40px;
    }
    .CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev,
    .CARDIMG_SW1_paging_bar .CARDIMG_SW1_next {
        width: 40px;
        height: 40px;
    }
    .CARDIMG_SW1_paging_bar .CARDIMG_SW1_prev:after,
    .CARDIMG_SW1_paging_bar .CARDIMG_SW1_next:after {
        font-size: 24px;
    }
}

/* 빈 상태 */
.CARDIMG_SW1_outer .empty_li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #9ca3af;
    font-size: 14px;
}
