/* styles.css - BỘ CSS HOÀN CHỈNH VAECO */

:root {
    --v-blue: #004488;
    --v-yellow: #FFCC00;
    --v-dark-blue: #002244;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --bg-gray: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; color: var(--v-blue); margin-bottom: 50px; font-size: 32px; text-transform: uppercase; }
.bg-light { background: var(--bg-light); }

/* --- 1. NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; width: 100%; top: 0; z-index: 1000;
}
.logo { font-size: 24px; font-weight: 700; color: var(--v-blue); }
.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a { text-decoration: none; color: #555; font-size: 14px; font-weight: 600; transition: 0.3s;}
.nav-menu a:hover { color: var(--v-blue); }
.btn-login { background: white; color: var(--v-blue); border: 2px solid var(--v-blue); padding: 8px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; }

/* --- 2. HERO & SEARCH --- */
.hero {
    margin-top: 60px; height: 70vh;
    background: linear-gradient(rgba(0,34,68,0.8), rgba(0,68,136,0.8)), url('https://images.unsplash.com/photo-1542296332-2e4473faf563?q=80&w=2070') center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-text h1 { color: var(--v-yellow); font-size: 40px; margin-bottom: 15px; }
.search-box { margin-top: 30px; display: flex; background: white; padding: 5px; border-radius: 50px; }
.search-box input { flex: 1; padding: 15px 25px; border: none; outline: none; border-radius: 50px 0 0 50px; font-size: 16px;}
.btn-search { background: var(--v-yellow); color: var(--v-dark-blue); border: none; padding: 15px 35px; font-weight: bold; border-radius: 50px; cursor: pointer; font-size: 16px;}

/* --- 3. LAYOUTS (Trang chủ) --- */
.split-layout { display: flex; gap: 50px; align-items: center; }
.text-left { flex: 1; }
.text-left h2 { color: var(--v-blue); font-size: 30px; margin-bottom: 20px; }
.achievement-list p { margin-bottom: 15px; font-size: 16px; border-left: 4px solid var(--v-yellow); padding-left: 15px; }
.image-right { flex: 1; }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.img-placeholder { height: 200px; background: #ddd; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #666; font-weight: bold; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.journey-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--v-blue); }
.journey-card i { font-size: 40px; margin-bottom: 20px; }
.icon-yellow { color: var(--v-yellow); }
.icon-blue { color: var(--v-blue); }
.journey-card h3 { color: var(--v-blue); margin-bottom: 15px; }

/* Quy trình, Đãi ngộ, FAQ */
.process-steps { display: flex; justify-content: space-between; text-align: center; position: relative; margin-top: 40px; }
.process-steps::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 3px; background: #e0e0e0; z-index: 0; }
.step-item { flex: 1; position: relative; z-index: 1; padding: 0 10px; }
.step-number { width: 60px; height: 60px; background: var(--v-blue); color: var(--v-yellow); font-size: 24px; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; border: 5px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.step-item h4 { color: var(--v-blue); margin-bottom: 10px; }
.step-item p { font-size: 14px; color: #666; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.benefit-box { background: white; padding: 35px 20px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 4px solid transparent; transition: 0.3s; }
.benefit-box:hover { transform: translateY(-5px); border-bottom: 4px solid var(--v-yellow); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.benefit-box i { font-size: 40px; color: var(--v-yellow); margin-bottom: 20px; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.faq-item summary { padding: 20px; font-weight: bold; color: var(--v-blue); cursor: pointer; list-style: none; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 20px; color: var(--v-yellow); }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px 20px; color: #555; border-top: 1px solid #eee; margin-top: 10px; padding-top: 15px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.testimonial-card { background: #fff; padding: 30px; border-radius: 10px; border: 1px solid #eee; }
.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.author-info { display: flex; align-items: center; gap: 15px; }
.avatar { width: 50px; height: 50px; background: var(--v-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold;}

/* --- 4. TRANG CƠ HỘI NGHỀ NGHIỆP (jobs.html) --- */
.job-list-container { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.job-card-detailed { background: white; border-radius: 12px; padding: 25px 30px; border-left: 6px solid var(--v-blue); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.job-card-detailed:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }
.job-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.job-title { color: var(--v-blue); font-size: 22px; }
.job-status { padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.status-active { background-color: #e6f4ea; color: #1e8e3e; }
.status-expired { background-color: #fce8e6; color: #d93025; }
.job-meta-info { display: flex; gap: 30px; color: #555; font-size: 15px; margin-bottom: 15px; font-weight: 600; }
.job-meta-info i { color: var(--v-blue); margin-right: 5px; }
.job-short-desc { color: #666; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-action-row { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.btn-text { color: var(--v-blue); text-decoration: none; font-weight: bold; font-size: 15px; }
.btn-text:hover { text-decoration: underline; }
.btn-apply-now { background-color: var(--v-yellow); color: var(--v-blue); border: none; padding: 10px 25px; border-radius: 6px; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.2s; }
.btn-apply-now:hover { background-color: #e6b800; }
.btn-disabled { background-color: #ccc; color: #666; cursor: not-allowed; }

/* --- 5. TRANG CHI TIẾT (job-detail.html) --- */
.job-detail-header { margin-top: 60px; background-color: var(--v-dark-blue); padding: 40px 0; color: white; }
.back-link { color: var(--v-yellow); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-block; margin-bottom: 15px; }
.back-link:hover { text-decoration: underline; }
.job-layout { display: flex; gap: 40px; align-items: flex-start; }
.job-main-content { flex: 2; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.content-block { margin-bottom: 35px; }
.content-block h3 { color: var(--v-blue); font-size: 20px; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.content-block h3 i { color: var(--v-yellow); margin-right: 10px; }
.content-block ul { padding-left: 20px; color: #444; }
.content-block li { margin-bottom: 10px; }
.job-sidebar { flex: 1; position: sticky; top: 90px; }
.summary-card { background: white; padding: 30px; border-radius: 10px; border-top: 5px solid var(--v-yellow); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.info-row { display: flex; gap: 15px; margin-bottom: 20px; }
.info-icon { width: 40px; height: 40px; background: #f0f4f8; color: var(--v-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-text strong { display: block; font-size: 13px; color: #777; text-transform: uppercase; margin-bottom: 3px; }
.info-text span { font-size: 15px; color: var(--v-dark-blue); font-weight: 600; }
.btn-apply-large { width: 100%; background: var(--v-blue); color: white; border: none; padding: 15px; font-size: 16px; font-weight: bold; border-radius: 8px; margin-top: 15px; cursor: pointer; transition: 0.3s; }
.btn-apply-large:hover { background: var(--v-yellow); color: var(--v-dark-blue); }

/* --- 6. MODAL FORM ỨNG TUYỂN --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 34, 68, 0.8); z-index: 9999; overflow-y: auto; padding: 20px 0; }
.modal-box { background: white; width: 90%; max-width: 800px; margin: 20px auto; padding: 40px; border-radius: 12px; border-top: 8px solid var(--v-yellow); position: relative; animation: slideDown 0.4s ease-out; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 24px; color: #888; cursor: pointer; }
.close-modal:hover { color: red; }
.modal-title { color: var(--v-blue); text-align: center; font-size: 28px; margin-bottom: 20px; }
.job-readonly-info { background: var(--bg-light); padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--v-blue); }
.form-section-title { color: var(--v-blue); border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; margin-top: 30px;}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; }
.input-group label { font-size: 14px; font-weight: bold; color: #555; margin-bottom: 8px; }
.input-group input { padding: 12px; border: 1px solid #ccc; border-radius: 6px; outline: none; }
.req { color: red; font-weight: bold; }
.file-note { font-size: 13px; color: #777; font-style: italic; margin-bottom: 15px; }
.file-upload-list { display: flex; flex-direction: column; gap: 15px; }
.file-item { display: flex; flex-direction: column; background: #f9f9f9; padding: 12px 15px; border-radius: 6px; border: 1px dashed #ccc; }
.highlight-optional { border-color: #a8d5ff; background: #f0f7ff; }
.btn-submit-final { width: 100%; margin-top: 40px; padding: 18px; background: var(--v-blue); color: white; border: none; font-size: 18px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.btn-submit-final:hover { background: var(--v-yellow); color: var(--v-dark-blue); }

/* --- 7. FOOTER --- */
.footer { background: #002244; color: white; padding: 50px 0; margin-top: 50px;}
/* styles.css (Thêm vào dưới cùng) */

/* Dàn hàng ngang cho Tiêu đề file và Nút tải mẫu */
.file-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.file-label-row label {
    margin-bottom: 0 !important; /* Bỏ khoảng cách dưới đáy để nó đứng ngang hàng với nút */
}

/* Nút tải mẫu đơn */
.btn-download-template {
    background-color: #e6f0fa; /* Màu xanh nền rất nhạt */
    color: var(--v-blue); /* Chữ màu xanh đậm VAECO */
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Khoảng cách giữa icon tải xuống và chữ */
    transition: 0.3s;
}

.btn-download-template:hover {
    background-color: var(--v-blue);
    color: white;
}