/* ===== CAREERS PAGE STYLES ===== */

/* Careers Hero Section */
.careers-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), 
                      url('../img/DJI_20250318065304_0305_D.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Remove the dark overlay that was covering the hero text */
.careers-hero .hero-overlay {
    display: none !important;
}
/* Prevent mobile artifacts with fixed backgrounds */
@media (max-width: 991.98px) {
    .careers-hero {
        background-attachment: scroll;
    }
}

/* Careers Introduction - Enhanced for prominence */
.careers-intro {
    padding: 5rem 0 6rem 0; /* extra bottom padding to avoid seam */
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
    position: relative;
    overflow: visible; /* avoid subtle rendering line at section edge */
}

/* Removed overlay that was darkening text */

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Make the main title more prominent */
.careers-intro .section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--white) !important;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Make the subtitle more prominent and readable */
.careers-intro .section-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--white) !important;
    opacity: 1 !important;
    font-weight: 500;
    margin: 0 auto;
    max-width: 700px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Fix faint text on careers page - override global medium-gray */
.mission-values .section-subtitle {
    color: var(--white) !important;
    opacity: 1 !important;
}

/* Mission & Values Section */
.mission-values {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
    position: relative;
    /* hide any anti-aliased seam between sections on some GPUs */
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.02) inset;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.mission-card,
.vision-card {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-base);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mission-card h3 i,
.vision-card h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mission-text,
.vision-text {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    justify-items: center;
}

/* Display 3 cards in first row, 2 centered in second row */
@media (min-width: 768px) {
    .values-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto;
        gap: 2rem;
        max-width: 1200px;
        margin: 4rem auto 0;
    }
    
    /* First row: 3 cards spanning 2 columns each */
    .value-card:nth-child(1) { grid-column: 1 / 3; }
    .value-card:nth-child(2) { grid-column: 3 / 5; }
    .value-card:nth-child(3) { grid-column: 5 / 7; }
    
    /* Second row: 2 cards centered, spanning 2 columns each with gap */
    .value-card:nth-child(4) { grid-column: 2 / 4; }
    .value-card:nth-child(5) { grid-column: 4 / 6; }
}

.value-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(224, 31, 38, 0.2);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-tagline {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.value-points {
    list-style: none;
    padding: 0;
    text-align: left;
}

.value-points li {
    color: var(--light-gray);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.value-points li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Current Openings Section */
.current-openings {
    padding: var(--section-padding);
    background-color: var(--bg-darker);
}

.openings-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.job-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.job-type,
.job-location {
    background-color: rgba(224, 31, 38, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.job-location {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

.job-description {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.job-requirements {
    margin-bottom: 2rem;
}

.job-requirements h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.job-requirements ul {
    list-style: none;
    padding: 0;
}

.job-requirements li {
    color: var(--light-gray);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.job-requirements li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.job-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-actions .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-card i {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.benefit-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Company Culture Gallery */
.culture-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-base);
    aspect-ratio: 16/9;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 31, 38, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.placeholder-overlay {
    text-align: center;
    color: var(--light-gray);
}

.placeholder-overlay i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.placeholder-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.gallery-note {
    text-align: center;
    color: var(--light-gray);
    font-style: italic;
    margin-top: 2rem;
}

.gallery-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Application Process */
.application-process {
    padding: var(--section-padding);
    background-color: var(--bg-darker);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.process-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.process-step p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Culture Section */
.culture-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

/* Instagram Placeholder */
.instagram-placeholder {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-base);
}

.instagram-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.instagram-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.instagram-preview {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.instagram-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-header i {
    color: #E4405F;
    font-size: 1.5rem;
}

.instagram-header span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.instagram-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1.5rem 0;
}

.instagram-content i {
    color: var(--light-gray);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.instagram-content p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.instagram-content small {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.instagram-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-footer span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.instagram-placeholder:hover .instagram-footer span {
    color: var(--primary-hover);
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.culture-text {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.culture-image {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--bg-card) 100%);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.culture-image i {
    font-size: 4rem;
    color: var(--primary-color);
}

/* CTA Section */
.careers-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .culture-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 767.98px) {
    /* Enhanced careers intro mobile styles */
    .careers-intro {
        padding: 3rem 0;
    }

    .careers-intro .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .careers-intro .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .job-actions {
        flex-direction: column;
    }

    .job-actions .btn {
        flex: none;
        min-width: auto;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Contact Section Styling */
.openings-fallback {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 107, 53, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.fallback-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.fallback-message i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.fallback-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
    max-width: 600px;
}

.fallback-message a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    border-bottom: 2px solid transparent;
}

.fallback-message a:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-1px);
}
