/* Notice & Board Page Layout */
.notice-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* Premium Certification Card Page Style */
.notice-card-page {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-premium);
}

.notice-card-page:hover {
    transform: translateY(-12px);
    border-color: var(--secondary-blue);
    box-shadow: var(--shadow-hover);
}

.notice-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.notice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.notice-card-page:hover .notice-img-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.notice-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.notice-tags .tag {
    background: #f0f4ff;
    border: 1px solid rgba(17, 48, 140, 0.1);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
}

.notice-card-page:hover .notice-tags .tag {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
}

.notice-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.35;
    color: #333;
    transition: color 0.3s ease;
}

.notice-card-page:hover .notice-content h3 {
    color: var(--primary-blue);
}

.notice-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notice-content .date {
    margin-top: auto;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-content .date::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--primary-blue);
}

/* Sidebar */
.notice-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-premium);
}

.sidebar-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

.sidebar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.sidebar-title i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

/* Premium Filter Styling */
.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    user-select: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.radio-container:hover {
    background: #e9ecef;
    color: var(--primary-blue);
    transform: translateX(5px);
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 14px;
    width: 14px;
    background-color: transparent;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.radio-container input:checked~.checkmark {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.radio-container:has(input:checked) {
    background: #f0f4ff;
    border-color: rgba(17, 48, 140, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Premium Search Box */
.search-box {
    position: relative;
    margin-top: 35px;
}

.search-box input {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 15px 20px 15px 50px;
    color: #333;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.search-box input:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 20px rgba(17, 48, 140, 0.1);
}

.search-box input:focus+.search-icon {
    color: var(--primary-blue);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* --- Board Container --- */
.board-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.search-wrap {
    display: flex;
    gap: 10px;
}

.search-wrap input {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
}

.search-wrap button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
}

/* Board Table */
.board-list-container {
    overflow-x: auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-top: 2px solid var(--primary-blue);
}

.board-table th,
.board-table td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.95rem;
}

.board-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #333;
}

.board-table td.title-col {
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
    color: #333;
}

.board-table td.title-col:hover {
    color: var(--primary-blue);
}

.board-table tr:hover {
    background: #fcfcfc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
    border-color: var(--primary-blue);
    color: white;
    background: var(--primary-blue);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.close-modal {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.modal-meta {
    font-size: 0.9rem;
    color: #999;
}

.modal-body {
    min-height: 200px;
    line-height: 1.8;
    color: #333;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    color: #333;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(17, 48, 140, 0.05);
}

/* Responsive Board */
@media (max-width: 900px) {
    .notice-layout {
        grid-template-columns: 1fr;
    }

    .notice-sidebar {
        order: -1;
        margin-bottom: 40px;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
    min-width: 80px;
    text-align: center;
}

.badge-ongoing {
    background: #e1f5fe;
    color: #0288d1;
    border: 1px solid #b3e5fc;
}

.badge-completed {
    background: #f1f8e9;
    color: #558b2f;
    border: 1px solid #dcedc8;
}