@charset "utf-8";
/******************************************************************
    메인 — 시공분야 슬라이더 (bcm_service_slider)
    service 게시판에서 제목/본문/썸네일을 가져와 가로 캐러셀로 보여준다.
    컬러 토큰은 theme/busanbcm/css/brand.css 에 정의되어 있다.
******************************************************************/

.bcm-svc-slider {
    /* 마지막 카드가 컨테이너 오른쪽에서 잘려 보이도록 넘침을 감춘다 */
    overflow: hidden;
}

/* 카드를 세로 플렉스로 만들어 CTA 버튼을 항상 카드 하단에 정렬한다.
   (설명 줄 수가 달라도 버튼 높이가 일정하게 맞는다) */
.bcm-svc-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}
.bcm-slide-link {
    display: block;
    margin-bottom: 16px;
}

/* 썸네일 — 1:1 */
.bcm-slide-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    background: var(--gray-bg);
}
.bcm-slide-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.19, 1, 0.22, 1);
}
.bcm-slide-link:hover .bcm-slide-thumb > img { transform: scale(1.06); }

.bcm-slide-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--accent-bg);
    color: var(--brand-orange);
}

.bcm-slide-title {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.4;
    transition: color .3s;
}
.bcm-slide-link:hover .bcm-slide-title { color: var(--cta-orange); }

.bcm-slide-desc {
    /* 최대 3줄까지만 보이고 넘치면 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 카드별 상담 CTA — 자기 상황을 분류한 사용자를 바로 견적문의로 보낸다.
   margin-top:auto 로 카드 하단에 고정 정렬한다. */
.bcm-slide-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 11px 18px;
    min-height: 44px;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 700;
    font-size: 15px;
    /* 호버 시 포인트 컬러가 가운데에서 차오른다 */
    background-color: #fff;
    background-image: linear-gradient(var(--brand-orange), var(--brand-orange));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0 100%;
    transition: background-size .4s ease, color .3s ease;
}
.bcm-slide-cta > i { font-size: 16px; transition: transform .3s ease; }
.bcm-slide-cta:hover {
    color: #fff;
    background-size: 100% 100%;
}
.bcm-slide-cta:hover > i { transform: translateX(3px); }

/* ---------- 진행바 + 좌우 버튼 ---------- */

.bcm-svc-controls {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

/* 좌우 버튼을 왼쪽에 둔다. 오른쪽에 두면 우측 플로팅 퀵 버튼과 겹친다. */
.bcm-svc-nav { order: -1; }

/* Swiper 스크롤바를 삼성처럼 얇은 진행바로 */
.bcm-svc-controls .swiper-scrollbar {
    position: static;
    flex: 1 1 auto;
    height: 2px;
    border-radius: 0;
    background: #e0e0e0;
}
.bcm-svc-controls .swiper-scrollbar-drag {
    border-radius: 0;
    background: var(--navy);
    cursor: grab;
}

.bcm-svc-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}
.bcm-svc-nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 브리프 9장: 터치 영역 최소 44px */
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 100%;
    background: #fff;
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
    transition: background .3s, border-color .3s, color .3s;
}
.bcm-svc-nav > button:hover {
    border-color: var(--cta-orange);
    background: var(--cta-orange);
    color: #fff;
}
.bcm-svc-nav > button.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
.bcm-svc-nav > button.swiper-button-disabled:hover {
    border-color: #ddd;
    background: #fff;
    color: var(--navy);
}

.bcm-svc-empty {
    padding: 60px 0;
    color: #888;
}

@media screen and (max-width: 768px) {
    .bcm-svc-controls { gap: 20px; margin-top: 30px; }
    .bcm-svc-nav > button { width: 44px; height: 44px; }
}
