.zolar-services-showcase {
    font-family: 'DM Sans', sans-serif;
    background-color: #f6faf9;
    position: relative;
    /* Bulletproof full bleed */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden; /* contain the absolute image */
}

/* --- Right Column: Full Bleed Image --- */
.zolar-services-full-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* 50% of the 100vw parent = exactly the right half of the screen */
    height: 100%;
    z-index: 1;
}

/* --- Container Aligned Content --- */
.zolar-services-container {
    /* Rely on the global .zolar-container max-width (e.g. 1240px) */
    position: relative;
    z-index: 2;
    display: flex;
}

.zolar-services-left-wrap {
    width: 50%; /* Take up exactly the left half of the container */
    display: flex;
}

/* --- Left Column: Title --- */
.zolar-services-col-title {
    width: 50%;
    padding: 80px 40px 80px 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.zolar-services-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #161616;
    margin-bottom: 20px;
}

.zolar-subtitle-line {
    width: 30px;
    height: 1px;
    background-color: #161616;
}

.zolar-subtitle-icon {
    font-size: 12px;
}

.zolar-services-heading {
    font-size: clamp(40px, 4vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    color: #161616;
    margin: 0 0 40px 0;
}

/* --- Middle Column: Navigation --- */
.zolar-services-col-nav {
    width: 50%;
    background-color: #f6faf9;
    padding: 40px 0;
}

.zolar-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zolar-service-item {
    flex: 1;
    border-top: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.4s ease-in-out !important;
    background-color: #f6faf9; /* Explicit color for smooth transition */
    border-left: 4px solid transparent;
}

.zolar-service-item:first-child {
    border-top: none;
}

.zolar-service-item-inner {
    padding: clamp(1.25rem, 0.9615rem + 1.2821vw, 2.5rem);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.zolar-service-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161616;
    transition: all 0.4s ease-in-out;
    flex-shrink: 0;
}

.zolar-service-icon svg,
.zolar-service-icon img {
    width: 100%;
    height: 100%;
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
    transition: filter 0.4s ease-in-out;
}

/* Ensure inline SVGs inherit color if they use currentColor */
.zolar-service-icon svg {
    color: inherit;
}

.zolar-service-title {
    font-size: clamp(1.5rem, 1.4135rem + 0.3846vw, 1.875rem);
    font-weight: 600;
    margin: 0;
    color: #161616;
    flex: 1;
    transition: all 0.4s ease-in-out;
}

.zolar-service-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--zolar-accent, #c8e86b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 300ms ease;
    color: #161616;
}

.zolar-service-arrow svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Active Hover State */
.zolar-service-item.is-active,
.zolar-service-item:hover {
    background-color: #000000;
    border-left-color: var(--zolar-accent, #c8e86b);
}

.zolar-service-item.is-active .zolar-service-icon,
.zolar-service-item:hover .zolar-service-icon,
.zolar-service-item.is-active .zolar-service-title,
.zolar-service-item:hover .zolar-service-title {
    color: #ffffff;
}

/* If the SVG is hardcoded black, this filter will turn it white */
.zolar-service-item.is-active .zolar-service-icon img,
.zolar-service-item:hover .zolar-service-icon img,
.zolar-service-item.is-active .zolar-service-icon svg,
.zolar-service-item:hover .zolar-service-icon svg {
    filter: brightness(0) invert(1);
}

.zolar-service-item.is-active .zolar-service-arrow,
.zolar-service-item:hover .zolar-service-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- Images --- */
.zolar-services-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.zolar-service-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.05);
    z-index: 0;
}

.zolar-service-image-layer.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Overlay Box */
.zolar-services-intro {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 350px;
    height: 200px;
    background-color: #ffffff;
    z-index: 10;
    border-top-right-radius: var(--zolar-radius-lg, 24px);
    overflow: hidden;
    display: flex;
}

.zolar-services-intro-bg {
    width: 40%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.zolar-services-intro-content {
    width: 60%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.zolar-play-btn {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--zolar-accent, #c8e86b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161616;
    text-decoration: none;
    z-index: 2;
    transition: transform 300ms ease;
}

.zolar-play-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.zolar-services-intro-text h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #161616;
}

.zolar-services-intro-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
}

.zolar-services-scroll-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--zolar-accent, #c8e86b);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 300ms ease;
}

.zolar-services-scroll-btn:hover {
    transform: translateY(-5px);
}

/* Button overrides */
.zolar-btn-services {
    align-self: flex-start;
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 1024px) {
    .zolar-services-showcase {
        padding: 60px 0;
        display: flex;
        flex-direction: column;
    }
    
    .zolar-services-full-image {
        position: relative;
        width: 100vw;
        height: 400px;
        margin-left: -50vw;
        left: 50%;
        order: 2; /* Put it between title and accordion */
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .zolar-services-container {
        flex-direction: column;
        order: 1; /* Title comes first */
        display: contents; /* Allows children to participate in showcase flex */
    }

    .zolar-services-left-wrap {
        width: 100%;
        flex-direction: column;
        display: contents;
    }

    .zolar-services-col-title {
        width: 100%;
        padding: 0 30px 30px 30px;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center everything on mobile */
        text-align: center;
    }

    .zolar-services-subtitle {
        justify-content: center;
    }

    .zolar-services-col-title h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .zolar-btn-services {
        align-self: center; /* Center the button */
    }

    .zolar-services-col-nav {
        width: 100%;
        order: 3;
        padding: 0 20px; /* Restore padding that was lost from display:contents */
        background-color: transparent;
    }

    .zolar-service-item {
        padding: 20px 0;
        border-bottom: 1px solid #e5e5e5;
        border-left: none;
        background-color: transparent !important;
    }

    .zolar-service-item.is-active,
    .zolar-service-item:hover {
        background-color: transparent !important;
    }

    .zolar-service-item.is-active .zolar-service-title,
    .zolar-service-item:hover .zolar-service-title,
    .zolar-service-item.is-active .zolar-service-icon,
    .zolar-service-item:hover .zolar-service-icon {
        color: var(--zolar-accent, #c8e86b) !important;
    }

    .zolar-service-item.is-active .zolar-service-icon img,
    .zolar-service-item:hover .zolar-service-icon img,
    .zolar-service-item.is-active .zolar-service-icon svg,
    .zolar-service-item:hover .zolar-service-icon svg {
        filter: none;
    }

    .zolar-service-title {
        font-size: 20px;
    }
    
    /* Hide the intro box on mobile */
    .zolar-services-intro,
    .zolar-services-scroll-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .zolar-services-full-image {
        height: 300px;
    }
    
    .zolar-services-col-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .zolar-services-full-image {
        height: 250px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .zolar-service-icon svg, 
    .zolar-service-icon img {
        max-width: 40px;
        max-height: 40px;
    }

    .zolar-services-col-title h2 {
        font-size: 28px;
    }
    
    .zolar-service-title {
        font-size: 18px;
    }
}

