/* ===== JOBS PAGE MAIN CONTENT ===== */
.main {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    background-color: #f5f5f5;
    padding: 40px 20px 60px;
}

/* ===== JOB INFO SECTION ===== */
.jobinfo {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jobinfo h1 {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.jobinfo p {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== JOB FILTER SECTION ===== */
.jobfilter {
    background-color: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.jobfilter h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.filter-btn:hover {
    background-color: #495057;
    transform: none;
}

.filter-btn.active {
    background-color: #042240;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #6c757d;
}

.search-btn {
    background-color: #042240;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #0080ff;
}

/* ===== JOB LISTS CONTAINER ===== */
.joblists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* ===== INDIVIDUAL JOB CARD ===== */
.jobcontainer {
    background-color: white;
    padding: 25px;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.jobcontainer:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border-left-color: #042240;
    transform: none;
}

.jobcontainer h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.jobcontainer p {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
    flex-grow: 1;
}

.jobcontainer .price-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.price-location .price {
    font-size: 16px;
    font-weight: 600;
    color: #198754;
    text-align: left;
}

.price-location .location {
    font-size: 14px;
    color: #6c757d;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jobcontainer button {
    background-color: #042240;
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: 100%;
}

.jobcontainer button:hover {
    background-color: #0080ff;
    transform: none;
}

/* ===== JOB TAGS ===== */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.job-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.job-tag.overseas {
    background-color: #cfe2ff;
    color: #042240;
}

.job-tag.local {
    background-color: #d1e7dd;
    color: #198754;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #495057;
}

.pagination-btn.active {
    background-color: #042240;
}

.pagination-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .main {
        margin-top: 120px;
        padding: 30px 15px 40px;
    }
    
    .jobinfo {
        padding: 40px 20px;
    }
    
    .jobinfo h1 {
        font-size: 28px;
    }
    
    .jobinfo p {
        font-size: 16px;
    }
    
    .jobfilter {
        padding: 25px 20px;
    }
    
    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .joblists {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .main {
        padding: 20px 10px 30px;
    }
    
    .jobinfo {
        padding: 30px 15px;
    }
    
    .jobinfo h1 {
        font-size: 24px;
    }
    
    .jobcontainer {
        padding: 20px;
    }
}