/* ----------------- Hero Section ----------------- */
.career-hero {
    background: url("../images/factory-image.jpg") center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.career-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.career-hero .hero-overlay {
    position: relative;
    z-index: 1;
}

.career-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.career-hero p {
    font-size: 18px;
}

/* ----------------- Sections ----------------- */

.why-join,
.job-openings,
.life-magadh,
.job-application {
    padding: 60px 6%;
    text-align: center;
}



/* About Magadh Section */
.about-magadh {
    padding: 60px 6%;
    background: #f8f9fb;
    /* subtle light background */
}

.about-magadh h2 {
    font-size: 32px;
    color: #242176;
    /* brand blue */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.about-magadh h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ee1d24;
    /* brand red accent */
    margin: 12px auto 0;
    border-radius: 2px;
}

.about-magadh .about-content {
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-magadh .about-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 18px;
    text-align: justify;
}

.about-magadh .about-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .about-magadh h2 {
        font-size: 28px;
    }

    .about-magadh .about-content {
        padding: 20px 20px;
    }

    .about-magadh .about-content p {
        font-size: 15px;
    }
}



.why-join h2,
.job-openings h2,
.life-magadh h2,
.job-application h2 {
    font-size: 32px;
    color: #242176;
    margin-bottom: 30px;
}

/* ----------------- Why Join Cards ----------------- */
.why-join .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-join .card {
    background: #fff;
    flex: 1 1 220px;
    max-width: 250px;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-join .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.why-join .card i {
    font-size: 36px;
    color: #ee1d24;
    margin-bottom: 15px;
}

.why-join .card p {
    font-size: 16px;
    color: #555;
}

/* ----------------- Job Openings Cards ----------------- */
.job-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.job-card {
    background: #fff;
    flex: 1 1 280px;
    max-width: 320px;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.job-card h3 {
    font-size: 22px;
    color: #242176;
    margin-bottom: 10px;
}

.job-card .job-location {
    font-size: 14px;
    color: #ee1d24;
    margin-bottom: 10px;
}

.job-card .job-location i {
    margin-right: 6px;
}

.job-card .job-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-card .apply-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #242176;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.job-card .apply-btn:hover {
    background: #ee1d24;
}

/* ----------------- Life @ Magadh Gallery ----------------- */
.life-magadh .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.life-magadh .gallery-item {
    width: 150px;
    /* small thumbnails */
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.life-magadh .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.life-magadh .gallery-item:hover img {
    transform: scale(1.1);
}

/* ----------------- Job Application Form ----------------- */
.job-application form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.job-application .form-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.job-application input,
.job-application select,
.job-application textarea {
    flex: 1 1 48%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.job-application input[type="file"] {
    flex: 1 1 100%;
}

.job-application button {
    display: block;
    width: 100%;
    padding: 14px;
    background: #242176;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
}

.job-application button:hover {
    background: #ee1d24;
}

/* ----------------- Responsive ----------------- */
@media (max-width: 1024px) {
    .life-magadh .gallery-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {

    .why-join .card,
    .job-card {
        max-width: 90%;
    }

    .life-magadh .gallery-item {
        flex: 1 1 100%;
    }

    .job-application .form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .career-hero {
        height: 35vh;
    }

    .career-hero h1 {
        font-size: 28px;
    }

    .career-hero p {
        font-size: 16px;
    }

    .about-magadh p {
        font-size: 14px;
    }
}