/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: #333;
}

/* SEARCH BAR */
.job-search {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.job-search input,
.job-search select {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.job-search button {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* MAIN LAYOUT */
.job-container {
    display: flex;
    gap: 20px;
    padding: 0 20px 20px;
}
/* FILTER MAIN */
.filters {
    width: 260px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FILTER BOX */
.filter-box {
    background: #fafbff;
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #eee;
}

/* TITLE WITH ICON */
.filter-box h4 {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.filter-box h4 i {
    background: #eef2ff;
    color: #6a11cb;
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* LABEL */
.filter-box label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    cursor: pointer;
}

/* INPUT STYLE */
.filter-box input[type="checkbox"],
.filter-box input[type="radio"] {
    accent-color: #6a11cb;
    cursor: pointer;
}

/* RANGE */
.filter-box input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

/* HOVER EFFECT */
.filter-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ========================= */
/* 📱 MOBILE RESPONSIVE */
/* ========================= */

@media(max-width: 768px) {

    /* FILTER → HORIZONTAL SCROLL */
    .filters {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    /* EACH BOX */
    .filter-box {
        min-width: 200px;
        flex: none;
    }
}

/* JOB LIST */
.job-list {
    flex: 1;
}

/* JOB CARD */
.job-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-left: 5px solid #6a11cb;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-title {
    font-size: 18px;
    font-weight: bold;
}

.company {
    color: #777;
    margin-bottom: 10px;
}

/* TAGS */
.tag {
    display: inline-block;
    background: #eef2ff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin: 5px 5px 0 0;
}

/* BUTTON */
.apply-btn {
    display: inline-block;
    margin-top: 10px;
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
}

/* ========================= */
/* 📱 MOBILE RESPONSIVE FIX */
/* ========================= */

@media(max-width: 768px) {

    /* SEARCH FULL WIDTH */
    .job-search {
        flex-direction: column;
        margin: 10px;
    }

    .job-search input,
    .job-search select,
    .job-search button {
        width: 100%;
    }

    /* FILTER HORIZONTAL SCROLL */
    .filters {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        width: 100%;
        padding: 10px;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    /* EACH FILTER BOX */
    .filters > div {
        min-width: 180px;
        background: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        flex: none;
    }

    /* LAYOUT STACK */
    .job-container {
        flex-direction: column;
    }
}