/* =============================================================================
   KTECH SERVICE SHORTCODES STYLES (UX BUILDER & FRONTEND)
   File: assets/css/builder/service-shortcodes.css
   ============================================================================= */

.ktech-service-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.ktech-service-slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

.ktech-service-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 0 15px 0;
    cursor: grab;
    user-select: none;
    width: 100%;
}

.ktech-service-slider-track::-webkit-scrollbar {
    display: none;
}

.ktech-service-slider-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.ktech-service-slider-track.is-dragging .ktech-service-card {
    pointer-events: none;
}

.ktech-service-slide-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Card Item */
.ktech-service-card {
    position: relative;
    display: block;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none !important;
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ktech-service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.ktech-service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Normal Title (Bottom Left) */
.ktech-service-card-title-normal {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ktech-service-card-title-normal span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Hover Box (Solid Blue Panel Sliding Up from Bottom) */
.ktech-service-card-hover-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background-color: #0055ff;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.ktech-service-hover-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
}

.ktech-service-hover-desc {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.95;
}

.ktech-service-hover-btn {
    background-color: #ffffff;
    color: #0055ff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ktech-service-hover-btn svg {
    stroke: #0055ff;
    transition: transform 0.2s ease;
}

/* HOVER ANIMATION */
.ktech-service-card:hover .ktech-service-card-bg {
    transform: scale(1.06);
}

.ktech-service-card:hover .ktech-service-card-title-normal {
    opacity: 0;
    transform: translateY(10px);
}

.ktech-service-card:hover .ktech-service-card-hover-box {
    transform: translateY(0);
}

.ktech-service-card:hover .ktech-service-hover-btn:hover {
    background-color: #f0f4ff;
    transform: translateX(2px);
}

.ktech-service-card:hover .ktech-service-hover-btn:hover svg {
    transform: translateX(3px);
}

/* Navigation Arrows (Shared style defined in style.css) */


/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .ktech-service-slide-item {
        flex: 0 0 calc(33.333% - 14px);
    }

    .ktech-service-card {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .ktech-service-slide-item {
        flex: 0 0 calc(50% - 10px);
    }

    .ktech-service-card {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .ktech-service-slide-item {
        flex: 0 0 85%;
    }
}