*,
html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    position: relative;
    font-family: 'Raleway', 'Poppins', sans-serif;
}

:root {
    --gradient-primary: linear-gradient(145deg, #0866ad, #0a4c7e);
    --gradient-secondary: linear-gradient(145deg, #001627, #001e35);
    
    --primary: #0866ad;
    --primary-hover: #0a4c7e;
    --primary-soft: rgba(8, 102, 173, 0.1);
    --secondary: #001627;
    --secondary-hover: #001e35;
    --secondary-soft: rgba(0, 22, 39, 0.05);
    --light-bg: #ffffff;

    --text-light: #ffffff;
    --text-soft: #f8f9fa;
    --text-muted: #444c53;
    --text-dark: #001627;

    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(8, 102, 173, 0.15);
    --shadow-lg: 0 15px 40px rgba(8, 102, 173, 0.2);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --border-radius-xl: 32px;
}

/* Nav */
.landing_careers {
    width: 100%;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    transition: 0.5s ease-in-out;
    
    & > .land_container {
        width: 80%;
        position: relative;
        margin: 0 auto;
        transition: 0.5s ease-in-out;
        z-index: 2;
    }
}

/* Theme Block */
.theme_block {
    width: 15px;
    height: 15px;
    background-color: var(--primary);
}

/* Mini Header */
.careers_mini_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    
    &.center {
        justify-content: center;
    }
    
    & > .theme_block {
        width: 15px;
        height: 15px;
        background-color: var(--primary);
    }
    
    & > span {
        font-size: 1.1em;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: 2px;
    }
}

/* Section Title */
.careers_section_title {
    font-size: 2.5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    
    & > span {
        color: var(--primary);
    }
    
    &.left {
        text-align: left;
    }
    
    &.light {
        color: var(--text-light);
    }
}

.careers_section_subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.careers_hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #001627 100%);
    overflow: hidden;
    
    & > .careers_hero_overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../IMAGES/task_01kgwndw1ce20s11mpg5j6fpfw_1770488560_img_1.webp);
        background-size: cover;
        background-position: center;
        opacity: 0.05;
        z-index: 0;
    }
    
    & > .careers_nav_wrapper {
        position: relative;
        z-index: 10;
    }
    
    & > .careers_hero_content {
        position: relative;
        z-index: 5;
        max-width: 800px;
        margin: 0 auto;
        padding: 40px;
        text-align: center;
        
        & > .careers_hero_badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            
            & > .theme_block {
                background-color: var(--primary);
            }
            
            & > span {
                color: var(--primary);
                font-size: 0.9em;
                font-weight: 600;
                letter-spacing: 3px;
                text-transform: uppercase;
            }
        }
        
        & > .careers_hero_title {
            font-size: 4em;
            line-height: 1.2;
            font-weight: 300;
            color: var(--text-light);
            margin-bottom: 25px;
            
            & > span {
                display: block;
                font-weight: 800;
                background: linear-gradient(135deg, var(--primary), #adcadf);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }
        }
        
        & > .careers_hero_desc {
            font-size: 1.2em;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto;
        }
    }
    
    & > .careers_hero_stats {
        position: relative;
        z-index: 5;
        display: flex;
        justify-content: center;
        gap: 60px;
        padding: 40px 20px;
        
        & > .careers_stat {
            text-align: center;
            
            & > .careers_stat_value {
                display: block;
                font-size: 2em;
                font-weight: 800;
                color: var(--primary);
                line-height: 1.2;
            }
            
            & > .careers_stat_label {
                font-size: 0.85em;
                color: rgba(255, 255, 255, 0.7);
            }
        }
    }
    
    & > .careers_scroll_indicator {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;

        & > span {
            font-size: 0.8em;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 1px;
        }
        
        & > .careers_scroll_line {
            width: 2px;
            height: 40px;
            background: linear-gradient(to bottom, var(--primary), transparent);
            animation: scrollPulse 2s ease-in-out infinite;
        }
    }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Why Join Us Section */
.careers_why {
    padding: 80px 0;
    background: var(--light-bg);
    
    & > .careers_why_container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        
        & > .careers_why_header {
            text-align: center;
            margin-bottom: 60px;
        }
        
        & > .careers_why_grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            
            & > .careers_why_card {
                text-align: center;
                padding: 40px 30px;
                background: #f8fafc;
                border-radius: var(--border-radius-lg);
                transition: all 0.3s ease;
                
                &:hover {
                    transform: translateY(-5px);
                    box-shadow: var(--shadow-lg);
                }
                
                & > .careers_why_icon {
                    font-size: 3em;
                    margin-bottom: 20px;
                    color: var(--primary);
                }
                
                & > h3 {
                    font-size: 1.3em;
                    color: var(--secondary);
                    margin-bottom: 15px;
                    font-weight: 700;
                }
                
                & > p {
                    color: var(--text-muted);
                    line-height: 1.6;
                }
            }
        }
    }
}

/* Positions Section */
.careers_positions {
    padding: 80px 0;
    background: #f8fafc;
    
    & > .careers_positions_container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        
        & > .careers_positions_header {
            text-align: center;
            margin-bottom: 60px;
        }
    }
}

/* Jobs Grid */
.careers_jobs_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.careers_job_card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    
    &:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    &.archived {
        opacity: 0.7;
        background: #f8fafc;
        
        &:hover {
            opacity: 0.9;
        }
    }
    
    & > .careers_job_badge {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.75em;
        font-weight: 600;
        margin-bottom: 15px;
        width: fit-content;
        
        &.fabrication { background: rgba(8, 102, 173, 0.1); color: #0866ad; }
        &.foundry { background: rgba(192, 64, 0, 0.1); color: #c04000; }
        &.hydraulics { background: rgba(44, 82, 130, 0.1); color: #2c5282; }
        &.indirect-sourcing { background: rgba(45, 106, 79, 0.1); color: #2d6a4f; }
        &.eaas { background: rgba(156, 39, 176, 0.1); color: #9c27b0; }
        &.administration { background: rgba(0, 0, 0, 0.1); color: #333; }
        &.engineering { background: rgba(8, 102, 173, 0.1); color: #0866ad; }
        &.sales { background: rgba(8, 102, 173, 0.1); color: #0866ad; }
        &.hr { background: rgba(8, 102, 173, 0.1); color: #0866ad; }
    }
    
    & > .careers_job_title {
        font-size: 1.3em;
        color: var(--secondary);
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    & > .careers_job_meta {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e2e8f0;
        
        & > span {
            font-size: 0.85em;
            color: var(--text-muted);
        }
    }
    
    & > .careers_job_description {
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 20px;
        flex: 1;
    }
    
    & > .careers_job_requirements {
        margin-bottom: 20px;
        
        & > h4 {
            font-size: 0.9em;
            color: var(--secondary);
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        & > ul {
            padding-left: 20px;
            
            & > li {
                color: var(--text-muted);
                font-size: 0.85em;
                margin-bottom: 5px;
                line-height: 1.5;
            }
        }
    }
    
    & > .careers_job_footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
        
        & > .careers_job_ref {
            font-size: 0.8em;
            color: var(--text-muted);
        }
        
        & > .careers_job_apply {
            display: inline-block;
            padding: 8px 20px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-size: 0.85em;
            font-weight: 600;
            transition: all 0.3s ease;
            
            &:hover {
                background: var(--primary-hover);
                transform: translateX(5px);
            }
        }
    }
    
    & > .careers_job_status {
        margin-top: 15px;
        
        & > .status_badge {
            display: inline-block;
            padding: 5px 12px;
            background: #e2e8f0;
            border-radius: 20px;
            font-size: 0.75em;
            font-weight: 600;
            color: var(--text-muted);
            
            &.filled {
                background: #d4edda;
                color: #155724;
            }
        }
    }
}

/* Loading State */
.careers_loading {
    text-align: center;
    padding: 60px;
    
    & > .loading_spinner {
        width: 40px;
        height: 40px;
        border: 3px solid var(--primary-soft);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Jobs State */
.careers_no_jobs {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: var(--border-radius-lg);
    grid-column: span 2;
    
    & > .no_jobs_icon {
        font-size: 4em;
        margin-bottom: 20px;
    }
    
    & > h3 {
        font-size: 1.3em;
        color: var(--secondary);
        margin-bottom: 10px;
    }
    
    & > p {
        color: var(--text-muted);
    }
}

/* Error State */
.careers_error {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: var(--border-radius-lg);
    grid-column: span 2;
    
    & > .error_icon {
        font-size: 3em;
        margin-bottom: 20px;
    }
    
    & > p {
        color: var(--text-muted);
        margin-bottom: 20px;
    }
    
    & > .retry_btn {
        padding: 10px 25px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        
        &:hover {
            background: var(--primary-hover);
        }
    }
}

/* Archived Section */
.careers_archived_section {
    margin-top: 60px;
    
    & > .careers_archived_header {
        text-align: center;
        margin-bottom: 40px;
    }
}

/* Process Section */
.careers_process {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #002b4a 100%);
    
    & > .careers_process_container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
        
        & > .careers_process_header {
            text-align: center;
            margin-bottom: 60px;
        }
        
        & > .careers_process_steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 50px;
            
            & > .careers_step {
                text-align: center;
                
                & > .careers_step_number {
                    width: 60px;
                    height: 60px;
                    background: var(--primary);
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1.5em;
                    font-weight: 700;
                    color: white;
                    margin: 0 auto 20px;
                }
                
                & > .careers_step_content {
                    & > h4 {
                        color: white;
                        font-size: 1.1em;
                        margin-bottom: 10px;
                    }
                    
                    & > p {
                        color: rgba(255, 255, 255, 0.8);
                        font-size: 0.9em;
                        line-height: 1.5;
                    }
                }
            }
        }
        
        & > .careers_apply_note {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius-lg);
            padding: 30px;
            display: flex;
            gap: 20px;
            align-items: flex-start;
            border: 1px solid rgba(255, 255, 255, 0.1);
            
            & > .careers_note_icon {
                font-size: 2.5em;
            }
            
            & > .careers_note_content {
                flex: 1;
                
                & > h4 {
                    color: white;
                    font-size: 1.2em;
                    margin-bottom: 10px;
                }
                
                & > p {
                    color: rgba(255, 255, 255, 0.8);
                    margin-bottom: 8px;
                    
                    & > a {
                        color: var(--primary);
                        text-decoration: none;
                        
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
                
                & > small {
                    color: rgba(255, 255, 255, 0.6);
                    font-size: 0.85em;
                }
            }
        }
    }
}

/* Floating Catalogue */
.floating-catalogue {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    
    & > .floating-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 28px;
        background: var(--secondary);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        box-shadow: 0 5px 20px rgba(8, 102, 173, 0.3);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        
        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(8, 102, 173, 0.5);
            background: var(--secondary-hover);
        }
        
        & > .icon {
            font-size: 1.6em;
        }
        
        & > .text {
            font-weight: 500;
            font-size: 1em;
        }
    }
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .careers_why_grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .careers_process_steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 992px) {
    .careers_jobs_grid {
        grid-template-columns: 1fr;
    }
    
    .careers_hero_title {
        font-size: 3em !important;
    }
}

@media screen and (max-width: 768px) {
    .landing_careers {
        & > .land_container {
            width: 90%;
        }
    }
    
    .careers_hero_title {
        font-size: 2.5em !important;
    }
    
    .careers_hero_stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .careers_why_grid {
        grid-template-columns: 1fr !important;
    }
    
    .careers_process_steps {
        grid-template-columns: 1fr !important;
    }
    
    .careers_apply_note {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-catalogue > .floating-btn > .text {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .careers_section_title {
        font-size: 1.8em;
    }
    
    .careers_hero_title {
        font-size: 2em !important;
    }
    
    .careers_job_footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
}