/* ============================================================
   CATEGORY PAGE - Department-wise Jobs
   ============================================================ */

.category-page-wrap {
    margin: 20px auto 50px;
    min-height: 500px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}
.breadcrumb a { color: #1e40af; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:last-child { color: #0f172a; font-weight: 700; }

/* ============ DEPARTMENT HEADER ============ */
.dept-page-header {
    color: #fff;
    padding: 26px 0;
    border-radius: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dept-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
}
.dept-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 26px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.dept-header-icon {
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
}
.dept-header-info { flex: 1; min-width: 200px; }
.dept-header-info h1 {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.dept-header-info p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 500;
}
.dept-header-count {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: 12px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}
.count-num {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.count-label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    font-weight: 700;
}

/* ============ FILTER BAR ============ */
.filter-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-group { flex: 1; }
.filter-group input {
    width: 100%;
    padding: 11px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    color: #0f172a;
}
.filter-group input:focus {
    border-color: #1e40af;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30,64,175,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(30,64,175,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30,64,175,0.4);
    color: #fff;
}

/* ============ RESULTS INFO ============ */
.results-info {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 14px;
    padding: 0 4px;
}
.results-info strong { color: #1e40af; font-weight: 800; }

/* ============ JOBS LIST ============ */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.job-list-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1e40af;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    flex-wrap: wrap;
}
.job-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30,64,175,0.10);
    border-left-color: #d97706;
}

.job-list-main { flex: 1; min-width: 240px; }

.job-list-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}
.job-list-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.job-list-title a:hover { color: #1e40af; }

.job-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 11px;
    border-radius: 50px;
    font-weight: 500;
}
.meta-item i { font-size: 10px; color: #1e40af; }
.meta-item.tag {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
}

.job-list-deadline {
    font-size: 12.5px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.job-list-deadline i { color: #dc2626; }
.job-list-deadline strong { color: #7f1d1d; }

.job-list-action { flex-shrink: 0; }
.view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(30,64,175,0.25);
}
.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,64,175,0.4);
    color: #fff;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 25px;
}
.empty-icon {
    font-size: 55px;
    margin-bottom: 14px;
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.empty-state p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 22px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}
.pagination a:hover {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}
.pagination .active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

/* ============ RELATED DEPARTMENTS ============ */
.related-depts {
    margin: 45px 0 25px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}
.related-depts h2 {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 18px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    border-color: #1e40af;
    box-shadow: 0 8px 20px rgba(30,64,175,0.10);
}
.related-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.related-card h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}
.related-card p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .dept-header-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 0 18px;
    }
    .dept-header-info h1 { font-size: 20px; }
    .dept-header-info p { font-size: 12.5px; }
    .dept-header-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    .dept-header-count { padding: 10px 20px; }
    .count-num { font-size: 22px; }
    
    .filter-form { flex-direction: column; }
    .btn-primary { width: 100%; text-align: center; }
    
    .job-list-card {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .job-list-title { font-size: 15px; }
    .view-btn {
        display: block;
        text-align: center;
        padding: 12px;
    }
    
    .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
    .dept-header-info h1 { font-size: 18px; }
    .count-num { font-size: 20px; }
    .breadcrumb { font-size: 12px; padding: 10px 12px; }
}
/* ============================================================
   NEW ADDITIONS - Department Dashboard Section
   (Ye existing CSS ke end mein add karein)
   ============================================================ */

/* ============ QUICK STATS ROW ============ */
.dept-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 0 0 20px 0;
}
.dept-stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.dept-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #1e40af;
}
.dsb-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}
.dsb-num {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    display: block;
    line-height: 1;
}
.dsb-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

/* ============ CATEGORY CARDS GRID (6 Cards) ============ */
.dept-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.dept-cat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s;
}
.dept-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.dept-cat-header {
    padding: 16px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dc-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dept-cat-header h3 {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 2px;
    color: #fff;
}
.dept-cat-header p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.dept-cat-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}
.dept-cat-list li {
    border-bottom: 1px solid #f1f5f9;
}
.dept-cat-list li:last-child { border-bottom: none; }
.dept-cat-list li.empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 12.5px;
    font-style: italic;
}
.dept-cat-list a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.15s;
}
.dept-cat-list a:hover {
    background: #f8fafc;
    color: #1e40af;
    padding-left: 24px;
}

.dept-cat-footer {
    display: block;
    padding: 12px 18px;
    text-align: center;
    background: #f8fafc;
    color: #1e40af;
    font-weight: 800;
    font-size: 12.5px;
    text-decoration: none;
    border-top: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.dept-cat-footer:hover {
    background: #1e40af;
    color: #fff;
}

/* ============ RESPONSIVE FOR NEW SECTIONS ============ */
@media (max-width: 900px) {
    .dept-stats-row { grid-template-columns: repeat(3, 1fr); }
    .dept-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .dept-stats-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .dsb-num { font-size: 16px; }
    .dsb-label { font-size: 9px; }
    .dsb-icon { font-size: 16px; }
    .dept-cat-grid { grid-template-columns: 1fr; }
}