@charset "utf-8";

/* 롤링배너 광고 스타일 - 그리드 레이아웃 */
.rolling-ad-container {
    width: 100%;
    margin: 40px 0;
}
.rolling-ad-wrap{
    position: relative;
}


.rolling-ad-container h3.rolling-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.rolling-ad-container h3.rolling-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #6c757d;
}


.rolling-banner {
	/* size */
	width: 100%;
	border: 1px solid #ddd;
	/* box-shadow: 0 0 15px 5px #6c757d; */
    /* -webkit-animation: glow 0.5s infinite alternate;  
    -webkit-transition: border 0.5s linear, box-shadow 0.5s linear;
    -moz-transition: border 0.5s linear, box-shadow 0.5s linear;
         transition: border 0.5s linear, box-shadow 0.5s linear; */

	position: unset !important;
}


@-webkit-keyframes glow {
    to {
		 box-shadow: 0px 0px 10px 3px #6c757d
/*
		 border-color: #69c800;
    -webkit-box-shadow: 0 0 5px #69c800;
       -moz-box-shadow: 0 0 5px #69c800;
            box-shadow: 0 0 5px #69c800;
*/
	}
}



.swiper-button-prev{left:-50px !important;}
.swiper-button-next{right:-50px !important;}
.rolling-banner .swiper-pagination{bottom:0px !important;}

/* 가로형 아이템 스타일 */
.rolling-item {
    width: calc(50% - 10px); /* 두 개씩 나오도록 너비 설정, gap 고려 */
    margin-bottom: 15px;
    border-radius: 5px;
    position: relative;
    display: flex; /* flex 컨테이너로 변경 */
	margin:1px -1px;
}

/* 썸네일 영역 수정 */
.rolling-ad-container .rolling-thumb {
    width: 35%;
    position: relative;
    overflow: hidden; /* 컨테이너 내에서만 이미지 표시 */
	aspect-ratio: 1/1; /* 정사각형 비율 설정 */
}

.rolling-ad-container .rolling-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지하면서 영역 채우기 */
    border-radius: 5px 0 0 5px;
    transition: transform 0.3s ease;
}

.rolling-ad-container .rolling-item:hover .rolling-thumb img {
    transform: scale(1.05); /* 호버 시 약간 확대 효과 */
}

/* 컨텐츠 영역 수정 */
.rolling-ad-container .rolling-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.rolling-ad-container .rolling-content-text {
    flex: 1; /* 남은 공간 차지 */
    display: flex;
    flex-direction: column;
}

/* 제목 스타일 조정 */
.rolling-ad-container .rolling-title {
    margin-bottom: 8px;
}

.rolling-ad-container .rolling-title a {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 두 줄까지 표시 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3; /* 줄 간격 조정 */
    text-decoration: none;
}

/* 정보 영역 조정 */
.rolling-ad-container .rolling-info {
    font-size: 12px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.rolling-ad-container .rolling-date {
    margin-right: 8px;
}

/* 버튼 스타일 */
.rolling-ad-container .rolling-buttons {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.rolling-ad-container .btn-action {
    font-size: 12px;
    border: none;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rolling-ad-container .btn-action:hover {
    background-color: #e0e0e0;
}
/* 네비게이션 버튼 스타일 */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    display:flex;
	align-items:center;
	justify-content:center;
    width: 40px !important;
    height: 40px !important;
	margin-top:-20px !important;
    border-radius: 50%;
    transition: background-color 0.3s;
	background-image:none !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 페이지네이션 스타일 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* 라이트 모드 스타일 */
:root.light-theme .rolling-item {
    border-color: #eee;
    background-color: #fff;
}

:root.light-theme .rolling-title a {
    color: #333;
}

:root.light-theme .rolling-info {
    color: #666;
}

:root.light-theme .btn-action {
    background-color: #f5f5f5;
    color: #333;
}

:root.light-theme .btn-action:hover {
    background-color: #e0e0e0;
}

/* 다크 모드 스타일 */
:root.dark-theme .rolling-item {
    border-color: #444;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    background-color: #333;
}

:root.dark-theme .rolling-title a {
    color: #f0f0f0;
}

:root.dark-theme .rolling-info {
    color: #ccc;
}

:root.dark-theme .btn-action {
    background-color: #444;
    color: #f0f0f0;
}

:root.dark-theme .btn-action:hover {
    background-color: #555;
}

:root.dark-theme .swiper-button-next, 
:root.dark-theme .swiper-button-prev {
    background-color: rgba(255,255,255,0.2);
    color: #f0f0f0;
}

:root.dark-theme .swiper-button-next:hover, 
:root.dark-theme .swiper-button-prev:hover {
    background-color: rgba(255,255,255,0.3);
}

:root.dark-theme .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

:root.dark-theme .swiper-pagination-bullet-active {
    background: #f0f0f0;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .rolling-item {
        width: 100%;
        margin-right: 0;
    }
    
    .rolling-title a {
        font-size: 13px;
    }
    
    .rolling-info {
        font-size: 11px;
    }
    
    .btn-action {
        font-size: 11px;
        padding: 2px 6px;
    }
}






/* 라이트 모드 스타일 */
:root.light-theme .rolling-ad-container h3.rolling-title {
    color: var(--light-text);
}

/* 다크 모드 스타일 */
:root.dark-theme .rolling-ad-container h3.rolling-title {
    color: var(--dark-text);
}

