/* 공지사항 페이지 스타일 */

body {
    background: #fff;
}

/* Notice Page */
.notice-page {
    padding: 80px 0 100px;
    background: #fff;
}

.notice-page .container {
    max-width:1024px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--lq-accent-primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(217, 96, 59, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #999;
    pointer-events: none;
}

.search-wrapper .search-input {
    flex: 1;
    padding: 10px 20px 10px 50px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.btn-search-submit {
    padding: 12px 28px;
    background: #b58374;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-search-submit:hover {
    background: var(--lq-accent-primary-dark); 
}

/* Notice List */
.notice-list {
    animation: fadeInUp 0.6s ease-out 0.4s both;
    border-top:2px solid #e5d4cf;
    border-bottom:2px solid #e5d4cf; 
}

.notice-list a {
    padding: 20px 35px;
    border-top:1px solid #efe0db; 
}

.notice-list a:first-of-type {
    border-top:0;
}

/* Notice Table */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.notice-table thead {
    background: #faf8f8;
    border-bottom: 2px solid #e8e8e8;
}

.notice-table thead tr th {
    padding: 18px 20px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.notice-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.notice-table tbody tr:hover {
    background: #faf8f8;
}

.notice-table tbody tr:last-child {
    border-bottom: none;
}

.notice-table tbody tr td {
    padding: 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Column Widths */
.col-no {
    width: 80px;
    font-size: 20px;
}

.col-title {
    width: auto;
    text-align: left;
    padding-left: 30px !important;
}

.col-author {
    width: 120px;
}

.col-date {
    width: 120px;
}

.col-views {
    width: 100px;
}

/* Important Notice Row */
.notice-row.important {
    background: var(--lq-accent-primary-light);
    border-left: 4px solid var(--lq-accent-primary);
}

.notice-row.important:hover {
    background: rgba(217, 96, 59, 0.15);
}

.notice-row.important .col-no {
    color: var(--lq-accent-primary);
}

/* Notice Link */
.notice-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.notice-link:hover {
    color: var(--lq-accent-primary);
}

.notice-row.important .notice-link {
    font-weight: 600;
    color: #1a1a1a;
}

/* Badge New */
.badge-new {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #df5337;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e8e8e8;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--lq-accent-primary);
    color: var(--lq-accent-primary);
    background: #faf8f8;
}

.page-btn.active {
    background: var(--lq-accent-primary);
    border-color: var(--lq-accent-primary);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    width: 40px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .notice-list a {
        padding:15px 20px;
    }

    .col-no {
        width: 70px;
        font-size: 18px;
    }

    .col-title {
        padding-left: 24px !important;
    }

    .col-author {
        width: 100px;
    }

    .col-date {
        width: 110px;
    }

    .col-views {
        width: 90px;
    }
    

    .page-title {
        font-size: 36px;
    }

}

@media (max-width: 768px) {

    .notice-list a {
        padding:15px 15px;
    }

    .notice-list a.notice-lists span.notice-tag {
        padding: 2px 10px 3px !important;
    }
    
    .notice-list a.notice-lists {
        flex-direction: column;
        gap:5px !important;
        align-items: flex-start !important;
    }


    .notice-list a.notice-lists div {
        flex-direction: column;
        gap:5px !important;
        align-items: flex-start !important;
    }

    .notice-num {display: none;}

    .notice-page {
        padding: 60px 0 80px;
    }

    .page-title {
        font-size: 30px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .search-section {
        margin-bottom: 30px;
    }

    .search-wrapper {
        border-radius: 10px;
    }

    .search-input {
        padding: 12px 16px 12px 45px;
        font-size: 14px;
    }

    .search-icon {
        left: 16px;
    }

    .btn-search-submit {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Mobile Table - Hide columns */
    .col-author,
    .col-views {
        display: none;
    }

    .col-no {
        width: 60px;
        font-size: 16px;
    }

    .col-title {
        padding-left: 16px !important;
    }

    .col-date {
        width: 100px;
    }

    .notice-table thead tr th,
    .notice-table tbody tr td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .notice-link {
        font-size: 13px;
    }

    .pagination {
        margin-top: 40px;
        gap: 6px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .notice-row.important {
        border-left-width: 3px;
    }
}

@media (max-width: 480px) {

    .search-wrapper .search-input {
        padding:10px;
        border:1px solid #eee;
    }

    .notice-page {
        padding: 40px 0 60px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .search-wrapper {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        padding: 12px 16px;
        width: 100%;
    }

    .btn-search-submit {
        width: 100%;
        padding: 12px;
    }

    .col-date {
        display: none;
    }

    .col-no {
        width: 50px;
        font-size: 16px;
    }

    .col-title {
        padding-left: 12px !important;
    }

    .notice-table thead tr th,
    .notice-table tbody tr td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .notice-link {
        font-size: 12px;
    }

    .badge-new {
        padding: 2px 6px;
        font-size: 10px;
    }

    .pagination {
        margin-top: 30px;
        gap: 4px;
    }

    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .notice-row.important {
        border-left-width: 2px;
    }
}
