/* Popular Services — Tools For Help (popularServices.ascx) */
.tb-services-section {
    padding: 28px 0 8px;
    background: #fff;
}

.tb-services-header {
    margin-bottom: 20px;
}

.tb-services-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #12263a;
    line-height: 1.35;
}

.tb-services-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.tb-services-carousel-wrap {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.tb-services-carousel {
    margin: 0 -4px;
}

.tb-services-carousel .item {
    padding: 4px;
    width: auto;
    max-width: none;
    border: none;
    margin: 0;
    text-align: left;
    height: auto;
}

.tb-service-card {
    display: flex;
    flex-direction: column;
    width: 148px;
    height: auto;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #12263a;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.tb-service-card:hover,
.tb-service-card:focus {
    text-decoration: none;
    color: #12263a;
    border-color: #f5c6c7;
    box-shadow: 0 8px 24px rgba(36, 39, 44, .1);
    transform: translateY(-2px);
}

.tb-service-card-media {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.tb-service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .25s ease;
}

.tb-service-card:hover .tb-service-card-media img {
    transform: scale(1.04);
}

.tb-service-card-title {
    display: block;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #12263a;
    min-height: 52px;
}

.tb-services-carousel.owl-carousel {
    height: auto !important;
}

.tb-services-carousel.owl-carousel .owl-stage-outer {
    overflow: hidden;
    padding-bottom: 0;
    height: auto !important;
    min-height: 0 !important;
}

.tb-services-carousel.owl-carousel .owl-stage {
    display: flex;
    align-items: flex-start;
    height: auto !important;
}

.tb-services-carousel.owl-carousel .owl-item {
    display: flex;
    align-items: flex-start;
    height: auto !important;
    float: none;
}

.tb-services-section .owl-nav {
    margin-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.tb-services-section .owl-nav button {
    pointer-events: auto;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    z-index: 2;
    background: #fff !important;
    border: 1px solid #eceef1 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.tb-services-section .owl-nav button:hover {
    background: #d81416 !important;
    color: #fff !important;
}

.tb-services-section .owl-nav .owl-prev {
    left: 0;
}

.tb-services-section .owl-nav .owl-next {
    right: 0;
}

.tb-services-section .owl-dots {
    display: none !important;
}

@media (max-width: 767px) {
    .tb-services-section {
        padding: 20px 0 4px;
    }

    .tb-services-title {
        font-size: 18px;
    }

    .tb-service-card-media {
        height: 84px;
        padding: 10px;
    }

    .tb-service-card-title {
        font-size: 12px;
        min-height: 48px;
        padding: 10px 8px;
    }
}
