/* =====================================================
   Careers Page - Specific Styles
   ===================================================== */

/* Hero Section */
.careers-hero {
    background-image: url('../images/careers-hero.jpg');
    background-size: cover;
    background-position: center center;
    min-height: 950px;
    display: flex;
    align-items: center;
    position: relative;
}

.careers-hero .hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.careers-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 68px;
    text-align: left;
    margin: 0 0 40px 0;
    max-width: 600px;
}

.careers-hero .btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
}

.careers-hero .btn-white:hover {
    background-color: #f5f5f5;
    color: var(--color-black);
}

/* Shared Container */
.careers-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-container--narrow {
    max-width: 700px;
}

/* Shared Heading Style */
.careers-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0 0 33px 0;
}

.careers-heading--centered {
    text-align: center;
}

/* Why Work Section */
.careers-why-work {
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.why-work-grid {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    background-color: var(--color-white);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

.why-work-image {
    width: 50%;
    flex-shrink: 0;
}

.why-work-image img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    display: block;
}

.why-work-content {
    width: 50%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-work-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.375;
    color: var(--color-text-dark);
    margin: 0;
}

/* Life at ARM Section */
.careers-life {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.careers-life p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.375;
    color: var(--color-text-dark);
    margin: 0;
}

/* Benefits Grid Section */
.careers-benefits {
    padding: 0;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1110px;
    margin: 0 auto;
}

.benefit-card {
    width: 33.3333%;
    height: 400px;
    background-color: var(--color-black);
    border: 1px solid rgb(205, 205, 205);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.benefit-icon {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin: 0;
}

/* Divider Image Section */
.careers-divider-image {
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.careers-divider-image img {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 730px;
    object-fit: cover;
    display: block;
}

/* Open Positions Section - Live Site Match */
.careers-positions {
    padding: 0;
}

.positions-grid {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
}

.positions-image {
    width: 50%;
    flex-shrink: 0;
}

.positions-image img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    display: block;
}

.positions-content {
    width: 50%;
    height: 570px;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.positions-text-body {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.positions-content .careers-heading {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 33px;
}

.positions-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.375;
    color: var(--color-text-dark);
    margin: 0;
}

.positions-footer-link {
    background-color: var(--color-black);
    height: 137px;
    padding: 58px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.positions-cta {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1.92px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    text-align: center;
}

.positions-cta:hover {
    text-decoration: underline;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

@media (max-width: 1200px) {
    .careers-hero h1 {
        font-size: 48px;
    }
    
    .benefits-grid {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .careers-hero {
        min-height: 650px;
    }
    
    .careers-hero h1 {
        font-size: 48px;
        line-height: 1.15;
    }
    
    .careers-hero .hero-content {
        padding: 0 30px;
    }
    
    .careers-why-work {
        margin-top: 0;
    }
    
    .why-work-grid {
        box-shadow: none;
    }
    
    .why-work-grid,
    .positions-grid {
        flex-direction: column;
    }
    
    .why-work-image,
    .why-work-content,
    .positions-image,
    .positions-content {
        width: 100%;
    }
    
    .why-work-image img {
        height: 400px;
    }
    
    .why-work-content {
        padding: 60px 40px;
    }
    
    .benefit-card {
        width: 50%;
        height: 350px;
    }
    
    .positions-content {
        height: auto;
        min-height: 400px;
    }
    
    .positions-image img {
        height: 400px;
    }
    
    .careers-divider-image img {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .careers-hero {
        min-height: 550px;
    }
    
    .careers-hero h1 {
        font-size: 38px;
        line-height: 1.2;
    }
    
    .careers-hero .hero-content {
        padding: 0 20px;
    }
    
    .careers-why-work {
        margin-top: 0;
    }
    
    .why-work-grid {
        box-shadow: none;
    }
    
    .careers-heading {
        font-size: 20px;
    }
    
    .careers-life {
        padding: 60px 0;
    }
    
    .benefit-card {
        height: 300px;
    }
    
    .positions-footer-link {
        height: auto;
        padding: 40px 15px;
    }
    
    .careers-divider-image img {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .careers-hero {
        min-height: 500px;
    }
    
    .careers-hero h1 {
        font-size: 32px;
        line-height: 1.25;
    }
    
    .benefit-card {
        width: 100%;
        height: 250px;
    }
    
    .why-work-content {
        padding: 40px 20px;
    }
    
    .positions-footer-link {
        padding: 30px 15px;
    }
    
    .careers-divider-image img {
        min-height: 200px;
    }
}
