/* ============================================
   Car Featured Services Widget
   ============================================ */

.car-featured-services {
    position: relative;
}

/* ---------- Tabs nav ---------- */
.car-featured-services .tabs-nav-wrap {
    position: relative;
    background: #f5f5f5;
    border-bottom: 1px solid #e7e7e7;
}

.car-featured-services .tabs-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.car-featured-services .tabs-nav::-webkit-scrollbar {
    display: none;
}

.car-featured-services .tabs-nav li {
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
}

.car-featured-services .tabs-nav a {
    position: relative;
    width: 100%;
    min-height: 150px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f5f5f5;
    color: #5e5e5e;
    padding: 19px 44px;
    text-transform: capitalize;
    outline: 1px solid #e7e7e7;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: color 0.2s;
}

.car-featured-services .tabs-nav a i,
.car-featured-services .tabs-nav a svg {
    font-size: 1.5em;
    line-height: 1;
}

.car-featured-services .tabs-nav a span {
    display: block;
    line-height: 1.3;
}

.car-featured-services .tabs-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 0;
    height: 3px;
    z-index: 2;
    background-color: #dd3333;
    transition: width 0.3s ease;
}

.car-featured-services .tabs-nav li.active a::before,
.car-featured-services .tabs-nav a:hover::before {
    width: 100%;
}

/* Arrows – hidden on desktop, overlay on mobile */
.car-featured-services .tabs-nav-arrow {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    border: none;
    background: rgba(245, 245, 245, 0.95);
    color: #5e5e5e;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.car-featured-services .tabs-nav-prev {
    left: 0;
}

.car-featured-services .tabs-nav-next {
    right: 0;
}

.car-featured-services .tabs-nav-arrow:hover {
    color: #dd3333;
    background: #fff;
}

.car-featured-services .tabs-nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.car-featured-services .tabs-nav-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* ---------- Content ---------- */
.car-featured-services .tabs-content {
    background-color: #616161;
    position: relative;
    padding: 80px 30px;
    overflow: hidden;
}

.car-featured-services .tabs-content-caption {
    font-size: 180px;
    color: #6c6c6c;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    overflow: hidden;
}

.car-featured-services .tabs-content-background-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.car-featured-services .tabs-content-background-wrap::-webkit-scrollbar {
    display: none;
}

.car-featured-services .tabs-content-background {
    display: table;
    position: relative;
    margin: 0 auto;
}

.car-featured-services .tabs-content-background img {
    max-width: 100%;
    height: auto;
    display: block;
}

.car-featured-services .tabs-content-tabs-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.car-featured-services .tabs-content-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    text-align: center;
    color: #2e2e2e;
    text-decoration: none !important;
    background-color: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.car-featured-services .tabs-content-icon i,
.car-featured-services .tabs-content-icon svg {
    line-height: 1;
}

.car-featured-services .tabs-content-icon.active {
    background-color: #dd3333;
    color: #fff;
}

/* Info box – overlays image */
.car-featured-services .tabs-content-info {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 400px;
    max-width: calc(100% - 50px);
    padding: 20px 20px 20px 40px;
    background-color: rgba(69, 69, 69, 0.75);
    color: #d4d4d4;
    z-index: 2;
    box-sizing: border-box;
}

.car-featured-services .tabs-content-info::after {
    position: absolute;
    left: 18px;
    top: 20px;
    content: '\2139';
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

.car-featured-services .tabs-content-info p,
.car-featured-services .tabs-content-text {
    margin: 0;
    display: none;
}

.car-featured-services .tabs-content-info p.active,
.car-featured-services .tabs-content-text.active {
    display: block;
}

.car-featured-services .tabs-content-info p:not(.active) {
    display: none;
}

/* Button */
.car-featured-services .tabs-content-button {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 2;
}

.car-featured-services .tabs-content-button .elementor-button {
    display: inline-block;
}

/* ============================================
   TABLET / MOBILE
   ============================================ */

@media (max-width: 991px) {

    /* Arrows overlay edges – like live site */
    .car-featured-services .tabs-nav-arrow {
        display: flex;
    }

    .car-featured-services .tabs-nav {
        /* room so first/last tab not fully under arrows */
        scroll-padding-left: 32px;
        scroll-padding-right: 32px;
    }

    .car-featured-services .tabs-nav li {
        flex: 0 0 auto;

        width: fit-content;
        max-width: 100%;
        min-width: 150px;
    }

    .car-featured-services .tabs-nav a {
        min-height: 110px;
        padding: 14px 16px;
        font-size: 14px;
    }

    .car-featured-services .tabs-nav a i,
    .car-featured-services .tabs-nav a svg {
        font-size: 1.35em;
    }

    .car-featured-services .tabs-content {
        padding: 40px 20px 30px;
    }

    .car-featured-services .tabs-content-caption {
        font-size: 72px;
        top: 30px;
    }

    .car-featured-services .tabs-content-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .car-featured-services .tabs-content-info {
        top: 15px;
        left: 15px;
        width: 320px;
        max-width: calc(100% - 30px);
        padding: 14px 14px 14px 48px;
        font-size: 13px;
        line-height: 1.5;
    }

    .car-featured-services .tabs-content-info::after {
        left: 14px;
        top: 14px;
        font-size: 18px;
    }

    .car-featured-services .tabs-content-button {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 767px) {

    .car-featured-services .tabs-nav a {
        min-height: 100px;
        padding: 12px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .car-featured-services .tabs-content {
        padding: 24px 12px 20px;
    }

    .car-featured-services .tabs-content-caption {
        font-size: 42px;
        top: 16px;
    }

    .car-featured-services .tabs-content-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* Keep info over image on mobile (match live) */
    .car-featured-services .tabs-content-info {
        position: absolute;
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 12px 12px 12px 42px;
        font-size: 12px;
        line-height: 1.45;
    }

    .car-featured-services .tabs-content-info::after {
        left: 12px;
        top: 12px;
        font-size: 16px;
    }

    /* Button stays at bottom of content area */
    .car-featured-services .tabs-content-button {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }

    .car-featured-services .tabs-content-button .elementor-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 479px) {

    .car-featured-services .tabs-nav a {
        min-height: 90px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .car-featured-services .tabs-content-caption {
        font-size: 32px;
    }

    .car-featured-services .tabs-content-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}