:root {
    --eastern-blue: #1946a2;
    --green-white: #eeeee4;
    --burnt-sienna: #e28743;
    --tacao: #d2ae37;
    --glacier: #76b5c5;
    --eternity: #21130d;
    --burnt-umber: #873e23;
    --powder-blue: #abdbe3;
    --catalina-blue: #040484;
    --chathams-blue: #5c7cb4;
}

/* Main Button */
.content_button .button-scattered {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background: transparent;
}

.content_button .button-scattered .text {
    position: relative;
    z-index: 3; /* ensures text is above pseudo-element */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff;
    height: 50px;
}

.content_button .button-scattered .text span {
    position: relative;
    z-index: 3;
}

.content_button .button-scattered .text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: var(--eastern-blue);
    z-index: 1;
    transition: all 0.75s cubic-bezier(.25,.1,.1,1);
}

.content_button .button-scattered .arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eastern-blue);
    z-index: 3;
    border-radius: 50%;
    transition: all 0.35s ease-in-out;
    margin-left: 10px;
}

.content_button .button-scattered .arrow i {
    color: #fff;
    font-size: 1rem;
    transform: rotate(314deg);
    transition: all 0.35s ease-in-out;
}

.content_button .button-scattered:hover .text::before {
    width: calc(100% + 50px);
    background: var(--tacao);
}

.content_button .button-scattered:hover .arrow {
    background: var(--tacao);
    box-shadow: 0 2px 2px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
}

.content_button .button-scattered:hover .arrow i {
    transform: rotate(0deg);
}

/* Small variant */
.content_button .button-scattered-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    height: 40px;
    padding: 0 15px;
    background: transparent;
    transition: all 0.35s ease-in-out;
}

.content_button .button-scattered-sm .text {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    height: 100%;
    padding: 0 10px;
}

.content_button .button-scattered-sm .text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: var(--eastern-blue);
    z-index: 1;
    transition: all 0.75s cubic-bezier(.25,.1,.1,1);
}

.content_button .button-scattered-sm .arrow {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--eastern-blue);
    margin-left: 10px;
    z-index: 3;
    transition: all 0.35s ease-in-out;
}

.content_button .button-scattered-sm .arrow i {
    color: #fff;
    font-size: 1rem;
    transform: rotate(314deg);
    transition: all 0.35s ease-in-out;
}

/* Hover for small button */
.content_button .button-scattered-sm:hover .text::before {
    width: calc(100% + 50px);
    background: var(--tacao);
}

.content_button .button-scattered-sm:hover .arrow {
    background: var(--tacao);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.content_button .button-scattered-sm:hover .arrow i {
    transform: rotate(0deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content_button .button-scattered,
    .content_button .button-scattered-sm {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    .content_button .button-scattered .arrow,
    .content_button .button-scattered-sm .arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    /* Wrap the entire button content neatly */
    .content_button .button-scattered,
    .content_button .button-scattered-sm {
        flex-direction: row; /* Keep text + arrow in a row even on small screens */
        justify-content: center;
        align-items: center;
        padding: 6px 12px;
        height: auto;
        gap: 6px; /* Space between text and arrow */
    }

    /* Text scales properly */
    .content_button .button-scattered .text,
    .content_button .button-scattered-sm .text {
        padding: 0 8px;
        font-size: 0.6rem; /* Slightly smaller text */
        text-align: center;
    }

    /* Arrow stays small but aligned */
    .content_button .button-scattered .arrow,
    .content_button .button-scattered-sm .arrow {
        width: 24px;
        height: 24px;
        margin-left: 0;
    }

    /* Icon inside arrow scales down */
    .content_button .button-scattered .arrow i,
    .content_button .button-scattered-sm .arrow i {
        font-size: 0.75rem;
    }
}

