/* Handled Locally Widget Styles */
.ark-handled-locally {
    position: relative;
    width: 100%;
    padding-bottom: 120px;
}

/* Bottom border SVG (not rotated): torn edge faces down to blend into the
   next section. */
.ark-handled-locally__border-bottom {
    position: absolute;
    bottom: -1px; /* Overlap to prevent a hairline gap */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    line-height: 0;
    display: block;
}

.ark-handled-locally__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Title */
.ark-handled-locally__title {
    margin: 0 auto 50px;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* Grid */
.ark-handled-locally__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card */
.ark-handled-locally__card {
    position: relative;
    width: 100%;
    height: 430px;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ark-handled-locally__card:hover {
    text-decoration: none;
}

/* Background Image */
.ark-handled-locally__bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.ark-handled-locally__bg {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Dark overlay for contrast */
.ark-handled-locally__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

/* Centered Title */
.ark-handled-locally__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 3;
}

.ark-handled-locally__card-title {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #FFFFFF;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .ark-handled-locally__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ark-handled-locally__container {
        padding: 0 20px;
    }

    .ark-handled-locally__grid {
        grid-template-columns: 1fr;
    }

    .ark-handled-locally__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .ark-handled-locally__card {
        height: 320px;
    }

    .ark-handled-locally__card-title {
        font-size: 24px;
    }
}