/* Careers Page - Premium Redesign based on Avolution Design System */

.careers-hero {
    position: relative;
    border-radius: 0; /* Full width for careers page */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern mobile support */
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .careers-hero {
        height: 100vh;
        height: 100dvh;
        min-height: 560px; /* Min height to fit content beautifully on smaller devices */
        aspect-ratio: auto !important; /* Override the 1:1 ratio from uikit.css */
    }
    
    .careers-hero .uk-banner-photo-content {
        padding: 120px 24px 60px !important; /* Elegant top padding to clear header bar on mobile */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .careers-hero h1 {
        font-size: 32px !important;
        margin-top: 10px;
    }

    .careers-hero p {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }

    .hero-btns {
        justify-content: center;
        width: 100%;
    }
}



@media (min-width: 992px) {
    .careers-hero {
        height: 100vh;
        height: 100dvh;
        min-height: 650px; /* Safe bounds to ensure content never feels crowded */
    }
    
    .careers-hero .uk-banner-photo-content {
        padding: 160px 0 80px; /* Elegant desktop padding to offset absolute header height */
    }
}

.uk-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#open-roles {
    background: #ffffff;
    padding: 100px 0 120px;
}

.uk-title-section {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    color: #111827;
    margin-bottom: 32px;
    text-align: left;
    letter-spacing: -0.5px;
}

/* Job List Styling */
.jobs-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    border: 1.5px solid #eef0f4;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: #bf2026;
    box-shadow: 0 16px 40px rgba(191, 32, 38, 0.08);
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-title {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.job-card:hover .job-title {
    color: #bf2026;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.job-location {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-location svg {
    color: #b3b5bd;
    transition: color 0.3s;
}

.job-card:hover .job-location svg {
    color: #bf2026;
}

.job-action .uk-btn {
    min-width: 140px;
}

@media (max-width: 768px) {
    #open-roles {
        padding: 60px 0 80px;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px;
    }
    
    .job-action {
        width: 100%;
    }
    
    .job-action .uk-btn {
        width: 100%;
    }

    .job-title {
        font-size: 20px;
    }
}

/* Scroll Smoothing */
html {
    scroll-behavior: smooth;
}

/* Fix for force-dark-nav on this specific page */
.force-dark-nav .main-nav:not(.sticky-nav) {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
