/* Careers Page Styles - Background Image */

/* Ensure main content has proper spacing */
.main {
    padding-top: 0;
}

/* Fix for careers hero spacing */
.careers-hero {
    margin-top: 80px;
}

/* Ensure all text is visible on dark background */
.careers-hero .hero-title,
.careers-hero .hero-description {
    color: var(--white);
}

/* Hero background image - full width, behind content */
.hero-background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important; /* Behind content */
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for fade-in */
    animation: imageFadeIn 2s ease-in-out forwards;
    background: #000000 !important;
    /* Maintain quality - no blur */
    filter: none !important;
    -webkit-filter: none !important;
    /* No borders */
    border: none !important;
    outline: none !important;
    /* Maintain aspect ratio and quality */
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Fade-in animation for image */
@keyframes imageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark overlay on image for text readability (40-50% black) */
.hero-image-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Above image, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    pointer-events: none !important;
    /* Smooth transition at bottom to blend with content below */
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.6) 95%,
        rgba(0, 0, 0, 0.7) 100%
    ) !important;
}

/* Hero section - relative positioning for image */
.careers-hero.hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh;
    background: #000000 !important;
}

/* Hide old background elements */
.careers-hero .hero-background {
    display: none !important;
}

.careers-hero .hero-particles {
    display: none !important;
}

/* Hero content - above image and overlay */
.careers-hero .container,
.careers-hero .hero-content,
.careers-hero .hero-text,
.careers-hero .hero-title,
.careers-hero .hero-description,
.careers-hero .hero-actions {
    position: relative !important;
    z-index: 2 !important; /* Above image and overlay */
}

/* Left-align hero title and description */
.careers-hero .hero-title,
.careers-hero .hero-description {
    text-align: left !important;
}

/* Ensure all containers are transparent and left-aligned - NO PADDING */
.careers-hero .container {
    background: transparent !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Left-align the hero text horizontally, position higher vertically - NO PADDING */
.careers-hero .hero-content {
    display: block !important;
    min-height: 100vh !important;
    padding-top: 15vh !important;
    padding-left: 40px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin: 0 !important;
}

.careers-hero .hero-text {
    text-align: left !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Left-align hero title and description */
.careers-hero .hero-title,
.careers-hero .hero-description {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
}

.careers-hero .hero-title {
    justify-content: flex-start !important;
}

/* Fixed Background Image - Below hero section */
.fixed-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../../Photos/joinUS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    display: block;
}

/* Culture Section - with background image */
.culture {
    padding: var(--spacing-32) 0;
    background-image: url('../../Photos/joinUS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: transparent !important; /* Ensure no black fallback */
    position: relative;
    z-index: 1;
    min-height: 400px; /* Ensure section has height */
}

/* Remove dark overlay - show background image clearly */
.culture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
    display: none; /* Completely hide the overlay */
}

/* Ensure culture cards are above the gradient */
.culture-grid {
    position: relative;
    z-index: 1;
}

.culture-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(2px);
}

/* Benefits Section - with background image */
.demo-benefits,
.benefits {
    padding: var(--spacing-32) 0;
    background-image: url('../../Photos/joinUS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

/* Gradient overlay for benefits section */
.demo-benefits::before,
.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure benefit cards are above the gradient */
.benefits-grid {
    position: relative;
    z-index: 1;
}

.benefit-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(2px);
}

/* CTA Section - with background image */
.cta {
    padding: var(--spacing-32) 0;
    background-image: url('../../Photos/joinUS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

/* Gradient overlay for CTA section */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure CTA content is above the gradient */
.cta-content {
    position: relative;
    z-index: 1;
}



/* update from GTP CODE
/* Center content inside each Benefits & Perks card */
.benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Center the icon */
.benefits-grid .benefit-item .benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

/* Center the title and description text */
.benefits-grid .benefit-item .benefit-title,
.benefits-grid .benefit-item .benefit-description {
    text-align: center;
}