/* ===================================
   Notices Styling
   =================================== */

#noticesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.notice-card {
    background: #fff;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Importance level styling */
.notice-critical {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.notice-high {
    border-left-color: #ffc107;
    background: #fffef5;
}

.notice-medium {
    border-left-color: #007bff;
}

.notice-low {
    border-left-color: #6c757d;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-info i {
    font-size: 18px;
    color: #007bff;
}

.notice-critical .notice-info i {
    color: #dc3545;
}

.notice-high .notice-info i {
    color: #ffc107;
}

.notice-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
}

.notice-date {
    font-size: 12px;
    color: #999;
}

.notice-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.notice-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.notice-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.notice-pdf-link:hover {
    color: #c82333;
    text-decoration: underline;
}

.notice-pdf-link i {
    font-size: 16px;
}

/* ===================================
   Job Modal Styling
   =================================== */

.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #333;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.job-meta i {
    color: #007bff;
}

.job-salary {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 16px;
}

.job-full-description h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
}

.job-full-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
    text-align: justify;
}

.job-full-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.job-full-description li {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* ===================================
   Job Cards Enhancements
   =================================== */

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}

.btn-pdf {
    background: #dc3545;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-pdf:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    #noticesContainer {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px;
        max-width: 90%;
        margin: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 12px;
    }
}
