.job-tag { 
    display: inline-block; 
    background: #f1f3f5; 
    color: #333; 
    border-radius: 3px; 
    padding: 2px 8px; 
    font-size: 0.85em; 
    margin: 2px 2px 2px 0; 
}

.job-company-logo { 
    height: 36px; 
    width: 36px; 
    object-fit: contain; 
    border-radius: 6px; 
    background: #fff; 
    border: 1px solid #eee; 
}
.job-quick-info { 
    font-size: 0.95em; 
    color: #666; 
}
.job-apply-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 24px;
    border: 2px solid #e53935;
    background: #fff;
    border-radius: 8px;
    color: #e53935;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}
.job-apply-btn:hover {
    background: #e53935;
    color: #fff;
}
#job-detail-panel {
    position: sticky;
    top: 68px;
}
.filter-jobs { 
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 8px;
}
.filter-jobs button {
    border-color: #A6A6A6;
    background-color: #fff;
}
.filter-jobs button:hover {
    border-color: #000000;
}
.filter-jobs button.active {
    border-color: #e53935;
    color: #e53935;
}
.main-title {
    text-align: center;
    color: #d0021b;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 36px 0 18px 0;
}
.subtitle {
    text-align: center;
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 32px;
}
.job-list {
    max-width: 900px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}
.job-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.right-job-content {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}
.job-card, .job-detail {
    border-radius: 10px;
    margin-top: 18px; 
}

.job-card img {
    height: 50px;
    width: 50px;
}
.job-detail img {
    height: 80px;
    width: 80px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d0021b;
    margin-bottom: 8px;
}
.job-company {
    color: #444;
    font-size: 1rem;
    margin-bottom: 6px;
}
.job-location {
    color: #888;
    font-size: 0.97rem;
    margin-bottom: 10px;
}
.job-link {
    margin-top: auto;
    color: #fff;
    background: #d0021b;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.job-link:hover {
    background: #a90016;
}
.section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 18px 0;
    color: #d0021b;
}
.articles {
    max-width: 900px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}
.article-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 18px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #d0021b;
    margin-bottom: 8px;
}
.article-link {
    color: #d0021b;
    text-decoration: none;
    font-size: 0.97rem;
}
.tile-company > div{
    padding-top: 20px;
    height: 250px;
    border-radius: 8px;
    border: 1px solid #dedede;
    background: linear-gradient(167deg, #F8F8F8 2.38%, #FFF 70.43%);
}
.tile-company .company-city {
    padding: 10px 20px;
    background-color: #f7f7f7;
}
.company-name {
    color: unset;
}
.company-name:hover {
    text-decoration: underline;
}
.job-search select, .job-search input {
    height: 50px;
}

/* Company Job */
.company-jobs-section h2 {
    display: inline-block;
    width: auto;
}
.company-jobs-section img {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    height: 76px;
    width: 76px;
    border-radius: 20px;
}
.company-jobs-section .company-job-item:hover, .tile-company .card:hover {
    border-color: #FF4500 !important;
}
.company-job-item {
    
}
/* Trạng thái mặc định của card */
.suggested-job-card {
    border: 1px solid #f1f3f5 !important; /* Độ dày 1px mảnh chuẩn UI */
    transition: all 0.25s ease-in-out; /* Tạo hiệu ứng đổi màu mượt mà, không bị giật */
}

/* Trạng thái khi Hover */
.suggested-job-card:hover {
    /* Sử dụng mã rgba để màu đỏ dịu và có cảm giác mảnh hơn, hoặc #e53935 nguyên bản */
    border-color: rgba(229, 57, 53, 0.6) !important; 
    cursor: pointer;
    /* Thêm đổ bóng nhẹ màu đỏ để tạo hiệu ứng nổi khối thay vì làm dày viền */
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.08) !important;
}

.gradient-light-grey-background {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
.gradient-light-grey-background:before {
    content: " ";
    width: 120vw;
    position: absolute;
    left: -12%;
    top: 0;
    height: 400px;
    background: linear-gradient(270.08deg, #C74634 7.4%, #121212 54.81%);
    border-radius: 0 0 70% 50%;
    z-index: -1;
}

/* Similar Jobs Grid */
.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.job-card-similar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 0;
}

.job-card-similar:hover {
    box-shadow: 0 4px 24px rgba(208, 2, 27, 0.12);
    border-color: #e53935;
    transform: translateY(-2px);
}

.border-bottom-dashed {
    border-bottom: 1px dashed #dedede;
}

/* Đảm bảo flexbox item không bị overflow khi dùng text-truncate */
.min-w-0 {
    min-width: 0;
}

/* Khống chế tiêu đề công việc hiển thị tối đa 2 dòng nếu không muốn dùng text-truncate 1 dòng */
.suggested-job-card .job-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 2.4em; /* Khóa chiều cao cố định để các card bằng nhau */
    line-height: 1.2em;
}

.company-profile-container {
    width: 100%;
    margin: 0;
    height: 100%;
    gap: 186px;
    align-items: flex-end !important;
}

.company-profile-header {
    padding: 37px 172px 47px 37px;
    overflow: hidden;

    min-height: 277px;
    margin: 0 82px;
    background: url("/static/images/BG HEADER.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 20px !important;
}

.company-profile-info {
    margin: 0;
    padding: 0;
}

.company-profile-breadcrumb {
    font-weight: 500;
    font-size: 17px;
    line-height: 28px;
    color: #707070;
    margin-bottom: 33px;
}

.company-profile-breadcrumb a {
    color: #707070;
}

.company-profile-breadcrumb a:hover {
    text-decoration: underline;
}

.company-detail-info {
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    color: #171717;
    margin: 13.5px 0;
    height: 100%;
}

.company-detail-info-title {
    font-weight: 800;
    font-size: 37px;
    line-height: 45px;
    color: #171717;
    min-height: 45px;
}

.company-detail-info-profile {
    min-height: 50px;
    gap: 10px;
}

.company-detail-meta {
    gap: 16px;
}

.company-detail-meta span {
    gap: 10px;
}

.company-detail-meta span i {
    color: #171717;
    font-size: 15px;
}

.company-detail-verified {
    color: #16a34a;
    font-weight: 600;
    font-size: 14px;
    flex-basis: 100%;
    gap: 10px;
}

.company-detail-unverified {
    color: #d97706;
    font-weight: 600;
    font-size: 14px;
    flex-basis: 100%;
    gap: 10px;
}

.company-profile-follow {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 0;
}

.company-profile-follow form,
.company-profile-follow div {
    color: #707070;
}

.company-profile-follow-hint {
    text-align: center;
    margin-top: 2px;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 4px;
    font-weight: 500;
    font-size: 11px;
    line-height: 20px;
    color: #707070;

}

.company-profile-follow-hint:hover {
    text-decoration: underline;
}

.company-profile-follow-hint.subscribed {
    color: #FF4500;
}

.company-profile-follow-hint.subscribed:hover {
    color: #FF4500;
}

.company-profile-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #707070;
    border: 1.5px solid #707070;
    height: 43px;
    padding: 10px 35px;
    width: 167px;
    white-space: nowrap;
}

.company-profile-follow-btn:hover {
    color: #FF4500;
    border-color: #FF4500;
}

.company-profile-follow-btn.is-following {
    background: #fff;
    color: #FF4500;
    border-color: #FF4500;
}

.company-profile-follow-btn.is-following:hover {
    color: #707070;
    border: 1.5px solid #707070;
}

.company-profile-stats {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px 0;
    margin: 15px 82px 0 82px;
    border: 1px solid #E9E9E9;
    height: 59px;
}

.company-profile-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
    padding: 0 16px;
    border-right: 1px solid #e5e7eb;
}

.company-profile-stat-item:last-child {
    border-right: none;
}

.company-profile-stat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.company-profile-stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-profile-stat-label {
    font-size: 12px;
    color: #707070;
    font-weight: 500;
}

.company-profile-stat-value {
    font-size: 14px;
    color: #707070;
    font-weight: 700;
}

body > div.main-content > div.text-light > div.company-profile-stats > div:nth-child(4) > div > span.text-warning {
    color: #FF4500 !important;
}

.company-detail-content {
    margin-top: 20px;
}

.company-detail-content .row {
    gap: 0;
}

.company-detail-content .col-lg-8 {
    padding-right: 24px;
}

.company-detail-content .col-lg-4 {
    padding-left: 0;
}

.list-company-detail-container {
    display: grid;
    grid-template-columns: 1fr 462px;
    gap: 30px;
    /* max-width: 1348px; */
    margin: 0 82px;
}

.company-jobs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.company-jobs-title {
    font-weight: 500;
    font-size: 26px;
    line-height: 20px;
    color: #171717;
    margin: 0;
}

.company-jobs-desc {
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: #707070;
    margin: 11px 0 0;
}

.company-jobs-filter-select {
    padding: 9px 36px 9px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.company-jobs-filter-select:hover {
    border-color: #9ca3af;
}

.company-job-item {
    margin-bottom: 16px;
}

.company-job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-job-card:hover {
    border-color: #FF4500;
    box-shadow: 0 2px 12px rgba(255, 69, 0, 0.1);
}

.company-job-card-top {
    display: flex;
    gap: 16px;
}

.company-job-card-left {
    flex-shrink: 0;
}

.company-job-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: #f3f4f6;
}

.company-job-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.company-job-top {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.company-job-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-job-title {
    font-weight: 700;
    font-size: 19px;
    line-height: 25px;
    color: #171717;
    text-decoration: none;
}

.company-job-title:hover {
    color: #FF4500;
}

.company-job-company {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-job-verified {
    color: #16a34a;
    font-size: 14px;
}

.company-job-location {
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-job-location i {
    font-size: 12px;
    color: #9ca3af;
}

.company-job-distance {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9ca3af;
    margin-left: 30px;
}

.company-job-save {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #FF4500;
    padding: 4px;
}

.company-job-save:hover {
    color: #FF4500;
}

.company-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.company-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.company-job-tag i {
    font-size: 11px;
}

.company-job-tag-blue {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.company-job-tag-green {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.company-job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #707070;
}

.company-job-skills span:not(:last-child)::after {
    content: "·";
    margin-left: 4px;
    color: #707070;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
}

.company-job-divider {
    height: 2px;
    background: #e5e7eb;
    margin: 4px 0;
}

.company-job-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-job-salary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #FF4500;
}

.company-job-salary i {
    font-size: 14px;
}

.company-job-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-job-apply-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #FF4500;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.company-job-apply-btn:hover {
    background: #e63e00;
}

.company-job-save-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: #FF4500;
    border: 1.5px solid #FF4500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.company-job-save-btn:hover {
    background: rgba(255, 69, 0, 0.05);
}

.company-sidebar {
    background: #fff;
    border: 1px solid #E9E4DE;
    box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.1);
    border-radius: 22px;
    padding: 40px;
    width: 100%;
}

.company-sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.company-sidebar-name {
    display: block;
    text-decoration: none;
    font-weight: 500;
    font-size: 30px;
    line-height: 34px;
    color: #171717;
}

.company-sidebar-name:hover {
    color: #FF4500;
}

.company-sidebar-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-sidebar-verified-icon {
    width: 34px;
    height: 34px;
}

.company-sidebar-desc {
    font-weight: 500;
    font-size: 17px;
    line-height: 24px;
    color: #707070;
    margin-bottom: 0;
}

.company-sidebar-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    color: #16a34a;
}

.company-sidebar-unverified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    color: #d97706;
}

.company-sidebar-info {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.company-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px solid #E9E9E9;
}

.company-sidebar-row-last {
    border-bottom: none;
}

.company-sidebar-label {
    font-weight: 500;
    font-size: 17px;
    line-height: 25px;
    color: #282828;
}

.company-sidebar-value {
    font-weight: 500;
    font-size: 17px;
    line-height: 25px;
    color: #282828;
    text-align: right;
}

.company-sidebar-map {
    margin-top: 30px;
    position: relative;
}

.company-sidebar-map iframe {
    display: block;
    width: 100%;
    height: 215px;
    border: 0;
    border-radius: 8px;
    pointer-events: auto !important;
    z-index: 999 !important;
    position: relative !important;
}

.company-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.company-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-pagination-btn:hover:not(.company-pagination-active):not(.company-pagination-disabled) {
    border-color: #FF4500;
    color: #FF4500;
}

.company-pagination-active {
    background: #FF4500;
    color: #fff;
    border-color: #FF4500;
}

.company-pagination-disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.company-info-section {
    padding: 0;
    margin-top: 30px;
}

.company-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
}

.company-info-title {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin: 0;
}

.company-info-divider {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 20px;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 10px;
}

.company-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13.5px 15px;
}

#company-info > div > div > div:nth-child(-n+3) {
    margin-bottom: 27px;
}

.company-info-grid {
    position: relative;
}

.company-info-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-1px);
}

#company-info > div > div > div:nth-child(2) {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

#company-info > div > div > div:nth-child(5) {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.company-info-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-info-icon i {
    font-size: 20px;
    color: #FF4500;
}

.company-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-info-label {
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    color: #707070;
}

.company-info-value {
    font-weight: 600;
    font-size: 15px;
    line-height: 15px;
    color: #2B2B2B;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .company-profile-header {
        padding: 30px 40px 40px 30px;
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .company-profile-header {
        padding: 24px 20px 30px 20px;
        margin: 0 16px;
    }
}