/* ==============================================================================
   SUROPRIYO ENTERPRISE - MODERN SOFTWARE COMPANY CAREERS DIRECTORY
   Unified, Consistent & Premium UI System (Enterprise Blue & Slate Theme)
   ============================================================================== */

:root {
    --brand-primary: var(--se-primary, #2563eb);
    --brand-primary-hover: var(--se-primary-hover, #1d4ed8);
    --brand-primary-soft: rgba(37, 99, 235, 0.08);
    --brand-accent: #38bdf8;
    --navy-950: #020024;
    --navy-900: #060552;
    --navy-800: #091a44;
    --navy-700: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: var(--se-dark, #0f172a);
    --emerald-bg: #ecfdf5;
    --emerald-border: #a7f3d0;
    --emerald-text: #065f46;
    --amber-bg: #fffbeb;
    --amber-border: #fde68a;
    --amber-text: #92400e;
    --blue-bg: #eff6ff;
    --blue-border: #bfdbfe;
    --blue-text: var(--se-primary-hover, #1d4ed8);
}

/* ==============================================================================
   GLOBAL RESET & OVERRIDES (Overrides Header.css body gradient & forced color)
   Navbar gap fix: padding-top: 0 allows hero to start behind fixed navbar
   ============================================================================== */
html,
body {
    background: #f8fafc !important;
    background-image: none !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
    padding-top: 0 !important; /* Navbar gap fix - matches Home.css & services.css */
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    overflow-x: hidden !important;
}

@media (max-width: 991.98px) {
    html,
    body {
        padding-top: 0 !important;
    }
}

/* Full layout wrapper ensuring solid consistent background across all viewports */
.careers-page-layout {
    background-color: #f8fafc;
    color: #334155;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.careers-body-wrapper {
    background-color: #f8fafc;
    flex: 1 0 auto;
    position: relative;
    padding-bottom: 50px;
}

/* --------------------------------------------------------------------------
   1. HERO HEADER SECTION (Company Signature Executive Blue/Navy Gradient)
   Compact, sleek, with top padding starting behind the 75-85px fixed navbar
   -------------------------------------------------------------------------- */
.careers-hero-section {
    background: var(--se-hero-bg, #060552) !important;
    color: #ffffff !important;
    padding: 105px 0 36px !important;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
    .careers-hero-section {
        padding: 95px 0 28px !important;
    }
}

.careers-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 650px;
    height: 100%;
    background: radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 75%);
    pointer-events: none;
}

.hero-breadcrumb {
    margin-bottom: 10px !important;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-breadcrumb a:hover {
    color: #ffffff !important;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #bfdbfe !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(1.75rem, 3.4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff !important;
    line-height: 1.22;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    margin-bottom: 8px !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 680px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 14px !important;
}

.hero-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   2. UNIFIED SEARCH & FILTER CONTROL BAR (Completely isolated from Header.css)
   -------------------------------------------------------------------------- */
.careers-filter-card {
    background: #ffffff !important;
    border-radius: 16px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.08) !important;
    padding: 20px 22px;
    margin-top: -24px;
    position: relative;
    z-index: 15;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Scoped search magnifier: zero background, zero padding, immune to Header.css */
.filter-search-magnifier {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b !important;
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 5;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: 1;
    display: inline-block !important;
}

.filter-search-input {
    padding-left: 38px !important;
    padding-right: 36px !important;
    height: 46px;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: var(--se-dark, #0f172a) !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-search-input::placeholder {
    color: #94a3b8 !important;
}

.filter-search-input:focus {
    border-color: var(--se-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
    outline: none !important;
}

.filter-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 6px !important;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
    line-height: 1;
    z-index: 5;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    color: var(--se-dark, #0f172a) !important;
    background: #f1f5f9 !important;
}

.filter-select {
    height: 46px;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: var(--se-dark, #0f172a) !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--se-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
    outline: none !important;
}

.filter-reset-btn {
    height: 46px;
    width: 46px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: #f1f5f9;
    color: var(--se-dark, #0f172a);
    border-color: #94a3b8;
}

/* Quick Filter Pills Under Toolbar */
.quick-pill-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.pill-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b !important;
    margin-right: 4px;
}

.tech-filter-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tech-filter-pill:hover {
    background: #e2e8f0 !important;
    color: var(--se-dark, #0f172a) !important;
    transform: translateY(-1px);
}

.tech-filter-pill.active {
    background: var(--se-primary, #2563eb) !important;
    border-color: var(--se-primary, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

#savedJobsPill {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #be123c !important;
}

#savedJobsPill:hover {
    background: #ffe4e6 !important;
    color: #9f1239 !important;
}

#savedJobsPill.active {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* --------------------------------------------------------------------------
   3. RESULTS HEADER & CONTROLS
   -------------------------------------------------------------------------- */
.results-header-bar {
    padding: 24px 0 16px;
}

.results-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--se-dark, #0f172a) !important;
    letter-spacing: -0.02em;
}

.results-heading #visibleJobsCount {
    color: var(--se-primary, #2563eb);
}

.view-toggle-group {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #cbd5e1;
}

.view-toggle-btn {
    border: none;
    background: transparent;
    color: #64748b !important;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background: #ffffff !important;
    color: var(--se-primary, #2563eb) !important;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   4. STANDARD SOFTWARE COMPANY JOB CARD (Grid View)
   -------------------------------------------------------------------------- */
.job-item-card {
    background: #ffffff !important;
    border-radius: 16px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 22px;
}

.job-item-card:hover {
    border-color: #93c5fd !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.12);
}

.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

/* With a long title the status pill and bookmark stack instead of spilling out of the card */
.card-top-meta > :last-child {
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
}

.job-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.35;
    margin-bottom: 5px;
}

.job-card-title a {
    color: var(--se-dark, #0f172a) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-card-title a:hover {
    color: var(--se-primary, #2563eb) !important;
}

.job-company-subtitle {
    font-size: 0.86rem;
    color: #64748b !important;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.job-company-subtitle .company-name {
    color: var(--se-dark, #0f172a) !important;
    font-weight: 600;
}

.job-company-subtitle .location-text {
    color: #475569 !important;
}

.job-company-subtitle .dot-separator {
    color: #cbd5e1;
}

/* Status / Urgency Pills */
.status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill-urgent {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
}

.status-pill-hot {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #b45309 !important;
}

.status-pill-new {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

.status-pill-paused {
    background: #fff7ed !important;
    border: 1px solid #fdba74 !important;
    color: #c2410c !important;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.12);
}

.status-pill-default {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: var(--se-primary-hover, #1d4ed8) !important;
}

/* Bookmark Action Button */
.card-bookmark-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.card-bookmark-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--se-primary, #2563eb);
}

.card-bookmark-btn.saved {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Structured Compensation & Experience Highlights */
.spec-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.badge-remuneration {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-experience {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-schedule {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #1e40af !important;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 2-Line Concise Role Preview */
.job-summary-preview {
    font-size: 0.88rem;
    line-height: 1.58;
    color: #475569 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Technology Stack Tags */
.card-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.job-tech-tag {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--se-primary-hover, #1d4ed8) !important;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.job-tech-tag:hover {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}

/* Card Action Footer */
.job-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.job-posted-date {
    font-size: 0.8rem;
    color: #64748b !important;
    font-weight: 500;
}

.btn-view-role {
    background: var(--se-primary, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    border: none;
}

.btn-view-role:hover {
    background: var(--se-primary-hover, #1d4ed8) !important;
    color: #ffffff !important;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.share-copy-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-copy-icon-btn:hover {
    background: #e2e8f0;
    color: var(--se-dark, #0f172a);
}

/* --------------------------------------------------------------------------
   5. ALTERNATIVE LIST VIEW (Linear/Stripe Style)
   -------------------------------------------------------------------------- */
.jobs-container.list-layout .job-card-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.jobs-container.list-layout .job-item-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 20px;
}

.jobs-container.list-layout .list-left-content {
    flex: 1 1 50%;
    min-width: 0;
}

.jobs-container.list-layout .list-middle-content {
    flex: 0 0 auto;
}

.jobs-container.list-layout .job-card-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
}

.jobs-container.list-layout .job-summary-preview {
    display: none;
}

@media (max-width: 991.98px) {
    .jobs-container.list-layout .job-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .jobs-container.list-layout .job-card-footer {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
}

/* --------------------------------------------------------------------------
   6. EMPTY STATE & FLOATING TOAST
   -------------------------------------------------------------------------- */
.empty-results-box {
    background: #ffffff !important;
    border-radius: 16px;
    border: 2px dashed #cbd5e1 !important;
    padding: 50px 24px;
    text-align: center;
    max-width: 520px;
    margin: 30px auto;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.empty-results-box h3,
.empty-results-box h4 {
    color: var(--se-dark, #0f172a) !important;
    font-weight: 800;
}

.empty-results-box p {
    color: #64748b !important;
    font-size: 0.95rem;
}

.empty-results-icon {
    font-size: 2.8rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.toast-floating-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1090;
    background: var(--se-dark, #0f172a) !important;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-floating-pill.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   7. MOBILE & TABLET RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .careers-hero-section {
        padding: 100px 0 32px !important;
    }
}

@media (max-width: 767.98px) {
    .careers-hero-section {
        padding: 92px 0 28px !important;
    }
    .view-toggle-group {
        display: none !important;
    }
    .careers-filter-card {
        padding: 16px 12px;
        margin-top: -18px;
        border-radius: 16px;
    }
    .quick-pill-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .quick-pill-strip::-webkit-scrollbar {
        display: none;
    }
    .tech-filter-pill, #savedJobsPill {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .job-item-card {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .job-card-title {
        font-size: 1.08rem;
    }
    .badge-remuneration, .badge-experience {
        font-size: 0.78rem;
    }
    .toast-floating-pill {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }
}
