/* Notice Page Styles */

/* Page Banner */
.page-banner {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding-left: 120px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(7, 28, 81, 0.3), rgba(7, 28, 81, 0.3)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: 4px 4px, 100% 100%, 100% 100%;
    mix-blend-mode: normal;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-family: 'Elice Digital Baeum', 'Pretendard', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Notice Section */
.notice-section {
    padding: 90px 120px;
}

.container {
    margin: 0 auto;
}

/* Board Header */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #83839A;
    padding-bottom: 40px;
}

.board-title {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 43px;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0;
    width: 486px;
    height: 48px;
}

.search-form form {
    display: flex;
    gap: 0;
    width: 100%;
    height: 100%;
}

.search-input {
    box-sizing: border-box;
    width: 430px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #D9D9D9;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #323232;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #7A7A7A;
}

.search-input:focus {
    outline: none;
    border-color: #3270AA;
    box-shadow: none;
}

.search-button {
    width: 48px;
    height: 48px;
    background-color: #3270AA;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 8px;
}

.search-button:hover {
    background-color: #2a5d8f;
}

.search-button svg {
    width: 24px;
    height: 24px;
}

/* Notice Table */
.notice-table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table thead {
    height: 75px;
}

.notice-table thead tr {
    border-bottom: 2px solid #e5e7eb;
}

.notice-table th {
    padding: 16px 20px;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
    white-space: nowrap;
}

.notice-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

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

.notice-table td {
    padding: 16px 20px;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #323232;
}

/* Column Widths */
.col-no {
    width: 120px;
    text-align: left !important;
}

.col-title {
    width: auto;
    text-align: left !important;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
}

.col-sub {
    width: 170px;
    text-align: center !important;
}

/* Title Link */
.title-link {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.title-link:hover {
    color: #3b82f6;
}

/* Badge */
.badge-notice {
    display: inline-block;
    padding: 4px 8px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

/* No Data */
.no-data {
    padding: 60px 20px !important;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;
    margin: 0 auto;
    width: auto;
    height: 28px;
}

.page-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #999999;
    text-decoration: none;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    flex: none;
}

.page-link:hover {
    color: #272727;
}

.page-link.active {
    background-color: #ffffff;
    color: #272727;
    font-weight: 700;
}

.page-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    flex: none;
}

.page-numbers {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 12px;
    height: 28px;
    flex: none;
}

.page-nav-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 72px;
    height: 28px;
    flex: none;
}

/* Notice Detail Styles */
.notice-detail {
    background-color: #ffffff;
    overflow: hidden;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #CCCCCC;
    padding: 30px 20px;
}

.detail-title {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
    margin: 0;
}

.detail-meta {
    display: flex;
    align-items: center;
}

.meta-date {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    text-align: right;
    color: #323232;
}

.detail-content {
    padding: 50px 15px;
    min-height: 300px;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #323232;
}

.detail-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}

.btn-list {
    width: 100px;
    height: 48px;
    background: #3270AA;
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-list:hover {
    background-color: #2a5d8f;
}

.btn-cancel {
    box-sizing: border-box;
    width: 100px;
    height: 48px;
    background: #F0F0F0;
    border: 1px solid #D0D0D0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: 0.02em;
    color: #7A7A7A;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #E0E0E0;
    border-color: #B0B0B0;
}

.btn-edit {
    box-sizing: border-box;
    width: 100px;
    height: 48px;
    background: #E5F1FA;
    border: 1px solid #3270AA;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: 0.02em;
    color: #3270AA;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-edit:hover {
    background: #D4E8F7;
}

/* Attachment Section */
.attachment-section {
    margin-top: 50px;
    padding: 30px 20px;
    border-top: 1px solid #888888;
}

.attachment-header {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
    margin-bottom: 25px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attachment-link {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #323232;
    text-decoration: none;
    transition: color 0.2s ease;
}

.attachment-link:hover {
    color: #3270AA;
}

.attachment-size {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #888888;
}

/* Navigation Section */
.navigation-section {
    margin-top: 20px;
    border-top: 1px solid #CCCCCC;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 32px 20px;
    border-bottom: 1px solid #CCCCCC;
    position: relative;
}

.nav-label {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #323232;
    min-width: 92px;
    flex-shrink: 0;
}

.nav-divider {
    width: 1px;
    height: 33px;
    background: #CCCCCC;
    margin: 0 40px 0 90px;
}

.nav-title {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #272727;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-title:hover {
    color: #3270AA;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

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

    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .search-input {
        width: 100%;
        max-width: 300px;
    }

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

    .notice-table th,
    .notice-table td {
        padding: 12px 8px;
    }

    /* 모바일에서 일부 컬럼 숨기기 */
    .col-sub,
    .col-views {
        display: none;
    }
}
