/* ═══════════════════════════════════════════════════════════════
   Job Detail Page
   ═══════════════════════════════════════════════════════════════ */

.job-detail-banner {
  background: url(/static/images/BG\ HEADER\ \(1\).png) no-repeat center center / cover;
  height: 416px;
  width: 100%; /* Đảm bảo banner phủ hết chiều rộng khung chứa */
}

.job-detail-page {
    padding: 0;
    margin-top: -128px;
    width: 100%;
}

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

.job-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-detail-card {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  border: 1px solid #E9E4DE;
  
  /* Thêm transition cho box-shadow và transform */
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-detail-card:hover {
  box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.08); /* Giảm độ đậm alpha xuống 0.08 để bóng trông tự nhiên hơn */
  transform: translateY(-4px);                  /* Thêm hiệu ứng nổi nhẹ card lên trên khi hover */
}

.job-detail-card-mt {
    margin-top: 0;
}

.job-detail-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-detail-header-left {
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

.job-detail-header-logo {
    width: 165px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border-radius: 18px;
    border: 2px solid #EEEEEE;
}

.job-detail-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-detail-header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-detail-title {
    font-weight: 800;
    font-size: 30px;
    line-height: 35px;
    color: #171717;
    margin: 0;
}

.job-detail-company {
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
    color: #171717;
    text-decoration: none;
}

.job-detail-company:hover {
    color: #FF4500;
    text-decoration: underline;
}

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

.job-detail-verified-icon {
    width: 26px;
    height: 26px;
}

.job-detail-salary {
    font-weight: 600;
    font-size: 30px;
    line-height: 33px;
    color: #FF4500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.job-detail-login-link {
    color: #FF4500;
    text-decoration: none;
}

.job-detail-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.job-detail-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 60px;
    background: #FF4500;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 23px;
    line-height: 30px;
}

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

.job-detail-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 60px;
    background: #fff;
    border: 1.5px solid #FF4500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 23px;
    line-height: 30px;
    color: #FF4500;
}

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

.job-detail-save-btn .save-job-icon {
    font-size: 16px;
}

/* Khung chứa button */
.job-detail-save-btn.save-job-btn {
  display: inline-flex;
  align-items: center;  /* Căn giữa icon và text theo chiều dọc */
  gap: 8px;             /* Khoảng cách giữa icon và chữ */
}

/* Định dạng kích thước icon 30x30 */
.job-detail-save-btn .save-job-icon {
  font-size: 30px;      /* Kích thước hiển thị của icon */
  width: 30px;          /* Chiều rộng khối icon */
  height: 30px;         /* Chiều cao khối icon */
  line-height: 1;       /* Khống chế khoảng trống dòng thừa của FontAwesome */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.job-detail-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.job-detail-image {
    height: 90px;
    width: 150px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.job-detail-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.job-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-right: 1px solid #E9E9E9;
}

.job-detail-info-item:last-child {
    border-right: none;
}

.job-detail-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-detail-info-icon img {
    width: 43px;
    height: 43px;
}

.job-detail-info-content {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 19px;
    line-height: 32px;
    color: #707070;
}

.job-detail-info-value {
    font-weight: 600;
    color: #171717;
}

.job-detail-info-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
    margin-left: 4px;
}

.job-detail-divider {
    height: 2px;
    background: #E9E9E9;
    margin-bottom: 30px;
}

.job-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 10px;
}

.job-detail-tags-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-detail-tag-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.job-detail-tag-label {
    display: flex;           /* hoặc inline-flex */
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #171717;
    text-align: center;      /* dự phòng */
}

.job-detail-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.job-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    background: #FAFAF8;
    border: 2px solid #E0E0E0;
    border-radius: 26px;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #2B2B2B;
}

.job-detail-tag-second {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    background: #FAFAF8;
    border: 2px solid #E0E0E0;
    border-radius: 26px;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #2B2B2B;
    height: 48px;
}

.job-detail-tag i {
    font-size: 12px;
}

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

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

.job-detail-section {
    margin-bottom: 0;
}

.job-detail-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.job-detail-section-icon {
    width: 41px;
    height: 41px;
}

.job-detail-section-title {
    font-weight: 700;
    font-size: 27px;
    line-height: 30px;
    color: #171717;
    margin: 0;
}

.job-detail-content,
.job-detail-content p,
.job-detail-content p span {
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 33px !important;
    color: #2B2B2B !important;
    margin-bottom: 30px !important;
}

.job-detail-content ul {
    padding-left: 20px;
    margin: 0;
}

.job-detail-content ul li {
    margin-bottom: 8px;
}

.job-detail-content ul li::marker {
    color: #6b7280;
}

.job-detail-actions-row {
    display: flex;
    justify-content: left;
    align-items: center;
}

.job-detail-share-btn,
.job-detail-report-btn {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #707070;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 23px;
    color: #282828;
}

.job-detail-share-btn:hover,
.job-detail-report-btn:hover {
    border-color: #FF4500;
    color: #FF4500;
}

.job-detail-share-dropdown {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.job-detail-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                    /* Tạo khoảng cách giữa icon và chữ */
  padding: 10px 18px;          /* Tăng đệm trong (trên-dưới: 10px, trái-phải: 18px) */
  border: 1px solid #d1d5db;
  border-radius: 8px;          /* Bo góc mềm mại hơn hợp kích thước mới */
  background: #fff;
  color: #374151;
  font-size: 14px;             /* Nâng kích thước chữ từ 12px lên 14px */
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.job-detail-share-link:hover {
    background: #FF4500;
    border-color: #FF4500;
    color: #fff;
}

.job-detail-similar {
    align-items:center;
    margin-top: 75px;
    margin-left: 82px;
    margin-right: 82px;
    min-height: 380px;
}

.job-detail-similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 33px;
}

.job-detail-similar-title {
    font-weight: 700;
    font-size: 28px;
    line-height: 30px;
    color: #171717;
    margin: 0;
}

.job-detail-similar-see-all {
    font-weight: 500;
    font-size: 19px;
    line-height: 20px;
    color: #FF4500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-detail-similar-see-all:hover {
    text-decoration: underline;
}

.similar-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.similar-job-card {
    background: #fff;
    border: 2px solid #EEEEEE;
    border-radius: 23px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 317px;
}

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

.similar-job-top {
    display: flex;
    gap: 23px;
}

.similar-job-logo {
    width: 71px;
    height: 71px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    border: 2px solid #EEEEEE;
}

.similar-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.similar-job-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

/* Thiết lập khung chứa button */
.similar-job-save.save-job-btn {
  padding: 0;                /* Xóa khoảng đệm trong của nút */
  border: none;              /* Xóa viền nếu muốn sát tuyệt đối */
  background: transparent;    /* Giữ nền trong suốt */
  display: inline-flex;
  align-items: flex-start;   /* Căn icon dính sát mép trên */
  justify-content: center;
}

/* Tùy chỉnh kích thước icon 31x31 và vị trí */
.similar-job-save .save-job-icon {
  font-size: 31px;           /* Đặt kích thước icon FontAwesome */
  width: 31px;               /* Đặt chiều rộng khối */
  height: 31px;              /* Đặt chiều cao khối */
  line-height: 1;            /* Loại bỏ khoảng trống dòng thừa của font */
  display: block;
  margin-top: 0;             /* Sát tuyệt đối đỉnh trên */
  color: #D0D0D0;              /* Màu icon khi chưa lưu */
}

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

.similar-job-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    color: #171717;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.similar-job-company {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.similar-job-company:hover {
    color: #FF4500;
    text-decoration: underline;
}

.similar-job-salary {
    font-weight: 600;
    font-size: 18px;
    line-height: 23px;
    color: #FF4500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.similar-job-meta {
    display: flex;
    align-items: center;
    gap: 41px;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #707070;
}

.similar-job-location,
.similar-job-distance {
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.similar-job-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #FAFAFA;
    border: 2px solid #E5E5E5;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #171717;
    border-radius: 100px;
}

.similar-job-urgent {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 500;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.04em;
    color: #FF4500;
}

.job-detail-sidebar {
    display: flex;
    flex-direction: column;
}

.company-sidebar:hover {
    box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.08); /* Giảm độ đậm alpha xuống 0.08 để bóng trông tự nhiên hơn */
    transform: translateY(-4px);                  /* Thêm hiệu ứng nổi nhẹ card lên trên khi hover */
}

.company-sidebar {
    background: #fff;
    border: 1px solid #E9E4DE;
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    /* Thêm transition cho box-shadow và transform */
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo Box */
.company-sidebar-logo {
    width: 123px;
    height: 123px;
    border: 2px solid #EEEEEE;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-color: #fff;
}

.company-sidebar-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Header Section */
.company-sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.company-sidebar-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

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

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

.company-sidebar-verified-badge {
    color: #10b981;
    font-size: 16px;
}

/* Verification Status */
.company-sidebar-verified,
.company-sidebar-unverified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.01em;
}

.company-sidebar-verified {
    color: #16A34A;
}

.company-sidebar-unverified {
    color: #f59e0b;
}

/* Description */
.company-sidebar-desc {
    font-weight: 500;
    font-size: 19px;
    line-height: 24px;
    text-align: center;
    color: #707070;
    margin: 0;
    max-width: 90%;
}

/* Info Rows */
.company-sidebar-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
}

.company-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 2px solid #E9E9E9;
    font-weight: 500;
    font-size: 19px;
    line-height: 32px;
    color: #282828;
}

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

.company-sidebar-label {
}

.company-sidebar-value {
}

/* Action Button */
.company-sidebar-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 62px;
    margin-top: 14px;
    border: 1px solid #FF4500;
    border-radius: 8px;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 16px 60px;
    font-weight: 600;
    font-size: 23px;
    line-height: 30px;
    align-items: center;
    text-align: center;
    color: #FF4500;
}

.company-sidebar-btn:hover {
    background-color: #FF4500;
    color: #ffffff;
}

/* Map Section */
.company-sidebar-map {
    width: 100%;
    margin-top: 30px;
    position: relative;
}

.company-sidebar-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 12px;
}

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

@media (max-width: 1024px) {
    .job-detail-container {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar {
        order: -1;
    }

    .similar-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .similar-jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-detail-info-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .job-detail-info {
        grid-template-columns: 1fr;
    }

    .job-detail-info-item {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .job-detail-info-item:last-child {
        border-bottom: none;
    }
}

.main-content {
    margin-top: 0;
}