/* Careers Page Modern Styling */
:root {
    --primary-color: #f68a4c;
    --secondary-color: #4c5458;
    --bg-light: #f6f6f6;
    --white: #ffffff;
    --text-muted: #888888;
    --font-main: "Heebo", sans-serif;
    --transition: all 0.3s ease;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Hero Section */
#home {
    position: relative;
    background-color: #000;
    overflow: hidden;
    padding-top: 75px;
    /* Account for sticky navbar */
}

.hero-image-wrapper {
    width: 100%;
    line-height: 0;
    /* Remove extra space below image */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.7;
}

.carousel-text {
    position: absolute;
    bottom: 50px;
    left: 8%;
    transform: none;
    width: auto;
    max-width: 900px;
    text-align: left;
    color: var(--white);
    padding: 0;
    z-index: 5;
}

#homeDivf {
    font-size: 45px;
    /* Updated to 45px */
    font-weight: 100;
    /* Heebo Thin */
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#homeDivt {
    font-size: 20px;
    /* Updated to 20px */
    font-weight: 400;
    /* Heebo Regular */
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Introduction */
#introduction {
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
}

#introduction h1 {
    font-weight: 100;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Open Positions Section */
.positions {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.open-pos {
    text-align: center;
    font-weight: 100;
    font-size: 50px;
    /* Updated */
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* Jobs Grid */
#jobs-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Job Card Wrapper */
.col-dtl {
    width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

/* Inner Card */
.img-detls {
    background: var(--white);
    padding: 0;
    /* Remove padding to let banner touch edges */
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    /* Ensure banner corners match card */
}

.img-detls:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-banner {
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    min-height: 100px;
}

.banner-icon-col {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-icon-col .embed-img {
    width: 45px;
    height: 45px;
    filter: brightness(0) opacity(0.8);
    /* Adjusted for #0C111F visibility */
    margin: 0;
}

.banner-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.card-banner .heading {
    font-size: 16px;
    /* Updated */
    font-weight: 500;
    margin: 0;
    color: #0C111F;
    line-height: 1.2;
}

.card-banner .location {
    font-size: 11px;
    /* Updated */
    font-weight: 400;
    color: #0C111F;
    opacity: 0.8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-banner {
    border-radius: 8px 8px 0 0;
    margin: -40px -40px 30px -40px;
    /* Offset modal padding */
    padding: 30px 40px;
}

.modal-banner h2 {
    font-size: 1.8rem !important;
    margin: 0 !important;
    color: #0C111F !important;
    font-weight: 400 !important;
}

.modal-banner .location {
    font-size: 1rem;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.img-detls .respo {
    font-size: 13px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.img-detls .respo .respo-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.img-detls .respo ul {
    padding-left: 15px;
    margin: 0;
    list-style-type: disc;
}

.img-detls .respo ul li {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #555;
}

.img-detls .apply {
    color: #15A864;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.img-detls .apply:hover {
    gap: 12px;
}

/* Modal Styling */
#job-modal-container {
    width: 100%;
}

.modal-popup {
    background: var(--white);
    margin: 20px 15px;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    animation: slideDown 0.4s ease;
    overflow: hidden;
    /* For banner corners */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-popup .close-btn {
    position: absolute;
    top: 30px;
    /* Properly spaced from top */
    right: 30px;
    /* Properly spaced from right */
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #0C111F;
    cursor: pointer;
    line-height: 1;
    z-index: 100;
    transition: var(--transition);
}

.modal-popup .close-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.modal-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.job-details-col {
    flex: 1;
    min-width: 300px;
}

.job-form-col {
    width: 350px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.modal-popup h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.modal-popup .modal-location {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.modal-popup .section-title {
    font-weight: 500;
    font-size: 15px;
    /* Updated */
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.modal-popup ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-popup ul li {
    font-size: 12px;
    /* Updated */
    line-height: 1.6;
    margin-bottom: 8px;
    color: #555;
}

/* Form Styling */
.job-form-col h3 {
    font-size: 14px;
    /* Updated */
    margin-bottom: 20px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    box-sizing: border-box;
}

.file-upload-wrapper {
    position: relative;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    background: var(--white);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    background: #15a864;
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #118c53;
}

/* Responsive Breakpoints */

/* Tablet (2 columns) */
@media (max-width: 1199px) and (min-width: 768px) {
    .col-dtl {
        width: 50%;
    }

    .homeImgI {
        height: 350px;
    }

    .modal-content-wrapper {
        flex-direction: column;
    }

    .job-form-col {
        width: 100%;
    }

    .carousel-text {
        bottom: 10px;
    }
}

/* Mobile (1 column) */
@media (max-width: 767px) {
    .col-dtl {
        width: 100%;
    }

    #home {
        padding-top: 60px;
        /* Smaller navbar on mobile */
    }

    .hero-img {
        height: 265px;
        /* Fixed height for mobile */
        object-fit: cover;
        /* Use cover for the dedicated mobile image */
    }

    .carousel-text {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        bottom: 20px;
        padding: 0 20px;
    }

    #homeDivf {
        font-size: 20px;
        /* Updated for mobile */
        font-weight: 100;
        /* Heebo Thin */
        padding: 0 10px;
    }

    #homeDivt {
        font-size: 14px;
        /* Scaled for mobile */
        font-weight: 400;
        /* Heebo Regular */
        padding: 0 15px;
    }

    #introduction h1 {
        font-size: 2.2rem;
    }

    .modal-popup {
        padding: 20px;
    }

    .modal-popup h2 {
        font-size: 1.5rem;
    }
}