/* 나리야5 압도적 퀄리티 커스텀 스타일 */
:root {
    --ny-main-color: #d4af37; /* 포인트 골드 */
    --ny-bg-dark: #0a0a0a;    /* 더 깊은 다크 배경 */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: var(--ny-bg-dark) !important;
    color: #eee !important;
}

/* 사이트 전체 너비 강제 확장 (와이드형) */
.container {
    max-width: 1440px !important; /* 화면을 꽉 차게 1440px로 설정 */
}

/* 영문을 배제한 한글 가독성 최적화 */
h1, h2, h3, h4, h5, h6 {
    word-break: keep-all; /* 한글 단어가 잘리지 않게 */
}

/* [DARK BLUE PREMIUM STYLE] */

/* 1. 기본 베이스 */
#main-wrap, body, .bg-body {
    background-color: #0a0f1a !important;
    color: #e0e6ed !important;
    font-family: 'Pretendard', sans-serif;
}

/* 2. 공통 박스 스타일 */
.premium-box {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 2px solid rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}
.premium-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.premium-box:hover {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 15px 50px rgba(52, 152, 219, 0.15), 0 0 30px rgba(52, 152, 219, 0.05);
    transform: translateY(-8px);
}
.premium-box:hover::before {
    opacity: 1;
    animation-play-state: paused;
}

/* 3. 박스 헤더 */
.box-header {
    background: linear-gradient(180deg, #1a2536 0%, #141b28 100%);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-title {
    font-size: 1.1rem;
    font-weight: 700 !important;
    color: #e0e6ed;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.box-title i {
    color: #3498db;
    filter: drop-shadow(0 0 12px rgba(52, 152, 219, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(52, 152, 219, 0.8)); }
}

.box-more {
    color: #7a8a9e;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 6px;
}
.box-more:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
    transform: rotate(90deg);
}

/* 4. 리스트 스타일 */
.premium-box .list-group-item,
.premium-box .na-table,
.premium-box ul li {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(52, 152, 219, 0.05) !important;
    color: #b8c5d6 !important;
    padding: 12px 12px !important;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.premium-box .list-group-item::before,
.premium-box ul li::before {
    content: '▸';
    position: absolute;
    left: -10px;
    color: #3498db;
    opacity: 0;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.premium-box .list-group-item:hover::before,
.premium-box ul li:hover::before {
    opacity: 1;
    left: 0;
}

.premium-box .list-group-item:hover,
.premium-box ul li:hover {
    background: rgba(52, 152, 219, 0.08) !important;
    padding-left: 22px !important;
    border-left: 3px solid rgba(52, 152, 219, 0.6);
    color: #fff !important;
}
.premium-box a {
    color: #b8c5d6 !important;
    text-decoration: none;
    transition: color 0.3s;
}
.premium-box a:hover {
    color: #fff !important;
}
.premium-box .list-group-item:last-child {
    border-bottom: none !important;
}
.premium-box .wr-date,
.premium-box .fa-clock {
    color: #6b7a8f !important;
    font-size: 0.8rem;
}

/* 5. 메인 배너 슬라이더 */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 330px;
    background: #000;
    overflow: hidden;
    margin-bottom: 30px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.9), 0 0 40px rgba(52, 152, 219, 0.1);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.65) contrast(1.1);
    transition: transform 8s ease;
}
.hero-slide.active .hero-bg {
    transform: scale(1.08);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 5;
    padding: 0 20px;
}
.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.2;
}
.hero-content h2 span {
    color: #3498db;
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite alternate;
}
@keyframes textGlow {
    from { text-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
    to { text-shadow: 0 0 40px rgba(52, 152, 219, 1), 0 0 60px rgba(52, 152, 219, 0.5); }
}
.hero-content p {
    font-size: 1.1rem;
    color: #b8c5d6;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.hero-cta {
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 50%, #0d6efd 100%);
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(86 160 189 / 76%);
}
.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.hero-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}
.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.7);
}
.hero-btn-secondary {
    background: rgba(52, 152, 219, 0.1);
    color: #fff !important;
    border: 2px solid rgba(52, 152, 219, 0.4);
    backdrop-filter: blur(10px);
}
.hero-btn-secondary:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.hero-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-indicator.active {
    background: #3498db;
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 1);
    width: 35px;
    border-radius: 6px;
}
.hero-indicator:hover {
    background: rgba(52, 152, 219, 0.8);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(20, 27, 40, 0.9);
    color: #fff;
    border: 2px solid rgba(52, 152, 219, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.hero-nav:hover {
    background: rgba(52, 152, 219, 0.9);
    border-color: #3498db;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.8);
}
.hero-nav-prev {
    left: 20px;
}
.hero-nav-next {
    right: 20px;
}
.hero-nav i {
    font-size: 1.5rem;
}

/* 6. 퀵 메뉴 */
.quick-bar {
    margin-bottom: 35px;
}
.quick-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(145deg, #141b28 0%, #1a2332 100%);
    border: 2px solid rgba(52, 152, 219, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.quick-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.quick-item:hover::before {
    width: 350px;
    height: 350px;
}
.quick-item:hover {
    border-color: rgba(52, 152, 219, 0.5);
    background: linear-gradient(145deg, #1a2332 0%, #1f2937 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
}
.quick-item i {
    font-size: 1.5rem;
    color: #3498db;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.quick-item:hover i {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 0 15px rgba(52, 152, 219, 1));
}
.quick-item span {
    font-size: 0.95rem;
    color: #e0e6ed;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* 7. 출근부 스타일 */
.attendance-wrap {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7), 0 0 40px rgba(52, 152, 219, 0.08);
}
.attendance-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: rotate 25s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.att-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 2px solid rgba(52, 152, 219, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.att-title {
    font-size: 1.6rem;
    color: #e0e6ed;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 15px rgba(52, 152, 219, 0.3);
}
.att-title i {
    color: #3498db;
    filter: drop-shadow(0 0 15px rgba(52, 152, 219, 1));
    animation: iconPulse 2s ease-in-out infinite;
}
.att-desc {
    color: #7a8a9e !important;
    margin-top: 8px !important;
    font-size: 0.9rem;
}
.att-more {
    color: #b8c5d6;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid rgba(52, 152, 219, 0.2);
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
}
.att-more:hover {
    border-color: rgba(52, 152, 219, 0.6);
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.attendance-wrap .na-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #141b28 0%, #1a2332 100%);
    border: 2px solid rgba(52, 152, 219, 0.15);
}
.attendance-wrap .na-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(52, 152, 219, 0.25) 100%);
    transition: height 0.4s;
}
.attendance-wrap .na-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.25);
    border-color: rgba(52, 152, 219, 0.5);
}
.attendance-wrap .na-item:hover::after {
    height: 100%;
}

.premium-box .p-3 {
    border: 2px solid rgba(52, 152, 219, 0.08);
    margin: 0;
    padding: 0.75rem !important;
    min-height: 200px;
}

/* 8. 전화예약 박스 */
.call-box {
    background: linear-gradient(145deg, #141b28 0%, #1a2332 100%);
    border: 2px solid rgba(52, 152, 219, 0.4);
    border-radius: 12px;
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.25);
}

/* 9. 반응형 최적화 */
@media (max-width: 768px) {
    .hero-wrapper {
        height: 300px;
        border-radius: 12px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    .hero-nav-prev {
        left: 10px;
    }
    .hero-nav-next {
        right: 10px;
    }
    .att-title {
        font-size: 1.3rem;
    }
    .quick-item {
        padding: 14px 10px;
    }
    .quick-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-wrapper {
        height: 280px;
    }
    .hero-content h2 {
        font-size: 1.6rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    .hero-nav {
        display: none;
    }
}