/*
Theme Name: John Glen Child Theme
Description: John Glen child theme.
Author: Accent Creative
Author URI: https://www.accent-adc.co.uk/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
*/

/*
Improve Elementor Animations
*/

/* FadeInDown */
@keyframes kgFadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0); /* Less movement than default */
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.elementor-element .animated.fadeInDown {
    animation-name: kgFadeInDown !important; /* Ensure this takes precedence */
}

/* FadeInLeft */
@keyframes kgFadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.elementor-element .animated.fadeInLeft {
    animation-name: kgFadeInLeft !important;
}

/* FadeInRight */
@keyframes kgFadeInRight {
    from {
        opacity: 0;
        transform: translate3d(20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.elementor-element .animated.fadeInRight {
    animation-name: kgFadeInRight !important;
}

/* FadeInUp */
@keyframes kgFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.elementor-element .animated.fadeInUp {
    animation-name: kgFadeInUp !important;
}

/*
Bullet Points
*/
ul {
    padding-inline-start: 15px;
}

ul li {
    padding-bottom: 8px;
}

/*
Icon List Contact Page Form
*/
@media only screen and (max-width: 767px) {
    #contact-page-form .elementor-widget-container .elementor-icon-list-items .elementor-icon-list-item a {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
  }

  @media only screen and (max-width: 767px) {
    #contact-page-form .elementor-widget-container .elementor-icon-list-items .elementor-icon-list-item {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
  }

/*
Anchor Scroll
*/
html {
    scroll-padding-top: 180px !important;
}

@media only screen and (max-width: 767px) {
html {
    scroll-padding-top: 90px !important;
  }
}

/* Email Encoder Elementor Icon List Fix */
.elementor-icon-list-item span[id^=eeb-] {
display: flex;
align-items: center;
}

/* Button Link Arrow */
.elementor-button-icon svg {
    width: 0.4em !important;
}

/* Menu Sub Arrow */
.elementor-nav-menu .sub-arrow {
    fill: #A30512 !important;
    width: 1em;
    padding-bottom: 2px;
}

/*
Elementor Submenu Fix
*/
li.menu-item-has-children>a{
    padding-right: 20px!important
  }
  .elementor-nav-menu .sub-arrow{
    position: absolute;
    right:2px;
  }
  @media(max-width: 768px){
  .elementor-nav-menu .sub-arrow{
    position: relative;
  }
}

/* Contact Numbers Fix */
.header-contact-numbers .elementor-icon-box-content {
    display:flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
.header-contact-numbers .elementor-icon-box-content {
    flex-direction: row;
}
.header-contact-numbers .elementor-icon-box-description {
    padding-left: 5px;
}
}

/* Call To Action Link Arrow */
.elementor-cta__button-wrapper:after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7.78 12.73'%3E%3Cpath d='M4.95 6.36L0 1.41 1.41 0l6.36 6.36-6.36 6.37L0 11.32l4.95-4.95z' fill='%23ffffff'/%3E%3C/svg%3E");
    width: 8px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.elementor-cta__button {
    padding: 0px 10px 0px 0px !important;
}

/* Link Hover */
a.elementor-cta__button:hover{
  opacity: 0.6;
}

/* Newsfeed h2 */
.single-post h2 {
    margin-block-start: 3rem;
}