.container,.parallax.breadcrumb {
    opacity: 0; /* Ẩn nội dung trước khi JS hoàn thành */
    transition: opacity 0.3s ease-in-out;
}
.js-loaded .container,.js-loaded .parallax.breadcrumb {
    opacity: 1;
}
.recruitment {
    max-width: 53rem;
    margin: 0 auto;
    padding-bottom: 3rem;
}
.text-h1{
    /* font-family: "NTJSans-Regular",sans-serif; */
    font-size: 1.75rem;
    text-transform: uppercase;
    text-align: center;
    /* margin: 0 ; */
    color: #A2041B;
}
.job-card .location{
    max-width: 40rem;
}
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.875rem;
}
/* Wrapper */
.custom-dropdown {
    position: relative;
    width: 220px;
    user-select: none;
}

/* Dropdown Header */
.dropdown-selected {
    border: 1px solid #ccc;
    border-radius: 0.313rem;
    padding: 0.625rem 0.938rem;
    background: #fff;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.dropdown-selected:hover {
    border-color: #A2041B;
}

/* Dropdown Options */
.dropdown-options {
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 0.313rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    list-style: none;
    display: none; /* Ẩn mặc định */
    z-index: 10;
    max-height: 12.5rem; /* Chiều cao tối đa */
    overflow-y: auto; /* Cuộn dọc nếu nội dung quá nhiều */
}

.dropdown-options li {
    padding: 0.938rem; /* Tăng padding để chiều cao lớn hơn */
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.dropdown-options li:hover {
    background-color: #A2041B;
    color: #fff;
}

.search-bar {
    flex: 1;
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem 0.938rem;
    display: flex;
    align-items: center;
    box-shadow: 0 0.125rem 0.775rem rgba(0,0,0,0.1);
}

.search-bar i {
    color: #666;
    margin-right: 0.625rem;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    padding: 0.5rem;
}
.fa-search{
    background-image: url(http://localhost/ngoctham_com/assets/images/icon-search.svg);
    width: 2rem;
    height: 2rem;
}
.search-btn {
    background: #FFFFFF;
    color: #A2041B;
    border: none;
    padding: 0.75rem 1.563rem;
    border-radius: 0.375rem;
    border: 1px solid #A2041B;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}
.search-btn:hover{
    background-color: #A2041B;
    color: #F8C868;
    border: 1px solid #F8C868;
}
.dropdown-selected::after {
    content: '\23F7';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 20%;
    pointer-events: none;
}

.job-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); */
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 0.5rem;
}
.btn-detail{
    font-family: 'NTJSans-Bold',sans-serif;
    font-size: 0.875rem;
    /* font-weight: 700; */
    color: #a2041b;
    border: 1px solid #a2041b;
    padding: 0.625rem 1.875rem;
    text-transform: uppercase;
    border-radius: 0;
    position: absolute;
    right: 1.25rem;
    top: 1.563rem;
}
.btn-detail:hover{
    background-color: #a2041b;
    color: #f8c883;
    border: 1px solid #a2041b;
}
.job-card {
    /* background: white; */
    /* border-radius: 0.5rem; */
    padding: 1.25rem;
    /* box-shadow: 0 0.125rem 0.775rem rgba(0,0,0,0.1); */
    border: 1px solid #3e3d42;
    position: relative;
}

.company-logo {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.938rem;
    background: #e9ecef;
    border-radius: 0.5rem;
}

.job-type {
    color: #666;
    font-size: 0.813rem;
    margin-bottom: 0.5rem;
}
.separator {
    display: inline-block;
    font-size: 0.625rem;
    position: relative;
}
.job-title {
    font-family: "NTJSans-Bold",sans-serif;
    font-size: 1.063rem;
    /* font-weight: bold; */
    color: #3e3d42;
    padding: 0.25rem 0;
    text-transform: uppercase;
    /* margin-bottom: 0.938rem; */
}
.job-title:hover{
    color: #A2041B;
}
.location{
    text-transform: uppercase;
}
.location, .salary {
    display: flex;
    align-items: center;
    gap: 0.313rem;
    padding: 0.25rem 0;
    font-size: 1.063rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0.625rem;
}

.new-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.hot-tag {
    background: #ffebee;
    color: #d32f2f;
}
@media (max-width: 768px) {
    .text-h1{
        font-size: 1.25rem;
    }
    .job-grid{
        padding: 1rem;
    }
    .job-title{
        padding: 0;
    }
    .btn-detail{
        position: relative;
        width: 100%;
        margin-top: 0.75rem;
        top: initial;
        right: initial;
        display: block;
        text-align: center;
    }
    .job-title,.location,.btn-detail,.salary{
        font-size: 0.875rem;
    }
}