.avita-service-cards-outer {
    position: relative;
    width: 100%;
    height: 100%;
}
.avita-service-cards-outer * {
    box-sizing: border-box;
}

.avita-service-cards-scroll {
    display: flex;
    overflow: hidden;
    gap: 24px;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.avita-service-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
    height: 100%;
}

.avita-service-card-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    padding: 0px 16px 16px 16px;
}

.avita-service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.avita-service-card h3 {
    font-size: 1.2em;
    margin: 0 0 8px 0;
}

.avita-service-card p {
    font-size: 1em;
    margin: 0 0 12px 0;
}

/* Title link styles */
.avita-service-card-title-link,
.avita-service-card-link {
    color: #275d38;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.avita-service-card-title-link:hover,
.avita-service-card-link:hover {
    color: #38804d;
    text-decoration: none;
}
.avita-service-card-link {
    margin-top: auto;
}
.avita-service-card-link i {
    color: inherit;
    transition: color 0.2s;
}

.avita-service-cards-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    pointer-events: none;
    z-index: 10;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.avita-service-cards-arrow {
    background: transparent;
    border: none;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #275d38;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    /* Remove border, outline, and box-shadow for flush edge */
    border-radius: 0;
    /* Prevent overflow */
    overflow: hidden;
}

.avita-service-cards-arrow i {
    color: #275d38;
}

.avita-service-cards-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.avita-service-cards-arrow-left {
   background: linear-gradient(to left, transparent, #fff 30px);
}
.avita-service-cards-arrow-right {
   background: linear-gradient(to right, transparent, #fff 30px);
}

@media (max-width: 900px) {
    .avita-service-card {
        flex: 1 1 80vw;
        min-width: 70vw;
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    .avita-service-card {
        flex: 1 1 95vw;
        min-width: 90vw;
        max-width: 98vw;
    }
}