/* Tiêu đề nổi */
.banner-title {
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section tìm việc */
.section-job-search {
    border: 1px solid #ff0000;
    background: #fff;
    margin-top: -80px;
    padding: 1rem;
    z-index: 9;
    position: relative;
}

#locationPopup ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

#locationPopup ul li:hover {
    background-color: #f8f9fa;
}

#locationPopup input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #CF1B36; /* Màu xanh success Bootstrap */
    cursor: pointer;
}

#locationPopup label {
    margin-bottom: 0;
    font-size: 14px;
    flex: 1;
    cursor: pointer;
}

#locationPopup input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #CF1B36;
}

#locationPopup .form-control-sm {
    font-size: 14px;
    padding: 5px 10px;
}

#locationPopup .fw-bold {
    font-size: 14px;
}

#locationPopup .text-secondary {
    color: #6c757d !important;
}

#locationPopup .btn-success {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 20px;
}

#locationPopup a.text-success {
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* Optional: Scrollbar style */
#locationPopup ul {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

#locationPopup ul::-webkit-scrollbar {
    width: 6px;
}

#locationPopup ul::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

@media (max-width: 1024px) {
    .section-job-search {
        margin-top: 0px;
    }
}

.input-group-lg>.form-control, .input-group-lg>.form-select, .input-group-lg>.input-group-text,.btn-lg {
    font-size: 1rem;
    border-radius: 30px;
}

/* Thanh scroll ngành nghề */
.scroll-container {
    scroll-behavior: smooth;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.text-shadow {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.job-listing-section {
    background-color: #f8f9fa;
}
.section-title {
    text-align: center;
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 2rem;
}
.filter-bar .btn {
    margin-right: 0.5rem;
    border-radius: 20px;
}
.filter-bar .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.filter-bar .btn-light {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    color: #495057;
}
.section-title {
    color: #e70014;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.job-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s ease;
    height: 100%;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.job-card-title,
.job-card-company,
.job-title,
.job-company-name{
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Chỉ hiển thị 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: calc(1.3em * 2); /* dòng cao 1.3em * 2 dòng */
    word-break: break-word;
    white-space: normal;
}

.job-company-name {
    margin-top: 5px;
    font-size: 13px;
}

.job-card-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: solid 1px #ccc;
    margin-right: 8px;
}

.job-card-header {
    display: flex;
    align-items: start;
    margin-bottom: 12px;
}

.job-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.job-card-company {
    font-size: 14px;
    color: #999;
    margin-bottom: 0;
}

.btn-wishlist {
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
}

.btn-wishlist:hover {
    color: #e70014;
}

.job-card-footer {
    font-size: 14px;
    color: #666;
}

.job-card-salary {
    color: #e70014;
    font-weight: 500;
}

.filter-bar button.active,
.filter-bar .btn-danger {
    color: #e70014 !important;
    border: none;
}


.filter-bar .btn-sm,
.filter-bar .filter-tag{
    background: rgba(61, 61, 61, 0.1);
    border-radius: 16px;
    font-size: 14px;
    color: #000;
    font-weight: normal;
}

.filter-bar .filter-tag.active{
    background: #CF1B36;
    color: #ffffff !important;
}


.custom-pagination .page-link {
    padding: 6px 12px;
    margin: 0 4px;
    color: #333;
}

.page-link{
    border: none;
    background: none;
}

.custom-pagination .page-item.active .page-link {
    color: #e70014 !important;
    background: none;
}


.logo-company{
    width: 52px;
    aspect-ratio: 1 / 1;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.card h6, .card p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.card h6.text-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2); /* 2 dòng */
}

.card img {
    object-fit: contain;
}


.section-heading {
    color: #343a40;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Gạch chân màu đỏ cho tiêu đề */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #d93845; /* Màu đỏ của thương hiệu */
}

/* Box cho các con số ấn tượng */
.stat-box {
    color: white;
    padding: 12px;
    gap: 2px;
    height: 83px;
    background: linear-gradient(180deg, #E6314C 0%, #9A2133 100%);
    box-shadow: 0px 4px 24px rgba(61, 61, 61, 0.2);
    border-radius: 12px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.end-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px;
    gap: 2px;
    height: 83px;
    background: linear-gradient(90deg, #EFAAAA 0%, rgba(137, 98, 98, 0) 100%);
    opacity: 0.5;
    border-radius: 12px;
}

.end-box-reverse{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px;
    gap: 2px;
    height: 83px;
    background: linear-gradient(270deg, #EFAAAA 0%, rgba(137, 98, 98, 0) 100%);
    opacity: 0.5;
    border-radius: 12px;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
}

.stat-box p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.stat-box .icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Box cho cộng đồng */
.community-box {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.community-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
}

.community-box p {
    font-size: 1.2rem;
    font-weight: 600;
}

.community-box .btn-custom {
    background-color: #d93845;
    border-color: #d93845;
    color: white;
    font-weight: 500;
}

.community-box .btn-custom:hover {
    background-color: #b02a37;
    border-color: #b02a37;
}

.section-with-triangles {
    position: relative;
    overflow: hidden; /* ẩn phần thừa */
}

/* Tam giác bên trái */
.section-with-triangles::before,
.section-with-triangles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 320px;
    background: linear-gradient(126deg, #CF1B36 10%, #f7b6bf 50%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask-image: linear-gradient(126deg, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(126deg, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
    filter: blur(8px);
    opacity: 0.6;
    transition: all 0.6s ease;
}

@media (max-width: 768px) {
    .section-with-triangles::before,
    .section-with-triangles::after {
        width: 140px;
        height: 220px;
        filter: blur(6px);
        opacity: 0.4;
    }

    .section-with-triangles::before {
        top: -40px;
        left: -30px;
    }

    .section-with-triangles::after {
        bottom: -40px;
        right: -30px;
    }
}


/* Góc trái trên */
.section-with-triangles::before {
    top: 0;
    left: 0;
}

/* Góc phải trên (tam giác lật ngược lại) */
.section-with-triangles::after {
    top: 0;
    right: 0;
    transform: scaleX(-1); /* lật ngang */
}


.hr-fade {
    height: 2px;
    border: none;
    background: linear-gradient(to right, transparent, #CF1B36, transparent);
    margin: 2rem 0; /* tuỳ chỉnh khoảng cách trên dưới nếu cần */
}


.section-priority-job .container {
    background: linear-gradient(90deg, #FEF1F1 0%, #FEE3E3 20%, #FEE3E3 80%, #FEF1F1 100%);
    border-radius: 20px;
    padding: 20px;
}

.section-priority-job .text-uppercase{
    font-style: normal;
    font-weight: 900;
    font-size: 48px;
    line-height: 130%;
    text-align: center;
    letter-spacing: 0.02em;

    background: linear-gradient(161.91deg, #CF1B36 12.15%, #DF475E 49.27%, #CF1B36 87.85%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 4px 8px rgba(58, 58, 58, 0.2);
}

.priority-left {
    background: linear-gradient(181deg, #aa001a 0%, #ffd0d7 100%);
    border-radius: 20px 20px 0px 0px !important;
}

.job-card {
    transition: all 0.2s;
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: #CF1B36;
}

.blog-section .card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.blog-section .card:hover {
    transform: translateY(-5px);
}
.blog-section .card-img-top {
    height: 180px;
    object-fit: cover;
}
.blog-section .card-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}
.blog-section .card-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Để giới hạn tiêu đề 2 dòng */
.line-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Bo tròn cho ảnh */
.blog-card img {
    border-radius: 0;
}


.scroll-container {
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

@media (max-width: 576px) {
    .scroll-container {
        padding-bottom: 0.5rem;
    }
}

.btn-wishlist.liked {
    color: #e74c3c; /* Màu hồng/đỏ */
}

a {
    text-decoration: auto;
}

.job-slide.row.g-1 {
    min-height: 600px;
}

.text-truncate {
    display: inline-block; /* hoặc block nếu muốn chiếm cả dòng */
    max-width: 100%; /* hoặc một số cụ thể như 200px */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-item{
    background: #efefef;
    border-radius: 10px;
    padding: 5px;
}

.job-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    min-height: 120px;
    font-size: 0.85rem;
    white-space: normal;
}

.job-item i {
    font-size: 1.5rem; /* icon nhỏ lại */
}

.job-item .fw-bold {
    font-size: 0.85rem;
}

.job-item small {
    font-size: 0.75rem;
}

.line-after {
    display: flex;
    align-items: center;
    gap: 10px;
}

.line-after::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #ccc;
}
