/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.custom-button a{
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: var(--e-global-color-primary) !important;
    background-color: var(--e-global-color-accent) !important;
}
.custom-button a::before{
        content: '';
    position: absolute;
    top: 50%;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    background-image: url('/wp-content/uploads/2025/05/arrow_right.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
    transform: translate(-15px, -50%);
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.custom-button span.elementor-button-text {
        position: relative;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    background-color: white;
    color: var(--e-global-color-primary);
    border-radius: 8px;
    padding: 15px 20px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.custom-button a span.elementor-button-text::after {
        content: '';
    display: block;
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    border-radius: 8px;
    background: var(--e-global-color-accent);
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.custom-button a::after {
       content: '';
    display: block;
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    border-radius: 8px;
    background: var(--e-global-color-primary);
    transition: all 0.4s ease-in-out;
    z-index: 0;
}

.custom-button a:hover {
    background-color: transparent !important;
}
.custom-button:hover {
    background-color: transparent;
}
.custom-button a:hover::before {
    transform: translate(-15px, -50%) rotate(45deg);
}
.custom-button a:hover span.elementor-button-text {
        background-color: transparent;
    color: var(--e-global-color-primary);
}
.custom-button a:hover span.elementor-button-text::after {
    width: 100%;
    left: 0;
    right: auto;
}
.custom-button a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}
.custom-button a:hover span.elementor-button-text {
color:white !important;
}
@media only screen and (max-width: 991px) {
    .custom-button span.elementor-button-text {
        padding: 12px 15px;
    }
}