/* =========================================================
   RESOURCE CENTER
   ========================================================= */

.hg-resources-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f4f8fc;
    color: #16324a;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.hg-resources-container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hg-resources-hero {
    position: relative;
    width: 100%;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #dfeaf2;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

.hg-resources-hero-overlay {
    width: 100%;
    display: flex;
    align-items: center;
}

.hg-resources-hero-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 760px;
    margin-left: 4%;
    padding: 70px 0;
}


/* =========================================================
   REAL RESOURCE SEARCH
   ========================================================= */

.hg-resources-search {
    position: absolute;
    left: 20px;
    top: 110px;
    display: flex;
    width: 850px;
    height: 75px;
    margin: 0;
    z-index: 5;
}

.hg-resources-search input {
    flex: 1;
    min-width: 0;
    height: 75px;
    box-sizing: border-box;
    padding: 0 20px;
    border: 0;
    border-radius: 28px 0 0 28px;
    background: #ffffff;
    color: #16324a;
    font-size: 16px;
    outline: none;
}

.hg-resources-search input::placeholder {
    color: #8b98ad;
}

.hg-resources-search button {
    width: 120px;
    height: 75px;
    border: 0;
    border-radius: 0 28px 28px 0;
    background: #0787d1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.hg-resources-search button:hover {
    background: #0674b3;
}


/* =========================================================
   RESOURCE CENTER SHOWCASE
   ========================================================= */

.hg-resources-showcase {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eef7fc;
}

.hg-resources-showcase-background {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hg-resources-showcase-bg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   SHOWCASE BUTTONS - DESKTOP
   ========================================================= */

.hg-resources-showcase-buttons {
    position: absolute;
    top: 1450px;
    left: 4%;
    right: 4%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    z-index: 3;
}

.hg-resource-hospital-button {
    transform: translateY(-13px);
}

.hg-resource-image-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-decoration: none;
    line-height: 0;
}

.hg-resource-image-button img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.hg-resource-image-button:hover img {
    transform: translateY(-6px);
}


/* =========================================================
   FEATURED RESOURCE AREA
   ========================================================= */

.hg-resources-featured {
    width: 100%;
    padding: 0;
    margin-top: -100px;
    margin-bottom: 0;
    background: #edf5fa;
    position: relative;
    z-index: 4;
}

.hg-resources-featured .hg-resources-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hg-resources-featured-art {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.hg-resources-featured-art img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.hg-resources-cta {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #edf5fa;
    line-height: 0;
    overflow: hidden;
}

.hg-resources-cta img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 850px) {

    /* HERO */

    .hg-resources-hero {
        min-height: 380px;
    }

    .hg-resources-hero-content {
        width: 88%;
        margin: 0 auto;
        padding: 45px 0;
    }


    /* SEARCH */

    .hg-resources-search {
        left: 10%;
        top: 105px;
        width: 80%;
        height: 48px;
    }

    .hg-resources-search input {
        height: 48px;
        padding: 0 14px;
        font-size: 14px;
    }

    .hg-resources-search button {
        width: 82px;
        height: 48px;
        font-size: 13px;
    }


    /* SHOWCASE BUTTONS */

    .hg-resources-showcase-buttons {
        position: absolute;
        top: 220px;
        left: 8%;
        right: 8%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        align-items: center;
        z-index: 3;
    }


    /* LEVEL HOSPITAL WITH THE OTHER BUTTONS */

    .hg-resource-hospital-button {
        transform: none;
    }

    .hg-resource-image-button img {
        width: 100%;
    }

    .hg-resource-image-button:hover img {
        transform: none;
    }


    /* FEATURED ART */

    .hg-resources-featured {
        margin-top: -50px;
        padding: 0;
    }

    .hg-resources-featured .hg-resources-container {
        width: 100%;
    }


    /* CTA */

    .hg-resources-cta {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hg-resources-cta img {
        width: 100%;
        height: auto;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* HERO */

    .hg-resources-hero {
        min-height: 350px;
    }

    .hg-resources-hero-content {
        padding: 35px 0;
    }


    /* SEARCH */

    .hg-resources-search {
        left: -5%;
        top: 66px;
        width: 72%;
        height: 42px;
    }

    .hg-resources-search input {
        height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }

    .hg-resources-search button {
        width: 72px;
        height: 42px;
        font-size: 12px;
    }


    /* SHOWCASE BUTTONS */

    .hg-resources-showcase-buttons {
        top: 350px;
        left: 7%;
        right: 7%;
        gap: 5px;
    }


    /* LEVEL HOSPITAL */

    .hg-resource-hospital-button {
        transform: none;
    }


    /* FEATURED ART */

    .hg-resources-featured {
        margin-top: -35px;
    }

    .hg-resources-featured .hg-resources-container {
        width: 100%;
    }


    /* CTA */

    .hg-resources-cta {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hg-resources-cta img {
        width: 100%;
        height: auto;
    }

}

/* =========================================================
   MOBILE LANDSCAPE
   ========================================================= */

@media (max-width: 600px) and (orientation: landscape) {

    .hg-resources-showcase-buttons {
        top: 500px;
    }

    .hg-resource-hospital-button {
        transform: translateY(-4px);
    }
}