/* ===============================
   Services Showcase Widget
================================= */
.estudo-services-showcase {
    padding-top: 70px;
    width: 100%;
}

.estudo-services-showcase .container {
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header Grid - Exactly matching image_0cd7ff.png */
.estudo-services-showcase .heading-wrap {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 30px;
    margin-bottom: 70px;
}

.estudo-services-showcase .heading-wrap .left-cnt,
.estudo-services-showcase .heading-wrap .right-cnt {
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,.2); /* Top border line */
}

/* Force theme defaults off so typography looks correct */
.estudo-services-showcase .title { 
    margin: 0; 
}
.estudo-services-showcase .sub-title h2 { 
    margin: 0 0 14px 0 !important; 
    line-height: 1.1;
}
.estudo-services-showcase .sub-title p { 
    margin: 0 !important; 
}

/* Cards Grid */
.estudo-services-showcase .services-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.estudo-services-showcase .item a {
    display: block;
    text-decoration: none;
}

/* Image Wrap & Gradient */
.estudo-services-showcase .item .img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding-bottom: 135%;
    width: 100%;
    max-height: 600px;
}

.estudo-services-showcase .item .img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.estudo-services-showcase .item .img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 14%, #000 97%);
    opacity: 0.8;
    z-index: 1;
    transition: 0.5s ease;
}

.estudo-services-showcase .service-name {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 24px 30px;
    margin: 0;
    z-index: 2;
    transition: 0.5s ease;
}

/* Service List */
.estudo-services-showcase .text-cnt-wrap {
    padding-top: 24px;
}

.estudo-services-showcase .text-cnt-wrap ul {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    width: 100%;
}

.estudo-services-showcase .text-cnt-wrap li {
    padding: 16px 0;
    margin: 0;
}

/* ==========================================
   Arrow Button (Your Original Code Restored)
========================================== */
.estudo-services-showcase .btn-link {
    display: inline-flex;
    align-items: center;
}

.estudo-services-showcase .link-arrow {
    width: 60px;
    height: 40px;
    background: #4CB957;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.estudo-services-showcase .link-arrow::before,
.estudo-services-showcase .link-arrow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/wp-admin/images/right-arrow.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px 20px;
    transition: .35s ease;
    filter: brightness(0) invert(1);
}

.estudo-services-showcase .link-arrow::before {
    transform: translateX(-100%);
    opacity: 0;
}

.estudo-services-showcase .link-arrow::after {
    transform: translateX(0);
}

/* ==========================================
   Hover Animations
========================================== */
.estudo-services-showcase .item:hover img {
    transform: scale(1.08);
}

.estudo-services-showcase .item:hover .img-wrap::before {
    background: linear-gradient(180deg, rgba(0,0,0,0) -14%, #000 0%);
    opacity: 0.6;
}

.estudo-services-showcase .item:hover .service-name {
    bottom: 72%;
}

/* Your custom arrow hover states */
.estudo-services-showcase .item:hover .link-arrow::before {
    transform: translateX(0);
    opacity: 1;
}

.estudo-services-showcase .item:hover .link-arrow::after {
    transform: translateX(100%);
    opacity: 0;
}

/* ==========================================
   Responsive
========================================== */
@media(max-width: 1024px) {
    .estudo-services-showcase .heading-wrap {
        grid-template-columns: 1fr;
    }
    .estudo-services-showcase .services-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 767px) {
    .estudo-services-showcase .container {
        padding: 0 20px;
    }
    .estudo-services-showcase .services-wrap {
        grid-template-columns: 1fr;
    }
}