body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, rgba(46, 125, 246, 0.04), transparent 22%), var(--bg);
    color: var(--text);
    min-height: 100vh;
}


.logo-chip {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, #2e7df6, #5da6ff);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}


.page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1440px;
    margin: 24px auto 64px;
    padding: 0 24px;
}

.side-nav {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 86px;
    height: fit-content;
}


.nav-item {
    border: none;
    background: #f2f6fb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #e3edfb;
}

.nav-item.active {
    background: linear-gradient(135deg, #2e7df6, #74a9ff);
    color: white;
    box-shadow: 0 12px 25px rgba(46, 125, 246, 0.25);
}


.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

#date-picker {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d7e3f6;
    background: #f6f9ff;
    font-size: 14px;
    color: #1e3a8a;
    outline: none;
    transition: all 0.2s ease;
}

#date-picker:focus {
    border-color: #2e7df6;
    box-shadow: 0 10px 20px rgba(46, 125, 246, 0.2);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-display {
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.archive-list {
    display: grid;
    gap: 18px;
}

.archive-group {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.group-title h3 {
    margin: 0;
    font-size: 20px;
}

.soft-badge {
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
}

.news-list {
    display: grid;
    gap: 12px;
}


.date-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.date-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d7e3f6;
    background: #f6f9ff;
    color: #1e3a8a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 18px;
    line-height: 1;
}

.date-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.12);
}

.date-arrow:active {
    transform: translateY(0);
    box-shadow: none;
}

.date-arrow:focus {
    outline: none;
    border-color: #2e7df6;
    box-shadow: 0 10px 20px rgba(46, 125, 246, 0.2);
}

.btn-search {
    height: 38px;
    padding: 0 16px;
    margin-left: 8px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2e7df6, #4f9cff);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(46, 125, 246, 0.25);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: none;
}

#title-search {
    width: 240px;
    height: 38px;
    padding: 0 14px;
    padding-left: 34px;
    border-radius: 12px;
    border: 1px solid #e3ebfb;
    background: #f9fbff;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
}

/* placeholder도 ‘컨텐츠’처럼 */
#title-search::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* 포커스 시 버튼과 같은 계열감 */
#title-search:focus {
    outline: none;
    background: #ffffff;
    border-color: #2e7df6;
    box-shadow: 0 4px 12px rgba(46, 125, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.title-search-wrap {
    position: relative;
    margin-left: 40px
}

.title-search-wrap::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.45;
}

.modal-body-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.modal-body-text .modal-body-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
}

.modal-body-text .modal-body-note {
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .page {
        grid-template-columns: 1fr;
    }

    .side-nav {
        position: static;
        flex-direction: row;
        align-items: center;
    }

}

@media (max-width: 768px) {
    .filters {
        gap: 10px;
    }

    .date-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #date-picker {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .title-search-wrap {
        margin-left: 0;
        width: 100%;
        flex: 1 1 100%;
    }

    #title-search {
        width: 100%;
    }

    .btn-search {
        width: 100%;
        margin-left: 0;
    }
}

/* 페이징 - 더보기 버튼 추가 */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.btn-load-more {
    height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #d7e3f6;
    background: #f6f9ff;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-load-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.12);
}

.btn-load-more:active {
    transform: translateY(0);
    box-shadow: none;
}