/* CAREERS PAGE STRATEGY */
.careers-page main {
    padding-top: 3rem;
}

/* 1. HERO REFINEMENT */
.careers-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Gives text more room than the badge */
    align-items: center;
    /* THE FIX: Keeps both sides centered on the same horizon */
    gap: 4rem;
    padding: 8rem 0;
}

/* 2. TYPOGRAPHY: The Amaranth Power */
.display-xl {
    font-size: 5.5rem;
    /* Large, bold command */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3.5rem;
    letter-spacing: -0.1rem;
}

/* 3. THE POSITIONS LIST: Clinical & Organized */

/* 4. THE HIRING BADGE: The Flyer Signature */
/* 1. THE MAIN SYSTEM */
/* 1. THE GHOST SHIELD: Background Anchor */
.hud-background-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.04; /* Barely visible, technical 'etching' look */
    pointer-events: none;
}

.hud-background-shield svg {
    width: 35rem !important; /* Massive scale */
    height: 35rem !important;
    color: var(--navy);
}

/* 2. THE HUD SYSTEM CONTAINER */
.medical-hud-system {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 40rem;
}

/* 3. THE MAIN CARD: Expanded Padding */
.main-panel {
    background: #fff;
    /* Luxury Padding: 5rem Top/Bottom, 4rem Left/Right */
    padding: 5rem 4rem; 
    border-radius: 1.5rem;
    box-shadow: 0 4rem 8rem rgba(18, 26, 51, 0.08); /* Deep soft navy shadow */
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    min-width: 22rem;
}

.main-panel h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hud-label {
    font-size: 0.75rem;
    color: var(--red);
    letter-spacing: 0.25rem;
    display: block;
    margin-bottom: 2.5rem;
}

/* 4. THE STATUS BAR */
.hud-status-bar {
    width: 80%;
    height: 3px;
    background: #eee;
    margin: 3rem auto 0;
    border-radius: 10px;
    overflow: hidden;
}

/* THE HEARTBEAT ENGINE: 3-Second Cycle */
.status-fill {
    width: 0;
    height: 100%;
    background: var(--red);
    box-shadow: 0 0 1.25rem rgba(227, 30, 36, 0.5);
    /* 
       Synced to a 3s loop. 
       We use a 'Step' style ease to mimic a digital readout.
    */
    animation: bar-sync 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes bar-sync {
    0% { width: 0%; opacity: 0.3; }
    40% { width: 100%; opacity: 1; } /* Peak of the beat */
    50% { width: 100%; opacity: 1; } /* Hold for a split second */
    100% { width: 0%; opacity: 0.3; } /* Recede and reset */
}

/* 5. FLOATING PODS: Clean and Technical */
.hud-pod {
    position: absolute;
    background: #fff;
    padding: 1.25rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.06);
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    z-index: 20;
}

.pod-top { top: 15%; right: -2rem; }
.pod-bottom { bottom: 15%; left: -2rem; }

/* 6. FLOATING ANIMATION LOGIC */
@keyframes float-logic {
    0% { transform: translateY(0); }
    50% { transform: translateY(-.5rem); }
    100% { transform: translateY(0); }
}

.float-slow { animation: float-logic 7s ease-in-out infinite; }
.float-fast { animation: float-logic 5s ease-in-out infinite; }

/* Mobile logic: Pull the pods in */
@media (max-width: 900px) {
    .pod-top { right: 0; }
    .pod-bottom { left: 0; }
    .main-panel { padding: 3rem 2rem; min-width: 18rem; }
}

/* ANIMATION: Subtle Floating */
/* 1. THE PULSE CONTAINER */
.hud-pulse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits behind cards, in front of shield */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* 2. THE RINGS: Surgical Precision */
.pulse-ring {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(18, 26, 51, 0.1);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    /* 
       Synced to the same 3s loop as the bar.
    */
    animation: ring-sync 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* THE STAGGER: Creating the 'Concentric' Wave */
.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 1s; } /* Second wave halfway through */
.ring-3 { animation-delay: 2s; } /* Third wave near the end */

@keyframes ring-sync {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    /* 
       The ring becomes most visible (opacity 1) 
       exactly when the status bar hits its peak (around 40%) 
    */
    20% {
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* 4. THE RADIATE ANIMATION */
@keyframes hud-radiate {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Quick fade in */
    }
    100% {
        transform: scale(2.8); /* Expands to fill the ghost shield area */
        opacity: 0; /* Graceful fade out */
    }
}

/* 5. BONUS: Technical 'Crosshair' Detail */
/* Adds small dots on the rings for a more 'Medical Interface' look */
.pulse-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.3;
}

/* 2. BENEFITS SECTION */
#career-benefits {
    padding: 8rem 0;
    margin-bottom: 15vh;
    background: #fff;
}

.center-heading-small {
    text-align: center;
    margin-bottom: 5rem;
}

.center-heading-small h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.red-line-short {
    width: 3rem;
    height: 3px;
    background: var(--red);
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 3. OPEN POSITIONS LIST */
#positions-list {
    padding: 6rem 0 4rem 0;
}

.positions-container {
    background: #fff;
    padding: 4rem;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.05);
    margin-bottom: 10vh;
}

.positions-label {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    margin-bottom: 3rem;
    border-radius: 5px;
}

.positions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.pos-item {
    border-left: 3px solid #eee;
    padding-left: 1.5rem;
    transition: 0.3s;
}

.pos-item:hover {
    border-left-color: var(--red);
}

.pos-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pos-main i {
    color: var(--red);
    width: 1.25rem;
}

.pos-main span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.pos-tagline {
    font-size: 0.875rem;
    color: var(--grey-label);
    font-weight: 500;
}

/* 4. THE SLANTED NAVY CTA (Bottom of page) */
/* 1. HERO REFINEMENT */
/* 1. GRID CALIBRATION: Ensure text and badge share the same horizon */
.careers-hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* THE FIX: Keeps the badge and headline vertically centered */
    padding: 8rem 0;
    gap: 5rem;
}

.careers-hero-description {
    font-size: 1.25rem;
    /* 24px */
    font-weight: 200;
    max-width: 35rem;
    line-height: 1.4;
    margin-top: 1.5rem;
    color: var(--grey-label);
}


/* 3. HEADLINE LOCK: Command the space */
.hero-text-side {
    max-width: 40rem;
    /* Prevents the text from getting too wide to read */
}

.display-xl {
    font-size: 4.5rem;
    /* 72px */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.05rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--grey-label);
    line-height: 1.4;
}

/* 2. BENEFITS SECTION: FIXING THE SHADOW BUG */
#career-benefits {
    padding: 8rem 0 4rem 0;
    background: #fff;
}

.center-heading {
    text-align: center;
    margin-bottom: 5rem;
}

.center-heading .red {
    color: var(--red) !important;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.divider-line-red {
    width: 4rem;
    height: 4px;
    background: var(--red);
    margin: 0 auto;
}

.benefits-flex-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
}

.benefit-card {
    background: #fff;
    flex: 1;
    max-width: 24rem;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0.75rem;
    /* THE FIX: Vertical offset shadow, no halo */
    box-shadow: 0 1.25rem 2.5rem rgba(18, 26, 51, 0.05);
    border-top: 4px solid var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card i,
.benefit-card svg,
.benefit-card [data-lucide] {
    color: var(--red);
    margin-bottom: 1.5rem;
    width: 2rem;
    height: 2rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.benefit-card p {
    font-size: 1.15rem;
    color: var(--grey-label);
    line-height: 1.7;
}

/* 3. NAVY CTA: FIXING THE VISIBILITY & Z-INDEX */
.slanted-navy-bg {
    background-color: var(--navy);
    padding: 16rem 0 12rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -6rem;
    /* Added to fix rendering issues on dark backgrounds */
    isolation: isolate;
}

.red-line-slant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    clip-path: polygon(0 12%, 100% 0, 100% 0.3rem, 0 12.3rem);
    z-index: 2;
}

.careers-watermark {
    position: absolute;
    right: 0;
    bottom: -4rem;
    font-size: 11vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.15);
    /* THE FIX: Darker/Transparent as requested */
    z-index: 1;
    pointer-events: none;
}

.apply-grid-center {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    /* Keeps everything perfectly centered in that massive new padding */
    align-items: center;
    position: relative;
    z-index: 10;
    margin-top: 8vh;
}

/* 5. THE HEADLINE: Margin and Weight */
.apply-text-side {
    /* THE FIX: Pushes the text block down away from the red line */
    /* margin-top: 6rem;  */
    justify-content: center;
}

.apply-text-side .display-large {
    font-size: 4rem;
    /* 64px - Commands the larger space */
    line-height: 1.05;
}

.apply-text-side .white {
    color: #FFFFFF !important;
    opacity: 1 !important;
}


/* 6. THE PODS: Proportional Width */
.red-glow {
    color: var(--red) !important;
    /* This creates the 'Neon Clinical' look from before */
    text-shadow: 0 0 1.5rem rgba(227, 30, 36, 0.6);
    font-weight: 800;
}

.white-vibrant {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Brighter than before */
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* 2. THE APPLY PODS: Vibrant Glassmorphism */
.apply-pod {
    display: flex;
    align-items: flex-start; 
    gap: 1.5rem;
    
    /* THE FIX: Asymmetrical Padding 
       Top: 1.5rem | Right: 6rem | Bottom: 1.5rem | Left: 2.5rem 
       The 6rem on the right creates that expansive 'Luxury Space'.
    */
    padding: 1.5rem 6rem 1.5rem 2.5rem; 

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    
    /* THE FIX: Increased Width 
       Increased to 32rem (~512px) so the long HR email has 
       plenty of room to exist without hitting the edge.
    */
    width: 100%;
    max-width: 32rem; 
    
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}


.apply-pods-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Keeps them docked to the right margin */
}

.apply-pod:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--red) !important;
    transform: translateX(-0.5rem);
}

/* 3. POD CONTENT: Forcing Brand Colors */
.pod-icon {
    /* THE FIX: Optical correction to align icon with the 'RECRUITMENT' label */
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pod-icon i,
.pod-icon svg {
    color: var(--red) !important;
    /* Vibrant Red Icon */
    stroke: var(--red) !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    stroke-width: 2.5px;
}

.pod-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Gap between labels and info */
}

.pod-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-detail {
    white-space: nowrap; /* Forces the text to stay on one line */
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.4;
}

/* THE CEO FIX: Monospaced numbers for perfect vertical columns */
.tabular {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Handle the long email specifically */
.contact-detail:contains("humanresources") {
    font-size: 0.9375rem; /* 15px - tiny reduction for long strings */
}

.apply-pod p {
    color: #FFFFFF !important;
    /* Pure White text */
    font-size: 1.1rem;
    font-weight: 600;
}

/* 4. THE WATERMARK: Dark but 'Clean' */
.careers-watermark {
    /* 
       THE FIX: 
       11vw is the perfect mathematical scale for the 11 letters 
       in 'OPPORTUNITY' to fill the screen width.
    */
    font-size: 13vw;

    /* Keep all your other properties (color, position, etc.) exactly as they are */
    position: absolute;
    right: -2rem;
    bottom: -6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    letter-spacing: 0.5rem;
    z-index: 1;
    white-space: nowrap;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.white-faded {
    color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .careers-hero-flex,
    .benefits-flex-row,
    .apply-grid-center {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .apply-pods-side {
        align-items: center;
    }

    .display-xl {
        font-size: 3rem;
    }

    .hiring-badge {
        transform: rotate(0);
        font-size: 1.5rem;
    }
}

.careers-watermark {
    position: absolute;
    right: -2rem;
    bottom: -6rem;
    font-size: 13vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 1;
}

/* RESPONSIVE */
/* --- CAREERS MOBILE CALIBRATION --- */

@media (max-width: 64rem) { /* 1024px - Tablets */
    .careers-hero-grid {
        grid-template-columns: 1fr; /* Stack HUD below text */
        text-align: center;
        gap: 5rem;
    }

    .display-xl {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .careers-hero-description {
        margin: 0 auto 3rem;
    }

    .medical-hud-system {
        transform: scale(0.9); /* Prevent overflow on tablets */
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 grid for tablet */
    }
}

@media (max-width: 48rem) { /* 768px - Mobile Phones */
    .careers-page main {
        padding-top: 6rem; /* Standardizing header space */
    }

    section {
        padding: 5rem 0; /* Tighter vertical rhythm for mobile */
    }

    /* 1. HERO REFINEMENT */
    .display-xl {
        font-size: 2.75rem !important; /* 44px */
        letter-spacing: -0.05rem;
    }

    .careers-hero-description {
        font-size: 1.125rem;
        font-weight: 400;
    }

    /* THE HUD SYSTEM: Scaling for Mobile */
    .medical-hud-system {
        min-height: 30rem;
        transform: scale(0.8);
        margin-top: -2rem;
    }

    .hud-pulse-container {
        display: none; /* CEO Fix: Save battery/performance on older phones */
    }

    .main-panel {
        padding: 3.5rem 2.5rem;
        min-width: 100%;
    }

    .hud-panel h2 {
        /* 
           INCREASED: 3.5rem is approx 56px. 
           We use !important to guarantee it wins the priority war.
        */
        font-size: 3.5rem !important; 
        line-height: 1 !important;
        font-weight: 900 !important;
        margin: 0 !important;
        letter-spacing: -0.05rem;
    }

    .hud-pod {
        padding: 1rem 1.5rem;
    }

    .pod-top { right: -1rem; top: 10%; }
    .pod-bottom { left: -1rem; bottom: 10%; }

    /* 2. MID-SECTIONS: Unified Card Spacing */
    .positions-container {
        padding: 3rem 1.5rem;
    }

    .positions-grid, .benefits-grid {
        grid-template-columns: 1fr; /* 1 Column Clinical Stack */
        gap: 2rem;
    }

    .benefit-card {
        max-width: 100%;
        padding: 2.5rem 2rem !important; /* Match index.html standard */
    }

    /* 3. THE SLANTED CTA: Mobile Logic */
    .slanted-navy-bg {
        padding: 12rem 0 8rem;
        /* Steeper slant for vertical stacking */
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }

    .red-line-slant {
        clip-path: polygon(0 10%, 100% 0, 100% 0.25rem, 0 10.25rem);
    }

    .apply-grid-center {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .apply-text-side .display-large {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

    .apply-pods-side {
        align-items: center; /* Center buttons on mobile */
    }

    .apply-pod {
        max-width: 100%;
        text-align: left;
    }

    .careers-watermark {
        font-size: 15vw; /* Make it legible on small screens */
        bottom: -3rem;
        opacity: 0.04;
    }

}