/* Core CSS Variables and Font Styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
:root {
    /* Fonts */
    --font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 2.75rem;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.25rem;
    --font-size-body: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Colors */
    --color-hospital: #00b4d8;
    --color-school: #1e3a8a;
    --color-trust: #7c3aed;

    --active-color: var(--color-hospital);
    --active-light: #e0f2fe;

    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}



/* General Section Typography */
.section-subtitle {
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
    width: 100% !important;
}

/* Career Filter Pill Tabs (matches news_events.php style) */
.opportunities-container {
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
    margin-bottom: 64px;
}
.opportunities-container h2 {
    text-align: center !important;
}

.career-filter-nav {
    display: flex;
    justify-content: center;
    margin: 0px auto 30px;
}

.jobs-header div {
    font-weight: 700;
    font-size: 17px;
    color: #00b0c8;
}

.career-filter-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.career-filter-btn {
    border: 1px solid #9d9d9d2e;
    background: #fff;
    color: #4f5b66;
    padding: 10px 30px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(2, 17, 34, 0.04);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-body);
}

.career-filter-btn:hover,
.career-filter-btn.current {
    background: linear-gradient(135deg, #00B0C8 0%, #00B0C8 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(22, 181, 197, 0.22);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    background: rgba(0, 176, 200, 0.12);
    color: #00B0C8;
    margin-left: 6px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
}

.career-filter-btn:hover .tab-count,
.career-filter-btn.current .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Jobs Table/List */
.jobs-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
}

.jobs-header {
    display: flex;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--active-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.jobs-list {
    display: flex;
    flex-direction: column;
}

.job-row {
    display: flex;
    align-items: center;
    padding: 20px 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.job-row:last-child {
    border-bottom: none;
}

.job-row:hover {
    background-color: var(--bg-page);
}

/* Job Table Columns Layout */
.col-title {
    flex: 2.2;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    font-size: var(--font-size-body);
}

.col-dept {
    flex: 1.5;
    font-weight: var(--font-weight-medium);
}

.col-loc {
    flex: 1.8;
    font-weight: var(--font-weight-medium);
}

.col-exp {
    flex: 1.2;
    font-weight: var(--font-weight-medium);
}

.col-type {
    flex: 1.2;
    font-weight: var(--font-weight-medium);
}

.col-action {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn-apply {
    background-color: var(--active-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: flex;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-fast), transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-apply:hover {
    filter: brightness(0.9);
}

.btn-apply:active {
    transform: scale(0.97);
}

.btn-apply svg {
    transition: transform var(--transition-fast);
}

.btn-apply:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================================
   Recruitment Process Section
   ============================================================ */
.recruitment-card {
    background-color: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 60px 24px 56px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ---- Header ---- */
.rp-header {
    text-align: center;
    margin-bottom: 25px;
}

.career_info {
    margin-bottom: 50px;
}
/* ---- Steps Row ---- */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1060px;
    gap: 0;
}

/* ---- Step Node ---- */
.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 130px;
    flex-shrink: 0;
    position:relative;
}
.step-node::before {
    content: '';
    position: absolute;
    left: auto;
    right: -74%;
    top: 40px;
    height: 2px;
    width: 130px;
    background-color: rgb(0 176 200 / 18%);
    border-radius: 999px;
    z-index: 0;
}
.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color:#edf9fb;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00b0c8;
    margin-bottom: 0;
    flex-shrink: 0;
    z-index:1;
    transition: background-color 0.25s ease, transform 0.2s ease;
}
.lst_step::before {
    display: none;
}
/* .step-node:hover .step-circle {
    background-color: rgba(248, 113, 113, 0.18);
    transform: translateY(-3px);
} */

.step-circle svg {
    width: 30px;
    height: 30px;
}

/* Final / filled step circle */
.step-circle--final {
    background-color: #00B0C8;
    color: #fff;
}

/* .step-node:hover .step-circle--final {
    background-color: #0097ac;
} */

/* ---- Step Bottom (number + label + bar) ---- */
.step-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    gap: 6px;
}

.step-num {
    font-family: var(--font-family);
    font-size: 1.45rem;
    font-weight: 600;
    color: #00B0C8;
    line-height: 1;
    letter-spacing: -0.01em;
}

.step-label {
    font-family: var(--font-family);
    font-size: 0.825rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    max-width: 110px;
}

.step-bar {
    width: 28px;
    height: 3px;
    background-color: #00B0C8;
    border-radius: 3px;
    margin-top: 4px;
}

/* ---- Info Notice ---- */
.rp-info-notice {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: rgba(0, 176, 200, 0.07);
    border: 1px solid rgba(0, 176, 200, 0.18);
    border-radius: 12px;
    padding: 16px 28px;
    margin-top: 44px;
    max-width: fit-content;
    width: 100%;
}

.rp-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #00B0C8;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.rp-info-icon svg {
    width: 17px;
    height: 17px;
}

.rp-info-divider {
    width: 1px;
    height: 32px;
    background-color: rgba(0, 176, 200, 0.35);
    margin: 0 18px;
    flex-shrink: 0;
}

.rp-info-text {
    margin-bottom: 0px;
}



/* RESPONSIVE DESIGN - FLEX ONLY */


@media (max-width: 900px) {
    .career-filter-btn {
        padding: 9px 22px;
        font-size: 0.95rem;
    }
}

/* Convert jobs table to card layout on tablet/mobile */
@media (max-width: 800px) {
    .career-filter-nav ul {
        gap: 12px;
    }

    .career-filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .step-label {
        max-width: 100%;
    }
    /* Convert Table to Card Rows */
    .jobs-header {
        display: none;
        /* Hide table headers */
    }
    
    .job-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 24px 16px;
    }

    .job-row>div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Prefix labels for mobile card table items */
    .job-row>div::before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold);
        color: var(--active-color);
        font-size: var(--font-size-xs);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .col-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .col-title::before {
        display: none;
        /* No prefix for Job Title */
    }

    .col-action {
        margin-top: 8px;
    }

    .col-action::before {
        display: none;
        /* No prefix for Action button */
    }

    .btn-apply {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    /* Timeline Section — Vertical Timeline on mobile */
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 0px;
    }
    .rp-header {
        margin-bottom: 0;
    }
    .step-node {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 0;
    }

    .step-bottom {
        align-items: flex-start;
        margin-top: 0;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        padding: 18px 0 18px 4px;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .step-circle svg {
        width: 20px;
        height: 20px;
    }

    /* Arrow becomes a dotted vertical line on mobile */
    .step-arrow {
        margin: 0;
        padding: 0;
        width: 64px;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
    }

    .step-arrow::before {
        display: none;
    }

    .step-arrow svg {
        display: none;
    }

    .step-arrow::after {
        content: '';
        display: block;
        width: 2px;
        height: 28px;
        background: repeating-linear-gradient(
            to bottom,
            #ef4444 0px,
            #ef4444 4px,
            transparent 4px,
            transparent 8px
        );
        border-radius: 2px;
        opacity: 0.5;
    }

    .rp-info-notice {
        border-radius: 10px;
        flex-direction: row;
        align-items: flex-start;
        padding: 16px 18px;
        margin-top: 32px;
    }

    .rp-info-divider {
        height: auto;
        align-self: stretch;
        min-height: 36px;
        margin: 0 12px;

    }
}

@media (max-width: 767px) {
    .jobs-card,
    .recruitment-card {
        padding: 0px;
    }
    .step-node::before {
        left: 24px;
        right: auto;
        top: 40px;
        height: 120px;
        width: 1px;
    }
    .rp-info-text {
        font-size: 13px;
        line-height: 19px;
    }
    .rp-info-icon {
        width: 30px;
        height: 30px;
    }
    .career_Sec {
        padding-bottom:0px;
    }
}


.hospital-jobs,
.school-jobs,
.trust-jobs {
    display: none;
}