/* Job List Page Styles */

/* Page Header */
.page-header-jobs {
    padding-top: 50px;
}

/* Search Box */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.search-form-group {
    margin-bottom: 0;
}

.search-btn-area {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-clear {
    background-color: #fff;
    color: #666;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.btn-clear:hover {
    background-color: #f9f9f9;
}

/* Search Result Header */
.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

.search-result-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.search-result-title i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.search-result-count-label {
    font-size: 1.1rem;
    color: #666;
    display: flex;
    align-items: baseline;
}

.search-result-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 5px;
    line-height: 1;
}

/* Empty State */
.search-empty-message {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 10px;
}

/* Jobs Grid */
.jobs-grid-search {
    margin-bottom: 4rem;
}

/* Job Card (extending existing styles or adding specifics) */
.job-card-link {
    cursor: pointer;
}

.job-image-placeholder {
    object-fit: contain;
    padding: 20px;
}



.job-info-icon {
    margin-right: 5px;
}

.job-info-recruiter {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    line-height: 1.5;
    text-align: left;
}

.job-info-recruiter strong {
    color: #8d6e63;
}

.job-card-btn-area {
    margin-top: 1rem;
    text-align: center;
}

.job-card-btn {
    width: 100%;
    padding: 0.5rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    vertical-align: middle;
    gap: 10px;
    margin-bottom: 4rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #f9f9f9;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #666;
    font-weight: bold;
}

/* Branches Accordion */
.job-branches-accordion {
    margin: 15px 0;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fdfdfd;
    overflow: hidden;
}

.branches-toggle-btn {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.branches-toggle-btn:hover {
    background: #e9ecef;
}

.branches-toggle-btn.is-open {
    background: #e9ecef;
    border-bottom: 1px solid #eaeaea;
}

.branches-list-container {
    background: #fff;
}

.branch-item-link {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.branch-item-link:last-child {
    border-bottom: none;
}

.branch-item-link:hover {
    background: #f8fbff;
}

.branch-item-name {
    font-weight: bold;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.branch-item-location {
    font-size: 0.85rem;
    color: #666;
    padding-left: 20px; /* Aligns with text after the icon */
}