/* Counter Widget CSS */
.hfe-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Default alignments that will be overridden by controls */
.hfe-counter-wrapper[style*="flex-direction: column"] {
    align-items: center; /* horizontal alignment for column layouts */
    justify-content: center; /* vertical alignment for column layouts */
}

.hfe-counter-wrapper[style*="flex-direction: row"] {
    justify-content: center; /* horizontal alignment for row layouts */
    align-items: center; /* vertical alignment for row layouts */
}

.hfe-counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
}


.hfe-counter-number {
    font-weight: bold;
    font-size: 48px;
    line-height: 1;
}

.hfe-counter-title {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.hfe-counter-prefix,
.hfe-counter-suffix {
    font-size: inherit;
    line-height: inherit;
}



/* Title styling - flex enabled for alignment controls */
.hfe-counter-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ensure counter content doesn't shrink */
.hfe-counter-content {
    flex-shrink: 0;
}

/* Equal width distribution for horizontal layouts */
.hfe-counter-wrapper[style*="flex-direction: row"] .hfe-counter-title,
.hfe-counter-wrapper[style*="flex-direction: row"] .hfe-counter-content {
    flex: 1;
    min-width: 0;
}

.hfe-counter-wrapper[style*="flex-direction: row-reverse"] .hfe-counter-title,
.hfe-counter-wrapper[style*="flex-direction: row-reverse"] .hfe-counter-content {
    flex: 1;
    min-width: 0;
}

/* Alternative approach - apply to all potential horizontal layouts */
.hfe-counter-wrapper:not([style*="column"]) .hfe-counter-title,
.hfe-counter-wrapper:not([style*="column"]) .hfe-counter-content {
    flex: 1;
    min-width: 0;
}

/* Ensure counter content maintains flex display in all layouts */
.hfe-counter-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
}


/* Responsive equal width distribution */
@media (max-width: 1024px) {
    .elementor-widget-hfe-counter .hfe-counter-wrapper[style*="row"] .hfe-counter-title,
    .elementor-widget-hfe-counter .hfe-counter-wrapper[style*="row"] .hfe-counter-content {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .elementor-widget-hfe-counter .hfe-counter-wrapper[style*="row"] .hfe-counter-title,
    .elementor-widget-hfe-counter .hfe-counter-wrapper[style*="row"] .hfe-counter-content {
        flex: 1;
        min-width: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hfe-counter-number {
        font-size: 36px;
    }
    
    .hfe-counter-title {
        font-size: 16px;
    }
}

/* Navigation Menu CSS */

ul.hfe-nav-menu,
.hfe-nav-menu li,
.hfe-nav-menu ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.hfe-nav-menu li.menu-item {
    position: relative;
}

.hfe-flyout-container .hfe-nav-menu li.menu-item {
    position: relative;
    background: unset;
}

.hfe-nav-menu .sub-menu li.menu-item {
    position: relative;
    background: inherit;
}
.hfe-nav-menu__theme-icon-yes button.sub-menu-toggle {
    display: none;
}

div.hfe-nav-menu,
.elementor-widget-hfe-nav-menu .elementor-widget-container{
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.hfe-nav-menu__layout-horizontal,
.hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    -webkit-flex-wrap: wrap;
    -ms-flex