/* =========================
   Shared Utilities
========================= */
.gradient-text-ai {
    background: linear-gradient(90deg, #7873F5 0%, #EC77AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explore-title {
    color: #414651;
    max-width: 600px;
}

.explore-description {
    color: #535862;
    max-width: 450px;
}

.explore-title-join {
    max-width: 500px;
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 900px;
}

.navbar {
    z-index: 9999;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/bg-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/stripe.webp');
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 2;
}

.hero > * {
    position: relative;
    z-index: 3;
}

.hero-content {
    display: block !important;
    justify-content: unset !important;
    margin-top: 0;
}

.hero-inner {
    padding-top: 6rem;
}

.hero-title {
    color: #393939;
}

.hero-intro-wrap {
    max-width: 470px;
}

.meet-maddie-text {
    max-width: 570px;
}

.hero-intro-text {
    color: #1E1E1E;
    font-size: 19px;
}

.hero-free-note {
    color: #252B37;
}

#powered-by-ai {
    background: linear-gradient(#FAFAFF, #FAFAFF) padding-box,
        linear-gradient(90deg, #7873F5 0%, #EC77AB 100%) border-box;
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 8px 16px 8px 12px;
}

#powered-by-ai span {
    color: #5925DC;
}

.hero-left-top {
    bottom: -102px;
    left: 125px;
    width: 305px;
    height: 349px;
    overflow: hidden;
    background: #E265BF33;
    border-top-left-radius: 20px;
    z-index: 9;
}

.hero-left-bottom {
    top: 210px;
    left: 125px;
    width: 409px;
    height: 445px;
    overflow: hidden;
    background: #7F74F233;
    border-bottom-left-radius: 20px;
    transform: translateY(-50%);
    z-index: 9;
}

.hero-right-mid {
    top: 42%;
    right: -32px;
    width: 307px;
    overflow: hidden;
    background: #7F74F233;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    transform: translateY(-50%);
    z-index: 9;
}

.maddie-image-wrapper-inner {
    position: relative;
    z-index: 10;
    pointer-events: none !important;
}

.maddie-image-wrapper{
    position: relative;
    bottom: -115px;
}

.maddie-img {
    position: absolute;
    right: -75px;
    top: 40px;
    z-index: 10;
    pointer-events: none;
}

.post-images {
    height: 180px;
    width: 100%;
    position: relative;
}

.post-images img {
    position: absolute;
    object-fit: inherit;
    top: 0;
    left: 0;
    transition: opacity 0.7s ease-in-out;
    will-change: opacity;
}

.profile-images img {
    top: -35px;
    left: 0;
    width: 100%;
}

.company-images img {
    top: -20px;
    left: 0;
    /* width: 100%; */
    object-fit: contain;
}

.front {
    z-index: 2;
    opacity: 1;
}

.back {
    z-index: 1;
    opacity: 0;
}

.hero-left-top:hover .front,
.hero-right-mid:hover .front,
.hero-left-bottom:hover .front {
    opacity: 0;
}

.hero-left-top:hover .back,
.hero-right-mid:hover .back,
.hero-left-bottom:hover .back {
    opacity: 1;
}

.hero-left-top:hover ~ .hero-left-bottom .front,
.hero-right-mid:hover ~ .hero-left-bottom .front {
    opacity: 0;
}

.hero-left-top:hover ~ .hero-left-bottom .back,
.hero-right-mid:hover ~ .hero-left-bottom .back {
    opacity: 1;
}

.hero-left-top:hover,
.hero-right-mid:hover,
.hero-left-bottom:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.hero-card-copy,
.explore-message {
    color: #5D6B98;
}

.trusted-section {
    background: #FFFFFF;
    border: 1px solid #00000026;
    border-radius: 12px;
    padding: 12px 16px 12px 12px;
}

.hero-images img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.hero-images img:not(:first-child) {
    margin-left: -20px;
}

.trusted-subtext {
    opacity: 0.5;
}

.eclipse-left {
    position: absolute;
    left: -210px;
    top: 120%;
    transform: translateY(-50%);
    width: 658px;
    height: 658px;
    border-radius: 658px;
    background: linear-gradient(90deg, rgba(120, 115, 245, 0.50) 0%, rgba(236, 119, 171, 0.50) 100%);
    filter: blur(250px);
    z-index: -1;
}

.eclipse-right {
    position: absolute;
    right: -210px;
    top: 0%;
    transform: translateY(-50%);
    width: 658px;
    height: 658px;
    border-radius: 658px;
    background: linear-gradient(90deg, rgba(120, 115, 245, 0.50) 0%, rgba(236, 119, 171, 0.50) 100%);
    filter: blur(250px);
    z-index: -1;
}

.eclipse-banner {
    position: absolute;
    left: -210px;
    top: 36%;
    transform: translateY(-50%);
    width: 596px;
    height: 596px;
    border-radius: 658px;
    background: #FFFFFF33;
    filter: blur(100px);
    z-index: 2;
}

.card-pink {
    position: absolute;
    right: -10%;
    bottom: -69%;
    transform: translateY(-50%);
    width: 305px;
    height: 440px;
    border-radius: 20px;
    background: #E265BF33;
    z-index: -1;
}

/* =========================
   Buttons
========================= */
.btn-find-jobs {
    background-color: #004EEB;
    box-shadow: 0px 4px 12px 0px #004EEB66;
    padding: 18px 32px;
    color: #fff;
}

.btn-find-jobs:hover {
    background-color: #0041d6;
    box-shadow: 0px 6px 16px 0px #0041d666;
    color: #fff;
}

.btn-hire-staff {
    background: #FAFAFA;
    border: 1px solid #DCDFEA;
    padding: 18px 32px;
    color: #404968;
}

.btn-hire-staff:hover {
    background: #F5F5F5;
    border-color: #C1C5D0;
    color: #404968;
}

.find-jobs {
    opacity: 1;
    padding-top: 18px;
    padding-right: 32px;
    padding-bottom: 18px;
    padding-left: 32px;
    gap: 8px;
    border-width: 1px;
    border-radius: 12px;
    border: 1px solid #FAFAFA;
    color: #FFFFFF;
}

.find-jobs:hover {
    background-color: #F5F5F5;
    border-color: #C1C5D0;
    color: #404968;
}

.hire-staff {
    opacity: 1;
    padding-top: 18px;
    padding-right: 32px;
    padding-bottom: 18px;
    padding-left: 32px;
    gap: 8px;
    border-radius: 12px;
    background: #FAFAFA;
    border: 1px solid #DCDFEA;
    color: #404968;
}

.hire-staff:hover {
    background-color: #F5F5F5;
    border-color: #C1C5D0;
    color: #404968;
}

.find-jobs h5,
.hire-staff h5 {
    font-size: 20px !important;
}

.footer-btn{
    height: 64px;
}

/* =========================
   Stats / Sections
========================= */
.ms-section {
    padding-top: 40px;
    padding-right: 80px;
    padding-bottom: 40px;
    padding-left: 80px;
    border-top: 2px solid #E9EAEB;
}

.ms-section-inner {
    min-height: 201px;
    min-width: 305px;
    opacity: 1;
    border-width: 2px;
    border-radius: 20px;
    border: 2px solid #A44FF34D;
}

.ms-section-inner h3 {
    color: #3E1C96;
}

.ms-section-inner p {
    color: #5D6B98;
}

.grid-bg {
    background-color: #EFF1F5;
    position: relative;
    overflow: hidden;
}

.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/grid-bg.png');
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.grid-bg > * {
    position: relative;
    z-index: 1;
}

.maddie-section p {
    max-width: 570px;
    color: #535862;
}

.eclipse-maddie-img {
    position: absolute;
    left: -28px;
    top: 115%;
    transform: translateY(-50%);
    width: 658px;
    height: 658px;
    border-radius: 658px;
    background: linear-gradient(90deg, rgba(120, 115, 245, 0.50) 0%, rgba(236, 119, 171, 0.50) 100%);
    filter: blur(250px);
    z-index: 1;
}

.eclipse-maddie-img-left {
    position: absolute;
    left: -430px;
    top: 57%;
    transform: translateY(-50%);
    width: 500px;
    height: 300px;
    border-radius: 658px;
    background: #EFF1F5;
    filter: blur(50px);
    z-index: -1;
}

.secure-reliable-section,
.join-section {
    top: 199px;
    left: 80px;
    justify-content: space-between;
    opacity: 1;
    border-width: 1px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: -12px 12px 0 0 #EDEEFF, 12px -12px 40px -18px rgba(209, 125, 245, 0.40);
}

.secure-reliable-section {
    background: linear-gradient(0deg, #FDF2FA, #FDF2FA),
        linear-gradient(222.04deg, rgba(255, 255, 255, 0) 22.14%, rgba(255, 255, 255, 0.6) 78.84%);
    border: 1px solid #FCCEEE;
    transform: translateY(120px);
}

.join-section {
    background: linear-gradient(0deg, #F4F3FF, #F4F3FF),
        linear-gradient(222.04deg, rgba(255, 255, 255, 0) 22.14%, rgba(255, 255, 255, 0.6) 78.84%);
    border: 1px solid #D9D6FE;
    box-shadow: -12px 12px 0 0 #EDEEFF, 12px -12px 40px -18px #4C5DDC66;
}

.secure-join-text {
    color: #535862;
}

.join-and-secure-section {
    min-height: 700px;
}

/* =========================
   Explore Cards
========================= */
.transforming-healthcare-recruitment-section {
    overflow: hidden;
}

.right-card {
    position: relative;
    overflow: hidden;
}

.maddie-card-shell {
    position: relative;
    min-height: 760px;
    border-radius: 36px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #f2f1ff 0%, #ece9ff 45%, #f4edff 100%);
    border: 1px solid #e8e5ff;
}

.maddie-card-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/bg-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
}

.maddie-card-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/stripe.webp');
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 2;
}

.maddie-card-shell-left {
    min-height: 720px;
}

.maddie-img-right,
.maddie-img-left {
    position: relative;
    z-index: 5;
    padding-top: 5rem;
}

.eclipse-bottom-right {
    width: 465px;
    height: 465px;
    opacity: 1;
    top: 783px;
    left: -67px;
    background: linear-gradient(90deg, rgba(120, 115, 245, 0.7) 0%, rgba(236, 119, 171, 0.7) 100%);
    filter: blur(250px);
    z-index: 1;
}

.eclipse-top-right {
    width: 465px;
    height: 465px;
    opacity: 1;
    top: -292px;
    left: 434px;
    background: linear-gradient(90deg, rgba(120, 115, 245, 0.7) 0%, rgba(236, 119, 171, 0.7) 100%);
    filter: blur(250px);
    z-index: 1;
}

/* =========================
   Banner
========================= */
.banner-content {
    max-width: 590px;
    z-index: 3;
    position: relative;
}

.maddie-banner {
    max-height: 480px;
    min-height: 480px;
    height: 100%;
    opacity: 1;
    border-radius: 24px;
    overflow: hidden;
    background-color: #004EEB;
    background-image: linear-gradient(90deg, rgba(0, 78, 235, 0.92) 0%, rgba(0, 78, 235, 0.78) 45%, rgba(0, 78, 235, 0.65) 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: 70%, 66%;
    background-position: center;
}

.maddie-banner-img-wrapper {
    position: absolute;
    top: 51%;
    right: -399px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
    .explore-message {
        padding-top: 3.5rem !important;
    }
}

@media (min-width: 993px) and (max-width: 1146px) {
    .hero-content {
        margin-top: 130px !important;
    }
}

@media (max-width: 1600px) {
    .hero-left-top {
        left: 10px;
        bottom: -110px;
    }

    .company-images img {
        left: 10px;
    }

    .hero-left-bottom {
        width: 400px;
        left: 13px;
    }

    .hero-right-mid {
        top: 41%;
        right: 2px;
    }

    .maddie-banner{
        background-size: 70%, 60%;
    }
}

@media (max-width: 1450px) {
    .hero-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 1440px) {
    /* .hero-content {
        margin-top: 130px !important;
    } */

    .meet-maddie-section {
        padding-left: 2rem;
    }

    .right-card {
        right: -1rem;
    }

    .maddie-card-shell-right {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .left-card {
        position: relative;
        left: -1rem;
    }

    .maddie-card-shell-left {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .ms-section-inner-wrapper{
        gap:.5rem !important
    }

    .join-and-secure-section,
    .banner-section {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (max-width: 1390px) {
    .maddie-img {
        right: -30px;
    }

    .hero-left-top {
        left: -7px;
    }

    .hero-left-bottom {
        left: -135px;
    }

    .hero-right-mid {
        right: 60px;
    }
}

@media (max-width: 1200px) {
    .hero {
        min-height: 850px;
    }

    .maddie-img {
        right: 10px;
        width: 650px !important;
    }
}

@media (max-width: 1024px) {
    .maddie-card-shell {
        min-height: 640px;
    }

    .maddie-img-right img {
        height: 600px;
    }

    .maddie-side {
        height: 800px;
    }

    h2 {
        font-size: 30px !important;
    }
/* 
    .title1-sophia {
        font-size: 16px !important;
    } */

    .transforming-healthcare-recruitment-section {
        min-height: unset;
    }
}

@media (max-width: 768px) {
    .maddie-card-shell {
        min-height: 400px;
        border-radius: 26px;
    }

    .maddie-img-right img {
        height: 546px;
    }

    .meet-maddie-section {
        gap: 0.5rem !important;
    }

    .first-explore-section {
        margin-bottom: 3rem !important;
    }

    .maddie-card-shell-left {
        min-height: 640px;
        border-radius: 26px;
    }

    .maddie-side {
        right: -150px;
    }

    .second-explore-section {
        padding-top: 1rem;
    }
}

@media (max-width: 500px) {
    .hero-btn-wrapper a,
    .footer-btn{
        min-height: 100%;
        max-height: 40px;
    }

    .btn-find-jobs {
        box-shadow: none;
    }

    .hero-content {
        display: block;
        padding: 0 1rem;
        margin-top: 0 !important;
    }

    .ms-section{
        padding: 2rem !important;
    }

    .eclipse-maddie-img,
    .eclipse-maddie-img-left {
        display: none !important;
    }

    .ms-section-inner{
        flex: 1;
        flex-direction: row !important;
        justify-content: space-between;
        text-align: end;
        min-height: unset;
    }

    .meet-maddie-section{
        padding: 1rem !important;
    }

    h2 {
        font-size: calc(1.375rem + 1.5vw);
    }

    .maddie-img {
        position: unset !important;
        width: 450px !important;
    }

    .hero-inner {
        padding-top: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        line-height: normal;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-btn {
        padding: 12px 32px !important;
        justify-content: center !important;
    }

    .hero-btn h5 {
        font-size: 13px !important;
    }

    .hero-btn h5 img {
        height: 17px;
        width: 17px;
    }

    .hero-btn-wrapper {
        flex: 1;
        text-align: center;
    }

    .parent-hero-btn {
        width: 100%;
    }

    .trusted-section {
        margin: 0;
        position: absolute;
        bottom: 106px;
        z-index: 999;
        width: 90%;
    }

    .hero-right div.position-absolute {
        z-index: 1;
    }

    #powered-by-ai {
        margin-bottom: 1rem;
    }

    .hero-right {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .maddie-image-wrapper {
        pointer-events: none !important;
        z-index: 2;
    }

    .hero-left-top {
        right: -35px;
        top: 0;
        left: unset;
        width: 250px;
        display: none;
    }

    .hero-right-mid {
        right: unset;
        left: 0;
    }

    .hero-right-mid .post-images img {
        left: 0 !important;
        width: 100%;
    }

    .hero {
        max-height: 1035px;
    }

    .post-images img {
        height: 180px;
    }

    .hero-left-top p,
    .hero-left-bottom p,
    .hero-right-mid p {
        font-size: 13px !important;
    }

    .post-images {
        margin-bottom: 0 !important;
    }

    .hero-right-mid {
        bottom: 170px;
        top: unset;
        right: -52px;
        left: unset;
        width: 250px;
        border-radius: 0;
    }

    .hero-left-bottom {
        width: 233px;
        left: -8px;
        height: 300px;
        top: 35%;
        border-radius: 0;
    }

    .maddie-image-wrapper {
        bottom: 30px;
    }

    .company-images img {
        left: -12px;
        width: 100%;
        top: -5px;
    }

    .profile-images img {
        top: 0 !important;
    }

    .hero-images {
        position: absolute !important;
        display: flex;
        top: -60px;
        left: 0;
    }

    .trusted-text-wrapper {
        margin-top: 0.75rem;
    }

    .hero-images img:not(:first-child) {
        margin-left: -15px;
    }

    .left-card {
        position: unset !important;
        border-radius: 0 !important;
    }

    .maddie-card-shell-left {
        min-height: 640px;
        border-radius: 0;
    }

    .maddie-side {
        position: absolute;
    }

    .right-card {
        right: 0 !important;
    }

    .maddie-card-shell-right {
        border-radius: 0;
        min-height: 100px;
    }

    .meet-maddie-section {
        padding: 2rem !important;
        padding-bottom: 0 !important;
    }

    .title1-sophia {
        font-size: 15px !important;
    }

    .job-grid {
        margin-top: 3rem !important;
    }

    .maddie-img-right{
        padding-top: 0 !important;
        height: 315px;
    }

    .maddie-img-right img {
        height: 320px;
    }

    .maddie-star-chat{
        display: none !important;
    }

    .maddie-star-mobile{
        display: block !important;
        width: 100%;
    }

    .transforming-healthcare-recruitment-section{
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .maddie-image-wrapper {
        position: relative;
        bottom: -50px !important;
    }

    .jobseeker-profile{
        display: none !important;
    }

    .jobseeker-profile-mobile{
        display: block !important;
        width: 100%;
        object-fit: contain;
    }

    .maddie-card-shell-left {
        min-height: 350px;
    }

    .eclipse-top-right,
    .eclipse-bottom-right{
        display: none !important;
    }

    .employer-profile{
        display: none !important;
    }

    .employer-profile-mobile{
        display: block !important;
        width: 100%;
    }

    .maddie-img-left{
        padding-top: 0 !important;
    }

    .secure-reliable-section{
        transform: unset !important;
    }

    .join-and-secure-section{
        margin: 0 !important;
        padding: 0 2rem;
        padding-top: 0 !important;
    }

    .banner-section{
        padding: 0 !important;
    }

    .maddie-banner-img-wrapper{
        position: unset !important;
        transform : unset !important;
    }

    .maddie-banner-web{
        display: none !important;
    }

    .maddie-banner-mobile{
        display: block !important;
        width: 100%;
    }

    .maddie-banner{
        border-radius: 0 !important;
        max-height: 100%;
        background-size: 111%, 161%;
        background-position: center, bottom;
    }

    .banner-btn-wrapper{
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .banner-btn-wrapper a{
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .banner-section{
        margin-top: 0   !important;
        margin-bottom: 0 !important;
    }

    .btn-custom-hero {
        /* padding: 18px 32px !important; */
    }

    .btn-custom-hero h5,
    .footer-btn h5{
        font-size: unset !important;
    }

    .footer-btn{
        height: 100% !important;
        border-radius: .375rem !important;
    }
}

@media (max-width: 415px) {
    .hero {
        max-height: 935px;
    }

    .hero-title {
        font-size: 30px;
    }

    /* .meet-maddie-text {
        font-size: 16px !important;
    } */

    .maddie-img {
        width: 400px !important;
    }

    .hero-content {
        padding: 0;
    }

    .trusted-section {
        right: 0;
        left: 0;
        bottom: 85px;
        margin: auto;
    }

    .hero-left-top {
        right: -70px;
        top: -25px;
    }

    .hero-right-mid {
        bottom: 115px;
    }

    .secure-reliable-section,
    .join-section{
        padding: 1.5rem !important;
    }

    .maddie-card-shell-left {
        min-height: 305px;
    }

    .maddie-img {
        width: 380px !important;
    }

     .maddie-img-right img {
        height: 320px;
    }
}

@media (max-width: 408px) {
    .hero-images {
        top: -35px;
    }

    .trusted-section {
        bottom: 90px;
    }
}

@media (max-width: 393px) {
    .trusted-section {
        bottom: 77px;
    }
}

@media (max-width: 390px) {
    .hero {
        max-height: 956px;
    }

    .hero-images {
        top: -35px;
    }

    .maddie-img {
        width: 400px !important;
    }

    .maddie-card-shell-left {
        min-height: 287px;
    }

    .trusted-section {
        bottom: 77px;
    }

    .maddie-img-right img {
        height: 340px;
    }
}

@media (max-width: 375px) {
    .maddie-card-shell-left {
        min-height: 270px;
    }

    .hero {
        max-height: 957px;
    }

    .hero-images {
        top: -60px;
    }

    .trusted-text-wrapper span:first-child {
        font-size: 14px !important;
    }

    .trusted-section {
        bottom: 88px;
    }

    .maddie-img-right img {
        height: 350px;
    }
}

@media (max-width: 360px) {
    .maddie-img-right img {
        height: 325px;
        width: 380px;
        object-fit: none;
    }

    .hero {
        max-height: 950px;
    }

    .hero-images {
        top: -35px;
    }

    .hero-title {
        font-size: 27px;
    }

    .trusted-text {
        font-size: 14px !important;
    }
}

@media (max-width: 320px) {
    .hero-btn h5 i,
    .hero-btn h5 img {
        display: none !important;
    }

    .trusted-text-wrapper span:first-child,
    .trusted-text-wrapper span {
        font-size: 12px !important;
    }

    .hero-images {
        top: -60px;
    }

    .trusted-section {
        bottom: 90px;
    }
}

@media (max-width: 317px) {
    .hero {
        max-height: 970px;
    }

    .trusted-section {
        bottom: 90px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 314px) {
    .hero-images {
        top: -35px;
    }

    .trusted-section {
        bottom: 90px;
        margin-bottom: 1rem;
    }
}
