/* 슬라이더 컨테이너 (이전 디자인 적용) */
.hero {
    width: 100vw;
    height: 100vh;
    min-height: 500px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__slide.active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 로딩 상태 */
.hero__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-size: 1.4rem;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

/* 로딩 스피너 */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #ce1122;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 네비게이션 버튼 (이전 Swiper 스타일 복원) */
.hero__nav {
    position: absolute;
    top: 50%;
    width: 80px !important;
    height: 80px !important;
    margin-top: -40px !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 슬라이더 로드 완료 후 화살표 표시 */
.hero__slider.loaded .hero__nav {
    opacity: 1;
    visibility: visible;
}

.hero__nav::after {
    display: none !important;
}

.hero__nav:focus,
.hero__nav:active,
.hero__nav:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero__nav img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
}

.hero__nav--prev {
    left: 20px;
}

.hero__nav--next {
    right: 20px;
}

.hero__nav:hover img {
    transform: scale(1.1) !important;
    opacity: 0.8 !important;
}

/* 반응형 화살표 크기 조정 */
@media (max-width: 1023px) {
    .hero__nav {
        width: 65px !important;
        height: 65px !important;
        margin-top: -32px !important;
    }
    .hero__nav img {
        width: 65px !important;
        height: 65px !important;
    }
}

@media (max-width: 767px) {
    .hero__nav {
        width: 50px !important;
        height: 50px !important;
        margin-top: -25px !important;
    }
    .hero__nav img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* 페이지네이션 (이전 디자인 스타일) */
.hero__pagination {
    position: absolute;
    bottom: 110px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 12px 24px !important;
    border-radius: 30px !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
}

/* 슬라이더 로드 완료 후 페이지네이션 표시 */
.hero__slider.loaded .hero__pagination {
    opacity: 1;
    visibility: visible;
}

.hero__pagination-dot {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    position: relative !important;
    cursor: pointer;
}

.hero__pagination-dot::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: transparent;
}

.hero__pagination-dot.active {
    background: #ffffff !important;
    width: 24px !important;
    border-radius: 12px !important;
    transform: none !important;
}

.hero__pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* 반응형 디자인 (이전 스타일) */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 280px;
    }

    .hero__slide img {
        object-position: top center;
    }

    .hero__pagination {
        bottom: 30px !important;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

@media (min-width: 1024px) {
    .loading-spinner {
        width: 80px;
        height: 80px;
        border-width: 5px;
    }
}

/* 공지사항 스타일 */
.notice-list {
    border: none !important;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0; /* 인라인 요소 간 공백 제거 */
}

.notice-item {
    border: none !important;
    padding: 0;
    position: relative;
    margin: 0;
    font-size: 1.4rem; /* 폰트 크기 복원 */
}

.notice-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    padding: 2px 10px;
    border-radius: 4px;
    position: relative;
    border: none !important;
}

.notice-link:hover {
    background-color: #f8f9fa;
}

/* 동적 생성 공지사항 정밀 간격 조정 */
.notice-item-dynamic {
    border-bottom: 1px solid #eaeaea !important;
    padding: 12px 0;
    position: relative;
    margin: 0;
    font-size: 1.4rem; /* 폰트 크기 복원 */
}

.notice-item-dynamic:last-child {
    border-bottom: none !important;
}

.notice-link-dynamic {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 4px 10px;
    margin: 0;
    border-radius: 4px;
    position: relative;
    border: none !important;
}

.notice-link-dynamic:hover {
    background-color: #f8f9fa;
}

.notice-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notice-date {
    font-size: 1.2rem;
    color: #666;
}

.notice-loading, .notice-empty, .notice-error {
    text-align: center;
    padding: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
}

.notice-error span {
    color: #666 !important;
    font-size: 1.4rem !important;
}

.error-icon {
    font-size: 1.6rem;
}

/* 작은 로딩 스피너 (공지사항용) */
.notice-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e3e3e3;
    border-top: 2px solid #ce1122;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 모달 스타일 */
.new-notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.new-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.new-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: newModalShow 0.3s ease-out;
}

@keyframes newModalShow {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.new-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #ce1122, #e53e3e);
}

.new-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.new-modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.new-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.new-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.new-notice-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.new-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.new-meta-row:last-child {
    margin-bottom: 0;
}

.new-meta-label {
    font-weight: 600;
    color: #333;
    min-width: 70px;
    font-size: 1.4rem;
}

.new-meta-value {
    color: #555;
    font-size: 1.4rem;
}

.new-notice-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.5rem;
}

.new-notice-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ce1122;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #ce1122;
}

.new-notice-content h3:first-child {
    margin-top: 0;
}

.new-notice-content p {
    margin-bottom: 15px;
}

.new-notice-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.new-notice-content li {
    margin-bottom: 8px;
}

/* 모달 내 이미지 스타일 */
.new-notice-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 첨부 이미지 컨테이너 스타일 */
.new-notice-content div[style*="text-align: center"] {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e5e5e5;
}

.new-notice-content div[style*="text-align: center"] img {
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-notice-content div[style*="text-align: center"] p {
    margin: 10px 0 0 0;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .new-modal-dialog {
        width: 95%;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }

    .new-modal-header {
        padding: 15px 20px;
    }

    .new-modal-title {
        font-size: 1.6rem;
    }

    .new-modal-body {
        padding: 20px;
    }

    .new-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .new-meta-label {
        min-width: auto;
        font-size: 1.3rem;
    }

    .new-meta-value {
        font-size: 1.3rem;
    }

    .new-notice-content {
        font-size: 1.4rem;
    }

    /* 모바일 팝업 컨트롤 폰트 크기 조정 */
    .popup-controls {
        font-size: 1.1rem;
        padding: 8px 10px;
    }

    .popup-close-btn {
        font-size: 1.2rem;
    }

    .popup-nottoday input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* 메인 이미지 팝업 스타일 */
.main-image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.main-image-popup .popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.main-image-popup .popup-content {
    position: relative;
    background: #fff;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.main-image-popup img {
    max-width: 100%;
    max-height: calc(90vh - 45px);
    object-fit: contain;
    display: block;
}

.popup-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #2b2b2b;
    color: #fff;
    font-size: 1.3rem;
}

.popup-nottoday {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

.popup-nottoday input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.popup-close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 2px 10px;
    font-weight: 500;
}
