@import url("./variables.css");
@import url("./common.css");

body {
    --small-logo-height: 40px;
    --logo-height: 80px;
    --logo-padding: 10px;
}

.text-background {
    color: var(--bg-col);
}

.ratio img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fit-contain {
    object-fit: contain !important;
}

.stars-alt {
    user-select: none;
}


/* Forms */

.file-drop-zone {
    min-height: 300px;
}


/* Header and footer */

.top-bar .top-bar-end .custom .dropdown-menu-arrow::after {
    border-bottom: 10px solid var(--white) !important;
}

.bannerimg {
    padding-top: var(--logo-combo-height);
}

.under-menu {
    padding-bottom: 0 !important;
}

.main-banner-png {
    position: relative;
    display: block;
    /*max-width: 20rem;*/
    margin: 2rem auto;
    right: unset;
    bottom: unset;
}

@media screen and (max-width: 991px) {
    body {
        --logo-combo-height: 54px;
    }

    .sticky-pin {
        display: block;
    }

    .sticky-pin .horizontal-header {
        background: var(--bg-dark-col);
    }

    .horizontal-header .smllogo {
        margin-top: 26px;
        margin-bottom: -26px;
    }

    .smllogo img {
        height: var(--small-logo-height);
        width: auto;
        transform: translateY(-50%);
    }

    .header-main + section.sptb-2,
    .header-main + section > .sptb-2:first-child {
        padding-top: var(--logo-combo-height) !important;
    }
}

@media screen and (min-width: 992px) {
    body {
        --logo-combo-height: 100px;
    }

    .sticky-pin {
        display: none;
    }

    .desktoplogo,
    .desktoplogo-1 {
        padding: var(--logo-padding) 0 !important;
        line-height: 0;
    }
    
    .desktoplogo a,
    .desktoplogo-1 a {
        display: inline-block;
        line-height: 0;
    }
    
    .desktoplogo img,
    .desktoplogo-1 img {
        height: var(--logo-height);
        display: block;
        width: auto;
    }

    .sticky-wrapper.is-sticky .horizontal-main {
        padding: 0 !important;
    }
    
    .sticky-wrapper.is-sticky .horizontalMenu-list {
        padding-top: 0 !important;
    }
    
    .horizontal-main {
        line-height: var(--logo-height);
    }

    .horizontal-main li {
        padding: 0 !important;
    }

    .horizontalMenu > .horizontalMenu-list > li > a {
        padding-top: var(--logo-padding) !important;
        padding-bottom: var(--logo-padding) !important;
        color: var(--white);
    }

    .horizontalMenu > .horizontalMenu-list > li > span {
        padding: var(--logo-padding) 15px;
        display: inherit;
    }

    .horizontalMenu > .horizontalMenu-list > li > .horizontalMenu-click,
    .horizontalMenu > .horizontalMenu-list > li > .horizontalMenu-click02 {
        display: none;
    }

    .horizontalMenu > .horizontalMenu-list > li.button-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
    }

    .horizontalMenu > .horizontalMenu-list > li.button-menu:last-child > span {
        padding-right: 0;
    }

    .horizontalMenu > .horizontalMenu-list > li > ul.sub-menu,
    .sticky-wrapper.is-sticky .horizontal-main .horizontalMenu > .horizontalMenu-list > li > ul.sub-menu {
        top: 80px;
    }

    .sticky-wrapper.is-sticky .horizontal-main .horizontalMenu > .horizontalMenu-list > li > a {
        color: var(--txt-col);
    }

    .sticky-wrapper.is-sticky .horizontal-main .horizontalMenu > .horizontalMenu-list > li > a.active {
        color: var(--pri-col);
    }

    .horizontalMenu > .horizontalMenu-list > li > a.active {
        color: var(--white);
        font-weight: 700;
    }

    .bg-background3 .sticky-wrapper .horizontalMenu > .horizontalMenu-list > li > a.active {
        color: var(--white);
    }

    .main-banner-png {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .header-text > .container > .row > div {
        align-self: center;
    }

    .banner-1 .sptb-2.sptb-tab {
        padding-top: 14rem;
        padding-bottom: 12rem;
    }
}

.footer-main .footer-logo {
    border: 0;
    padding: 0;
    width: auto;
    height: auto;
    max-height: var(--logo-height);
    max-width: 100%;
}


/* Tables */

.profile-table .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 19px;
}

.profile-table .select2-sm .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
}

table .price-column {
    width: 6rem;
}


/* Lists */

body .list-style-1,
body .list-style2,
body .list-style3 {
    padding-left: 1.2rem;
}


/* Carousel */

.owl-carousel {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
}

.owl-carousel .owl-prev {
    left: -9px;
}

.owl-carousel .owl-next {
    right: -9px;
}

.owl-prev span,
.owl-next span {
    font-size: 2rem;
    line-height: 0;
}


/* Booking */

#booking-calendar .perfect-datetimepicker table td {
    height: 2.5rem;
}

.weekday-card-unavailable,
.weekday-card-available ~ .no-slots-card {
    display: none;
}


/* Search results */

.search-cover-image::before {
    background: rgba(var(--bg-dark-col-rgb),.8) !important;
}

.search-results .item-card9-img {
    width: 100%;
    height: inherit;
    min-height: 12rem;
    align-self: stretch;
}

.search-results .item-card9-imgs,
.search-results .item-card9-imgs img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.search-results .card .card {
    box-shadow: none;
    border-radius: 0;
}

@media screen and (min-width: 768px) {
    .search-results .item-card9-img {
        width: 50%;
        max-width: 400px;
    }

    .search-results .d-md-flex {
        flex-wrap: nowrap;
    }
}


/* Tabs */

.meeting-information .tabs-menu1 ul li a {
    border-radius: .5rem .5rem 0 0 !important;
    background-color: var(--pri-lig-col) !important;
}

.meeting-information .tabs-menu1 ul li a.active {
    background-color: var(--white) !important;
}


/* Detail */

.company-profile p {
    color: var(--txt-col);
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    min-height: 10rem;
    object-fit: cover;
}

.company-avatar-md {
    height: auto;
    width: auto;
    max-height: 2.5rem;
    max-width: 6rem;
    border-radius: 5px;
}

.company-avatar-xxl {
    height: auto;
    width: auto;
    max-height: 5rem;
    max-width: 12rem;
    border-radius: 10px;
}


/* Showcase */

.feature-1 {
    position: relative;
}

.feature-1 .feature {
    border-radius: 7px 6rem 7px 7px;
    border: 1px solid var(--bor-col);
    height: auto;
    top: 30px;
}

.feature-1::before {
    border-radius: 7px 6rem 7px 7px;
    width: 100%;
    height: 100%;
    left: 30px;
    top: 0;
}

section#join {
    /* Fix for anchor link */
    padding-top: 8rem;
    margin-top: -8rem;
}

@media (max-width: 991px) {
    .feature-column {
        order: -1;
    }

    .feature-1 .feature {
        top: 0;
        position: relative;
        border-radius: 7px;
        margin-bottom: 1.5rem;
    }
}


/* Home */

.bg-background2::before {
    background: none !important;
}

.bg-background2 .item-search-menu ul li a {
    color: var(--bg-col);
}

.bg-background2 .item-search-tabs .tab-content,
.bg-background2 .item-search-menu ul li .active {
    border-color: rgba(var(--ter-col-rgb), 1);
    background: rgba(var(--ter-col-rgb), 1);
}


/* Course */

.chapter-section .list-group-item.active {
    pointer-events: none;
    cursor: default;
    background-color: var(--bg-pri-col);
}

.chapter-section .list-group-item.active .chapter-name {
    font-weight: bold;
}


/* Tutor */

.cover-image {
    object-fit: cover;
}

.iteam-all-icon {
    height: 35%;
}

item-hover-card img, .item-hover-card:hover a, .item-hover-card:hover img {
    color: var(--pri-col);
}

.iteam-all-icon img {
    text-align: center;
    width: 60px;
    height: 60px;
    background: rgba(var(--pri-col-rgb),.15);
    border-radius: 5px;
    position: relative;
    display: block;
    line-height: 50px;
    padding: 5px 7px;
    font-size: 2.5rem;
}

.sticky-tabs .disabled {
    opacity: 0.5;
}
