/*
    Member Grid Contact Button
    Enforces Rotary brand compliance while allowing theme overrides via CSS vars.
*/
.member-grid__contact-btn {
    display: inline-block;
    padding: 0.25em 1em;
    color: var(--mmp-contact-btn-color, var(--silver, #e6e6e6));
    background-color: var(--mmp-contact-btn-bg, var(--rotary-royal-blue, #0050a2));
    font-weight: var(--mmp-contact-btn-weight, var(--font-weight-bold, 600));
    font-size: var(--mmp-contact-btn-size, var(--font-sm, 0.875rem));
    font-family: var(--mmp-font-family, "Segoe UI", "Roboto", sans-serif);
    text-decoration: none;
    border-radius: var(--mmp-radius, 4px);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.member-grid__contact-btn:hover {
    background-color: var(--mmp-contact-btn-hover-bg, var(--rotary-royal-blue, #003f7f));
    color: var(--mmp-contact-btn-hover-color, var(--white, #ffffff)); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.member-grid__contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--rotary-royal-blue, #0050a2));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    z-index: 1;
}

.member-grid__contact-btn:hover::before {
    transform: translateX(100%);
}
