/* 공지 팝업 */
.notice-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain;
}

.notice-popup {
    background: #fff;
    border-radius: 1.6rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0.8rem 3.2rem rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* 헤더 */
.notice-popup-header {
    padding: 2.8rem 3.5rem 2.2rem;
    background: linear-gradient(90deg, #408ad9, #5a5ad6);
}

.notice-popup-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.6px;
    line-height: 1.4;
    margin: 0;
}

/* 본문 */
.notice-popup-body {
    padding: 2.2rem 3.5rem;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 1.45rem;
    font-weight: 400;
    color: #333;
    line-height: 1.75;
    letter-spacing: -0.4px;
}

.notice-popup-body::-webkit-scrollbar {
    width: 0.5rem;
}

.notice-popup-body::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 0.3rem;
}

.notice-popup-body::-webkit-scrollbar-thumb {
    background: #C7CBD1;
    border-radius: 0.3rem;
}

.notice-popup-body p {
    margin: 2rem 0;
}

.notice-popup-body p:first-child {
    margin-top: 0;
}

.notice-popup-body p.notice-note {
    margin: 0.4rem 0;
}

.notice-popup-body p:last-child {
    margin-bottom: 0;
}

.notice-popup-body .notice-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B4A6B;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.notice-popup-body .notice-highlight {
    background: #F0F2F8;
    border-left: 3px solid #8D9ABF;
    padding: 1.4rem 1.8rem;
    border-radius: 0 0.6rem 0.6rem 0;
    margin: 1rem 0;
    font-size: 1.4rem;
    color: #444;
    line-height: 1.7;
}

.notice-popup-body .notice-list {
    list-style-type: disc !important;
    padding-left: 1.8rem !important;
    margin: 0;
}

.notice-popup-body .notice-list li {
    display: list-item !important;
    list-style-type: disc !important;
    margin-bottom: 0.4rem;
}

.notice-popup-body .notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 1.4rem;
}

.notice-popup-body .notice-table th,
.notice-popup-body .notice-table td {
    border: 1px solid #D9DFEB;
    padding: 1rem 1.4rem;
    text-align: center;
    line-height: 1.6;
}

.notice-popup-body .notice-table thead th {
    background: #EEF1F8;
    color: #2E3A5C;
    font-weight: 600;
}

.notice-popup-body .notice-table tbody td {
    background: #fff;
    color: #444;
}

.notice-popup-body .notice-note {
    font-size: 1.35rem;
    color: #888;
}

/* 하단 버튼 영역 - 반반 분할 */
.notice-popup-footer {
    display: flex;
    border-top: 1px solid #E5E7EB;
}

.notice-popup-footer button {
    flex: 1;
    border: none;
    cursor: pointer;
    padding: 1.6rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    transition: background 0.2s;
}

.notice-popup-footer .btn-today-close {
    background: #F3F4F6;
    color: #666;
    border-radius: 0 0 0 1.6rem;
    border-right: 1px solid #E5E7EB;
}

.notice-popup-footer .btn-today-close:hover {
    background: #E5E7EB;
    color: #333;
}

.notice-popup-footer .btn-close {
    background: #2C2F40;
    color: #fff;
    border-radius: 0 0 1.6rem 0;
}

.notice-popup-footer .btn-close:hover {
    background: #1a1c2b;
}

/* 팝업 슬롯 — 캐러셀 컨테이너 */
.notice-popup-slot {
    position: relative;
    width: 71rem;
    height: 54rem;
    max-width: calc(100% - 3rem);
    max-height: 80vh;
}

/* 팝업 슬라이드 — 절대 배치 + 트랜지션 */
.notice-popup-slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, filter;
}

/* 인접 슬라이드 흰색 오버레이 */
.notice-popup-slide.is-adjacent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1.6rem;
    pointer-events: none;
    z-index: 3;
}

/* 좌우 화살표 */
.notice-popup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.notice-popup-arrow::after {
    content: '';
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    border-top: 2.5px solid #555;
    border-right: 2.5px solid #555;
    transition: border-color 0.2s;
}

.notice-popup-arrow-left::after {
    transform: rotate(-135deg);
    margin-left: 0.3rem;
}

.notice-popup-arrow-right::after {
    transform: rotate(45deg);
    margin-right: 0.3rem;
}

.notice-popup-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.notice-popup-arrow:hover::after {
    border-color: #222;
}

.notice-popup-arrow-left {
    left: calc(50% - 38rem);
}

.notice-popup-arrow-right {
    right: calc(50% - 38rem);
}

@media (max-width: 800px) {
    .notice-popup-arrow-left {
        left: 0.8rem;
    }
    .notice-popup-arrow-right {
        right: 0.8rem;
    }
}
