/**
 * 메인 프로모션 배너 (Swiper 캐러셀)
 * 참고 커밋 cd2fcbf8 www/css/Main/topBanner.css 의 promo 부분 이식.
 * 이미지 배너는 관리자에서 등록 (권장 사이즈 624 x 248).
 */
.promo { padding: 56px 0; }

.promo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1270px;
    margin: 0 auto 24px;
    padding: 0 20px;
}
.promo__head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.promo__scroller {
    position: relative;
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 20px;
}
.promoSwiper {
    width: 100%;
    overflow: hidden;
}
.promoSwiper .swiper-slide { height: auto; }

/* 배너 카드 — 관리자 이미지가 배경이 아니라 <img> 로 삽입되므로 카드는 껍데기 */
.promo-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 624 / 248;
    border-radius: 16px;
    overflow: hidden;
    background: #F1F3F5;
}
.promo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 로드 실패 시에도 alt 텍스트/액박 아이콘 노출 방지 (부모 회색 배경 유지) */
    color: transparent;
}
/* 관리자에서 등록한 문구 오버레이 (editor_content HTML 그대로 렌더).
   실제 관리자 마크업: <div.new_text_area> <span.new_region> <p.new_services> <strong.new_title>
   기존 topBanner.css 의 .new_region { margin-top:-220px } 등 구식 마이너스 마진을 여기서 무효화하고
   화면 폭에 따라 padding/폰트/간격이 clamp 로 자연스럽게 축소되도록 한다. */
.promo-card__text {
    position: absolute;
    inset: 0;
    padding: clamp(10px, 3.2vw, 20px) clamp(12px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(2px, 0.6vw, 6px);
    color: #fff;
    pointer-events: none;   /* 링크 클릭 방해 방지 */
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    line-height: 1.3;
}
/* 안쪽 컨테이너 — flex column, 마이너스 마진 무효화 */
.promo-card__text .new_text_area {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.6vw, 6px);
    margin: 0 !important;
}
/* 지역 배지 — 카드 상단 안쪽으로 정렬, topBanner.css 마이너스 margin 무효화 */
.promo-card__text .new_region {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 5px clamp(10px, 2.4vw, 14px);
    border-radius: 999px;
    font-size: clamp(11px, 2.6vw, 13.5px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    /* 배경/컬러는 topBanner.css 의 .value_pu / .value_na / .value_all 색상 그대로 사용 */
    margin: 0 0 clamp(6px, 1.4vw, 12px) 0 !important;
    top: 0 !important;
    position: static !important;
}
/* 서브 문구 */
.promo-card__text .new_services {
    margin: 0 !important;
    font-size: clamp(10.5px, 2.5vw, 15px);
    font-weight: 400;
    line-height: 1.35;
    opacity: 0.95;
}
/* 메인 타이틀 */
.promo-card__text .new_title {
    margin: 0 !important;
    font-size: clamp(13px, 3.4vw, 22px);
    font-weight: 700;
    line-height: 1.35;
    display: block;
}
/* editor_content 가 h1~h3/p/span 로 넘어오는 경우도 커버 */
.promo-card__text h1,
.promo-card__text h2,
.promo-card__text h3,
.promo-card__text strong {
    margin: 0;
    font-size: clamp(13px, 3.4vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}
.promo-card__text p {
    margin: 0;
    font-size: clamp(10.5px, 2.5vw, 15px);
    font-weight: 400;
    line-height: 1.35;
}

/* 좌/우 네비게이션 버튼 */
.promo__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #E5E5EA;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #1C1C1E;
    cursor: pointer;
    z-index: 5;
}
.promo__nav:hover { background: #F5F6F8; }
.promo__nav--prev { left: -6px; }
.promo__nav--next { right: -6px; }

@media (max-width: 760px) {
    .promo { padding: 32px 0; }
    .promo__head { margin-bottom: 16px; padding: 0 16px; }
    .promo__head h2 { font-size: 18px; }
    .promo__scroller { padding: 0 16px; }
    .promo-card { border-radius: 12px; }
    .promo__nav { display: none; }
}
