/* ==========================================================================
   CAREERS PAGE — HTD Steel (/tuyen-dung/)
   Conditional load: only on is_page('tuyen-dung')
   Uses design tokens from :root in style.css
   Style: Trust & Authority — Industrial Engineering B2B
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.htd-careers-hero {
    position: relative;
    background: var(--htd-navy);
    padding: 72px 0 100px;
    overflow: hidden;
    text-align: center;
}

/* Blueprint grid background */
.htd-careers-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(7, 116, 187, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 116, 187, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Radial light glow center */
.htd-careers-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 420px;
    background: radial-gradient(ellipse, rgba(7, 116, 187, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.htd-careers-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--htd-space-6);
    animation: htdCareersHeroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes htdCareersHeroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.htd-careers-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--htd-text-sm);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--htd-space-5);
}

.htd-careers-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--htd-transition-fast);
}

.htd-careers-hero__breadcrumb a:hover {
    color: var(--htd-primary-light);
}

.htd-careers-hero__breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.htd-careers-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 116, 187, 0.22);
    border: 1px solid rgba(120, 210, 247, 0.35);
    color: var(--htd-primary-light);
    font-size: var(--htd-text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--htd-radius-full);
    margin-bottom: var(--htd-space-5);
}

.htd-careers-hero__badge svg {
    width: 16px;
    height: 16px;
}

.htd-careers-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: var(--htd-leading-tight);
    margin-bottom: var(--htd-space-4);
    letter-spacing: -0.02em;
}

.htd-careers-hero h1 span {
    color: var(--htd-primary-light);
}

.htd-careers-hero__subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--htd-leading-relaxed);
    margin: 0 auto var(--htd-space-8);
    max-width: 720px;
}

/* Stats Row */
.htd-careers-hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--htd-space-6);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--htd-radius-lg);
    padding: 20px 32px;
    max-width: 760px;
    margin: 0 auto;
}

.htd-careers-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.htd-careers-stat__number {
    font-family: var(--htd-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.htd-careers-stat__number span {
    color: var(--htd-primary-light);
}

.htd-careers-stat__label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.htd-careers-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   2. WHY JOIN US (CULTURE & ENVIRONMENT)
   -------------------------------------------------------------------------- */
.htd-careers-why {
    background: var(--htd-bg);
    padding: 80px 0;
    border-bottom: 1px solid var(--htd-border);
}

.htd-careers-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--htd-space-6);
}

.htd-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 52px;
}

.htd-section-tag {
    display: inline-block;
    font-size: var(--htd-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--htd-primary);
    background: var(--htd-primary-subtle);
    border: 1px solid var(--htd-primary-lighter);
    padding: 4px 14px;
    border-radius: var(--htd-radius-full);
    margin-bottom: 12px;
}

.htd-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--htd-navy);
    line-height: var(--htd-leading-tight);
    margin-bottom: 14px;
}

.htd-section-desc {
    font-size: var(--htd-text-base);
    color: var(--htd-muted-fg);
    line-height: var(--htd-leading-relaxed);
    margin-bottom: 0;
}

.htd-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--htd-space-6);
}

.htd-why-card {
    background: var(--htd-surface);
    border: 1px solid var(--htd-border);
    border-radius: var(--htd-radius-lg);
    padding: 32px 24px;
    transition: var(--htd-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--htd-shadow-sm);
}

.htd-why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--htd-shadow-card);
    border-color: var(--htd-primary-light);
}

.htd-why-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--htd-radius-md);
    background: var(--htd-primary-subtle);
    color: var(--htd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--htd-transition-fast);
}

.htd-why-card:hover .htd-why-card__icon {
    background: var(--htd-primary);
    color: #ffffff;
}

.htd-why-card__icon svg {
    width: 26px;
    height: 26px;
}

.htd-why-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--htd-navy);
    margin-bottom: 12px;
    line-height: 1.35;
}

.htd-why-card__text {
    font-size: 0.9rem;
    color: var(--htd-muted-fg);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. JOB LISTINGS SECTION
   -------------------------------------------------------------------------- */
.htd-careers-jobs {
    background: #ffffff;
    padding: 88px 0;
}

.htd-jobs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.htd-job-card {
    background: var(--htd-surface);
    border: 1px solid var(--htd-border);
    border-radius: var(--htd-radius-xl);
    box-shadow: var(--htd-shadow-card);
    overflow: hidden;
    transition: var(--htd-transition);
    position: relative;
}

.htd-job-card:hover {
    border-color: rgba(7, 116, 187, 0.45);
    box-shadow: 0 12px 32px -4px rgba(7, 116, 187, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.htd-job-card--featured {
    border-color: rgba(7, 116, 187, 0.3);
}

.htd-job-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--htd-primary), var(--htd-primary-light));
}

/* Job Card Header */
.htd-job-card__header {
    padding: 32px 36px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--htd-border);
}

.htd-job-card__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.htd-job-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.htd-job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--htd-radius-sm);
    background: var(--htd-bg);
    color: var(--htd-secondary);
    border: 1px solid var(--htd-border);
}

.htd-job-badge--hot {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.htd-job-badge--hot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--htd-success);
    display: inline-block;
}

.htd-job-badge--dept {
    background: var(--htd-primary-subtle);
    color: var(--htd-primary-dark);
    border-color: var(--htd-primary-lighter);
}

.htd-job-salary {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.htd-job-salary__val {
    font-family: var(--htd-font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--htd-primary);
}

.htd-job-salary__unit {
    font-size: 0.8125rem;
    color: var(--htd-muted-fg);
}

.htd-job-card__title {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: var(--htd-navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.htd-job-card__summary {
    font-size: 0.95rem;
    color: var(--htd-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.htd-job-card__quick-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--htd-border);
    font-size: 0.875rem;
    color: var(--htd-muted-fg);
}

.htd-job-card__quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.htd-job-card__quick-item svg {
    width: 16px;
    height: 16px;
    color: var(--htd-primary);
    flex-shrink: 0;
}

/* Job Card Details (Body) */
.htd-job-card__body {
    padding: 32px 36px;
    background: #fafbfc;
}

.htd-job-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.htd-job-section {
    display: flex;
    flex-direction: column;
}

.htd-job-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--htd-navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--htd-primary-lighter);
}

.htd-job-section__title svg {
    width: 18px;
    height: 18px;
    color: var(--htd-primary);
}

.htd-job-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.htd-job-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--htd-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

.htd-job-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--htd-primary);
}

/* Action Footer of Job Card */
.htd-job-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 36px;
    background: #ffffff;
    border-top: 1px solid var(--htd-border);
}

.htd-job-card__deadline {
    font-size: 0.8125rem;
    color: var(--htd-muted-fg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.htd-job-card__deadline svg {
    width: 15px;
    height: 15px;
    color: var(--htd-warning);
}

.htd-job-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.htd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--htd-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--htd-radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--htd-transition-fast);
    border: none;
}

.htd-btn--primary {
    background: var(--htd-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(7, 116, 187, 0.25);
}

.htd-btn--primary:hover {
    background: var(--htd-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 116, 187, 0.35);
}

.htd-btn--secondary {
    background: #ffffff;
    color: var(--htd-secondary) !important;
    border: 1px solid var(--htd-border);
}

.htd-btn--secondary:hover {
    background: var(--htd-bg);
    border-color: var(--htd-border-hover);
    color: var(--htd-navy) !important;
}

.htd-btn svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   4. APPLICATION GUIDE & CONTACT
   -------------------------------------------------------------------------- */
.htd-careers-apply {
    background: var(--htd-bg);
    padding: 88px 0 96px;
    border-top: 1px solid var(--htd-border);
}

.htd-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.htd-step-card {
    background: #ffffff;
    border: 1px solid var(--htd-border);
    border-radius: var(--htd-radius-lg);
    padding: 32px 24px;
    box-shadow: var(--htd-shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.htd-step-number {
    font-family: var(--htd-font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--htd-primary-lighter);
    line-height: 1;
    margin-bottom: 16px;
    transition: var(--htd-transition-fast);
}

.htd-step-card:hover .htd-step-number {
    color: var(--htd-primary);
}

.htd-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--htd-navy);
    margin-bottom: 12px;
}

.htd-step-desc {
    font-size: 0.875rem;
    color: var(--htd-muted-fg);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact CTA Banner */
.htd-careers-contact-box {
    background: linear-gradient(135deg, var(--htd-navy) 0%, #172554 100%);
    border-radius: var(--htd-radius-xl);
    padding: 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--htd-shadow-elevated);
    position: relative;
    overflow: hidden;
}

.htd-careers-contact-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 210, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 210, 247, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.htd-careers-contact-info {
    position: relative;
    z-index: 1;
}

.htd-careers-contact-info h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.htd-careers-contact-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin-bottom: 24px;
}

.htd-careers-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.htd-channel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--htd-radius-md);
    padding: 14px 20px;
    text-decoration: none;
    transition: var(--htd-transition-fast);
}

.htd-channel-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--htd-primary-light);
    transform: translateX(4px);
}

.htd-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--htd-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.htd-channel-icon svg {
    width: 20px;
    height: 20px;
}

.htd-channel-content {
    display: flex;
    flex-direction: column;
}

.htd-channel-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.htd-channel-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    font-family: var(--htd-font-mono);
}

.htd-careers-address-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--htd-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.htd-address-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.htd-address-row svg {
    width: 22px;
    height: 22px;
    color: var(--htd-primary-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.htd-address-text strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.htd-address-text span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .htd-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .htd-job-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .htd-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .htd-careers-contact-box {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
}

@media screen and (max-width: 768px) {
    .htd-careers-hero {
        padding: 56px 0 80px;
    }
    
    .htd-careers-hero__stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .htd-careers-stat-divider {
        width: 60%;
        height: 1px;
    }
    
    .htd-why-grid {
        grid-template-columns: 1fr;
    }
    
    .htd-job-card__header {
        padding: 24px 20px 20px;
    }
    
    .htd-job-card__body {
        padding: 24px 20px;
    }
    
    .htd-job-card__footer {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .htd-job-card__actions {
        flex-direction: column;
    }
    
    .htd-btn {
        width: 100%;
    }
    
    .htd-job-card__quick-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
