/* Notice Page Styles */

/* Notice Section */
.notice_section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.notice_section .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb Navigation */
.location {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.loc_dep01 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0.5rem;
}

.loc_dep01 li {
    position: relative;
}

.loc_dep01 li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #999;
    font-weight: 600;
}

.loc_tit {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.loc_tit:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.loc_tit.arrow::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.8em;
}

.loc_dep02 {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e1e8ff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
    display: none;
    margin-top: 0.5rem;
}

.loc_dep01 li:hover .loc_dep02 {
    display: block;
}

.loc_dep02 li {
    margin: 0;
    padding: 0;
}

.loc_dep02 a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.loc_dep02 a:hover {
    background: #f8f9ff;
    color: #667eea;
}

.loc_dep02 li:last-child a {
    border-bottom: none;
}

.loc_dep02 li.curr a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

/* Header */
.notice_section .header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.notice_section .tit {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tit_desc {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

/* Notice Tools */
.notice_tools {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Search Box */
.search_box {
    margin-bottom: 1.5rem;
}

.search_form fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.search_input_group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search_type {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    min-width: 100px;
    transition: border-color 0.3s ease;
}

.search_type:focus {
    outline: none;
    border-color: #3498db;
}

.search_keyword {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search_keyword:focus {
    outline: none;
    border-color: #3498db;
}

.btn_search {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn_search:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Filter Tabs */
.filter_tabs {
    text-align: center;
}

.tab_list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab_list li {
    margin: 0;
}

.tab_list a {
    display: block;
    padding: 12px 24px;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab_list li.active a,
.tab_list a:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Notice List Wrap */
.notice_list_wrap {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* List Header */
.list_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.total_count {
    font-size: 14px;
    color: #6c757d;
}

.total_count strong {
    color: #3498db;
    font-weight: 700;
}

.view_options {
    display: flex;
    gap: 0.5rem;
}

.btn_view {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_view.active,
.btn_view:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* List View */
.notice_list_view {
    display: block;
}

.notice_list_view:not(.active) {
    display: none;
}

.notice_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.notice_table thead {
    background-color: #f8f9fa;
}

.notice_table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.notice_table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.notice_table tbody tr {
    transition: background-color 0.3s ease;
}

.notice_table tbody tr:hover {
    background-color: #f8f9fa;
}

.notice_item.priority {
    background-color: #fff3cd;
}

.notice_item.priority:hover {
    background-color: #ffeaa7;
}

/* Table Columns */
.col_no {
    width: 80px;
}

.col_category {
    width: 100px;
}

.col_title {
    text-align: left !important;
    min-width: 300px;
}

.col_author {
    width: 100px;
}

.col_date {
    width: 120px;
}

.col_hit {
    width: 80px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.priority {
    background-color: #dc3545;
    color: #fff;
}

.category_badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.category_badge.notice {
    background-color: #6c757d;
}

.category_badge.event {
    background-color: #fd7e14;
}

.category_badge.service {
    background-color: #20c997;
}

.category_badge.maintenance {
    background-color: #6f42c1;
}

.new_badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 8px;
}

/* Title Link */
.title_link {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title_link:hover {
    color: #3498db;
}

.title_text {
    flex: 1;
}

/* Card View */
.notice_card_view {
    display: none;
    padding: 2rem;
}

.notice_card_view.active {
    display: block;
}

.card_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.notice_card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notice_card.priority {
    border-left: 4px solid #dc3545;
}

.card_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card_content {
    padding: 1.5rem;
}

.card_title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.card_title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card_title a:hover {
    color: #3498db;
}

.card_desc {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.card_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
}

.card_footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.pagination_wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn_page {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.btn_page:hover:not(:disabled) {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.btn_page.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.btn_page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn_page.prev,
.btn_page.next {
    padding: 8px 16px;
}

.page_numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page_ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .notice_section .inner {
        padding: 0 15px;
    }
    
    .notice_tools {
        padding: 1.5rem;
    }
    
    .search_input_group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search_type,
    .search_keyword {
        width: 100%;
    }
    
    .tab_list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab_list a {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .notice_section {
        padding: 2rem 0;
    }
    
    .notice_section .inner {
        padding: 0 15px;
    }
    
    .location {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .loc_dep01 {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .loc_tit {
        padding: 0.4rem 0.8rem;
        font-size: 14px;
    }
    
    .loc_dep02 {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.5rem;
        min-width: auto;
    }
    
    .loc_dep02 a {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .loc_dep02 a:hover {
        background: transparent;
        border-left-color: #667eea;
        padding-left: 1rem;
    }
    
    .loc_dep02 li.curr a {
        background: transparent;
        color: #667eea;
        border-left-color: #667eea;
        font-weight: 600;
    }
    
    .notice_section .tit {
        font-size: 2rem;
    }
    
    .tit_desc {
        font-size: 1rem;
    }
    
    .notice_tools {
        padding: 1rem;
    }
    
    .list_header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }
    
    .view_options {
        justify-content: center;
    }
    
    .notice_table {
        font-size: 12px;
    }
    
    .notice_table th,
    .notice_table td {
        padding: 0.75rem 0.5rem;
    }
    
    .col_title {
        min-width: 200px;
    }
    
    .card_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .notice_card_view {
        padding: 1rem;
    }
    
    .card_content {
        padding: 1rem;
    }
    
    .card_footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page_numbers {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .notice_section .inner {
        padding: 0 10px;
    }
    
    .notice_section .tit {
        font-size: 1.75rem;
    }
    
    .notice_table {
        font-size: 11px;
    }
    
    .notice_table th,
    .notice_table td {
        padding: 0.5rem 0.25rem;
    }
    
    .col_no,
    .col_hit {
        width: 60px;
    }
    
    .col_category {
        width: 80px;
    }
    
    .col_author {
        width: 80px;
    }
    
    .col_date {
        width: 100px;
    }
    
    .title_link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .new_badge {
        margin-left: 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice_card {
    animation: fadeInUp 0.6s ease-out;
}

.notice_card:nth-child(1) { animation-delay: 0.1s; }
.notice_card:nth-child(2) { animation-delay: 0.2s; }
.notice_card:nth-child(3) { animation-delay: 0.3s; }
.notice_card:nth-child(4) { animation-delay: 0.4s; }
.notice_card:nth-child(5) { animation-delay: 0.5s; }
.notice_card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #6c757d;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Empty State */
.empty_state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty_state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty_state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty_state p {
    font-size: 1rem;
    margin: 0;
}
