/* TechOne Careers page — mobile-first polish */

body.page-careers {
    background: #ffffff;
}

/* Fixed compact header from first paint (beats style.css / mobile-fix padding) */
body.page-careers .navbar-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08) !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    animation: none !important;
    -webkit-animation: none !important;
}

body.page-careers .navbar-section.is-sticky,
body.page-careers .navbar-section.navbar-inner-page {
    padding: 0 !important;
    min-height: 0 !important;
    animation: none !important;
    -webkit-animation: none !important;
}

body.page-careers .techvio-responsive-nav .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

body.page-careers .techvio-responsive-menu {
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.page-careers .techvio-responsive-menu .logo img {
    max-height: 36px !important;
    height: 36px !important;
    width: auto !important;
}

body.page-careers .mobile-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    padding: 10px 8px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

/* Hero — match landing purple→cyan gradient */
.careers-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    /* Compact 56px nav + gap */
    padding: 96px 0 64px;
    background: linear-gradient(to bottom, #370b6f, #00429b, #006dba, #0095ce, #2dbcdc);
    color: #fff;
}

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

.careers-hero-glow {
    position: absolute;
    right: -12%;
    bottom: -28%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(45, 188, 220, 0.35);
    filter: blur(52px);
    pointer-events: none;
    z-index: 0;
}

.careers-brand {
    font-family: Poppins, sans-serif;
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 6px;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.careers-kicker {
    display: inline-block !important;
    font-family: Poppins, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    line-height: 1.4 !important;
}

.careers-hero h1 {
    font-family: Poppins, sans-serif !important;
    font-size: clamp(1.35rem, 4.2vw, 1.85rem) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 14px !important;
    max-width: 22ch;
    color: #ffffff !important;
    overflow: visible;
}

.careers-lead {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 34rem;
    margin: 0 0 22px !important;
}

.careers-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.careers-hero-meta span {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.careers-hero-meta i {
    margin-right: 7px;
    color: #ff9800;
    font-size: 0.8rem;
}

/* Jobs section */
.careers-section {
    position: relative;
    z-index: 2;
    margin-top: -24px;
    padding: 36px 0 100px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(55, 11, 111, 0.12);
}

.careers-panel {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(55, 11, 111, 0.05);
    margin-bottom: 20px;
}

.careers-panel-head h2 {
    font-family: Poppins, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #370b6f;
    margin: 0 0 6px;
}

.careers-panel-head p {
    color: #64748b !important;
    margin: 0 0 18px !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.careers-job-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.careers-job {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers-job:hover,
.careers-job.is-active {
    border-color: #7b68ee;
    box-shadow: 0 8px 22px rgba(123, 104, 238, 0.14);
}

.careers-job-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.careers-job h3 {
    font-family: Poppins, sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 650 !important;
    color: #370b6f !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

.careers-job-summary {
    color: #475569 !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.careers-apply-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 5px;
    background: #7b68ee;
    box-shadow: 0 7px 25px rgba(123, 104, 238, 0.25);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.careers-apply-btn:hover {
    color: #fff !important;
    background: #3e57d0;
    box-shadow: 0 7px 25px rgba(62, 87, 208, 0.3);
}

.careers-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
}

.careers-tags li {
    background: rgba(123, 104, 238, 0.12);
    color: #370b6f;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.careers-details {
    margin-top: 12px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

.careers-details summary {
    cursor: pointer;
    color: #7b68ee;
    font-weight: 600;
    font-size: 0.88rem;
    outline: none;
}

.careers-details-body {
    margin-top: 10px;
    color: #475569 !important;
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
}

.careers-apply-panel {
    position: sticky;
    top: 88px;
}

.careers-form .form-group {
    margin-bottom: 14px;
}

.careers-form label {
    display: block;
    font-weight: 600;
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 6px;
}

.careers-form label span {
    color: #7b68ee;
}

.careers-form .form-control-custom {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #fff;
}

.careers-form .form-control-custom:focus {
    outline: none;
    border-color: #7b68ee;
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.18);
}

.careers-form .careers-file {
    padding: 10px 12px;
    line-height: 1.4;
}

.careers-file-hint {
    margin: 6px 0 0 !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.careers-submit {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.careers-form-note,
.careers-muted {
    margin-top: 12px !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.careers-empty {
    text-align: center;
    padding: 36px 12px;
    color: #64748b;
}

.careers-empty i {
    font-size: 1.8rem;
    color: #7b68ee;
    margin-bottom: 10px;
}

.careers-empty h3 {
    color: #370b6f !important;
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
}

.careers-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.92rem !important;
}

.careers-alert-success {
    background: #ecfdf5;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

.careers-alert-error {
    background: #fef2f2;
    color: #991b1b !important;
    border: 1px solid #fecaca;
}

/* Keep floating call from covering job text */
body.page-careers .floating-call-btn {
    bottom: 24px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
}

body.page-careers .floating-google-badge {
    display: none !important;
}

body.page-careers .sticky-cta-bar {
    display: none !important;
}

body.page-careers.has-sticky-cta .floating-call-btn {
    bottom: 24px !important;
}

@media (max-width: 991px) {
    body.page-careers .navbar-section,
    body.page-careers .navbar-section.is-sticky,
    body.page-careers .navbar-section.navbar-inner-page {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .careers-hero {
        padding: 78px 18px 48px;
        padding-top: max(78px, calc(56px + env(safe-area-inset-top, 0px) + 18px));
    }

    .careers-brand {
        font-size: clamp(2.15rem, 11vw, 2.75rem);
        margin-bottom: 4px;
    }

    .careers-kicker {
        margin-bottom: 12px !important;
        font-size: 11px !important;
    }

    .careers-hero h1 {
        font-size: 1.28rem !important;
        max-width: none;
        margin-bottom: 12px !important;
    }

    .careers-lead {
        font-size: 0.92rem !important;
        margin-bottom: 18px !important;
    }

    .careers-section {
        margin-top: -18px;
        padding: 22px 0 88px;
        border-radius: 20px 20px 0 0;
    }

    .careers-section > .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Flatten nested cards on mobile */
    .careers-panel {
        padding: 4px 2px 8px;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 8px;
        border-radius: 0;
    }

    .careers-apply-panel {
        position: static;
        margin-top: 12px;
        padding: 18px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 8px 20px rgba(55, 11, 111, 0.06) !important;
    }

    .careers-job-top {
        flex-direction: column;
    }

    .careers-apply-btn {
        width: 100%;
        padding: 12px 16px;
        margin-top: 4px;
    }

    .careers-job {
        padding: 16px;
        /* room so call FAB doesn't cover copy */
        padding-right: 18px;
    }
}

@media (min-width: 992px) {
    body.page-careers .navbar-section {
        padding: 0 !important;
    }

    body.page-careers .techvio-nav .navbar {
        min-height: 70px;
    }

    .careers-hero {
        padding: 120px 0 72px;
    }

    .careers-brand {
        font-size: 3.2rem;
    }

    .careers-hero h1 {
        font-size: 1.75rem !important;
    }
}
