/* Base Styles for Job List Page */
.joblist-wrapper {
    max-width: 1220px;
    margin: 36px auto 30px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

/* Sidebar Styles */
.joblist-sidebar {
    flex: 0 0 210px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(255, 51, 153, 0.07);
    padding: 18px 16px 24px 16px;
    height: fit-content;
    min-width: 180px;
    margin-top: 8px;
}

.joblist-sidebar select,
.joblist-sidebar button {
    width: 100%;
    margin-bottom: 9px;
    padding: 11px 8px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    background: var(--pink-light);
    color: #ad1457;
    transition: box-shadow 0.2s;
    outline: none;
    font-family: var(--font-main);
}

.joblist-sidebar button[type="submit"] {
    background: var(--pink-gradient);
    color: #fff;
    font-weight: bold;
    margin-top: 6px;
    box-shadow: 0 3px 13px rgba(233, 30, 99, 0.12);
    cursor: pointer;
}

.joblist-sidebar button[type="submit"]:hover {
    background: linear-gradient(135deg, #e040fb 10%, #e91e63 90%);
}

.joblist-sidebar button[type="button"] {
    background: #e0e0e0;
    color: #555;
}

.joblist-sidebar button[type="button"]:hover {
    background: #bdbdbd;
}

/* Main Content Styles */
.joblist-main {
    flex: 1 1 650px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.joblist-main .section {
    background: var(--pink-xlight);
    border-radius: 16px;
    padding: 23px 26px 18px 26px;
    box-shadow: 0 2px 13px rgba(233, 30, 99, 0.04);
    margin-bottom: 0;
}

.joblist-main .section h2 {
    font-size: 1.18em;
    color: var(--pink-main);
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.joblist-main .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.joblist-main .tag {
    background: #fff;
    color: var(--pink-main);
    border-radius: 100px;
    padding: 8px 20px 8px 15px;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    border: 2.5px solid var(--pink-strong);
    transition: all 0.18s;
    box-shadow: 0 2px 6px rgba(255, 51, 153, 0.06);
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-main);
}

.joblist-main .tags a.tag:hover,
.joblist-main .tags a.tag.active {
    background: var(--pink-main) !important;
    color: #ffffff !important;
    border-color: var(--pink-main) !important;
}

.joblist-main .tags a.tag:hover i,
.joblist-main .tags a.tag.active i {
    color: #ffffff !important;
}

/* Job Card Styles */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
}

.job-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 51, 153, 0.11);
    display: flex;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
}

.job-card:hover {
    box-shadow: 0 7px 35px rgba(233, 30, 99, 0.15);
    transform: translateY(-3px);
}

.job-card-inner {
    display: flex;
    width: 100%;
}

/* Desktop Styles for Job Card Image */
.job-thumb {
    flex: 0 0 95px;
    background: var(--pink-light);
}

.job-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-content {
    flex: 1;
    padding: 18px 22px 15px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-content header h2 {
    font-size: 1.14em;
    color: #d81b60;
    font-weight: 900;
    margin: 0 0 4px 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.job-company {
    font-size: 0.98em;
    color: #333;
    font-weight: 600;
    margin-bottom: 7px;
}

.job-meta {
    font-size: 0.96em;
    color: #a7006c;
    margin-bottom: 8px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta i {
    color: var(--pink-main);
    margin-right: 3px;
}

.job-actions {
    margin-top: 2px;
}

.details-btn {
    background: var(--pink-gradient);
    color: #fff !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 7px 22px;
    font-size: 0.98em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.13);
    text-decoration: none;
    margin-top: 7px;
    display: inline-block;
    font-family: var(--font-main);
}

.details-btn:hover {
    background: linear-gradient(135deg, #e040fb 10%, #e91e63 90%);
}

.no-jobs {
    text-align: center;
    color: #b71c1c;
    font-size: 1.2em;
    padding: 24px 0;
}

/* Pagination Styles */
.pagination {
    margin: 33px 0 0 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 7px;
    background: #fff;
    color: var(--pink-main);
    margin: 0 2px;
    border: 1.5px solid var(--pink-strong);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.16s;
    font-family: var(--font-main);
}

.pagination .current,
.pagination a:hover {
    background: var(--pink-main);
    color: #fff;
    border-color: var(--pink-main);
}

/* Sticky Badge Styles */
.job-card .sticky-badge {
    position: absolute;
    top: 10px;
    /* Adjusted for better placement */
    left: 10px;
    /* Adjusted for better placement */
    background-color: #ffc107;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Responsive Styles */
@media (max-width: 950px) {
    .joblist-wrapper {
        flex-direction: column;
        gap: 22px;
        padding: 0 15px;
        /* Added some padding */
    }

    .joblist-sidebar {
        min-width: 0;
        width: 100%;
        margin-bottom: 7px;
    }
}

/* === Mobile Styles (The Fix) === */
@media (max-width: 650px) {

    .job-card,
    .job-card-inner {
        flex-direction: column;
    }

    .job-thumb {
        width: 100%;
        height: auto;
        flex-basis: auto;
    }

    .job-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .job-content {
        padding: 15px;
    }
}