/* ============================================================
   CSS TRANG TUYỂN DỤNG - GipHub.vn
   ============================================================ */

/* Reuse breadcrumb-bar from du-an.css */
.breadcrumb-bar { margin-top: 72px; }
@media (max-width:768px) { .breadcrumb-bar { margin-top: 60px; } }

/* ============================================================
   HERO
   ============================================================ */
.td-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0 3.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.td-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(37,99,235,0.3) 0%, transparent 60%);
    pointer-events: none;
}
.td-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}
.td-hero-text { flex: 1; max-width: 640px; }
.td-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37,99,235,0.3);
    border: 1px solid rgba(37,99,235,0.5);
    color: #93c5fd;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}
.td-hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.td-hero-text h1 .highlight { color: #60a5fa; }
.td-hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.td-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.td-hero-stat {
    display: flex;
    flex-direction: column;
}
.td-hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
}
.td-hero-stat span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}
.td-hero-image {
    font-size: 8rem;
    color: rgba(255,255,255,0.08);
    flex-shrink: 0;
    line-height: 1;
}

/* ============================================================
   FILTER
   ============================================================ */
.td-filter-section {
    background: #fff;
    padding: 1.5rem 0 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 72px;
    z-index: 100;
}
.td-filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}
.td-search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    flex: 1;
    min-width: 200px;
    transition: border-color 0.2s;
}
.td-search-box:focus-within { border-color: #2563eb; }
.td-search-box i { color: #9ca3af; font-size: 0.9rem; }
.td-search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: #111827;
    width: 100%;
    font-family: inherit;
}
.td-search-box input::placeholder { color: #9ca3af; }
.td-filter-selects {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.td-filter-selects select {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.td-filter-selects select:focus { border-color: #2563eb; }

/* Project Pills */
.td-project-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    overflow-x: auto;
}
.td-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    background: #f3f4f6;
    color: #374151;
}
.td-pill:hover { background: #e5e7eb; }
.td-pill.active {
    color: #fff;
    border-color: transparent;
}
.td-pill .pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

/* ============================================================
   JOBS SECTION
   ============================================================ */
.td-jobs-section {
    padding: 2.5rem 0 4rem;
    background: #f9fafb;
    min-height: 400px;
}
.td-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.td-results-bar span {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}
.td-reset-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.4rem 0.875rem;
    font-size: 0.82rem;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.td-reset-btn:hover { border-color: #dc2626; color: #dc2626; }

/* Jobs Grid */
.td-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.td-job-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1.5px solid #f3f4f6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.td-job-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-color: #bfdbfe;
    transform: translateY(-2px);
}
.td-job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.td-job-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.td-job-header-text { flex: 1; min-width: 0; }
.td-job-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.td-job-project {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}
.td-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.td-badge-pill {
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.td-badge-pill.type-ft  { background: #dcfce7; color: #166534; }
.td-badge-pill.type-pt  { background: #fef9c3; color: #854d0e; }
.td-badge-pill.type-rm  { background: #e0f2fe; color: #0369a1; }
.td-badge-pill.type-int { background: #fae8ff; color: #86198f; }
.td-badge-pill.dept     { background: #f3f4f6; color: #374151; }
.td-badge-pill.new      { background: #fee2e2; color: #991b1b; }
.td-job-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}
.td-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
    color: #9ca3af;
}
.td-job-footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.td-job-footer-left span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.td-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s;
}
.td-apply-btn:hover { background: #1d4ed8; color: #fff; }

/* Empty State */
.td-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #9ca3af;
}
.td-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.td-empty p { font-size: 1rem; margin-bottom: 1.5rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.td-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 4rem 0;
}
.td-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.td-cta-text h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.td-cta-text p  { color: rgba(255,255,255,0.8); font-size: 1rem; }
.td-cta .btn-primary {
    background: #fff;
    color: #2563eb;
    white-space: nowrap;
}
.td-cta .btn-primary:hover { background: #eff6ff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .td-jobs-grid { grid-template-columns: 1fr; }
    .td-filter-selects { width: 100%; }
}
@media (max-width: 768px) {
    .td-hero-inner { flex-direction: column; }
    .td-hero-image { display: none; }
    .td-filter-section { top: 60px; }
    .td-filter-bar { flex-direction: column; align-items: stretch; }
    .td-search-box { width: 100%; }
    .td-cta-inner { flex-direction: column; text-align: center; }
    .td-hero-stats { gap: 1.25rem; }
}
