.section-main {
    background: linear-gradient(180deg, #f8fdff 19.91%, #bfe7f1 100%);
    padding-bottom: 60px;
}

.job-page-title {
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.job-page-title h1 {
    color: #000;
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.job-page-title p {
    color: #808080;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.search-job-section {
    background: var(--blue-accent, #00b3df);
    padding: 20px;
    font-family: sans-serif;
}

.search-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    flex-direction: column;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 25px;
    padding: 0 15px;
    height: 40px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-wrapper input {
    border: none;
    outline: none;
    background: none;
    flex-grow: 1;
    font-size: 1rem;
    padding-left: 10px;
}

.input-wrapper input::placeholder {
    color: #aaa;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    flex-direction: row;
}

.filter-btn {
    background: transparent;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    height: 35px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 157px;
}

.filter-group {
    position: relative;
    display: inline-block;
}

.job-filter-menu {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 8px;
    padding: 10px 0;
    top: 40px;
    left: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.job-filter-menu a {
    color: black;
    padding: 8px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.job-filter-menu a:hover {
    background-color: #f1f1f1;
    color: #00bcd4;
}

.job-filter-menu.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.arrow-down {
    margin-left: 8px;
    font-size: 1.2rem;
    line-height: 1;
}

.title-job-page h1 {
    color: var(--blue-accent, #00b3df);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.title-job-page h1 span {
    color: #001422;
}

.job-page-line {
    height: 1px;
    background: rgba(160, 160, 160, 0.5);
}

.jobs-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.job-toggle-switch {
    position: relative;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    padding: 3px;
    width: fit-content;
    isolation: isolate;
}

.slide-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    background-color: #00b3df;
    border-radius: 50px;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 179, 223, 0.3);
    width: 0;
}

.toggle-btn {
    padding: 8px 25px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-btn.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.sort-btn {
    background: #fff;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sort-btn:active {
    transform: scale(0.95);
}

.job-card:hover {
    background: #00b3df;
    color: #fff;
}

.job-name-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-name-title h1 {
    color: var(--blue-accent, #00b3df);
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    /* 150% */
    margin: 0;
    max-width: 220px;
    transition: color 0.3s ease;
}

.job-card:hover .job-name-title h1 {
    color: #fff;
}

.job-about-body {
    margin: 30px 0;
}

.job-detail {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 10px;
}

.job-detail p {
    margin: 0;
}

.company-name {
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    transition: color 0.3s ease;
}

.job-card:hover .company-name {
    color: #fff;
}

.job-post-date p {
    color: #808080;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: color 0.3s ease;
}

.job-card:hover .job-post-date p {
    color: #fff;
}

.close-job {
    border: none;
    background: transparent;
    transition: filter 0.3s ease;
}

.job-card:hover .close-job {
    filter: brightness(0) invert(1);
}

.job-detail span {
    transition: filter 0.3s ease;
}

.job-card:hover .job-detail span {
    filter: brightness(0) invert(1);
}

.job-details-section {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000;
    background: #fff;
    margin-top: 35px;
}

.job-details-title h1 {
    color: #001422;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 10px;
}

.job-details-title h2 {
    color: #000;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.job-details-title p {
    color: #808080;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 8px;
}

.job-details-image {
    height: 276px;
    margin-bottom: 20px;
}

.job-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    object-position: top;
}

.job-details-body h1 {
    color: #001422;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.about-cast-job p {
    color: #333;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 25px;
    /* 166.667% */
}

.char-traits h1,
.require-job h1 {
    color: #333;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.apply-job-now {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.apply-job-now-btn {
    display: flex;
    width: 141px;
    height: 40px;
    padding: 10px 19px 10px 20px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 0 4px 0 rgba(0, 0, 0, 0.25),
        0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border: none;
    transition: all 0.3s ease;
}

.apply-job-now-btn:hover {
    transform: translateY(1px);
    /* Pushes down slightly */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
}

/* 1. Basic Button settings */

.save-job-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

/* 2. Click effect (Bounce) */

.save-job-btn:active {
    transform: scale(0.9);
}

.save-job-btn.saved svg g path {
    fill: #007bff !important;
    /* Blue Fill */
    stroke: #007bff !important;
    /* Blue Outline */
    filter: none !important;
}

.save-job-btn.saved {
    filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.6));
}

.share-job-btn {
    border: none;
    background: #fff;
    transition: all 0.3s ease;
}

.share-job-btn:hover {
    transform: translateY(-3px);
    /* Moves button up */
}

.chat-job-btn {
    border: none;
    background: #fff;
    transition: all 0.3s ease;
}

.chat-job-btn:hover {
    transform: translateY(-3px);
    /* Moves button up */
}

.char-traits ul {
    list-style-type: none;
}

#menu-job-type {
    padding: 10px;
}

.job-checkbox {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.job-checkbox label {
    color: var(--black, #000);
    font-size: 16px;
    font-style: normal;
    line-height: normal;
}

.next-job-button {
    display: flex;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.next-job-button a {
    text-decoration: none;
}

.next-btn {
    border: none;
    border-radius: 5px;
    background: #f5f5f5;
    width: 23px;
    height: 25.706px;
    padding: 7px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.next-btn:hover {
    color: #00b3df;
    background: #e3e3e3ff;
}

.next-btns {
    border: none;
    background: transparent;
}

.receive-email-job-title {
    margin-bottom: 20px;
}

.receive-email-job-title h1 {
    color: #000;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.receive-email-job-form {
    display: flex;
    align-items: center;
}

.receive-email-job-submit {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.btn-email-receive-job {
    width: 381px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #c4c4c4;
    background: #fff;
    padding-left: 20px;
}

.btn-email-receive-job:focus {
    outline: none;
}

.btn-email-receive-job::placeholder {
    color: #a7a7a7;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.btn-create-alert {
    width: 150px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #c4c4c4;
    background: #333;
    color: #fff;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.hidden-requirement {
    display: none;
}

/* Style the clickable text */

.show-more-trigger {
    color: #808080;
    /* Gray color like your icon */
    cursor: pointer;
    font-weight: 500;
}

.show-more-trigger:hover {
    color: #00b3df;
    /* Blue on hover */
    text-decoration: underline;
}

/* Ensure the wrapper allows absolute positioning for the popup */

.input-wrapper {
    position: relative;
}

/* The Popup Container */

.search-results-popup {
    position: absolute;
    top: 100%;
    /* Right below the input */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    /* Hide scrollbar when closed */
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State (When showing results) */

.search-results-popup.active {
    max-height: 300px;
    /* Allow height to grow */
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    /* Allow scrolling if many results */
    padding: 10px 0;
    border: 1px solid #eee;
}

/* Individual List Items */

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #d8eafdff;
    color: #000;
    font-weight: 500;
}

/* 1. The Container - Holds all cards */

.jobs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding-bottom: 50px;
    /* Space at bottom */
}

/* 2. The Cards - 2 per row */

.job-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    box-sizing: border-box;
    position: relative;
}

/* 1. The Animation Keyframes */

@keyframes popUpCard {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        /* Start low and small */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        /* End in normal position */
    }
}

/* 2. The Class we will add with JS */

.animate-pop {
    opacity: 0;
    /* Hidden initially */
    animation: popUpCard 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Container for the counter */

.job-list-header h2 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* The No Results Box */

.no-results-container {
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 20px;
    width: 100%;
    /* Ensures it fills the grid space */
}

.no-results-container h3 {
    margin-top: 15px;
    color: #333;
    font-size: 1.5rem;
}

.no-results-container p {
    color: #666;
    margin-bottom: 20px;
}

.icon-box {
    opacity: 0.5;
    margin-bottom: 10px;
}

.new-badge {
    position: absolute;
    top: 0px;
    right: 50px;
    background-color: #4ade80;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 0 0 10px 10px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Mobile: Stack them 1 per row */

@media (max-width: 768px) {
    .job-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .search-job-section {
        padding: 30px 120px;
    }
    .search-inputs {
        flex-direction: row;
    }
    .input-wrapper {
        height: 40px;
        width: 440px;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .receive-email-job-submit {
        flex-direction: row;
    }
}

.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 40px;
}

.pagination-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #adb5bd;
}

.pagination-btn svg {
    width: 14px;
    height: 14px;
}

.pagination-prev svg {
    transform: rotate(180deg);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.pagination-number.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination-number.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

/* Responsive */

@media (max-width: 768px) {
    .custom-pagination {
        gap: 6px;
    }
    .pagination-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-height: 36px;
    }
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .custom-pagination {
        flex-direction: column;
        gap: 10px;
    }
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

.job-details-section {
    max-height: 810px;
    overflow: hidden;
    padding-bottom: 20px;
}
