/**
 ** Blog Search Styles
 **/

/* Header Search Input */

@media (min-width: 992px) {
    .navbar-expand-lg .offcanvas .offcanvas-body {
        justify-content: space-between;
    }
}

.navbar .offcanvas-body .search-wrapper {
    height: 40px;
    max-width: 345px;
    width: 100%;
    margin-top: 7px;
    position: relative;
    margin-right: 15px;
}

.navbar .offcanvas-body .search-wrapper input[type=text] {
    height: 48px;
    width: 100%;
    border: 1px solid #003873;
    border-radius: 24px;
    background-color: transparent;
    padding: 12px 50px 12px 20px !important;
    font-size: 16px;
    line-height: 24px;
    color: #1F2730;
}

.navbar .offcanvas-body .search-wrapper input[type=submit] {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 16px;
    height: 16px;
    border: none;
    color: transparent;
    background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 14L10 10M2 6.66667C2 7.2795 2.12071 7.88634 2.35523 8.45252C2.58975 9.01871 2.93349 9.53316 3.36683 9.9665C3.80018 10.3998 4.31462 10.7436 4.88081 10.9781C5.447 11.2126 6.05383 11.3333 6.66667 11.3333C7.2795 11.3333 7.88634 11.2126 8.45252 10.9781C9.01871 10.7436 9.53316 10.3998 9.9665 9.9665C10.3998 9.53316 10.7436 9.01871 10.9781 8.45252C11.2126 7.88634 11.3333 7.2795 11.3333 6.66667C11.3333 6.05383 11.2126 5.447 10.9781 4.88081C10.7436 4.31462 10.3998 3.80018 9.9665 3.36683C9.53316 2.93349 9.01871 2.58975 8.45252 2.35523C7.88634 2.12071 7.2795 2 6.66667 2C6.05383 2 5.447 2.12071 4.88081 2.35523C4.31462 2.58975 3.80018 2.93349 3.36683 3.36683C2.93349 3.80018 2.58975 4.31462 2.35523 4.88081C2.12071 5.447 2 6.05383 2 6.66667Z" stroke="%23003873" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
}

/**
 ** Search Results Page 
 **/

.search #page {
    height: auto;
}

/* Typography */

body.search {
    background-color: #FFF;
    color: #003873;
}

body.search h1 {
    font-size: 55px;
    font-weight: 700;
}

body.search h2 {
    font-size: 51px;
    font-weight: 600;
}

body.search h3 {
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 42px;
    border-bottom: 1px solid #979797;
    margin-bottom: 75px !important;
}

hr {
    opacity: 1;
}

/* Buttons */

#main .btn {
    padding: 18px 48px 14px 18px;
    border: 2px solid #003873;
    width: fit-content;
    border-radius: 2px;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    position: relative;
}

#main .btn.btn-primary {
    background-color: #003873;
    color: #FFF !important;
}

#main .btn.btn-outline {
    background-color: #FFF;
    color: #003873;
}

#main .btn:after {
    content: "";
    display: block;
    position: absolute;
    right: 21px;
    top: 19px;
    width: 18px;
    height: 16px;
}

#main .btn.btn-primary:after {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7855 7.80505L0.499756 7.80505' stroke='white' stroke-width='2'/%3E%3Cpath d='M9.93139 1.43115L16.5002 7.99997L9.93138 14.5688' stroke='white' stroke-width='2'/%3E%3C/svg%3E%0A");
}

#main .btn.btn-outline:after {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7855 7.80505L0.499756 7.80505' stroke='%23003873' stroke-width='2'/%3E%3Cpath d='M9.93139 1.43115L16.5002 7.99997L9.93138 14.5688' stroke='%23003873' stroke-width='2'/%3E%3C/svg%3E%0A");
}

/* Search Banner */

#banner-search {
    margin-top: 55px;
    min-height: 378px;
    background-color: #FFF;
    color: #FFF;
    background-image: url('../images/search-bg.png');
    background-position: center; 
    background-repeat: no-repeat; 
    background-color: #003873;
}

#banner-search .search-row {
    margin-top: 48px;
}

#banner-search .search-row-col {
    padding-top: 100px;
}

#banner-search .search-row h3 {
    font-size: 55px;
    font-weight: bold;
    text-align: center;
}

/* Search Breadcrumbs */

.search #breadcrumbs {
    font-size: 16px;
    margin: 11px 0;
}

.search #breadcrumbs a {
    text-decoration: none;
    color: #0081FF;
}

/* Search Hero Section */

#search-hero-section {
    margin-top: 48px;
    margin-bottom: 40px;
}

.search-no-results #search-hero-section {
    margin-bottom: 0px;
}

#search-hero-section > div > div {
    margin-top: 48px;
    margin-bottom: 48px;
}

.search-no-results #search-hero-section > div > div {
    margin-bottom: 24px;
}

#search-hero-section p {
    text-align: center;
    font-size: 16px;
    line-height: 25px;
}

#search-no-results-row hr {
    margin-bottom: 167px;
}

#search-no-results-row .no-search-result-img {
    margin: 68px auto 87px;
}

#search-no-results-row .no-search-result-img img {
    margin-left: 96px;
}

#search-posts-row .search-results {
    justify-content: space-between;
}

.search-no-results #search-posts-row {
    margin-bottom: 100px;
}

.header-row hr {
    border-top: 1px solid #979797;
    margin: 8px 0 75px;
}

.search-results .header-row hr {
    margin-top: -5px;
}

.search {
    margin-top: 60px;
}

/* Search Results */

.search .search-post-card {
    margin: 40px auto;
    max-width: 361px;
    background-color: #ffffff;
    border: 1px solid #ddd;
}

.search .search-post-card .card-body {
    padding: 31px 34px;
}

.search .search-post-card .search-post-img-wrap {
    height: 213px;
    background-color: #ef9684;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.search .search-post-card .search-post-img-wrap img {
    margin-left: 52px;
}

.search .search-post-card .search-post-card-title {
    margin: 0 0 30px 0;
}

.search .search-post-card .search-post-card-title h5,
.search .webinar-row h5 {
    color: #003873;
    font-weight: 700;
    font-size: 25px;
    line-height: 32px;
}

.search .webinar-row h5 {
    font-size: 2.5rem;
}

.search .search-post-card .search-post-card-title a,
.search .webinar-row a {
    text-decoration: none;
    color: #003873;
    height: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search .search-post-card .search-post-card-content {
    margin: 15px 0 25px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #3b4254;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    min-height: 110px;
}

.search .search-post-card .search-post-card-content p {
    margin-bottom: 0;
}

/* Webinars */

#search-webinar-row {
    margin-bottom: 76px;
    display: inline-grid;
}

#search-webinar-row .event-card-img a,
#search-webinar-row .event-card-img a img {
    width: 100%;
}

@media (min-width:640px)  {
    #search-webinar-row .event-result-card {
        flex: 0 0 auto;
        width: calc(50% - 13px);
    }
    
    #search-webinar-row .event-card-img {
        width: auto;
    }

    #search-webinar-row .event-card-content-main {
        width: auto;
        padding: 15px 25px;
    }
}

.event-card-speaker, 
.event-card-speaker-biography {
    font-size: 12px;
    font-weight: 500;
    margin: 10px 0px;
}

.event-card-speaker span, 
.event-card-speaker-biography span, 
.event-card-duration span {
    color: #003873;
    font-weight: 600;
}

.upcoming .event-card-title {
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

section .webinar-row {
    margin-top: 40px;
    margin-bottom: 40px;
}

section .webinar-row span.excerpt {
    display: block;
    margin-top: 25px;
    margin-bottom: 32px;
}

section .webinar-row .btn.webinar-register {
    background-color: #003873;
    padding: 18px 20px;
    color: #FFF;
}

section .footer-row {
    justify-content: center;
    margin: 140px auto 105px;
}

@media screen and (max-width: 1250px) {
    .event-card-container.upcoming {
        justify-content: space-evenly !important;
    }
}

/* Course */

section .row.courses {
    justify-content: space-between;
}

section .row.courses .search-course-card {
    margin-top: 20px;
}

@media (min-width: 768px) {
    section .row.courses .search-course-card {
        width: calc(50% - 19px);
    }
}

section .row.courses .search-course-card .search-course-img-wrap {
    height: 345px;
}

section .row.courses .search-course-card .card-body {
    padding: 64px 48px 56px;
    border: 1px solid #979797;
}

section .row.courses .search-course-card .card-body .search-course-card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 30px;
}

section .row.courses .search-course-card .card-body .search-course-card-title h5 {
    color: #003873;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    height: 90px;
}

section .row.courses .search-course-card .card-body .search-course-card-title h5 a {
    text-decoration: none;
    color: #003873;
}

section .row.courses .search-course-card .card-body .search-course-card-duration span {
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
}

section .row.courses .search-course-card .card-body .search-course-card-recomended {
    margin-bottom: 27px;
}

section .row.courses .search-course-card .card-body .search-course-card-recomended span {
    font-size: 16px;
    line-height: 30px;
    font-weight: 600;
}

section .row.courses .search-course-card .card-body .search-course-card-content p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 27px;
}

section .row.courses .search-course-card .card-body .search-course-card-button {
    position: relative;
}

section .row.courses .search-course-card .card-body .search-course-card-button span.price {
    display: block;
    font-size: 32px;
    line-height: 40px;
    font-weight: bold;
    margin: 10px 0 0;
}

/* Mobile styles */

@media (max-width:991px) {

    .navbar .offcanvas-body .search-wrapper {
        margin: 15px auto;
        order: 2;
        max-width: calc(100% - 40px);
    }

    body.search h1 {
        font-size: 20px;
    }

    body.search h2 {
        font-size: 31px;
    }

    body.search h3 {
        font-size: 16px;
        line-height: 40px;
        padding-bottom: 15px;
        margin-bottom: 22px !important;
    }

    body.search-no-results h3 {
        font-size: 24px;
        line-height: 28px;
        padding-bottom: 27px;
        margin-bottom: 36px !important;
    }

    body.search h4 {
        font-size: 18px;
        line-height: 25px;
    }

    #banner-search {
        background-image: url('../images/search-bg-mobile.png');
        margin-top: 16px;
        min-height: 100px;
    }

    .logged-in #banner-search {
        margin-top: 16px;
    }

    #banner-search .search-row {
        margin-top: 40px;
    }

    #banner-search .search-row-col {
        padding-top: 0px;
    }

    .search #breadcrumbs{
        display: none;
    }

    #search-hero-section {
        margin-top: 0px;
        margin-bottom: 17px;
    }

    #search-hero-section > div > div {
        margin-top: 60px;
        margin-bottom: 6px;
    }

    #search-hero-section p {
        text-align: left;
    }

    #search-no-results-row .no-search-result-img {
        max-width: 240px;
        margin: 43px auto 53px;
    }

    #search-no-results-row hr {
        margin-bottom: 0px;
    }

    .header-row hr {
        margin: 15px 0 53px;
    }

    .search-results .header-row hr {
        margin-top: 27px;
    }

    .search .search-post-card {
        margin: 20px 0px;
    }

    .search .search-post-card .search-post-img-wrap {
        height: 183px;
    }

    #search-no-results-row .no-search-result-img img {
        margin-left: 19px;
    }

    .search .search-post-card .search-post-card-title h5, .search .webinar-row h5 {
        font-size: 18px;
        line-height: 26px;
    }

    .search .search-post-card .search-post-card-title a, .search .webinar-row a {
        height: 82px;
    }

    .search .search-post-card .search-post-card-content {
        font-size: 18px;
        line-height: 25px;
        margin-bottom: 0;
    }

    .search .search-post-card .card-body {
        padding: 27px 29px;
    }

    section .footer-row {
        margin: 70px 0;
    }

    section .row.courses .search-course-card .search-course-img-wrap {
        height: 184px;
    }

    section .row.courses .search-course-card .card-body {
        padding: 27px 23px 37px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-title {
        margin-bottom: 15px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-title h5 {
        font-size: 16px;
        line-height: 20px;
        height: 60px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-duration span {
        font-size: 12px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-recomended {
        margin-top: -12px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-recomended span {
        font-size: 10px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-content p {
        font-size: 14px;
        line-height: 23px;
    }

    section .row.courses .search-course-card .card-body .search-course-card-button span.price {
        font-size: 20px;
        line-height: 40px;
        margin-bottom: 12px;
        margin-top: 0;
    }

    section .row.courses .search-course-card .card-body .search-course-card-button {
        display: flex;
        flex-direction: column-reverse;
    }
}


@media (min-width: 768px) {
    section .row.courses .search-course-card .card-body .search-course-card-button span.price {
        font-size: 32px;
        line-height: 40px;
        font-weight: bold;
        position: absolute;
        right: 0;
        bottom: 0;
    }
}