/*
Theme Name: TechConnect
Text Domain: TechConnect
Version: 1.0
Description: Generic Banner Styles
Author: KB
*/

.mobile-res-spacer {
    display: none;
    width: 100%;
}

.generic-banner > .bg-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 35.208%; /* (507 / 1440) * 100 */
}

.generic-banner > .bg-image > img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    object-position: center;
}

.generic-banner .overlay {
    background: linear-gradient(90deg, #0E417A 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.generic-banner .generic-banner-text-container {
    position: absolute!important;
    bottom: 73px;
    left: 120px;
    color: white;
    max-width: calc(50vw - 120px);
}

.generic-banner .breadcrumbs {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    white-space: nowrap;
}

.generic-banner .breadcrumbs p {
    white-space: nowrap; /* Prevent the text from wrapping */
    overflow: hidden;    /* Hide any overflowing text */
    text-overflow: ellipsis; /* Add '...' at the end when text overflows */
}

.banner-breadcrumb-arrow {
    filter: brightness(72);
}

@media screen and (max-width: 1023px) {

    .mobile-res-spacer {
        display: block;
        height: 77px;
    }

    .generic-banner {
        height: 50dvh;
    }

    .generic-banner > .bg-image {
        padding-top: 59.0698%; /* (254 / 430) * 100 */
        height: 50dvh;
    }

    .generic-banner .generic-banner-text-container {
        top: 0;
        left: 0;
        max-width: calc(100%);
        height: 50dvh;
        display: flex;
        flex-direction: column;
        padding: 40px 16px;
        justify-content: center;
    }

    .generic-banner .text-portion {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .generic-banner .clickables {
        margin-top: auto;
    }
}
