/* =========================================================
   CAREERS PAGE STYLES
   ========================================================= */

/* --- Typography & Spacing --- */
.career-hero {
    position: relative;
    padding: var(--sp-7) 0 var(--sp-6);
    background: radial-gradient(circle at top right, rgba(29, 78, 216, 0.15) 0%, transparent 60%);
    text-align: center;
}
.career-hero h1 { margin-bottom: var(--sp-3); }
.career-hero .lede { margin: 0 auto var(--sp-4); max-width: 700px; }

/* --- Stats Row --- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    margin-top: var(--sp-5);
    border-top: 1px solid var(--stone-line);
    padding-top: var(--sp-4);
}
.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-item h3 { color: var(--gold); font-size: 2.5rem; margin-bottom: 5px; }
.hero-stats .stat-item p { color: var(--stone); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- Feature Grids --- */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 900px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-6 { grid-template-columns: 1fr; } }

.premium-card {
    background: var(--card);
    border: 1px solid var(--stone-line);
    padding: var(--sp-4);
    border-radius: var(--radius-m);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.premium-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(234, 179, 8, 0.4);
}
.premium-card:hover::before {
    opacity: 1;
}
.premium-card .icon { 
    margin-bottom: 8px; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-card:hover .icon {
    transform: scale(1.15) translateY(-4px);
}
.premium-card:hover .icon svg {
    stroke: var(--gold-soft);
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.3));
}
.premium-card .icon svg {
    transition: all 0.4s var(--ease);
}
.premium-card h3 { font-size: 1.25rem; color: var(--ink); }
.premium-card p { color: var(--stone); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* --- Split Layout (About) --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } }
.split-media {
    border-radius: var(--radius-s);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--stone-line);
}
.split-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: var(--radius-s);
    pointer-events: none;
}

/* --- Vertical Timeline (How We Work) --- */
.timeline-vertical { position: relative; padding-left: 32px; }
.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 11px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--stone-line) 100%);
}
.timeline-item { position: relative; padding-bottom: var(--sp-4); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px; top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ivory);
    border: 2px solid var(--gold);
    z-index: 2;
}
.timeline-item h4 { color: var(--gold-soft); font-size: 1.1rem; margin-bottom: 5px; }
.timeline-item p { color: var(--stone); font-size: 0.9rem; margin: 0; }

/* --- Horizontal Timeline (Hiring Process) --- */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: var(--sp-4);
    overflow-x: auto;
    padding-bottom: 20px;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.timeline-horizontal::-webkit-scrollbar { display: none; }
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 20px; left: 0; right: 0;
    height: 2px;
    background: var(--stone-line);
    z-index: 0;
}
/* The animated progress line */
.timeline-horizontal::after {
    content: '';
    position: absolute;
    top: 20px; left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    z-index: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, background 0.3s ease, box-shadow 0.3s ease;
}
.timeline-horizontal.in::after {
    width: 100%;
}

.timeline-h-item {
    flex: 1;
    min-width: 160px;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    cursor: pointer;
}
.timeline-horizontal.in .timeline-h-item {
    opacity: 1;
    transform: none;
}
.timeline-horizontal.in .timeline-h-item:nth-child(1) { transition-delay: 0.2s; }
.timeline-horizontal.in .timeline-h-item:nth-child(2) { transition-delay: 0.4s; }
.timeline-horizontal.in .timeline-h-item:nth-child(3) { transition-delay: 0.6s; }
.timeline-horizontal.in .timeline-h-item:nth-child(4) { transition-delay: 0.8s; }
.timeline-horizontal.in .timeline-h-item:nth-child(5) { transition-delay: 1.0s; }
.timeline-horizontal.in .timeline-h-item:nth-child(6) { transition-delay: 1.2s; }

.timeline-h-dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--stone-line);
    color: var(--stone);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.timeline-horizontal.in .timeline-h-item:nth-child(1) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 0.2s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }
.timeline-horizontal.in .timeline-h-item:nth-child(2) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 0.4s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }
.timeline-horizontal.in .timeline-h-item:nth-child(3) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 0.6s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }
.timeline-horizontal.in .timeline-h-item:nth-child(4) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 0.8s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }
.timeline-horizontal.in .timeline-h-item:nth-child(5) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 1.0s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }
.timeline-horizontal.in .timeline-h-item:nth-child(6) .timeline-h-dot { border-color: var(--gold); color: var(--gold); transition-delay: 1.2s; box-shadow: 0 0 15px rgba(234,179,8,0.2); }

.timeline-h-item h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gold-soft); transition: all 0.3s var(--ease); }
.timeline-h-item p { font-size: 0.85rem; color: var(--stone); line-height: 1.5; transition: all 0.3s var(--ease); }

/* --- Interactive Hover Micro-Animations --- */

/* Reset dots & line on container hover */
.timeline-horizontal.in:hover .timeline-h-dot {
    border-color: var(--stone-line);
    color: var(--stone);
    box-shadow: none;
    transform: scale(0.95);
    transition-delay: 0s !important;
}
.timeline-horizontal.in:hover::after {
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
}

/* Light up previous steps (Step-by-step progression) */
.timeline-horizontal.in:has(.timeline-h-item:nth-child(1):hover) .timeline-h-item:nth-child(-n+1) .timeline-h-dot,
.timeline-horizontal.in:has(.timeline-h-item:nth-child(2):hover) .timeline-h-item:nth-child(-n+2) .timeline-h-dot,
.timeline-horizontal.in:has(.timeline-h-item:nth-child(3):hover) .timeline-h-item:nth-child(-n+3) .timeline-h-dot,
.timeline-horizontal.in:has(.timeline-h-item:nth-child(4):hover) .timeline-h-item:nth-child(-n+4) .timeline-h-dot,
.timeline-horizontal.in:has(.timeline-h-item:nth-child(5):hover) .timeline-h-item:nth-child(-n+5) .timeline-h-dot,
.timeline-horizontal.in:has(.timeline-h-item:nth-child(6):hover) .timeline-h-item:nth-child(-n+6) .timeline-h-dot {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.1);
    background: var(--ivory);
    box-shadow: 0 0 15px rgba(234,179,8,0.4), 0 0 25px rgba(255,255,255,0.1), inset 0 0 8px rgba(255,255,255,0.2);
}

/* Specific Hovered Item gets the Radiant/Grey Lightning Pop */
.timeline-horizontal.in .timeline-h-item:hover .timeline-h-dot {
    transform: scale(1.25);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(234,179,8,0.7), 0 0 40px rgba(255,255,255,0.4), inset 0 0 12px rgba(234,179,8,0.6);
}

/* Specific Hovered Item Text Pop */
.timeline-horizontal.in:hover .timeline-h-item h4 { color: var(--stone); transition-delay: 0s !important; }
.timeline-horizontal.in .timeline-h-item:hover h4 { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.4); transform: translateY(-2px); }

/* Interactive Line Fill (Lightning Gradient) */
.timeline-horizontal.in:has(.timeline-h-item:nth-child(1):hover)::after { width: 8.33%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.timeline-horizontal.in:has(.timeline-h-item:nth-child(2):hover)::after { width: 25%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.timeline-horizontal.in:has(.timeline-h-item:nth-child(3):hover)::after { width: 41.66%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.timeline-horizontal.in:has(.timeline-h-item:nth-child(4):hover)::after { width: 58.33%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.timeline-horizontal.in:has(.timeline-h-item:nth-child(5):hover)::after { width: 75%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.timeline-horizontal.in:has(.timeline-h-item:nth-child(6):hover)::after { width: 91.66%; background: linear-gradient(90deg, rgba(255,255,255,0.9), var(--gold)); box-shadow: 0 0 10px rgba(255,255,255,0.4); }

/* --- Department Grid --- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-2); }
.dept-card {
    background: var(--card);
    border: 1px solid var(--stone-line);
    padding: var(--sp-3);
    border-radius: var(--radius-s);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.dept-card:hover, .dept-card.active {
    background: rgba(29, 78, 216, 0.1);
    border-color: var(--emerald);
    color: var(--gold-soft);
}

/* --- Skill Chips --- */
.skill-container { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--ink);
    transition: all 0.3s var(--ease);
}
.skill-chip:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: var(--gold);
    color: var(--gold-soft);
}

/* --- Job Cards --- */
.job-card {
    background: var(--card);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-m);
    padding: var(--sp-4);
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.job-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.job-card-title { font-size: 1.4rem; color: var(--gold-soft); margin: 0 0 8px; }
.job-meta-row { display: flex; gap: 15px; font-size: 0.85rem; color: var(--stone); flex-wrap: wrap; }
.job-meta-item { display: flex; align-items: center; gap: 6px; }
.job-salary { font-weight: 600; color: var(--emerald-2); }
.job-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job-skill-tiny { font-size: 0.75rem; padding: 4px 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: var(--stone); }
.job-card-footer { border-top: 1px solid var(--stone-line); padding-top: 15px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

/* --- Multi-step Form --- */
.application-wrapper {
    background: var(--card);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-m);
    padding: var(--sp-5);
    max-width: 800px;
    margin: 0 auto;
}
.form-progress {
    display: flex; justify-content: space-between; margin-bottom: var(--sp-4); position: relative;
}
.form-progress::before {
    content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--stone-line); z-index: 0;
}
.progress-step {
    position: relative; z-index: 1; text-align: center; flex: 1;
}
.progress-dot {
    width: 32px; height: 32px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--stone);
    color: var(--stone); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s var(--ease);
}
.progress-step.active .progress-dot { border-color: var(--gold); color: var(--gold); background: rgba(234,179,8,0.1); }
.progress-step.completed .progress-dot { background: var(--gold); border-color: var(--gold); color: #000; }
.progress-label { font-size: 0.8rem; color: var(--stone); transition: all 0.3s var(--ease); }
.progress-step.active .progress-label { color: var(--gold); font-weight: 500; }

.form-step-content { display: none; animation: fadeIn 0.4s var(--ease); }
.form-step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form-actions { display: flex; justify-content: space-between; margin-top: var(--sp-4); border-top: 1px solid var(--stone-line); padding-top: var(--sp-3); }

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed var(--stone-line);
    border-radius: var(--radius-m);
    padding: var(--sp-4);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background: rgba(0,0,0,0.2);
}
.file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: var(--emerald); background: rgba(29, 78, 216, 0.05);
}
.file-drop-zone p { margin: 10px 0 0; color: var(--stone); font-size: 0.9rem; }

/* --- FAQ Accordion --- */
.faq-item { border-bottom: 1px solid var(--stone-line); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: var(--space-3) 0;
    font-size: 1.15rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-weight: 500; cursor: pointer;
}
.faq-question:hover { color: var(--gold-soft); }
.faq-icon {
    width: 24px; height: 24px; position: relative;
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { height: 14px; width: 2px; }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { display: none; padding-bottom: var(--space-3); color: var(--stone); line-height: 1.6; }

/* --- Modals (Job Details) --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(5, 8, 17, 0.85); backdrop-filter: blur(8px);
    z-index: 1000; display: none; align-items: center; justify-content: center; opacity: 0;
    transition: opacity 0.3s var(--ease); padding: var(--sp-3);
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--ivory); border: 1px solid var(--stone-line); border-radius: var(--radius-m);
    width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative;
    transform: translateY(20px); transition: transform 0.3s var(--ease);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header {
    padding: var(--sp-4); border-bottom: 1px solid var(--stone-line);
    position: sticky; top: 0; background: rgba(5,8,17,0.95); backdrop-filter: blur(8px); z-index: 10;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-close {
    background: none; border: none; color: var(--stone); font-size: 1.5rem; cursor: pointer;
    transition: color 0.3s var(--ease); padding: 5px; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: var(--sp-4); }
.modal-body h4 { margin: var(--sp-4) 0 var(--sp-2); color: var(--gold-soft); font-size: 1.2rem; }
.modal-body ul { list-style: disc; margin-left: 20px; color: var(--stone); }
.modal-body ul li { margin-bottom: 8px; }

/* Success Message */
.success-message { text-align: center; padding: var(--space-5) 0; }
.success-message h2 { color: var(--gold-soft); margin-bottom: 15px; }
.success-message p { color: var(--stone); }
.application-id {
    display: inline-block; background: rgba(29, 78, 216, 0.15); border: 1px solid var(--emerald);
    color: var(--emerald-2); padding: 10px 20px; border-radius: 4px; font-family: monospace;
    font-size: 1.2rem; margin: 20px 0; letter-spacing: 2px;
}
