@charset "utf-8";

/* 슬라이더 컨테이너의 상대 위치 지정 (네비게이션 버튼 기준) */
.custom-card-slider {
    width: 100%;
    /* [수정] 카드 너비를 이미지와 비슷한 비율로 조절 */
    max-width: 400px; 
    margin: 0 auto;
    position: relative;
}

/* 개별 슬라이드(카드) 스타일 */
.custom-card-slider .swiper-slide {
    /* [수정] 카드 전체 높이를 적절하게 조절 */
    height: 520px; 
    display: flex;
    flex-direction: column; /* 내부 요소를 세로로 정렬 */
    background-color: #fff;
}

.custom-card-slider .swiper-slide a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 카드 상단 이미지 영역 */
.custom-card-slider .card-image {
    width: 100%;
    height: 320px; 
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.custom-card-slider .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 카드 하단 콘텐츠 영역 */
.custom-card-slider .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* 1. 제목 */
.custom-card-slider .card-title {
    /* [수정] 작아진 크기에 맞춰 폰트 크기 조절 */
    font-size: 1.2rem;
    font-weight: 400; 
    color: #555;
    margin: 0 0 0 0;
    line-height: 1.6;

    /* [추가] 한 줄 말줄임 효과 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. 여분필드 1 */
.custom-card-slider .card-text {
    /* [수정] 작아진 크기에 맞춰 폰트 크기 조절 */
    font-size: 1.2rem; 
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;

    /* [추가] 한 줄 말줄임 효과 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. 여분필드 2 */
.custom-card-slider .card-text.wr2 {
    color: #a1a1a1;
    font-size: 1rem; 
    font-weight: 400;

    /* [추가] 한 줄 말줄임 효과 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 게시물이 없을 때 */
.custom-card-slider .no-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
}

/* Swiper 네비게이션 버튼 색상 및 크기 조절 */
.custom-card-slider .swiper-button-next,
.custom-card-slider .swiper-button-prev {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.custom-card-slider .swiper-button-next:after,
.custom-card-slider .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Swiper 페이지네이션 색상 조절 */
.custom-card-slider .swiper-pagination-bullet {
    background: #a5a5a5;
    opacity: 0.8;
}

.custom-card-slider .swiper-pagination-bullet-active {
    background: #0f2475;
}