@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

* {
    margin: 0;
    padding: 0;
    font-family: Poppins;

    #career-page-hero {
        background-image: url(/hms/assets/career/career-hero.webp);
        background-size: cover;
        background-position: 40% 55%;
        background-repeat: no-repeat;
        width: 100%;
        height: 86vh;
        position: relative;
        top: -75px;
        overflow: hidden;
    }

    /* Tambahkan overlay hitam transparan */
    #career-page-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .overlay-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0)
        );
        z-index: 2;
    }
}

/* Teks dan konten */
.content-overlay {
    position: relative;
    z-index: 3;
    top: 50px;
    left: 50px;
    color: black;
}

#career-page-hero .title-h3 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    left: -122px;
    position: relative;
    display: inline-block;
}

.title-career {
    color: #fff;
    text-align: center;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin: 6rem auto 2rem auto;
    display: block;
    max-width: 38rem;
    padding: 0 1rem;
}

#career-page-hero .title-h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

#career-page-hero .title-h3:hover::after {
    transform: scaleX(1);
}

#career-page-hero .desc-cta-hero {
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
    color: #1a1717;
    padding: 0 1rem;
}

.gallery-left {
    position: relative;
    aspect-ratio: 16 / 9;
    height: 100%;
    min-height: 410px;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
}

.gallery-right-half {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.gallery-img.active {
    opacity: 1;
    z-index: 2;
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.gallery-img.active {
    opacity: 1;
    z-index: 2;
}

.btn-career {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1.4375rem;
    background: #f8f8f8;
    width: 8rem;
    height: 3rem;
    color: #0068a7;
    text-decoration: none;
    font-size: 0.89563rem;
    font-weight: 700;
    letter-spacing: 0.01794rem;
    text-transform: capitalize;
    border: none;
}

.card-career:hover,
.card-career,
.btn-career {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover dan Active */
.card-career:hover,
.btn-career:active {
    background-color: #0068a7 !important;
    color: #fff !important;
    transform: scale(1.02);
    cursor: pointer;
}

p.text-hover {
    color: #0068a7;
    font-weight: 600;
    font-size: 1.7rem;
    transition: color 0.3s ease;
}
p.text-hover:hover,
p.text-hover:active {
    color: #f8f8f8 !important;
}

.card-career:hover p,
.card-career:hover svg {
    color: #f8f8f8;
    fill: #f8f8f8;
    transition: color 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

@media (max-width: 768px) {
    .title-career {
        font-size: 1.5rem;
        max-width: 20rem;
    }

    .content-overlay {
        left: 0;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    #career-page-hero .desc-cta-hero {
        font-size: 15px !important;
    }
}