/* Structural base */
.our-work-section {
    overflow: hidden;
    width: 100%;
}

.our-work-section * {
    box-sizing: border-box;
    transition: all 0.33s ease-in-out;
}

.our-work-section .container {
    margin: 0 auto;
    max-width: 1470px;
    width: 100%;
}

/* Grid Layouts */
.our-work-section .heading-wrap {
    display: flex;
    /*grid-template-columns: 330px 1fr;*/
    /*gap: 30px;*/
    margin-bottom: 45px;
    margin-left: 45px;
}

.our-work-section .heading-wrap .left-cnt,
.our-work-section .heading-wrap .right-cnt {
    padding-top: 60px;
    border-top-style: solid;
    border-top-width: 1px;
    /* Color is managed by Elementor */
}

.our-work-section .cnt-wrap {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 30px;
    position: relative;
}

/* Project Cards Structure */
.our-work-section .project-slider .item {
    max-height: 620px;
    overflow: hidden;
}

.our-work-section .project-slider .item a {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 65%; /* Aspect ratio */
    display: block;
    text-decoration: none;
}

/* Dark Gradient Overlay */
.our-work-section .project-slider .item a::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0,0,0,0.85) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.33s ease-in-out;
}

.our-work-section .project-slider .item img {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: all 0.5s ease-in-out;
    object-fit: cover;
}

.our-work-section .project-slider .owl-item.active .item a:hover > img {
    transform: scale(1.05);
}

/* Card Text Overlay */
.our-work-section .text-cnt-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 40px;
}

.our-work-section .text-cnt-wrap h5 {
    margin: 0;
}

/* Services List inline with dots */
.our-work-section .text-cnt-wrap ul {
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.our-work-section .text-cnt-wrap ul li {
    display: flex;
    align-items: center;
}

.our-work-section .text-cnt-wrap ul li:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.7;
}

/* Card Button/Arrow */
.our-work-section .btn-link .link-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.our-work-section .item a:hover .btn-link .link-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Slider Navigation (Positioned bottom left under 'Our Work') */
.our-work-section .project-slider.owl-carousel .owl-nav {
    display: flex;
    position: absolute;
    gap: 20px;
    bottom: 0;
    left: -360px; /* Pulls it back into the left grid column */
}

.our-work-section .owl-carousel .owl-nav button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 45px;
    opacity: 0.6;
    transition: 0.3s;
}

.our-work-section .owl-carousel .owl-nav button:hover {
    opacity: 1;
}

/* Fallback icons using Unicode if SVG isn't loaded */
.our-work-section .owl-carousel .owl-nav button.owl-prev::after {
    content: "←";
    font-size: 45px;
}
.our-work-section .owl-carousel .owl-nav button.owl-next::after {
    content: "→";
    font-size: 45px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .our-work-section .heading-wrap,
    .our-work-section .cnt-wrap {
        grid-template-columns: 1fr;
    }
    .our-work-section .project-slider.owl-carousel .owl-nav {
        left: 0;
        bottom: -60px;
    }
}