

html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

.page-container,
.container,
.search-container,
.search-form {
    overflow: visible !important;
}

body {
    margin: 0;
    padding: 0;
}

.page-container {
    max-width: 100%;
    overflow-x: hidden;
}

.search-container {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    /*margin: 50px auto;*/
    margin: 20px auto 15px auto; /* top 20px, bottom 40px */

    overflow: visible;
}

.search-header {
    font-weight: 600;
    font-size: 22px;
    color: #003366;
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    font-size: 15px;
    color: #444;
    margin-bottom: 6px;
}

.search-header,
.form-label {
    text-align: left;
    display: block;
}

.form-select {
    position: relative;
    z-index: 10;
}

.form-select {
    box-sizing: border-box;
    font-size: 15px;
    /*height: 48px;*/
    padding: 10px 38px 10px 15px;
    border-radius: 10px;
    border: 2px solid #ccc;
    width: 100%;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    background-clip: padding-box;
    box-shadow: none;
    position: relative;
    padding-right: 48px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-select:focus {
        border-color: #0d6efd !important;
        outline: none;
    }

    .form-select:hover {
        border-color: #999;
    }

.btn-search {
    height: 48px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    padding: 10px 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    /*z-index: 10;*/

    box-sizing: border-box; /* ✅ Ensures consistent layout */
}

@media (min-width: 768px) {
    .search-form {
        display: flex;
        gap: 10px;
        align-items: flex-end;
        flex-wrap: wrap;
        position: relative;
        z-index: 10;
        overflow: visible !important;
    }

    .search-container {
        position: relative;
        z-index: 1;
        overflow: visible !important;
    }
}


.form-group:not(.no-flex) {
    padding-left: 10px;
    flex: 1;
    margin-bottom: 0;
    min-width: 0; /* Already added */
    min-height: 0; /* Add this line */
}



.section-title {
    font-weight: 600;
    font-size: 22px;
    color: #003366;
    margin-bottom: 25px;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    max-width: 100%;
    /*overflow-x: hidden;*/
    overflow-x: visible; /* Change from hidden to visible */
    position: relative; /* Add if not already */
}

.candidate-card {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*min-height: 230px;*/

    word-break: break-word;
    position: relative;
    z-index: 1; /* Ensure cards have a baseline z-index */
}

    .candidate-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

.candidate-name {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.candidate-title {
    font-size: 14px;
    color: #555;
    word-break: break-word;
}

.candidate-experience {
    font-size: 14px;
    color: #444; /* More visible than #666 */
    font-weight: 500;
    margin-left: 6px;
}



.candidate-meta {
    font-size: 13px;
    color: #777;
}



.notice-period {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-block;
    margin-top: 10px;
}

.premium-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #007bff; /* subtle blue */
    cursor: default;
    font-size: 18px;
}

    .premium-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    /*z-index: 100;*/
    top: -30px;
    right: 50%;
    margin-right: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
    z-index: 9999; /* Make sure tooltip appears above all */
}


.skill-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
}

    .skill-badge-container.collapsed {
        max-height: 4.4em;
        overflow: hidden;
    }

    .skill-badge-container.expanded {
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }

.skill-badge {
    background-color: #d9ecff;
    color: #0b5ed7;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: default;
    flex-shrink: 0;
    white-space: nowrap;
}

    .skill-badge.more {
        background-color: #eee;
        color: #333;
        cursor: pointer;
        font-weight: 600;
        margin-left: 5px;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 5px 12px;
        border-radius: 16px;
    }

    /* Hide extra skills by default */
    .skill-badge.extra-skill {
        display: none;
    }

/* Show extra skills when expanded */
.skill-badge-container.expanded .skill-badge.extra-skill {
    display: inline-block;
}

.skill-badge.more {
    order: 999; /* Very high order to force it to end */
}

.fa-eye {
    color: #888;
}

.ui.dropdown {
    position: relative;
    z-index: 10050;
}

    .ui.dropdown .menu {
        z-index: 999999 !important;
        position: absolute !important;
    }




/* Modal styling */
.modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

    .modal-content h4 {
        margin-bottom: 15px;
        color: #003366;
    }

    .modal-content p {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
    }

    .modal-content .btn {
        padding: 10px 20px;
        font-weight: 600;
        border-radius: 8px;
    }

    .modal-content .btn-secondary {
        background-color: #e0e0e0;
        color: #333;
        border: none;
    }

    .modal-content .btn-primary {
        background-color: #0d6efd;
        color: #fff;
        text-decoration: none;
    }

        .modal-content .btn-primary:hover {
            background-color: #0b5ed7;
        }

.close {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
}



.pulse-link {
    position: relative;
    display: inline-block;
    font-weight: bold;
    color: #0d6efd;
    text-decoration: underline;
    transition: color 0.3s ease;
    padding: 4px 8px;
}

    .pulse-link::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        background-color: rgba(13, 110, 253, 0.2);
        border-radius: 8px;
        transform: translate(-50%, -50%);
        animation: pulseEffect 2s infinite;
        z-index: -1;
    }

@@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}



.job-wrapper {
    margin-top: 20px;
}

/* GRID - 3 cards per row */
.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .job-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.job-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    position: relative;
}

    .job-card:hover {
        transform: translateY(-4px);
    }

    .job-card::after {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
    }

/* IMAGE */
.job-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* better for posters */
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.job-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ✅ FULL IMAGE visible */
    cursor: pointer;
}

.job-card:hover .job-image {
    transform: scale(1.05);
}

/* CONTENT */
.job-content {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
}

    .job-content:last-child {
        border-bottom: none;
    }
/* TITLE */

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px 0 15px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px 0 15px;
}



/* JD button */
.btn-view-jd-top {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

    .btn-view-jd-top:hover {
        background: #0d6efd;
        color: #fff;
    }


.job-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    height: auto; /* remove fixed height */
    max-height: 44px;
    overflow: hidden;
    flex: 1;
}



/* FOOTER */
.job-footer {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* COMPANY */

.job-company-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}


.job-company {
    font-weight: 600;
    color: #007bff;
}

.job-location {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

    .job-location i {
        margin-right: 4px;
    }

/* DATE */
.job-date {
    color: #999;
}



.img-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

    .nav-btn.left {
        left: 20px;
    }

    .nav-btn.right {
        right: 20px;
    }

.job-card:hover .job-image {
    transform: scale(1.05);
    transition: 0.3s ease;
}



/* HEADER CLICKABLE */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#filterToggleIcon {
    font-size: 18px;
    color: #555;
}

/* COLLAPSIBLE BODY */
.filter-body {
    transition: max-height 0.4s ease;
    max-height: 500px;
}

    /* COLLAPSED STATE */
    .filter-body.collapsed {
        max-height: 0;
        overflow: hidden;
    }

/* Rotate icon */
.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.skill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

/* Badge */
.skill-badge {
    background: #e7f1ff;
    color: #0b5ed7;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    white-space: nowrap;
}

/* Hidden skills */
.extra-skill {
    display: none;
}

/* Expanded state */
.skill-container.expanded .extra-skill {
    display: inline-block;
}

/* +X button */
.skill-more {
    background: #eee;
    color: #333;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}


.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px; /* spacing between items */
}

/* WhatsApp button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #fff;
    padding: 7px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700; /* bold */
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

    .whatsapp-btn i {
        font-size: 16px;
    }

    .whatsapp-btn:hover {
        background: #1ebe5d;
        transform: translateY(-1px);
    }

/* small message text */
.whatsapp-note {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    margin-right: 6px;
}

/* arrow spacing */
#filterToggleIcon {
    margin-left: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}