* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

html,
body{
    height: 100%;
}

body>.wrapper,
body>.wrapper>.content-wrapper {
    min-height: 100%;
    display: flex;
    flex: 1;
}

body>.wrapper>.content-wrapper {
    padding-top: 1px;
}

body>.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.detail-mode {
    visibility: hidden;
}

body.detail-mode.detail-ready {
    visibility: visible;
}

.main-header {
    background-color: #f6f1e3 !important;
    /* padding: 10px 0; */
    padding-bottom: 0;
    position: relative;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.detail-mode .main-header {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    padding-bottom: 8px;
}

.sticky-filter-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f6f1e3 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    min-height: 10px;
}

.container {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 8px;
    min-height: initial !important;
}

.logo a img {
    height: 40px;
}

.header-title a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
}

.header-title a:hover {
    color: #fb8d00;
}

.language-selector select {
    padding: 5px;
}

.app-store img {
    width: 130px;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Sidebar menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #f5f5f5;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .close-btn {
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    left: -50px;
    color: #fff;
}

.mobile-menu .menu-section {
    margin-top: 16px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: #fb8d00;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .mobile-menu-item {
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    display: inline-flex;
    padding-left: 12px;
    padding-right: 12px;
    text-align: left;
    width: 100%;
    margin: 4px 0;
}

.mobile-menu .mobile-menu-item i.fa {
    display: inline-block;
    font-size: 12px;
}

.new-arrival-count-label {
    font-size: 12px;
    font-weight: 400;
}

body .content-wrapper .container {
    padding-bottom: 0;
}

body .content-wrapper .container .box {
    padding: 0;
}

#job-list-boxes .job-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

#job-list-boxes .job-box-header {
    margin-bottom: 15px;
}

#job-list-boxes .job-box-header h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

#job-list-boxes .job-box-body p {
    margin-bottom: 10px;
}

#job-list-boxes .job-box-body strong {
    font-weight: bold;
}

.attributes-wrapper {
    position: relative;
    padding-bottom: 10px;
}

.special-attributes {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    max-height: 7.2em;
    overflow: hidden;
}

#job-list-boxes .job-box .special-attribute {
    background-color: #F0DCAF;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin: 5px;
    margin-left: 0;
    flex-shrink: 0;
}

.special-attributes .see-more-tag {
    display: none;
    color: #fb8d00;
    cursor: pointer;
    position: absolute;
    bottom: -10px;
    left: 32px;
    transform: translateX(-50%);
    font-size: 0.9em;
    text-decoration: underline;
    padding: 10px;
}

.special-attributes.expanded {
    max-height: none;
}

.special-attributes.expanded .see-more-tag {
    display: inline-block;
}

.special-attributes .see-more-tag {
    z-index: 5;
}

#job-list-boxes .job-box .job-actions {
    margin-top: 20px;
    text-align: right;
}

.lbl-icon {
    width: 30px;
}

.lbl-sub-icon {
    width: 13px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.job-working-day-icon {
    width: 25px;
}

.attribute-summary-container,
.card-text,
.field-container {
    position: relative;
}

.attribute-summary,
.field-wrapper {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: normal; */
    word-wrap: break-word;
}

.see-more {
    display: none;
    color: #fb8d00 !important;
    cursor: pointer;
}

.attribute-summary.expanded,
.card-text.expanded,
.field-wrapper.expanded {
    display: block;
}

.attribute-text {
    white-space: pre-line;
}

.appeal-point-img {
    max-width: 100%;
    max-height: 80px;
    padding-left: 1rem;
}

.job-detail-content .thumbnails .appeal-point-img {
    height: 150px;
    width: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.new-job-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

.btn-primary.btn-jobseeker {
    background-color: #fb8d00;
    border-color: #fb8d00;
}

.right-side .btn-primary.btn-jobseeker {
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #fff !important;
}

.btn-primary.btn-jobseeker:hover,
.btn-primary.btn-jobseeker:active {
    background-color: #e67e00 !important;
    border-color: #e67e00 !important;
}

.btn-outline-primary.btn-jobseeker {
    color: #fb8d00 !important;
    border-color: #fb8d00;
}

.btn-outline-primary.btn-jobseeker:hover,
.btn-outline-primary.btn-jobseeker:active {
    border-color: #fb8d00 !important;
    background-color: #fb8d00 !important;
    color: white !important;
}

#select-box-new-arrival {
    max-width: 200px;
}

.job-detail-content {
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.detail-right-side .job-detail-content {
    height: initial;
    overflow-y: initial;
}

.job-detail-top-control-wrap.fixed-top {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #ececec;
    /* z-index: 10000; */
}

.job-detail-top-control-wrap .card {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    position: relative;
}

.flag-wrap,
.icon-wrap {
    position: absolute;
    right: 0;
    top: 0;
}

.base-icon {
    color: #3f3f3f99;
    display: inline-flex;
    padding: 16px 16px 12px 12px;
    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.job-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}

.job-title .title {
    color: #3f3f3f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.job-title .job-detail-workspace {
    color: #3f3f3fcc;
    font-size: 16px;
    line-height: 1.25;
}

.apply-button-wrap,
.attribution-items {
    padding-top: 12px;
}

.apply-button-content {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.button-content {
    align-items: center;
    justify-content: space-between;
    display: flex;
    gap: 12px;
}

.left-block {
    flex: 1;
    max-width: 374px;
    display: flex;
    gap: 7px;
}

.thumbnails {
    background-color: #fff;
    height: 182px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.job-detail-content .card {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    position: static;
    border: initial;
}

.job-detail-content .card-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}

.card-title .text {
    color: #3f3f3f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

h3.card-title .text {
    font-size: 14px;
}

.card-text {
    color: #3f3f3f;
    font-size: 14px;
    line-height: 1.75;
    padding-left: 0.5rem;
}

.job-detail-cards-content i.fa,
.attributes-wrapper i.fa {
    color: #fb8d00;
    font-size: 20px;
}

.job-detail-cards-content i.fa.fa-facebook {
    color: #fff;
}

#job-detail-box .special-attribute {
    background-color: #F0DCAF;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin: 5px;
    margin-left: 0;
    display: inline-block;
}

.jobseeker-form-search {
    gap: 12px;
}

.job-detail-cards-content i.fa.fa-heart-o {
    color: initial;
    font-size: initial;
}

.page-item.active .page-link {
    background-color: #fb8d00;
    border-color: #fb8d00;
}

.page-link,
.page-link:hover {
    color: #fb8d00;
}

.job_attribute_env_checkbox {
    height: 20px;
    width: 20px;
}

.job_attribute_env_radio {
    user-select: none;
    width: 14px;
    height: 14px;
}

input[type="radio"]:checked {
    background-color: #fb8d00;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 50%;
}

.env-attribute-text label {
    font-size: 12px;
}

/* #job-detail-thumbnails {
    display: flex !important;
} */

.job-detail-thumbnails {
    background: #fff;
}

.job-detail-content .appeal-point-img {
    max-width: none;
    width: 100%;
    object-fit: contain;
    max-height: 150px;
    padding-left: 0;
}

.custom-swiper-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    color: white;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.job-detail-content .swiper-button-prev,
.job-detail-content .swiper-button-next {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    background: #00000080;
    color: #fff;
}

.job-detail-content .swiper-button-prev::after,
.job-detail-content .swiper-button-next::after {
    font-size: 16px;
}

#job-detail-thumbnails .custom-swiper-fraction,
#job-detail-thumbnails-mobile .custom-swiper-fraction {
    position: absolute;
    bottom: 10px;
    width: 48px;
    right: 0;
    left: initial;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    display: none;
}

.btn-facebook {
    background-color: #3b5998;
    /* Facebook blue */
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}

.btn-facebook:hover {
    background-color: #2d4373;
    color: white;
}

.video-thumb-wrapper {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 640px;
}

.video-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 14px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    pointer-events: none;
}

.footer-logo {
    max-width: 100%;
    height: auto;
}

body footer.footer img.footer-logo.footer-logo-en {
    height: 58px;
    object-fit: contain;
}

.btn-show-map {
    max-width: 200px;
    justify-content: center;
}

body footer.footer img.footer-logo {
    width: 140px;
}

#job-detail-thumbnails-wrapper {
    align-items: center;
}

@media screen and (min-width: 961px) {
    .main-content {
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        /* justify-content: center; */
        margin: 0 auto;
        /* max-width: 1060px; */
    }

    #job-list-boxes {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 440px;
    }

    .main-content .right-side {
        flex: 1;
        max-width: calc(100% - 464px);
        position: sticky;
        top: 80px;
    }

    .main-content .right-side.detail-right-side {
        flex: 1;
        max-width: 752px;
        position: initial;
        top: initial;
        margin: auto;
    }

    .base-icon {
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {

    .desktop-menu .header-title,
    .desktop-menu .language-selector,
    .desktop-menu .app-store ,
    .desktop-menu-helper {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        display: flex;
        flex-grow: 1;
        /* justify-content: center; */
    }

    .mobile-menu .app-store {
        justify-content: center;
        padding: 0;
    }

    .new-arrival-label {
        display: none;
    }

    .new-arrival-count-label {
        font-size: 10px;
    }

    body>.wrapper>.content-wrapper {
        padding-top: initial;
    }

    /* #job-detail-box {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 20px;
    }

    #job-detail-box .job-detail-content {
        background-color: #fff;
        border-radius: 8px;
        max-height: 90%;
        overflow-y: auto;
        position: relative;
    } */

    #job-detail-box .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        color: #000;
        cursor: pointer;
    }

    #content-wrapper>.container {
        padding: 0 8px;
    }

    #job-detail-thumbnails .custom-swiper-fraction,
    #job-detail-thumbnails-mobile .custom-swiper-fraction {
        display: block;
    }

    .detail-right-side .job-detail-top-control-wrap.fixed-top {
        position: initial;
    }

    .main-content {
        padding-bottom: 20px;
    }

    footer.footer .align-bottom .col-footer-lg {
        display: initial;
    }

    body footer.footer ul {
        /* position: initial; */
        width: 100vw;
        margin-top: 4px;
        text-align: center;
    }

    body .bottom-align-text {
        bottom: -22px;
    }

    .sticky-filter-bar {
        position: initial;
    }

    .container.desktop-menu {
        padding: 0 12px;
        justify-content: space-between;
    }

    .logo a img {
        height: 32px;
    }

    .job-action-link-wrapper {
        display: none !important;
    }
}

@media screen and (max-width: 430px) {
    .table-filter {
        margin: 0 !important;
    }

    .desktop-menu {
        gap: 5px;
    }

    .logo {
        flex-grow: unset;
    }

    .logo a {
        margin-right: 0px;
    }

    .job_attribute_env_radio {
        width: 12px;
        height: 12px;
    }

    .env-attribute-radio {
        padding: 0 4px;
    }
}

@media screen and (max-width: 375px) {
    .table-filter {
        margin: 0 !important;
    }
}

.text-center.navigation .pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.job-action-link-wrapper,
.job-action-link-wrapper-mobile {
    /* background-color: white; */
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
}

.header-action-item-wrapper {
    display: flex;
    gap: 8px;
    justify-content: space-between;

    @media screen and (max-width: 429px) {
        gap: 5px;
    }

    @media screen and (max-width: 352px) {
        width: 100%;
    }
}

.header-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;

    @media screen and (max-width: 429px) {
        gap: 5px;
    }
}

.header-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    position: relative;
}

.header-menu-item.active .header-menu-item-label {
    color: white;
    background-color: #fb8d00;
}

.header-menu-item:hover{
    text-decoration: none;
    color: #fb8d00;
}

.header-menu-item .header-menu-item-icon-wrapper {
    position: relative;
    background-color: #CA9A6A;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-menu-item .header-menu-item-label {
    font-size: 10px;
    padding: 0 2px;
    min-width: 100%;
    text-align: center;
}

.header-menu-item .header-menu-item-icon-wrapper .menu-item-icon {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #fb8d00;
}

.header-menu-item .header-menu-item-icon-custom-wrapper {
    display: inline-block;
    width: 36px;
    height: 36px;
    overflow: hidden;
    position: relative;
}
.header-menu-item .header-menu-item-icon-custom-wrapper .menu-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.header-menu-item .header-menu-item-icon-custom-wrapper .sub-icon,
.header-menu-item .header-menu-item-icon-wrapper .sub-icon {
    font-size: 6px;
    color: white;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    width: 10px;
    height: 10px;
    line-height: 10px;
    top: 0px;
    text-align: center;
    font-weight: 600;
}
.header-menu-item .header-menu-item-icon-custom-wrapper .img-sub-icon-top-right,
.header-menu-item .header-menu-item-icon-wrapper .img-sub-icon-top-right {
    right: 0px;
}
.header-menu-item .header-menu-item-icon-custom-wrapper .sub-icon-top-left,
.header-menu-item .header-menu-item-icon-wrapper .sub-icon-top-left {
    z-index: 1;
    left: 0px;
}

.custom-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.custom-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Checkbox circle */
.input-checkbox-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #ccc;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.input-checkbox-circle:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.input-checkbox-circle:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 7px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* PDF Button States */
.btn-disabled {
    background-color: #909090 !important;
    border-color: #909090 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-disabled:hover {
    background-color: #909090 !important;
    border-color: #909090 !important;
    color: #ffffff !important;
}

.btn-demand {
    background-color: #C46F2F !important;
    border-color: #C46F2F !important;
    color: #ffffff !important;
}

.btn-demand:hover {
    background-color: #b05a1f !important;
    border-color: #b05a1f !important;
    color: #ffffff !important;
}

/* Error highlight for mobile select elements */
.error-highlight {
    animation: errorPulse 0.6s ease-in-out 3;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

@keyframes errorPulse {
    0% {
        transform: scale(1);
        border-color: #dc3545;
    }
    50% {
        transform: scale(1.02);
        border-color: #dc3545;
    }
    100% {
        transform: scale(1);
        border-color: #dc3545;
    }
}

#workingTimeModal .modal-sm {
    width: 440px;
    @media (max-width: 576px) {
        width: auto;
    }
}

#workingTimeItemWrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#workingTimeModal .icon-close-working-time-modal {
    width: 30px;
    cursor: pointer;
}

#workingTimeModal .working-time-item {
    border: 1px solid #cdcdcd;
    padding:7px;
    background-color: #fff;
    border-radius: 3px;
}

#workingTimeModal .working-time-item .title-working {
    font-size: 14px;
    color: #209ec9;
}

#workingTimeModal .working-time-item .title-working span {
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 1px solid #209ec9;
    border-radius: 50%;
}

#filterModal .modal-content {
    top: 0;
}
