/* Homepage: banner, "the hub" intro, partner logos, featured posts slider, blog post cards and call-to-action links. */

/* ------------------------------------------------------------------
   Banner and intro
   ------------------------------------------------------------------ */

.bannertext h1 {
    @media (max-width: 425px) {
        font-size: 1.8em;
    }

    b {
        font-family: var(--sc-font-serif);
        font-weight: 400;
    }
}

div.homepagebanner {
    @media (max-width: 425px) {
        min-height: 35vh;
    }
}

#the-hub {
    h1 {
        font-size: 2.375rem;
        font-weight: 400;
        color: var(--sc-text);
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    p {
        font-size: 1.25rem;
        color: var(--sc-text);
    }
}

#partnerlogo {
    .child_column {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    img {
        max-width: 230px;

        @media (max-width: 1280px) {
            max-width: 160px;
        }
    }
}

/* ------------------------------------------------------------------
   Featured posts slider
   ------------------------------------------------------------------ */

.nectar-recent-posts-single_featured {
    &.multiple_featured {
        .grav-wrap {
            display: none;
        }

        .controls li.active .title,
        .controls li:hover .title {
            font-family: var(--sc-font-sans);
        }
    }

    h2 a {
        font-size: 26px;
        font-weight: bolder;
        font-family: var(--sc-font-serif);

        @media (max-width: 690px) {
            line-height: 1.1em;
        }
    }
}

.single [data-post-hs="default_minimal"] .page-header-bg-image::after,
.nectar-recent-posts-single_featured .nectar-recent-post-slide .nectar-recent-post-bg::after {
    background-color: rgba(45, 45, 45, 0.65);
}

/* ------------------------------------------------------------------
   Blog post cards
   ------------------------------------------------------------------ */

#blogpost_home {
    display: flex;
    justify-content: center;

    @media (max-width: 600px) {
        flex-wrap: wrap;
    }

    a.post-link {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .col {
        background-color: var(--sc-white);
        box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.2);
        min-height: 197px;
        margin-left: 20px;
        margin-right: 20px;
        position: relative;
        transition: all ease 0.3s;

        @media (max-width: 768px) {
            margin-left: 0;
            margin-right: 2%;
        }

        img {
            margin-bottom: 0;
            max-height: 250px;
            max-width: 100%;
            width: 100%;
        }

        &:hover {
            transform: translateY(10px);
        }

        &.span_4 {
            @media (max-width: 600px) {
                max-width: 100%;
            }

            &:hover .blogpost-content a.blogpost-link {
                color: inherit;

                .arrow {
                    background-image: url("../images/icons/black/PwC_icon_arrow-right_rgb_black.svg");
                }
            }
        }
    }
}

div.blogpost-content {
    padding: 0 15px 30px;
}

h6.blogpost-title {
    font-size: 1.25rem;
    font-family: Georgia, serif !important;
}

p.blogpost-date {
    display: inline-block;
    color: var(--sc-white);
    font-weight: 600;
    padding: 7px 15px;
    background-color: var(--sc-accent);
    position: relative;
    bottom: 15px;
    left: 15px;
}

p.blogpost-exercpt {
    padding-bottom: 15px;
    font-weight: normal;
}

a.blogpost-link .arrow {
    background-image: url("../images/icons/orange/PwC_icon_arrow-right_rgb_orange.svg");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    height: 15px;
    width: 50px;
    vertical-align: middle;
    margin-left: 5px;
}

/* ------------------------------------------------------------------
   Call-to-action links
   ------------------------------------------------------------------ */

a.viewall {
    color: var(--sc-grey900);
    padding: 20px 6px 20px 50px;
    border: 1px solid var(--sc-grey900);
    border-radius: 5px;
    font-weight: normal;
    display: block;
    width: 250px;
    margin: 0 auto;
    transition: all ease 0.3s;

    &:hover {
        color: var(--sc-black);
        border-color: var(--sc-accent);
        background-color: var(--sc-accent);
    }

    /* Comes after :hover on purpose, so the virtual tour button keeps its colours on hover. */
    .virtual-tour & {
        color: var(--sc-white);
        border: unset;
        background-color: var(--sc-accent);

        .arrow {
            background-image: url("../images/icons/white/PwC_icon_arrow-right_rgb_white.svg");
        }
    }

    .arrow {
        background-image: url("../images/icons/black/PwC_icon_arrow-right_rgb_black.svg");
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        height: 15px;
        width: 30px;
        vertical-align: middle;
        margin-left: 20px;

        @media (max-width: 600px) {
            margin-left: 3px;
        }
    }
}

a.browse {
    display: inline-block;
    border: 1px solid var(--sc-dark);
    padding: 25px 80px 25px 50px;
    border-radius: 7px;
    color: inherit;
    margin-left: 10px;
    position: relative;
    text-transform: capitalize;
    letter-spacing: 1px;

    @media (max-width: 1024px) {
        padding: 25px 60px 25px 30px;
    }

    @media (max-width: 999px) {
        display: block;
        margin: 0 auto;
        max-width: 292.2px;
    }

    @media (max-width: 600px) {
        padding: 25px 80px 25px 50px;
    }

    &:hover {
        background-color: var(--sc-white);
        color: var(--sc-orange700);

        .arrow {
            background-image: url("../images/icons/orange/PwC_icon_arrow-right_rgb_orange.svg");
        }
    }

    .arrow {
        background-image: url("../images/icons/black/PwC_icon_arrow-right_rgb_black.svg");
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        height: 15px;
        width: 30px;
        vertical-align: middle;
        margin-left: 20px;
        position: absolute;
        bottom: 27px;
    }
}
