/* Services Widget Styles - Refined to match reference perfectly */

:root {
    --indicator-width: 4px;
}

.services-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.section-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.section-header p {
    color: #555555;
    font-size: 1.1rem;
    font-weight: 300;
}

.btn-explore {
    background-color: #0c0c0c;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-explore:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.services-container {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

/* Sidebar Styling */
.services-sidebar {
    flex: 0 0 350px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.active-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--indicator-width, 4px);
    background-color: #000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s ease, width 0.4s ease;
    z-index: 5;
    pointer-events: none;
    /* Important: don't block clicks */
}

.service-nav-item {
    padding: 30px 10px 30px 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    position: relative;
    z-index: 6;
    /* Stay above indicator but below logic etc */
}

.service-nav-item.active {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 40px;
    margin-bottom: 15px;
    color: #333;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-content p {
    font-size: 0.95rem;
    color: #555555;
    font-weight: 300;
}

/* Slider Styling */
.services-slider {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.services-slider .swiper {
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    /* Fallback */
}

.services-slider .swiper-slide img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* Pagination Styling */
.services-slider .swiper-pagination {
    bottom: 20px !important;
}

.services-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #000;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.services-slider .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-section {
        padding: 40px 5%;
    }

    .section-header {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .services-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .services-sidebar {
        flex: none;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-left: 0;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .active-indicator {
        height: 3px !important;
        width: 0;
        bottom: 0;
        top: auto;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s ease;
    }

    .service-nav-item {
        flex: 0 0 250px;
        padding: 20px;
        text-align: left;
    }

    .service-icon {
        width: 50px;
        height: 30px;
    }

    .services-slider .swiper-slide img {
        height: 450px;
    }
}

@media (max-width: 600px) {
    .section-header h1 {
        font-size: 2.22rem;
    }

    .service-nav-item {
        flex: 0 0 200px;
    }
}