#container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ======================SEARCH SECTION======================== */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px;
}

.header-section {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: white;
    top: 0;
    z-index: 100;
    position: sticky !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-section .company-name {
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Main search bar */
.main-search-bar {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    width: 1200px;
}

@media (max-width: 1024px) {
    .main-search-bar {
        flex-direction: row;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .location-select-wrapper {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .main-search-bar {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        flex-wrap: nowrap;
    }

    .location-select-wrapper {
        display: flex;
        width: 100%;
        margin-top: 8px;
        gap: 6px;
    }

    .location-select {
        flex: 1;
        min-width: 0;
        /* tránh bị tràn */
    }

    .location-icon {
        font-size: 16px;
    }

    .custom-tooltip {
        max-width: 95vw !important;
        width: 95vw !important;
        min-height: auto !important;
        max-height: 300px;
        /* bớt cao lại */
        font-size: 14px;
        /* chữ nhỏ gọn hơn */
    }
}

.search-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    z-index: 1;
}

.main-search-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    padding-left: 36px !important;
}

.main-search-input:focus {
    border: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.location-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 150px;
    max-width: 350px;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.department-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 150px;
    max-width: 350px;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.location-select-wrapper .ant-select-selector:hover,
.department-select-wrapper:hover {
    cursor: pointer;
}

.location-icon {
    position: absolute;
    left: 8px;
    color: #666;
    z-index: 1;
}

.location-select {
    min-width: 140px;
}

.location-select .ant-select-selector {
    border: none !important;
}

.search-btn {
    color: #fff;
    background: #1e7e34;
    border-color: #1e7e34;
    min-width: 100px;
}

.search-btn:hover {
    color: #fff !important;
    background: #1c7430 !important;
    border-color: #1c7430 !important;
}

/* Content Section */
.job-search-container {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0;
}

/* Viền và nền của checkbox khi được chọn */
.ant-checkbox-checked .ant-checkbox-inner {
    background-color: #1e8530;
    border-color: #1e8530;
}

/* Khi hover trên phần bao checkbox */
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner {
    border-color: #166c27 !important;
}

/* Nếu checkbox đang được check và hover */
.ant-checkbox-wrapper:hover .ant-checkbox-checked .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-checked .ant-checkbox-inner {
    background-color: #166c27 !important;
    border-color: #166c27 !important;
}

.sort-select .ant-select-arrow {
    color: #1e8530;
}

.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
    background-color: rgba(30, 133, 48, 0.1);
    color: #1e8530;
}

.ant-select-dropdown .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
    background-color: rgba(30, 133, 48, 0.08);
}

.apply-btn {
    color: #fff;
    background: #1e7e34;
    border-color: #1e7e34;
    min-width: 100px;
}

.apply-btn:hover {
    color: #fff !important;
    background: #1c7430 !important;
    border-color: #1c7430 !important;
}

/* =============FOOTER============ */
.footer {
    background-color: #ffffff !important;
    text-align: center;
    padding: 40px 20px 20px;
    font-size: 14px;
    color: #333;
}

.company-name-footer {
    font-weight: bold;
}

.footer-top p {
    margin: 4px 0;
}

.footer-bottom {
    color: #888;
    font-size: 13px;
}

.footer-divider {
    margin: 24px 0;
}

.job-page {
    min-height: calc(100vh - 181px);
    background-color: #f3f5f7;
}

/* ============ ANTDESIGN VUE CUSTOM MORE ======================= */
.ant-select:hover .ant-select-selector,
.ant-select-focused .ant-select-selector {
    border-color: #1e8530 !important;
}

.ant-select-focused .ant-select-selector {
    border-color: #1e8530 !important;
    /* box-shadow: 0 0 0 2px rgba(30, 133, 48, 0.2) !important; */
    box-shadow: none !important;
}

.ant-input:hover,
.ant-input-affix-wrapper:hover {
    border-color: #1e8530 !important;
}

.ant-input:focus,
.ant-input-focused,
.ant-input-affix-wrapper-focused {
    border-color: #1e8530 !important;
    outline: none !important;
}

.ant-tag {
    margin-inline-end: 0px !important;
}

.ant-select-selection-overflow-item {
    max-width: 150px !important;
}

/* ============ CUSTOM MORE ======================= */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Tablet (iPad ~ 768px) */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        /* 1 cột full width */
    }
}

/* Phone (mobile < 768px) */
@media (min-width: 640px) and (max-width: 821px) {
    .logo {
        display: none;
    }

    .logo>div {
        display: none;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .tooltip-desktop-only {
        display: none;
    }
}



.jobs-grid .ant-card-body {
    padding: 10px;
    min-height: 105px;
}

.job-listing-cards {
    border: 1px solid #379e48;
    overflow: hidden;
    transition: all 100ms linear;
}

.job-listing-cards:hover {
    border: 1px solid #51ea6a;
    border-left: 3px solid #379e48;
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px -2px rgba(0, 0, 0, 0.16),
        0 3px 6px 0 rgba(0, 0, 0, 0.12),
        0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.full-width-card {
    grid-column: span 2;
}

/* ============================= NEW CUSTOM CSS ====================================== */
.ant-carousel {
    position: relative;
}

.carousel-slide {
    padding: 10px;
}

.job-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s linear;
}

.job-title:hover {
    color: #249d3a !important;
    text-decoration: underline;
}

.ant-carousel .slick-dots {
    bottom: -30px;
}

.ant-carousel .slick-dots li button {
    background: #727272;
}

.ant-carousel .slick-dots li.slick-active button {
    background: #1e8530;
}

.custom-slick-arrow {
    font-size: 30px;
    color: #1e8530;
    transition: ease all 0.3s;
    opacity: 0.6;
    z-index: 1;
}

.custom-slick-arrow:hover {
    color: #379e48;
    opacity: 1;
}

.ant-carousel .slick-prev::before,
.ant-carousel .slick-next::before {
    display: none !important;
    content: '' !important;
}

.clear-btn {
    border-color: #1e8530 !important;
    color: #1e8530 !important;
}

/* Mặc định Ant Design Vue dùng lớp .ant-tooltip-inner */
/* .ant-tooltip-inner {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-radius: 4px;
    padding: 8px;
} */

/* CSS */
.custom-tooltip .ant-tooltip-arrow::before {
    background-color: #fff !important;
}

/* Nếu muốn đổi cả background tooltip */
.custom-tooltip .ant-tooltip-inner {
    background-color: #fff !important;
}

/* Ẩn mặc định */
.desktop-only {
    display: none;
}

.job-title-mobile {
    display: none;
}

/* Hiện khi màn hình >= 1024px (laptop/desktop) */
@media (min-width: 1024px) {
    .desktop-only {
        display: flex;
    }
}

@media (max-width: 639px) {
    .css-5sk4qp {
        max-width: 100% !important;
    }

    .css-5sk4qp.ant-row {
        display: block !important;
    }

    .tooltip-desktop-only {
        display: none;
    }

    .job-title-mobile {
        display: block;
    }

    .main-search-bar {
        display: none;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .logo>div {
        display: none;
    }
}

/* .custom-tooltip .ant-tooltip-inner {
    position: absolute !important;
    right: 0;
    max-width: 30% !important;
} */