/* =====================================================
   CAREER PAGE - COGENTIX SYSTEMS
   Modern Emerald Theme
   ===================================================== */

:root {
    --cx-emerald-dark: #062016;
    --cx-emerald-mid: #0b3323;
    --cx-emerald-accent: #10b981;
    --cx-emerald-hover: #059669;
    --cx-light-bg: #f8faf8;
    --cx-card-border: #e2e8f0;
    --cx-text-dark: #0b2219;
    --cx-text-muted: #64748b;
}

/* ---------- Base ---------- */
.cx-career-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #334155;
}

/* ---------- Hero Section ---------- */
.cx-hero-section {
    background: linear-gradient(135deg, #03180e 0%, #082d1c 50%, #0d3d27 100%);
    padding: 90px 0 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cx-hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.cx-badge .dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
}

.cx-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.cx-hero-title .highlight {
    color: #ffffff;
}

.cx-hero-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.cx-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.cx-btn-emerald {
    background-color: var(--cx-emerald-accent);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.cx-btn-emerald:hover {
    background-color: var(--cx-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.cx-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cx-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.cx-btn-emerald-dark {
    background: var(--cx-emerald-dark);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    transition: all 0.25s ease;
}

.cx-btn-emerald-dark:hover {
    background: var(--cx-emerald-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 32, 22, 0.2);
}

.cx-btn-light-emerald {
    background: var(--cx-emerald-accent);
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.cx-btn-light-emerald:hover {
    background: var(--cx-emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

/* ---------- Hero Cards ---------- */
.cx-hero-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---------- Metrics Ribbon ---------- */
.cx-metrics-ribbon {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 36px 0;
}

.cx-metric-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cx-emerald-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.cx-metric-label {
    font-size: 0.88rem;
    color: var(--cx-text-muted);
    font-weight: 500;
}

/* =====================================================
   WHY COGENTIX SECTION - CIRCULAR IMAGE DESIGN
   ===================================================== */

.cx-why-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8faf8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Soft emerald glow background */
.cx-why-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Text Content ---------- */
.cx-why-text-wrap {
    position: relative;
    z-index: 2;
}

.cx-sub-title {
    display: inline-block;
    color: var(--cx-emerald-accent);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--cx-emerald-accent);
    border-radius: 4px;
    margin-bottom: 20px;
}

.cx-sec-heading {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--cx-text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cx-heading-accent {
    color: var(--cx-emerald-accent);
}

.cx-heading-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--cx-emerald-accent) 0%, var(--cx-emerald-hover) 100%);
    border-radius: 9999px;
    margin-bottom: 24px;
}

.cx-sec-desc {
    color: var(--cx-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 0;
    padding-left: 20px;
    border-left: 2px solid rgba(16, 185, 129, 0.25);
}

/* =====================================================
   CIRCULAR IMAGE - DARK GREEN BORDER
   ===================================================== */

.cx-why-circle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cx-why-circle {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, #03180e 0%, #0b3323 50%, #10b981 100%);
    box-shadow:
        0 25px 50px -12px rgba(6, 32, 22, 0.4),
        0 0 0 1px rgba(16, 185, 129, 0.2),
        0 0 60px rgba(16, 185, 129, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cx-why-circle:hover {
    transform: scale(1.03);
    box-shadow:
        0 35px 60px -12px rgba(6, 32, 22, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.4),
        0 0 80px rgba(16, 185, 129, 0.3);
}

/* Inner white ring */
.cx-why-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.5);
    pointer-events: none;
    z-index: 2;
}

/* Image - perfectly circular */
.cx-why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.cx-why-circle:hover .cx-why-img {
    transform: scale(1.05);
}

/* Decorative rotating dashed ring (optional premium touch) */
.cx-why-circle-wrap::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.35);
    animation: cx-rotate 25s linear infinite;
    pointer-events: none;
}

@keyframes cx-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .cx-why-section {
        padding: 70px 0;
    }
    .cx-why-circle {
        width: 340px;
        height: 340px;
    }
    .cx-why-circle-wrap::after {
        width: 390px;
        height: 390px;
    }
    .cx-sec-desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cx-why-section {
        padding: 60px 0;
    }
    .cx-sec-heading {
        font-size: 1.9rem;
    }
    .cx-sec-desc {
        font-size: 0.98rem;
        padding-left: 16px;
    }
    .cx-why-circle {
        width: 260px;
        height: 260px;
        padding: 8px;
    }
    .cx-why-circle-wrap::after {
        width: 300px;
        height: 300px;
    }
    .cx-why-circle-wrap {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .cx-why-circle {
        width: 220px;
        height: 220px;
        padding: 6px;
    }
    .cx-why-circle-wrap::after {
        width: 260px;
        height: 260px;
    }
}

/* ---------- Feature Cards ---------- */
.cx-feature-card {
    background: #ffffff;
    border: 1px solid var(--cx-card-border);
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.cx-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.cx-feature-card.active-dark {
    background: var(--cx-emerald-dark);
    color: #ffffff;
    border-color: var(--cx-emerald-dark);
}

.cx-feature-card.active-dark h4 {
    color: #ffffff;
}

.cx-feature-card.active-dark p {
    color: #94a3b8;
}

.cx-feature-card.active-dark .cx-card-num {
    color: #10b981;
}

.cx-card-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    display: block;
    margin-bottom: 20px;
}

.cx-feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cx-text-dark);
    margin-bottom: 12px;
}

.cx-feature-card p {
    color: var(--cx-text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Current Openings ---------- */
.cx-openings-section {
    padding: 90px 0;
    background: #ffffff;
}

.cx-badge-count {
    background: #f1f5f9;
    color: var(--cx-text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

/* ---------- Accordion ---------- */
.cx-accordion .accordion-item {
    border: 1px solid var(--cx-card-border);
    border-radius: 12px !important;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

.cx-accordion .accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.cx-accordion .accordion-button {
    padding: 22px 28px;
    background: #ffffff;
    box-shadow: none !important;
    color: var(--cx-text-dark);
}

.cx-accordion .accordion-button:not(.collapsed) {
    background: #fafafa;
    color: var(--cx-text-dark);
}

.cx-accordion .accordion-button::after {
    display: none;
}

.cx-job-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--cx-emerald-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cx-job-tags .badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 10px;
}

.cx-job-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cx-text-dark);
}

.cx-view-btn {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cx-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.cx-accordion .accordion-button:not(.collapsed) .cx-view-btn {
    background: var(--cx-emerald-dark);
    color: #ffffff;
}

/* ---------- Upload Resume Bar ---------- */
.cx-upload-bar {
    background: var(--cx-light-bg);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 32px;
}

.cx-upload-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--cx-emerald-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ---------- Bottom CTA ---------- */
.cx-bottom-cta {
    background: linear-gradient(135deg, #03180e 0%, #082d1c 60%, #0d3d27 100%);
    padding: 90px 0;
    color: #ffffff;
    position: relative;
}

.cx-badge-light {
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.cx-cta-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cx-cta-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ---------- Modal ---------- */
.modal-content.cx-modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-header.cx-modal-header {
    background: var(--cx-emerald-dark);
    color: #ffffff;
    padding: 24px 30px;
    border: none;
}

.modal-header.cx-modal-header .btn-close {
    filter: invert(1);
}

.cx-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cx-dropzone:hover {
    border-color: var(--cx-emerald-accent);
    background: rgba(16, 185, 129, 0.04);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .cx-hero-section {
        padding: 70px 0 60px;
    }
    .cx-hero-title {
        font-size: 2.5rem;
    }
    .cx-why-section,
    .cx-openings-section {
        padding: 60px 0;
    }
    .cx-sec-heading {
        font-size: 2rem;
    }
    .cx-bottom-cta {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .cx-hero-section {
        padding: 60px 0 50px;
        text-align: center;
    }
    .cx-hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .cx-hero-btns {
        justify-content: center;
    }
    .cx-accordion .accordion-button {
        padding: 16px 18px;
        flex-wrap: wrap;
    }
    .cx-view-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .cx-upload-bar {
        padding: 20px;
        text-align: center;
    }
    .cx-upload-bar .row {
        justify-content: center;
    }
    .cx-bottom-cta {
        text-align: center;
        padding: 50px 0;
    }
    .cx-metrics-ribbon {
        padding: 24px 0;
    }
    .cx-metric-num {
        font-size: 1.8rem;
    }
    .cx-feature-card {
        padding: 28px 20px;
    }
    .cx-hero-card {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .cx-hero-title {
        font-size: 2rem;
    }
    .cx-hero-desc {
        font-size: 0.95rem;
    }
    .cx-sec-heading {
        font-size: 1.6rem;
    }
    .cx-job-title {
        font-size: 0.95rem;
    }
    .cx-accordion .accordion-button {
        padding: 14px 14px;
    }
    .cx-job-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}