
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 card trên 1 hàng */
    gap: 1.5rem;
}

.job-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.job-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #05df2dff;
}
.job-title-en {
    font-size: 0.9rem;
    font-style: italic;
    color: #6b7280;
}
.job-meta {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 0.3rem;
}
.job-deadline {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.5rem;
}
.job-desc {
    font-size: 0.9rem;
    color: #374151;
    margin-top: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* cắt tối đa 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-apply {
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1rem;
    width: 100%;
    background: #04db3aff;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
    text-decoration: none;
}
.btn-apply:hover {
    background: #ffffffff;
}

/* Reset nhỏ để tránh lệch box-sizing */
* { box-sizing: border-box; }

/* LAYOUT CHÍNH */
.job-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

/* JOB DETAIL (left column) */
.job-detail {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Titles */
.job-detail h1 {
    font-size: 2.1rem;
    margin: 0 0 6px;
    color: #0a7d0a; /* xanh lá */
    line-height: 1.05;
}
.job-detail h4 {
    margin: 0 0 16px;
    color: #006699; /* xanh dương */
    font-style: italic;
    font-weight: 600;
}

/* Info blocks */
.job-info {
    font-size: 1rem;
    margin: 10px 0;
    padding: 10px 12px;
    border-left: 4px solid #0a7d0a;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #222;
}

/* Description */
.job-description {
    margin-top: 16px;
    padding: 16px;
    background: rgba(243,244,246,0.7);
    border-radius: 12px;
    color: #222;
}
.job-description strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #111;
}
.job-content {
    color: #333;
    line-height: 1.6;
    white-space: pre-line;
}

/* CONTACT INFO box */
.contact-info {
    margin-top: 18px;
    padding: 14px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.contact-info h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: #b22222; /* đỏ */
}
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table td {
    padding: 6px 8px;
    font-size: 0.95rem;
    color: #333;
}
.contact-table td:first-child {
    font-weight: 600;
    width: 140px;
    color: #111;
}

/* ACTION BUTTONS */
.action-buttons {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.apply-btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}
.apply-btn {
    background: #fff;
    color: #098309;
    border-color: #098309;
}
.back-btn {
    background: #fff;
    color: #d9534f;
    border-color: #d9534f;
}
.apply-btn:hover {
    background: #098309;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(9,131,9,0.12);
}
.back-btn:hover {
    background: #d9534f;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217,83,79,0.12);
}
.apply-btn:active,
.back-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* SIDEBAR */
.sidebar {
    padding-top: 6px;
}
.sidebar h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #0a7d0a;
}
.job-card {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    margin-bottom: 12px;
}
.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.job-title {
    margin: 0 0 6px;
    color: #0a7d0a;
    font-weight: 700;
    font-size: 1.05rem;
}
.job-title-en {
    margin: 0 0 8px;
    color: #006699;
    font-style: italic;
}
.job-meta,
.job-deadline {
    margin: 4px 0;
    color: #444;
    font-size: 0.95rem;
}
.btn-apply {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    width: 100%;
    background: #fff;
    color: #20c539;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #20c539;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-apply:hover {
    background: #20c539;
    color: #fff;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.45);
}
.modal-content {
    max-width: 520px;
    margin: 6% auto;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.modal-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a7d0a;
    margin-bottom: 10px;
}
.form-group label {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}
.btn {
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-submit {
    background: #098309;
    color: #fff;
}
.btn-submit:hover { transform: translateY(-2px); background: #0aa50a; }
.btn-cancel {
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
}
.btn-cancel:hover { transform: translateY(-2px); background: #e0e0e0; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .job-layout { grid-template-columns: 1fr; padding: 0 12px; }
    .sidebar { display: flex; gap: 12px; flex-wrap: wrap; }
    .sidebar .job-card { min-width: 260px; flex: 1; }
}
/* =============================
   📱 Responsive cho trang Tuyển dụng
   ============================= */

/* Màn hình tablet và nhỏ hơn (≤ 768px) */
@media (max-width: 430px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột mỗi hàng */
        gap: 1rem;
    }

    .job-card {
        padding: 1rem;
        border-radius: 5px;
    }

    .job-title {
        font-size: 1rem;
    }

    .job-title-en {
        font-size: 0.8rem;
    }

    .job-meta,
    .job-deadline {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    .job-desc {
        font-size: 0.8rem;
        margin-top: 0.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* chỉ hiển thị 2 dòng mô tả */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-apply {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}
