/* ==========================================================================
   Staurax Careers Portal Styles
   ========================================================================== */

/* Top Full-Width Picture Banner */
.jobs-top-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height, 80px);
    background-color: #0f172a;
}

.jobs-banner-img-wrap {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.jobs-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: brightness(0.92);
}

.jobs-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(248, 249, 250, 0.95) 100%);
    pointer-events: none;
}

/* Main Content Area */
.jobs-main-content {
    background-color: var(--bg-secondary, #f8f9fa);
    padding: 20px 20px 80px;
    min-height: 60vh;
    font-family: var(--font-main, 'Inter', system-ui, sans-serif);
}

.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Intro Section */
.jobs-header-section {
    position: relative !important;
    display: block !important;
    text-align: center;
    max-width: 860px;
    margin: 40px auto 48px !important;
    padding: 0 16px;
    width: 100%;
    clear: both;
}

.jobs-main-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 18px 0;
    text-align: center;
}

.jobs-main-desc {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 auto 28px;
    max-width: 780px;
    text-align: center;
}

.jobs-email-highlight {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.jobs-email-highlight:hover {
    color: #1d4ed8;
}

/* Openings Pill Badge (Rounded Button Style, Non-button) */
.jobs-openings-pill-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    width: 100%;
}

.jobs-openings-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 9999px;
    padding: 12px 34px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    user-select: none;
}

.jobs-openings-pill .pill-text {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

/* Job Cards Grid */
.jobs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Individual Job Card */
.job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

/* Card Header (Experience & Type) */
.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.job-exp-line {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.job-badge-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Job Title */
.job-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 14px;
}

/* Job Description */
.job-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Skills Badges */
.job-skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.job-skill-tag {
    font-size: 0.78rem;
    font-weight: 600;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Contact & Apply Actions */
.job-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.job-email-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.job-email-group .email-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.job-email-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-email-link:hover {
    color: #2563eb;
}

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.job-apply-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Share Job Section */
.job-share-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.share-heading {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.share-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.share-fb:hover {
    background: #1877f2;
    color: #ffffff !important;
    border-color: #1877f2;
}

.share-tw:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

.share-in:hover {
    background: #0a66c2;
    color: #ffffff !important;
    border-color: #0a66c2;
}

.share-pin:hover {
    background: #e60023;
    color: #ffffff !important;
    border-color: #e60023;
}

.share-copy:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

/* Bottom Note */
.jobs-bottom-note {
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px 28px;
    max-width: 860px;
    margin: 0 auto;
}

.jobs-bottom-note p {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.jobs-bottom-note a {
    color: #2563eb;
    font-weight: 700;
}

.jobs-bottom-note a:hover {
    text-decoration: underline;
}

/* Toast Notification */
.job-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.job-toast i {
    color: #22c55e;
}

.job-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .jobs-banner-img-wrap {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .jobs-banner-img-wrap {
        height: 240px;
    }

    .jobs-cards-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 24px 20px;
    }

    .job-contact-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-apply-btn {
        width: 100%;
        justify-content: center;
    }

    .share-buttons-group {
        width: 100%;
    }

    .share-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}
