/* CK Services Slider - Main Styles */
:root {
    --ck-title-color: #D4AF37;
    --ck-bg-color: #1a1a1a;
    --ck-text-color: #ffffff;
    --ck-transition-speed: 0.5s;
    --ck-slide-gap: 20px;
    --ck-active-width: 38%;
    --ck-inactive-width: 22%;
    --ck-left-offset: 100px;
}

/* Wrapper */
.ck-services-slider-wrapper {
    background-color: var(--ck-bg-color);
    padding: 0px;
    position: relative;
    overflow: hidden;
}

/* Container */
.ck-services-slider-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Track */
.ck-services-slider-track {
    display: flex;
    gap: var(--ck-slide-gap);
    will-change: transform;
    align-items: flex-start;
    padding: 0 0 40px 0;
    max-height: 650px;
}

/* Individual Slide - INACTIVE by default */
.ck-service-slide {
    flex: 0 0 calc(var(--ck-inactive-width));
    min-width: calc(var(--ck-inactive-width));
    max-width: calc(var(--ck-inactive-width));
    transition: all var(--ck-transition-speed) ease;
    cursor: pointer;
}

/* ACTIVE slide is larger */
.ck-service-slide.active {
    flex: 0 0 calc(var(--ck-active-width));
    min-width: calc(var(--ck-active-width));
    max-width: calc(var(--ck-active-width));
}

/* Card */
.ck-service-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image Wrapper */
.ck-service-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #2a2a2a;
    height: 260px;
    transition: height var(--ck-transition-speed) ease;
}

.ck-service-slide.active .ck-service-image-wrapper {
    height: 340px;
}

.ck-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--ck-transition-speed) ease, transform var(--ck-transition-speed) ease;
}

/* ALL slides GRAYSCALE by default */
.ck-service-slide .ck-service-image {
    filter: grayscale(100%);
}

/* ONLY active slide is COLORFUL */
.ck-service-slide.active .ck-service-image {
    filter: grayscale(0%);
}

.ck-service-slide:hover .ck-service-image {
    transform: scale(1.05);
}

.ck-service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

/* Content Area */
.ck-service-content {
    padding: 20px 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title - WHITE by default for inactive */
.ck-service-title {
    font-family: 'Lora', Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ck-text-color);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
    transition: all var(--ck-transition-speed) ease;
}

/* ONLY active slide title is GOLD */
.ck-service-slide.active .ck-service-title {
    color: var(--ck-title-color);
    font-weight: 600;
    font-size: 24px;


}

/* Description - HIDDEN by default */
.ck-service-description {
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    color: #fff;
    width: 45%;
    margin: 0;
    line-height: 1.5;
    font-weight: 200;

    display: none;
}

/* ONLY active slide shows description */
.ck-service-slide.active .ck-service-description {
    display: block;
}

/* Learn More Link - HIDDEN by default */
.ck-service-link {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--ck-text-color);
    text-decoration: none;
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
    margin-top: 5px;
    width: fit-content;
    transition: color 0.3s ease;
}

.ck-service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ck-text-color);
}

/* ONLY active slide shows LEARN MORE */
.ck-service-slide.active .ck-service-link {
    display: inline-flex;
}

.ck-service-link:hover {
    color: var(--ck-title-color);
}

.ck-service-link-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ck-service-link:hover .ck-service-link-arrow {
    transform: translateX(5px);
}

/* Arrow Button - ONLY for INACTIVE slides */
.ck-service-arrow-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--ck-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    background: transparent;
}

/* Show arrow button ONLY on inactive slides */
.ck-service-slide:not(.active) .ck-service-arrow-button {
    display: flex;
}

.ck-service-arrow-button:hover {
    border-color: var(--ck-title-color);
    color: var(--ck-title-color);
}

/* Navigation Buttons */
.ck-services-slider-nav {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.ck-slider-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--ck-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ck-slider-nav-btn:hover {
    border-color: var(--ck-title-color);
    color: var(--ck-title-color);
    background: rgba(212, 175, 55, 0.1);
}

/* Dots Navigation */
.ck-services-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    position: relative;
    z-index: 3;
}

.ck-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ck-slider-dot.active,
.ck-slider-dot:hover {
    background: var(--ck-title-color);
    transform: scale(1.2);
}

/* ==================== */
/* RESPONSIVE STYLES    */
/* ==================== */

/* Large Desktop (1400px+) */
@media screen and (min-width: 1400px) {
    :root {
        --ck-active-width: 520px;
        --ck-inactive-width: 300px;
        --ck-slide-gap: 25px;
        --ck-left-offset: 100px;
    }

    .ck-service-image-wrapper {
        height: 440px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 440px;
    }
}

/* Desktop (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    :root {
        --ck-active-width: 450px;
        --ck-inactive-width: 260px;
        --ck-slide-gap: 22px;
        --ck-left-offset: 80px;
    }

    .ck-service-image-wrapper {
        height: 340px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 400px;
    }
}

/* Tablet/Small Desktop (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    :root {
        --ck-active-width: 380px;
        --ck-inactive-width: 220px;
        --ck-slide-gap: 20px;
        --ck-left-offset: 60px;
    }

    .ck-service-image-wrapper {
        height: 300px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 360px;
    }

    .ck-service-title {
        font-size: 1rem;
    }

    .ck-service-slide.active .ck-service-title {
        font-size: 1.15rem;
    }
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    :root {
        --ck-active-width: 320px;
        --ck-inactive-width: 180px;
        --ck-slide-gap: 18px;
        --ck-left-offset: 50px;
    }

    .ck-services-slider-wrapper {
        padding: 0;
    }

    .ck-service-image-wrapper {
        height: 260px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 320px;
    }

    .ck-service-title {
        font-size: 0.95rem;
    }

    .ck-service-slide.active .ck-service-title {
        font-size: 1.1rem;
    }

    .ck-slider-nav-btn {
        width: 44px;
        height: 44px;
    }
}

/* Mobile (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    :root {
        --ck-active-width: 280px;
        --ck-inactive-width: 150px;
        --ck-slide-gap: 15px;
        --ck-left-offset: 30px;
    }

    .ck-services-slider-wrapper {
        padding: 0;
    }

    .ck-service-image-wrapper {
        height: 220px;
        border-radius: 14px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 280px;
    }

    .ck-service-title {
        font-size: 0.9rem;
    }

    .ck-service-slide.active .ck-service-title {
        font-size: 1rem;
    }

    .ck-service-description {
        font-size: 0.85rem;
    }

    .ck-slider-nav-btn {
        width: 42px;
        height: 42px;
    }

    .ck-service-arrow-button {
        width: 38px;
        height: 38px;
    }
}

/* Small Mobile (max-width: 575px) */
@media screen and (max-width: 575px) {
    :root {
        --ck-active-width: 240px;
        --ck-inactive-width: 120px;
        --ck-slide-gap: 12px;
        --ck-left-offset: 20px;
    }


    .ck-service-content {
        gap: 3px;
    }

    .ck-service-link {
        font-size: 15px;
        font-weight: 300;
    }


    .ck-services-slider-wrapper {
        padding: 0;
    }

    .ck-service-image-wrapper {
        height: 240px;
        border-radius: 12px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 240px;
    }

    .ck-service-title {
        font-size: 0.85rem;
    }

    .ck-service-slide.active .ck-service-title {
        font-size: 0.95rem;
    }

    .ck-service-description {
        font-size: 0.8rem;
        width: 95%;
    }

    .ck-slider-nav-btn {
        width: 40px;
        height: 40px;
    }

    .ck-service-arrow-button {
        width: 36px;
        height: 36px;
    }
}

/* Extra Small (max-width: 400px) */
@media screen and (max-width: 400px) {
    :root {
        --ck-active-width: 200px;
        --ck-inactive-width: 100px;
        --ck-slide-gap: 10px;
        --ck-left-offset: 15px;
    }

    .ck-service-image-wrapper {
        height: 200px;
    }

    .ck-service-slide.active .ck-service-image-wrapper {
        height: 200px;
    }

    .ck-service-title {
        font-size: 0.8rem;
    }

    .ck-service-slide.active .ck-service-title {
        font-size: 0.9rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .ck-services-slider-track,
    .ck-service-image,
    .ck-service-slide,
    .ck-service-image-wrapper,
    .ck-service-title {
        transition: none;
    }
}




/* ===============================
   CK SERVICES LISTING GRID
=============================== */

.ck-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Pagination */
.ck-services-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.ck-services-pagination button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.ck-services-pagination button:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.ck-services-page {
    font-size: 14px;
    color: #aaa;
}

.ck-services-listing-wrapper .ck-service-card {
    position: relative;
    overflow: hidden;
}


/* Gradient overlay */
.ck-services-listing-wrapper .ck-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.90) 100%);
    pointer-events: none;
}

.ck-services-listing-wrapper .ck-service-card .ck-service-content {
    position: absolute;
    bottom: 25px;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 1;
}

.ck-services-listing-wrapper .ck-service-card .ck-service-content .ck-service-title {
    color: #EAC863;
    padding-bottom: 2px;
    text-transform: capitalize !important;
    font-size: 24px;

}

.ck-services-listing-wrapper .ck-service-card .ck-service-content .ck-service-description {
    display: block;
    width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
    .ck-services-grid {
        grid-template-columns: 1fr;
    }
}