/* JobBox — full-site 3D design layer (loaded after style.css) */

/* Hide the newsletter/subscribe section inside the user dashboard area */
body[id^="page-account"] .box-newsletter,
body[class*="account"] .box-newsletter,
.page-account .box-newsletter,
.account-page .box-newsletter,
.section-box:has(> .container > .box-newsletter) {
    display: none !important;
}

/* Keep text razor-sharp: no shadows or blurred filters on any text */
*,
*::before,
*::after {
    text-shadow: none !important;
}

.wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

:root {
    /* Magenta accent system — same gradients, now in magenta with transparency */
    --primary-color: #D6258E;
    --primary-color-hover: #F2A8D2;
    --primary-color-rgb: 214, 37, 142;

    --d3-rest: 0 6px 16px rgba(12, 36, 84, .07), 0 1px 3px rgba(12, 36, 84, .05);
    --d3-hover: 0 26px 46px rgba(12, 36, 84, .18), 0 8px 18px rgba(12, 36, 84, .10);
    --d3-edge: rgba(214, 37, 142, .28);
    --d3-blue: #D6258E;
    --d3-navy: #05264E;
}

/* ---------------------------------------------------------------- layout */
/* Layout containers stay flat so text is never rasterised in 3D */
.banner-inner,
.box-swiper,
.section-box .row,
.job-by-location .row,
.box-newsletter .row {
    perspective: none !important;
    transform-style: flat !important;
}

/* ------------------------------------------------------------------ cards */
.card-grid-1,
.card-grid-2,
.card-grid-3,
.card-grid-4,
.card-grid-5,
.card-grid-6,
.card-grid-border,
.card-list-4,
.card-image-top,
.card-category,
.card-review-1,
.card-bg-white,
.card-briefcase,
.card.profile-content-page,
.box-pricing-item,
.box-step,
.box-trust,
.item-logo,
.job-box.card {
    position: relative;
    transform-style: flat;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    box-shadow: var(--d3-rest);
}

.card-grid-1::before,
.card-grid-2::before,
.card-grid-3::before,
.card-grid-4::before,
.card-grid-5::before,
.card-grid-6::before,
.card-image-top::before,
.card-category::before,
.card-review-1::before,
.card-bg-white::before,
.box-pricing-item::before,
.box-step::before,
.job-box.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%, rgba(214, 37, 142, .06));
}

.card-grid-1 > *,
.card-grid-2 > *,
.card-grid-3 > *,
.card-image-top > *,
.card-category > *,
.box-pricing-item > *,
.job-box.card > * {
    position: relative;
    z-index: 1;
}

.card-grid-1:hover,
.card-grid-1.hover-up:hover,
.card-grid-2:hover,
.card-grid-2.hover-up:hover,
.card-grid-3:hover,
.card-grid-3.hover-up:hover,
.card-grid-4:hover,
.card-grid-5:hover,
.card-grid-6:hover,
.card-grid-border:hover,
.card-list-4:hover,
.card-list-4.hover-up:hover,
.card-image-top:hover,
.card-image-top.hover-up:hover,
.card-category:hover,
.card-review-1:hover,
.card-bg-white:hover,
.card-briefcase:hover,
.card.profile-content-page:hover,
.box-pricing-item:hover,
.box-step:hover,
.box-trust:hover,
.item-logo:hover,
.job-box.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--d3-hover);
    border-color: var(--d3-edge);
}

/* --------------------------------------------------------------- imagery */
.card-grid-2-image img,
.card-grid-2-image-left img,
.card-grid-2-image-rd img,
.card-grid-3-image img,
.card-grid-4 img,
.card-image-top .image,
.item-logo img,
.company-logo img,
.review-user-avatar,
.avatar-md,
.team-img img,
.testimonial img {
    transform: translateZ(22px);
    transition: transform .4s ease, box-shadow .4s ease;
    box-shadow: 0 10px 20px rgba(12, 36, 84, .12);
}

.card-grid-2:hover .card-grid-2-image img,
.card-grid-2:hover .card-grid-2-image-left img,
.card-grid-3:hover .card-grid-3-image img,
.card-image-top:hover .image,
.item-logo:hover img {
    transform: translateZ(34px) scale(1.03);
}

/* Text stays untransformed so it never blurs */

/* ------------------------------------------------------------------ hero */
.banner-imgs {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.banner-imgs .block-1,
.banner-imgs .block-2 {
    transform-style: preserve-3d;
    transform: translateZ(40px) rotateY(-4deg) rotateX(2deg);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
    box-shadow: 0 22px 30px rgba(12, 36, 84, .18);
}

.banner-imgs .block-3,
.banner-imgs .block-4 {
    transform: translateZ(70px);
    box-shadow: 0 10px 16px rgba(214, 37, 142, .25);
    transition: transform .5s ease;
}

.banner-imgs:hover .block-1 {
    transform: translateZ(60px) rotateY(-1deg) rotateX(1deg) translateY(-6px);
}

.banner-imgs:hover .block-2 {
    transform: translateZ(52px) rotateY(-2deg) translateY(-4px);
}

.banner-imgs:hover .block-3,
.banner-imgs:hover .block-4 {
    transform: translateZ(90px) scale(1.06);
}

.form-find {
    box-shadow: 0 16px 34px rgba(12, 36, 84, .12);
}

/* --------------------------------------------------------------- buttons */
.btn,
.btn-default,
button.btn,
a.btn {
    box-shadow: 0 3px 10px rgba(12, 36, 84, .14) !important;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.btn:hover,
.btn-default:hover,
button.btn:hover,
a.btn:hover {
    box-shadow: 0 6px 16px rgba(12, 36, 84, .18) !important;
}

.btn:active,
.btn-default:active,
button.btn:active {
    box-shadow: 0 2px 6px rgba(12, 36, 84, .12) !important;
}

/* ---------------------------------------------------------------- inputs */
.form-input,
.form-control,
.input-newsletter,
.select2-container--default .select2-selection--single {
    box-shadow: inset 0 2px 5px rgba(12, 36, 84, .06), 0 1px 0 rgba(255, 255, 255, .8);
    transition: transform .2s ease, box-shadow .25s ease;
}

.form-input:focus,
.form-control:focus,
.input-newsletter:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 3px rgba(12, 36, 84, .05), 0 0 0 3px rgba(214, 37, 142, .14), 0 8px 18px rgba(12, 36, 84, .10);
}

/* -------------------------------------------------------------- dropdowns */
/* 3D cards create their own stacking contexts — keep every popup above them */
.dropdown,
.dropdown-toggle,
.dropdown-menu,
.dropdown-menu.show,
.dropdown-item,
.select2-container,
.select2-container--open,
.select2-dropdown,
.select2-results,
.bootstrap-select .dropdown-menu,
.btn-group,
.popover,
.tooltip,
.ui-datepicker {
    z-index: 10000 !important;
}

.dropdown-menu,
.dropdown-menu.show,
.select2-container--open,
.select2-dropdown,
.popover {
    z-index: 10050 !important;
}

.box-filters-job,
.box-border,
.box-view-type,
.form-find,
.main-menu > li,
.header {
    position: relative;
    z-index: 10020;
}

/* ------------------------------------------- compact scrollable option lists */
/* Country, city and currency menus can hold hundreds/thousands of entries.
   Cap their height so the rest of the page stays usable and scroll instead. */
.dropdown-menu,
.dropdown-menu.show,
.currency-switch .dropdown-menu,
.language-switcher-footer .dropdown-menu,
.mobile-menu-switcher .sub-menu {
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.select2-container--default .select2-results > .select2-results__options,
.select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

/* ---------------------------------------------------------------- header */
.header {
    padding: 16px 0 !important;
    box-shadow: 0 6px 24px rgba(12, 36, 84, .08);
}

.header .main-menu li {
    padding: 6px 18px !important;
}

.header .main-header .header-right .btn {
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-logo img {
    transform: translateZ(20px);
}

.main-menu > li {
    transform-style: preserve-3d;
}

@media (min-width: 992px) {
    .sub-menu {
        box-shadow: 0 22px 44px rgba(12, 36, 84, .18);
        transform-origin: top center;
        transform: translateY(-4px);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
    }

    .main-menu > li:hover > .sub-menu,
    .main-menu > li:focus-within > .sub-menu {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ------------------------------------------------------------ newsletter */
.box-newsletter {
    transform-style: preserve-3d;
    box-shadow: 0 22px 54px rgba(5, 38, 78, .24);
}

.box-newsletter > .row > div:first-child img,
.box-newsletter > .row > div:last-child img {
    transform: translateZ(34px) rotateY(-4deg);
    transition: transform .4s ease;
}

.box-newsletter > .row > div:last-child img {
    transform: translateZ(34px) rotateY(4deg);
}

.box-newsletter:hover > .row > div:first-child img {
    transform: translateZ(52px) rotateY(-1deg) translateY(-4px);
}

.box-newsletter:hover > .row > div:last-child img {
    transform: translateZ(52px) rotateY(1deg) translateY(-4px);
}

/* --------------------------------------------------------------- banners */
.box-we-hiring,
.box-related-job,
.box-company-profile,
.box-info-contact {
    transform-style: preserve-3d;
    box-shadow: var(--d3-rest);
}

.box-we-hiring:hover,
.box-related-job:hover,
.box-company-profile:hover {
    transform: translateY(-5px);
    box-shadow: var(--d3-hover);
}

.bg-homepage1,
.bg-breadcrumb {
    transform: translateZ(-1px);
}

/* ---------------------------------------------------------------- footer */
footer {
    box-shadow: inset 0 2px 0 rgba(214, 37, 142, .18);
}

/* --------------------------------------------------- category icons only */
/* No tile/background — just the glyph with a soft drop shadow */
.item-logo img,
.job-category-icon img,
.box-swiper .item-logo img {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(12, 36, 84, .3)) !important;
}

/* Replace the missing icon-font glyph with a clean CSS chevron */
.has-children > a:after {
    content: '' !important;
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    position: static !important;
    font-family: inherit !important;
    font-size: 0 !important;
    opacity: .7;
}

.has-children > a .arrow-down {
    display: none;
}

/* ---------------------------------------------- job cards (clean system) */
/* Spacing scale: 8 / 12 / 16 / 20 / 24 — no ad-hoc margins */
.job-of-the-day .card-grid-2.items,
.jobs-listing .card-grid-2.item-grid {
    background: #fff;
    border: 1px solid #e6eaf3;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 16px rgba(12, 36, 84, .06);
}

.job-of-the-day .card-grid-2.items:hover,
.jobs-listing .card-grid-2.item-grid:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 37, 142, .45);
    box-shadow: 0 18px 36px rgba(12, 36, 84, .14);
}

/* Magenta gradient hairline, same transparent pattern as the rest of the UI */
.job-of-the-day .card-grid-2.items::before,
.jobs-listing .card-grid-2.item-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    height: 4px;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(214, 37, 142, 1), rgba(214, 37, 142, .35));
    z-index: 3;
}

.job-of-the-day .featured-job-item.items::before,
.jobs-listing .featured-job-item.item-grid::before {
    background: linear-gradient(90deg, rgba(16, 185, 129, 1), rgba(214, 37, 142, .55));
}

/* Company header */
.job-of-the-day .card-grid-2-image-left,
.jobs-listing .card-grid-2-image-left {
    align-items: center;
    gap: 12px;
    padding: 20px 20px 12px;
}

.job-of-the-day .card-grid-2-image-left .image-box,
.jobs-listing .card-grid-2-image-left .image-box {
    max-width: 52px;
    min-width: 52px;
    padding-right: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(12, 36, 84, .12);
}

.job-of-the-day .card-grid-2-image-left .image-box img,
.jobs-listing .card-grid-2-image-left .image-box img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #f7f8fb;
    border-radius: 12px;
}

.job-of-the-day .card-grid-2-image-left .right-info .name-job {
    color: #05264E;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.job-of-the-day .card-grid-2-image-left .location-small {
    color: #7b879b;
    font-size: 12px;
    line-height: 18px;
}

/* Body */
.job-of-the-day .card-grid-2.items .card-block-info,
.jobs-listing .card-grid-2.item-grid .card-block-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 20px 20px;
}

.job-of-the-day .card-grid-2.items h6 a {
    color: #05264E;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.job-of-the-day .card-grid-2.items h6 a:hover {
    color: #D6258E;
}

.job-of-the-day .card-grid-2.items .card-briefcase {
    background: #fdf0f8;
    border-radius: 999px;
    color: #D6258E;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

.job-of-the-day .card-grid-2.items .card-time {
    color: #8a96aa;
    font-size: 11px;
    padding-left: 12px;
}

.job-of-the-day .card-grid-2.items .job-description {
    color: #6b7793;
    font-size: 12.5px;
    line-height: 1.6;
    min-height: auto;
    margin: 12px 0 0;
    -webkit-line-clamp: 2;
}

.job-of-the-day .card-grid-2.items .btn-grey-small {
    background: #f7f8fb;
    border: 1px solid #e7ebf2;
    border-radius: 8px;
    color: #5b6780 !important;
    font-size: 11px;
    padding: 5px 9px;
}

.job-of-the-day .card-grid-2.items .btn-grey-small:nth-child(n+3) {
    display: none;
}

/* Footer: salary panel + action, pinned to the bottom of the card */
.job-of-the-day .card-grid-2.items .card-2-bottom.mt-15,
.jobs-listing .card-grid-2.item-grid .card-2-bottom.mt-20 {
    margin-top: auto;
    padding-top: 16px;
}

.job-of-the-day .card-grid-2.items .card-2-bottom .mt-3 {
    margin-top: 12px !important;
}

.job-of-the-day .card-grid-2.items .salary-information,
.jobs-listing .card-grid-2.item-grid .salary-information {
    background: #fdf4fa;
    border: 1px solid #f9dcee;
    border-radius: 10px;
    justify-content: flex-start;
    padding: 12px;
    text-align: left;
}

.job-of-the-day .card-grid-2.items .card-text-price {
    color: #D6258E;
    font-size: 13px;
    font-weight: 700;
}

.job-of-the-day .card-grid-2.items .btn-apply-now {
    background: linear-gradient(135deg, #D6258E, #b81e78) !important;
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
    padding: 11px 16px;
    width: 100%;
}

/* Closed / Applied are statuses, not buttons */
.job-status-badge {
    border-radius: 10px;
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 11px 16px;
    text-align: center;
    width: 100%;
}

.job-status-badge.closed {
    background: #f3f4f7;
    border: 1px solid #e6e9ef;
    color: #8a93a3;
}

.job-status-badge.applied {
    background: #eef8f3;
    border: 1px solid #d3eee1;
    color: #12855c;
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 767px) {
    .card-grid-1:hover,
    .card-grid-2:hover,
    .card-grid-3:hover,
    .card-list-4:hover,
    .card-image-top:hover,
    .box-pricing-item:hover,
    .job-box.card:hover,
    .box-we-hiring:hover {
        transform: translateY(-4px);
    }

    .banner-imgs .block-1,
    .banner-imgs .block-2,
    .box-newsletter img {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .card-grid-1, .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5, .card-grid-6,
    .card-grid-border, .card-list-4, .card-image-top, .card-category, .card-review-1,
    .card-bg-white, .card-briefcase, .card.profile-content-page, .box-pricing-item,
    .box-step, .box-trust, .item-logo, .job-box.card,
    .banner-imgs .block-1, .banner-imgs .block-2, .banner-imgs .block-3, .banner-imgs .block-4,
    .box-newsletter img, .sub-menu,
    .card-grid-2-image img, .card-grid-2-image-left img, .card-grid-3-image img,
    .card-image-top .image, .item-logo img {
        transform: none !important;
    }
}
