.footer-menu-main span {
  display: flex;
  align-items: center;
  padding-left: 22px;
}

.footer-menu-main span:before {
  content: "";
  position: absolute;
  left: -5px;
  display: flex;
  width: 10px;
  height: 10px;
  background-image: url(/wp-content/uploads/2024/11/icon-polygon-primary.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: all 0.4s ease-out;
}

.footer-menu-main span,
.footer-menu-main a {
    width: 100%;
    color: var(--e-global-color-accent);
}

.footer-menu-sub span {
    display: flex;
}

.footer-menu-sub a {
	display: flex;
    width: 100%;
    padding: 10px 0px 10px 22px;
    font-family: var(--font-stack-heading);
    font-size: 0.95rem !important;
    font-weight: 700;
	line-height: 1.35em !important;
}

.footer-menu-sub span:before {
    content: "";
    position: absolute;
    top: 0px;
    left: -1px;
    display: block;
    width: 2px;
    height: 1px;
    background: var(--e-global-color-accent);
    opacity: 0;
    transition: all 0.4s ease-out;
}

.footer-menu-main:hover span:before {
    transform: rotate(180deg);
}

.footer-menu-main:hover a {
    opacity: 0.8;
}

.footer-menu-sub:hover span:before {
    height: 100%;
    opacity: 1;
}

@media only screen and (max-width: 1024px) {
  .footer-menu-main span:before {
    top: 28px;
  }
}

/* Compressed Footer on Mobile */
@media only screen and (max-width: 767px) {
    .footer-menu-main {
	    height: 65px;
        border-bottom: 1px solid var(--e-global-color-580a548);
    }
	
	.footer-menu-main.menu-last-child {
    	border-bottom: none;
  	}

    .footer-menu-main span,
    .footer-menu-main a {
        color: white;
    }

    .footer-menu-main.fmm-has-child.active span {
        color: var(--e-global-color-accent);
    }
	
    .footer-menu-main.fmm-has-child a {
       width: calc(100% - 65px);
    }

    /* Make the main heading clickable with pointer only if it has children */
    .fmm-has-child {
        cursor: pointer;
    }

    .fmm-has-child .elementor-heading-title::after {
        content: "+";
        position: absolute;
        right: 0;
		display: flex;
        justify-content: end;
        align-items: center;
        width: 50px;
        height: 30px;
		padding: 0px 12px;
        font-size: 1.5rem;
        transition: transform 0.4s ease;
    }

    .fmm-has-child.active .elementor-heading-title::after {
        content: "-";
    }

    /* Initially hide the submenu */
    .footer-menu-sub-wrap {
        display: flex;
        flex-direction: column;
        /* Stack items vertically */
        flex-wrap: nowrap;
        /* Prevent wrapping of submenu items */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
	
	.footer-menu-sub:first-child a {
        margin-top: 20px;
    }

    /* Ensure each widget container in the submenu takes the full width */
    .footer-menu-sub-wrap span {
        display: block;
/* 		padding: 5px 0px; */
        /* Each link takes up its own line */
    }
}

.globalsense-text a {
    color: #626262;
}