@charset "utf-8";

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


.rolling-ad-container h3.rolling-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 18px;
    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: #e30000;
}


.rolling-banner {
	/* size */
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 8px;
	position: unset !important;
}

@-webkit-keyframes glow {
    to {
		 box-shadow: 0px 0px 10px 3px #6c757d
	}
}



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

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

/* 썸네일 영역 수정 */
.rolling-ad-container .rolling-thumb {
    width: 41%;
	padding:7px;
    position: relative;
    overflow: hidden; /* 컨테이너 내에서만 이미지 표시 */
}

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

/* 컨텐츠 영역 수정 */
.rolling-ad-container .rolling-content {
    width: 59%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    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: 1; /* 두 줄까지 표시 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3; /* 줄 간격 조정 */
    text-decoration: none;
}

/* 정보 영역 조정 */
.rolling-ad-container .rolling-info {
    font-size: 13px;
    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: #e30000 !important;
}

/* 라이트 모드 스타일 */
: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-banner {
  border: 1px solid var(--dark-border);
  background: #333;
}

:root.dark-theme .rolling-item {
    border-color: #444;
    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);
}

