/* Onward Global Styles */
/* ===================================
   BUTTONS
   =================================== */
.btn,
a.btn,
.btn-container a {
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
    padding: .75rem 2.25rem;
    transition: all var(--transition-fast);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn,
a.btn {
    margin-left: auto;
    margin-right: auto;
}

.btn-primary,
a.btn-primary,
.btn-container-green a {
  background-color: var(--green-dark);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-navy);
}

.btn-secondary,
a.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--green-dark);
    color: var(--dark-teal-alt);
    padding: .5rem 2.5rem;
    &:hover {
        background-color: var(--color-navy);
        color: white;
    }
    &.teal-dark {
        border-color: var(--teal-dark);
        color: var(--teal-dark);
        &:hover {
            background-color: var(--teal-dark);
            color: white;
        }
    }
}

/* Tertiary button */
.btn-tertiary,
a.btn-tertiary {
    align-items: center;
    color: var(--green-dark);
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0;
    text-decoration: none;
    transition: all 0.25s linear;
    border-radius: 0;
    &:hover {
        color: var(--teal-dark);
        span:first-child {
            border-bottom: 3px solid var(--teal-dark);
        }
    }
    span:first-child {
        border-bottom: 1px solid var(--green-dark);
    }
}

a.btn-tertiary .btn-tertiary__arrow,
.btn-tertiary .btn-tertiary__arrow {
    display: inline-block;
    width: 13px;
    height: 14px;
    transition: transform 0.25s ease;
    position: relative;
    img {
        position: absolute;
        width: 13px;
        height: 14px;
        top: 0;
        left: 0;
        margin: 0;
        max-width: 100%;
        height: auto;
        &.green {
            z-index: 2;
            opacity: 1;
            transition: opacity 0.25s ease;
        }
        &.teal {
            z-index: 1;
        }
    }

}

a.btn-tertiary:hover .btn-tertiary__arrow,
.btn-tertiary:hover .btn-tertiary__arrow {
    transform: translateX(0.5rem);
    img.green {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-tertiary:hover .btn-tertiary__text::after {
        animation: none;
    }
    .btn-tertiary__arrow {
        transition: none;
    }
}
/* - Tertiary button on Green Background */
#page .oc-section.section[class*="green"] .btn-tertiary,
section[class*="green"] a.btn-tertiary {
    color: white;
    &:hover {
        span:first-child {
            border-bottom: 3px solid white;
        }
    }
    span:first-child {
        border-bottom: 1px solid white;
    }
    .btn-tertiary__arrow img {
        &.white {
            opacity: 1;
            transition: opacity 0.25s ease;
        }
        &.green,
        &.teal {
                display: none;
        }
    }
}

.btn-tertiary__arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-tertiary:hover .btn-tertiary__arrow {
    transform: translateX(0.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .btn-tertiary:hover .btn-tertiary__text::after {
        animation: none;
    }
    .btn-tertiary__arrow {
        transition: none;
    }
}

/* Quaternary button */
.btn.btn-quaternary,
a.btn.btn-quaternary {
    align-items: flex-start;
    display: inline-flex;
    margin: 2rem 0 0;
    padding: 0;
    text-decoration: none;
}

.btn-quaternary__arrow {
    background: url('img/btn-quaternary-arrow.png') left top no-repeat transparent;
    background-size: cover;
    color: var(--green-dark);
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    transition: transform 0.25s ease;
}

/* CTA Wrap */
.cta_wrap {
    &.centered {
        text-align: center;
    }
}