/* ============================================
   Careers Page - Premium AmalXM Design
   ============================================ */

.careers-hero-section {
    background:
        radial-gradient(circle at 20% 50%, rgba(42, 193, 174, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.careers-floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.careers-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #2BC7B4, #8B5CF6);
    border-radius: 50%;
    animation: careersParticleFloat 18s infinite linear;
    opacity: 0.55;
}

.careers-particle:nth-child(1) { left: 8%;  animation-delay: 0s;  animation-duration: 20s; }
.careers-particle:nth-child(2) { left: 20%; animation-delay: 2s;  animation-duration: 22s; }
.careers-particle:nth-child(3) { left: 32%; animation-delay: 4s;  animation-duration: 24s; }
.careers-particle:nth-child(4) { left: 44%; animation-delay: 6s;  animation-duration: 16s; }
.careers-particle:nth-child(5) { left: 58%; animation-delay: 8s;  animation-duration: 26s; }
.careers-particle:nth-child(6) { left: 70%; animation-delay: 10s; animation-duration: 14s; }
.careers-particle:nth-child(7) { left: 82%; animation-delay: 12s; animation-duration: 22s; }
.careers-particle:nth-child(8) { left: 94%; animation-delay: 14s; animation-duration: 18s; }

@keyframes careersParticleFloat {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.55; }
    90%  { opacity: 0.55; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.careers-hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: careersFadeUp 0.8s ease forwards;
}

@keyframes careersFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.careers-hero-badge { margin-bottom: 22px; display: inline-block; }

.careers-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2BC7B4;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 22px;
    background: rgba(42, 193, 174, 0.10);
    border: 2px solid rgba(42, 193, 174, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.careers-hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.14;
    margin: 0 auto 20px;
    max-width: 900px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.careers-hero-title .gradient-text {
    background: linear-gradient(90deg, #2BC7B4 0%, #8B5CF6 60%, #06B6D4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.careers-hero-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #cbd5e1;
    line-height: 1.75;
    margin: 0 auto 34px;
    max-width: 720px;
}

.careers-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.careers-primary-btn,
.careers-secondary-btn {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.careers-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.35);
}

.careers-secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.careers-secondary-btn:hover {
    background: #ffffff;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(255, 255, 255, 0.20);
}

/* ============================================
   Body Layout
   ============================================ */

.careers-body {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.careers-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(42, 193, 174, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.careers-body > .container {
    position: relative;
    z-index: 1;
}

.careers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* ============================================
   Application Form Card
   ============================================ */

.careers-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow:
        0 4px 20px rgba(30, 41, 59, 0.04),
        0 20px 60px rgba(30, 41, 59, 0.06);
    position: relative;
    overflow: hidden;
}

.careers-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2BC7B4 0%, #8B5CF6 100%);
}

.careers-form-header {
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #edf0f4;
}

.careers-form-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.10);
    color: #8B5CF6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.careers-form-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.careers-form-subtitle {
    color: #64748b;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.6;
}

.req {
    color: #f43f5e;
    margin-left: 3px;
    font-weight: 700;
}

/* Alerts */

.careers-alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.55;
}

.careers-alert i { margin-top: 3px; font-size: 16px; }

.careers-alert-success {
    background: rgba(42, 193, 174, 0.10);
    color: #0f766e;
    border: 1px solid rgba(42, 193, 174, 0.32);
}

.careers-alert-error {
    background: rgba(244, 63, 94, 0.08);
    color: #b91c3c;
    border: 1px solid rgba(244, 63, 94, 0.30);
}

.careers-alert-info {
    background: rgba(139, 92, 246, 0.07);
    color: #6d3fb8;
    border: 1px solid rgba(139, 92, 246, 0.26);
}

/* Fields */

.careers-form .careers-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.careers-form .careers-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.2px;
}

.careers-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.careers-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.careers-form .careers-input-wrap input,
.careers-form .careers-input-wrap select {
    padding-left: 42px;
}

.careers-form input,
.careers-form select,
.careers-form textarea {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14.5px;
    color: #1e293b;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.careers-form input::placeholder,
.careers-form textarea::placeholder { color: #94a3b8; }

.careers-form input:focus,
.careers-form select:focus,
.careers-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #2BC7B4;
    box-shadow: 0 0 0 4px rgba(42, 193, 174, 0.15);
}

.careers-input-wrap:focus-within .careers-input-icon { color: #2BC7B4; }

.careers-form textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 150px;
}

.careers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.careers-row .careers-field { margin-bottom: 20px; }

/* Upload */

.careers-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    margin: 0;
}

.careers-upload:hover {
    border-color: #2BC7B4;
    background: linear-gradient(135deg, rgba(42, 193, 174, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    transform: translateY(-1px);
}

.careers-upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.22);
}

.careers-upload-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.careers-upload-cta {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.careers-upload-hint {
    font-size: 12.5px;
    color: #64748b;
}

.careers-upload-input { display: none; }

/* Terms */

.careers-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
}

.careers-terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8B5CF6;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
}

.careers-terms label {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.careers-terms a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
}

.careers-terms a:hover { text-decoration: underline; }

/* Submit */

.careers-submit {
    background: linear-gradient(135deg, #2BC7B4 0%, #8B5CF6 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.careers-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.38);
}

.careers-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.careers-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    color: #94a3b8;
    font-size: 12.5px;
}

.careers-form-note i { color: #2BC7B4; }

/* ============================================
   Sidebar
   ============================================ */

.careers-side {
    position: sticky;
    top: 100px;
    align-self: start;
}

.careers-side-header { margin-bottom: 22px; }

.careers-side-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(42, 193, 174, 0.10);
    color: #0f766e;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.careers-side-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.careers-side-intro {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.careers-positions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

/* Position card */

.careers-position {
    position: relative;
    display: block;
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.03);
}

.careers-position-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 193, 174, 0.06), rgba(139, 92, 246, 0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.careers-position-inner {
    position: relative;
    padding: 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.careers-position:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.10);
    border-color: rgba(42, 193, 174, 0.35);
    color: inherit;
    text-decoration: none;
}

.careers-position:hover .careers-position-glow { opacity: 1; }

.careers-position-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.careers-position-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.22);
    transition: transform 0.3s ease;
}

.careers-position:hover .careers-position-icon { transform: rotate(-6deg) scale(1.05); }

.careers-position-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.careers-position-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.careers-position-dept {
    display: inline-block;
    color: #8B5CF6;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.careers-position-desc {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.careers-position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.careers-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
}

.careers-chip i {
    font-size: 10px;
    color: #94a3b8;
}

.careers-chip-primary {
    background: rgba(42, 193, 174, 0.10);
    color: #0f766e;
}

.careers-chip-primary i { color: #2BC7B4; }

.careers-position-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B5CF6;
    font-weight: 700;
    font-size: 13px;
    margin-top: 2px;
    transition: gap 0.25s ease;
}

.careers-position:hover .careers-position-link { gap: 10px; }

/* Empty state */

.careers-positions-empty {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e0;
    border-radius: 18px;
}

.careers-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 193, 174, 0.15), rgba(139, 92, 246, 0.15));
    color: #8B5CF6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.careers-positions-empty h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.careers-positions-empty p {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* CTA box */

.careers-cta-box {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(42, 193, 174, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.careers-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.22);
}

.careers-cta-text { display: flex; flex-direction: column; gap: 3px; }
.careers-cta-text strong { color: #1e293b; font-size: 14px; font-weight: 700; }
.careers-cta-text span { color: #475569; font-size: 12.5px; line-height: 1.55; }

/* ============================================
   Position Detail Page
   ============================================ */

.position-detail-hero {
    background:
        radial-gradient(circle at 20% 50%, rgba(42, 193, 174, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 100px 0 70px;
}

.position-detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: careersFadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 22px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb-back:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.30);
    text-decoration: none;
}

.position-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.position-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.position-detail-badge i { font-size: 11px; color: #cbd5e1; }

.position-detail-badge-primary {
    background: rgba(42, 193, 174, 0.14);
    border-color: rgba(42, 193, 174, 0.35);
    color: #5eead4;
}

.position-detail-badge-primary i { color: #5eead4; }

.position-detail-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.14;
    margin: 0 0 14px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.position-detail-short {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 30px;
    max-width: 760px;
}

.position-detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
    max-width: 780px;
}

.position-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.position-fact:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-2px);
}

.position-fact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.28);
}

.position-fact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.position-fact-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.position-fact-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.position-detail-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Detail Body */

.position-detail-body {
    padding: 70px 0 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.position-detail-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(42, 193, 174, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.position-detail-body > .container { position: relative; z-index: 1; }

.position-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.position-detail-content { display: flex; flex-direction: column; gap: 22px; }

.position-detail-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.14);
}

.content-card {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.06);
}

.content-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.content-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.24);
}

.content-card h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.content-card .rich-text {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.content-card .rich-text p { margin: 0 0 12px; }
.content-card .rich-text ul,
.content-card .rich-text ol { padding-left: 22px; margin: 0 0 12px; }
.content-card .rich-text li { margin-bottom: 6px; }
.content-card .rich-text a { color: #8B5CF6; text-decoration: underline; }
.content-card .rich-text img { max-width: 100%; border-radius: 12px; margin: 10px 0; }
.content-card .rich-text strong { color: #1e293b; }

/* Detail Sidebar */

.position-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.position-sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 20px;
    padding: 24px 24px;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.04);
}

.position-sidebar-card h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.position-sidebar-card h4 i {
    color: #8B5CF6;
    font-size: 15px;
}

.position-sidebar-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.30);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.position-sidebar-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(42, 193, 174, 0.20) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.20) 0%, transparent 55%);
    pointer-events: none;
}

.position-sidebar-cta > * { position: relative; z-index: 1; }

.position-sidebar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.35);
}

.position-sidebar-cta h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.position-sidebar-cta p {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.position-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #2BC7B4 0%, #8B5CF6 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    width: 100%;
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.position-sidebar-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.42);
    text-decoration: none;
}

.position-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 13.5px;
}

.position-sidebar-list li:last-child { border-bottom: none; }

.position-sidebar-list li span {
    color: #64748b;
    font-weight: 500;
}

.position-sidebar-list li strong {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

.position-sidebar-share .position-share-buttons {
    display: flex;
    gap: 10px;
}

.position-share-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.position-share-buttons a:hover {
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Similar Positions */

.similar-positions {
    padding: 60px 0 90px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.similar-header {
    text-align: center;
    margin-bottom: 34px;
}

.similar-header h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.similar-header p {
    color: #64748b;
    font-size: 14.5px;
    margin: 0;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1199px) {
    .position-detail-grid { gap: 30px; }
}

@media (max-width: 991px) {
    .careers-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .careers-side {
        position: static;
        order: -1;
    }
    .careers-form-wrapper { padding: 34px 28px; }

    .position-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .position-detail-sidebar {
        position: static;
        order: -1;
    }
    .position-detail-hero { padding: 90px 0 50px; }
    .position-detail-body { padding: 50px 0 40px; }
    .content-card { padding: 28px 24px; }
}

@media (max-width: 767px) {
    .careers-hero-section { min-height: 0; }
    .careers-hero-section .row { min-height: 52vh !important; padding: 60px 0 40px; }
    .careers-body { padding: 56px 0 70px; }

    .careers-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .careers-form-wrapper {
        padding: 28px 22px;
        border-radius: 20px;
    }
    .careers-form-title { font-size: 1.4rem; }
    .careers-position-inner { padding: 20px 18px; }

    .careers-hero-buttons { gap: 10px; }
    .careers-primary-btn, .careers-secondary-btn { padding: 12px 24px; font-size: 0.95rem; }

    .position-detail-hero { padding: 70px 0 40px; }
    .position-detail-title { font-size: 1.75rem; }
    .position-detail-short { font-size: 1rem; }
    .position-detail-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .content-card { padding: 24px 20px; border-radius: 16px; }
    .content-card-icon { width: 40px; height: 40px; font-size: 14px; }
    .content-card h2 { font-size: 1.15rem; }
    .position-sidebar-card { padding: 22px 20px; border-radius: 16px; }
    .similar-positions { padding: 50px 0 70px; }
}

@media (max-width: 480px) {
    .careers-hero-title { font-size: 1.75rem; }
    .careers-hero-description { font-size: 0.95rem; }
    .careers-hero-buttons { flex-direction: column; width: 100%; }
    .careers-hero-buttons .btn { width: 100%; justify-content: center; }
    .careers-primary-btn, .careers-secondary-btn { width: 100%; justify-content: center; }

    .careers-upload { padding: 14px 14px; gap: 12px; }
    .careers-upload-icon { width: 40px; height: 40px; font-size: 16px; }

    .position-detail-title { font-size: 1.55rem; }
    .position-detail-facts { grid-template-columns: 1fr; }
    .position-detail-hero-actions { flex-direction: column; width: 100%; }
    .position-detail-hero-actions .btn { width: 100%; justify-content: center; }
}
