/* =====================================
   CEIPAL Careers Pro
   careers.css
===================================== */

:root{
    --ccp-primary:#d71920;
    --ccp-secondary:#16325c;
    --ccp-text:#222;
    --ccp-border:#e5e7eb;
    --ccp-bg:#f7f8fa;
    --ccp-white:#ffffff;
    --ccp-radius:12px;
}

/* Main Container */
.ccp-container{
    max-width:1400px;
    margin:40px auto;
    padding:0 20px;
}

/* Search Section */
.ccp-search-bar{
    display:flex;
    gap:15px;
    align-items:end;
    margin-bottom:30px;
}

.ccp-search-group{
    flex:1;
}

.ccp-search-group label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:8px;
    color:var(--ccp-text);
}

.ccp-search-group input,
.ccp-search-group select{
    width:100%;
    height:54px;
    border:1px solid #cfd5df;
    border-radius:10px;
    padding:0 18px;
    font-size:15px;
    background:#fff;
}

.ccp-search-btn{
    height:54px;
    padding:0 35px;
    border:none;
    border-radius:10px;
    background:var(--ccp-secondary);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.ccp-search-btn:hover{
    opacity:.9;
}

/* Layout */
.ccp-layout{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:25px;
}

/* Left Panel */
.ccp-job-list{
    background:#fff;
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    overflow:hidden;
}

.ccp-job-count{
    padding:20px;
    font-weight:600;
    border-bottom:1px solid var(--ccp-border);
}

.ccp-job-card{
    padding:20px;
    border-bottom:1px solid var(--ccp-border);
    cursor:pointer;
    transition:.25s;
}

.ccp-job-card:hover{
    background:#f5f7fb;
}

.ccp-job-card.active{
    border-left:4px solid var(--ccp-primary);
    background:#f8fafc;
}

.ccp-job-title{
    font-size:22px;
    font-weight:700;
    color:var(--ccp-secondary);
    margin-bottom:12px;
}

.ccp-job-category{
    font-size:15px;
    font-weight:600;
    margin-bottom:10px;
}

.ccp-job-location{
    color:#555;
    margin-bottom:8px;
}

.ccp-job-type{
    color:#555;
    font-size:14px;
}

.ccp-salary-badge{
    display:inline-block;
    padding:6px 12px;
    background:#fff8dc;
    border-radius:30px;
    font-size:14px;
    margin-top:10px;
}

/* Right Panel */
.ccp-job-details{
    background:#fff;
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    padding:35px;
}

.ccp-detail-title{
    font-size:42px;
    line-height:1.2;
    font-weight:700;
    color:var(--ccp-secondary);
    margin-bottom:15px;
}

.ccp-detail-meta{
    margin-bottom:25px;
}

.ccp-detail-meta div{
    margin-bottom:8px;
    color:#444;
}

.ccp-apply-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:220px;
    height:55px;
    background:var(--ccp-secondary);
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    font-weight:700;
    margin:20px 0;
    transition:.3s;
}

.ccp-apply-btn:hover{
    background:#0e2444;
    color:#fff;
}

.ccp-job-description{
    margin-top:25px;
    line-height:1.8;
    color:#333;
}

/* Filter Panel */
.ccp-filters{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:20px;
}

.ccp-filter-item{
    min-width:180px;
}

.ccp-filter-item select{
    width:100%;
    height:48px;
    border:1px solid #d5d9e0;
    border-radius:8px;
    padding:0 12px;
}

/* Sort */
.ccp-sort{
    margin-bottom:20px;
}

.ccp-sort select{
    width:220px;
    height:48px;
    border:1px solid #d5d9e0;
    border-radius:8px;
    padding:0 12px;
}

/* Loading */
.ccp-loading{
    text-align:center;
    padding:40px;
}

.ccp-spinner{
    width:40px;
    height:40px;
    border:4px solid #ddd;
    border-top:4px solid var(--ccp-primary);
    border-radius:50%;
    animation:ccpSpin 1s linear infinite;
    margin:auto;
}

@keyframes ccpSpin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* No Results */
.ccp-no-results{
    padding:50px;
    text-align:center;
    font-size:18px;
    color:#777;
}

/* Pagination */
.ccp-pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:30px;
}

.ccp-pagination a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ddd;
    border-radius:8px;
    text-decoration:none;
    color:#333;
}

.ccp-pagination a.active{
    background:var(--ccp-primary);
    color:#fff;
    border-color:var(--ccp-primary);
}

/* Job Alert Box */
.ccp-alert-box{
    background:#fff;
    border:1px solid var(--ccp-border);
    border-radius:12px;
    padding:24px;
    margin-bottom:25px;
}

.ccp-alert-title{
    font-size:22px;
    font-weight:600;
    margin-bottom:12px;
}

.ccp-alert-link{
    color:#0066cc;
    font-weight:600;
    text-decoration:none;
}