.card-link-template {
    border: none;
}

.nav-tabs .nav-link {
    border: none;
    color: #777;
    padding: .5rem 2rem;
}

.nav-tabs .nav-link:hover {
    color: #333;
}

.nav-tabs .nav-item {
    position: relative;
}

.nav-tabs .nav-link.active {
    color: #333;
}

.nav-tabs .nav-link.active:before {
    background-color: rgb(246, 83, 18);
}

.nav-tabs-bottom .nav-link:before, .nav-tabs .nav-link:before, .nav-tabs-top .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: background-color ease-in-out .15s;
    height: 2px;
}

.card-category-template .card-header h5, .card-list-template h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.card-category-template .card-body ul li {
    list-style-type: none;
    display: block;
}

.card-category-template .card-body ul li:hover {
    cursor: pointer;
}

.card-category-template .card-body ul li a {
    padding: 9px 15px;
    cursor: pointer;
    border: 1px solid #ebedf2;
    color: #333;
    border-radius: 12px;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color .15s ease-in-out, border-color .15s ease-in-out;
    user-select: none;
    line-height: 16px;
}

.card-category-template .card-body ul li a:hover {
    border: 1px solid #0c61f2;
    color: #0c61f2;
    text-decoration: none;
}

.card-category-template .card-body ul li.active a {
    border: 1px solid #0c61f2;
    color: #0c61f2;
}

.ldTemplate-item {
    box-shadow: 2px 2px 10px -3px #d4d4d4;
    position: relative;
}

.ldTemplate-item img {
    width: 100%;
    height: 360px;
    object-fit: contain;
}

.ldTemplate-use {
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: none;
}

.ldTemplate-item:hover .ldTemplate-use {
    display: flex;
}

.ldTemplate-item-info {
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.search-template {
    position: absolute;
    right: 20px;
    top: 14px;
}

.search-template input {
    padding: 8px 30px 8px 15px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: .1875rem;
    margin-bottom: 5px;
    font-size: 14px;
    transition: color .15s ease-in-out,
    border-color .15s ease-in-out;
    user-select: none;
    line-height: 16px;
    outline: none;
}

.search-template input::placeholder {
    color: #999;
}

.search-template i {
    position: absolute;
    right: 0;
    top: 0;
    padding: 9px;
    background: #ececec;
    border-radius: .1875rem;
    font-size: 16px;
    color: #999;
    margin-left: 5px;
    cursor: pointer;
    vertical-align: middle;
}

.search-template a {
    color: #333;
}

.search-template a:hover {
    color: rgb(246, 83, 18);
}

.nav-tabs .nav-link {
    font-size: 1rem;
}

#tab-section .ldTemplate-item img {
    height: 170px;
    width: 100%;
    object-fit: contain;
}

@media (min-width: 768px) and (max-width: 1400px) {
    #tab-section .ldTemplate-item img {
        height: 120px;
        width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    #tab-section .ldTemplate-item img,
    .ldTemplate-item img {
        height: auto;
    }

    #formSearchTemplate input {
        display: none;
        position: absolute;
        right: 0;
        bottom: -55px;
        width: 95%;
    }

    .search-template {
        left: 0;
        top: 9px;
        z-index: 9;
    }

    .search-template i {
        top: 15px;
        background: unset;
    }

    #formSearchTemplate {
        text-align: right;
        position: relative;
    }

    #tab-section .col-md-9 > .row, #tab-template .col-md-9 > .row {
        margin: 0;
    }

    .ldTemplate-item:first-child {
        margin-top: 1rem;
    }

    .card-link-template .nav-tabs-bottom li {
        z-index: 2;
    }
}

@media (max-width: 500px) {
    .card-category-template .card-body {
        display: none;
    }
}