/* Services Hot Section Styling */
.services-hot {
    padding: 60px 0;
    background-color: #fff;
}

.services-hot__eyebrow {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.services-hot__eyebrow::before,
.services-hot__eyebrow::after {
    content: "";
    height: 1px;
    background: #e0e0e0;
    flex: 1;
    max-width: 150px;
}

.services-hot__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.services-hot__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.services-hot__title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.services-hot__tabs .tabs-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-item {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
}

.tab-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -12px;
    color: #ddd;
}

.tab-item.is-active {
    color: var(--color-primary);
}

.tab-item.is-active::before {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* Ensure Desktop visibility when Splide is not initialized */
@media (min-width: 769px) {

    /* .splide__track {
        overflow: visible !important;
    } */
    .splide__list.services-grid {
        display: grid !important;
        gap: 30px !important;
        transform: none !important;
        width: 100% !important;
    }

    .splide__slide.service-card {
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 1px 2px 15px 2px rgb(66 35 105 / 28%);
}

.service-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card__body {
    padding: 0 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.service-card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card .btn--pill {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
    margin: 0 auto;
}

/* Placeholder */
.services-grid-placeholder {
    padding: 100px 0;
    text-align: center;
    color: #999;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Tab Content Visibility */
.services-hot__pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.services-hot__pane.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hot__eyebrow {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        padding: 0 20px;
    }

    .services-hot__eyebrow::before,
    .services-hot__eyebrow::after {
        display: none;
    }

    .services-hot__header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .services-hot__title {
        font-size: 24px;
        padding-bottom: 15px;
    }

    .services-hot__title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
    }

    .services-hot__tabs {
        width: auto;
        margin-left: calc(-1 * var(--section-pad-x));
        margin-right: calc(-1 * var(--section-pad-x));
        padding-left: var(--section-pad-x);
        padding-right: var(--section-pad-x);
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .services-hot__tabs::-webkit-scrollbar {
        display: none;
    }

    .services-hot__tabs .tabs-list {
        padding: 0 20px;
        width: max-content;
    }

    /* Carousel Specific Styles - Only active on mobile */
    .services-slider.is-initialized .services-grid {
        display: flex;
        gap: 0;
        margin-top: 0;
    }

    .services-slider.is-initialized .service-card {
        margin: 10px;
        width: 85%;
        /* Peer preview hint */
        flex-shrink: 0;
    }

    /* Splide Progress Bar */
    .splide__progress {
        background: #eee;
        height: 4px;
        margin-top: 30px;
        border-radius: 2px;
        overflow: hidden;
    }

    .splide__progress__bar {
        background: var(--color-primary);
        height: 100%;
        width: 0;
        transition: width 400ms ease;
    }

    /* Reveal animation tweak for carousel */
    .services-slider .service-card.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}