.mt-20 {
    margin-top: 20px;
}

.job-listing-container {
    display: flex;
    gap: 20px;
}

.filter-sidebar {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    background-clip: padding-box;
    box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
}

.filter-section .row {
    padding-left: 23px;
    padding-right: 10px;
}

.filter-section input[type='range'] {
    width: 100%;
    margin: 10px 0;
}

.job-item {
    padding: 15px;
}

.job-item h4,
.job-item .h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.job-item h4 a,
.job-item .h4 a {
    text-decoration: none;
    color: #65a6d7;
}

.job-item h4 a:hover,
.job-item .h4 a:hover {
    text-decoration: none;
}

.job-item span {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background: #f2f2f3;
    color: #8d8592;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.25rem !important;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination .active {
    background-color: #65a6d7;
    color: white;
}

.pagination .disabled {
    color: #8f9eae;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-listing-container {
        flex-direction: column;
    }

    .filter-sidebar {
        margin-bottom: 20px;
    }

    html:not([dir='rtl']) .meh-4 {
        margin-right: -1.5rem !important;
    }

    .section-py {
        padding: 6rem 0;
    }

    .share-button {
        margin-top: 10px;
    }

    .job-details-item span {
        margin-top: 10px !important;
    }

    .side-menu-card {
        margin-top: 10px;
    }
}

.errow {
    color: #65a6d7;
}

.next-job,
.prev-job {
    color: #65a6d7;
}

.not-found-wrapper {
    text-align: center;
    background-color: #f8f9fa;
}

.not-found-image {
    width: 270px;
    max-width: 100%;
}

.rounded-2per {
    border-radius: 2%;
}

.top89 {
    top: 89%;
}

.text-clr-primary.nav-link.active {
    color: #65a6d7 !important;
}

.text-clr-primary.nav-link:hover {
    color: #65a6d7 !important;
}

.h-91 {
    height: 91%;
}

.f-75 {
    font-size: 0.75rem !important;
}

.job-search {
    z-index: 10;
    background: white;
}

.location-search {
    z-index: 10;
    background: white;
}

/* ======for index page and searcbar=== */
.job-section {
    padding: 40px;
    border-radius: 23px;
}

.list-group-item.active {
    background-color: #65a6d7;
    color: white;
    border-color: #65a6d7;
}

.carousel-indicators [data-bs-target] {
    background-color: #007bff;
}

.profile-image {
    width: 53px;
    height: 53px;
    margin-left: 5px;
    vertical-align: middle;
}

.avatar.width_unset {
    width: 2.375rem !important;
}

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
}

.skeleton-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-title {
    height: 20px;
    width: 60%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

.skeleton-text.short {
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: #fff;
    z-index: 1050;
    padding-top: 60px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: scroll;
}

.sidebar-left.show {
    transform: translateX(0);
}

/* ======== jobs filter pills swiper ======= */
.swiper-slide {
    width: auto !important;
    display: inline-block;
}

.swiper-slide .btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.filter-mobile-view {
    background: unset !important;
    box-shadow: unset !important;
}

/* ======== jobs filter pills swiper ======= */

/*job create page start*/

@media (max-width: 768px) {
    .mobile-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/*job create page end */

/* ========================================
   MATCH SCORE STYLES - MOBILE
   ======================================== */
@media screen and (max-width: 767px) {
    .matched-score {
        position: absolute;
        top: 65px;
        right: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        z-index: 10;
    }

    .matched-score .match-chart {
        width: 70px;
        height: 70px;
    }

    /* Hide the match tag on mobile */
    .matched-score .match-tag {
        display: none !important;
    }

    .match-label {
        font-size: 11px;
        margin: 0;
        color: #000;
        font-weight: 500;
    }

    /* ========================================
       TOOLTIP - TOP SIDE (Mobile)
       ======================================== */
    .tooltip-top .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 200px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        bottom: 115%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-top .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .tooltip-top:active .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Guest user tooltip - also top */
    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 200px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        bottom: 115%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-container .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .tooltip-container:active .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Placeholder state adjustments */
    .matched-score.score-placeholder .match-tag {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    .matched-score.score-placeholder .match-label {
        color: #999;
    }

    .matched-score.score-placeholder .tooltip-text {
        background-color: #444;
    }

    .matched-score.score-placeholder .tooltip-text::after {
        border-color: #444 transparent transparent transparent;
    }
}

/* ========================================
   MATCH SCORE STYLES - DESKTOP
   ======================================== */
@media screen and (min-width: 768px) {
    .matched-score {
        position: absolute;
        top: 65px;
        left: 430px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: all 0.3s ease;
    }

    .matched-score .match-tag {
        background-color: #fcfcff;
        width: 105px;
        border-radius: 5px;
        border: 1px solid #ccc;
        padding: 2px 5px;
        margin-top: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }

    .match-label {
        font-size: 13px;
        margin: 0;
        color: #000;
        font-weight: 500;
    }

    /* Tooltip - Left Side (Desktop) */
    .tooltip-top .tooltip-text,
    .tooltip-left .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 240px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        top: 50%;
        right: 115%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-top .tooltip-text::after,
    .tooltip-left .tooltip-text::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent transparent #333;
    }

    .tooltip-top:hover .tooltip-text,
    .tooltip-left:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Placeholder State */
    .matched-score.score-placeholder .match-tag {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    .matched-score.score-placeholder .tooltip-text {
        background-color: #444;
        max-width: 260px;
    }

    .matched-score.score-placeholder .tooltip-text::after {
        border-color: transparent transparent transparent #444;
    }
}