/* Font Awesome Icons Fix for Practice Areas */
/* Replaces missing ETmodules font with Font Awesome */

/* FIX: Override Divi animation hiding - make all elements visible */
.et-waypoint,
.et_pb_animation_top,
.et_pb_animation_bottom,
.et_pb_animation_left,
.et_pb_animation_right,
.et_pb_animation_fade_in,
img.et-waypoint,
img.et_pb_animation_top {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
}

/* Ensure images are visible */
.et_pb_main_blurb_image img,
.et_pb_blurb img,
.fl-attorney-img img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force all et-pb-icon elements to use Font Awesome */
.et-pb-icon,
.et-pb-icon.el-icon-circle,
span.et-pb-icon {
    font-family: "Font Awesome 6 Free", FontAwesome, sans-serif !important;
    font-weight: 900 !important;
}

/* Style the icon containers */
.et_pb_blurb_extended .et_pb_main_blurb_image .et-pb-icon,
.et_pb_main_blurb_image .et-pb-icon.el-icon-circle {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
    text-align: center !important;
    display: inline-block !important;
    border-radius: 50% !important;
}

/* First practice area - Estate Planning */
.et_pb_blurb_extended_0 .et-pb-icon::before,
.et_pb_blurb_extended_0 .et-pb-icon.el-icon-circle::before,
.et_pb_column_3:first-child .et-pb-icon::before {
    content: "\f15c" !important; /* fa-file-lines - document icon */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Second practice area - Estate Administration */
.et_pb_blurb_extended_1 .et-pb-icon::before,
.et_pb_blurb_extended_1 .et-pb-icon.el-icon-circle::before {
    content: "\f0e3" !important; /* fa-gavel - legal/administration icon */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Generic fallback - show a circle icon if nothing else matches */
.et-pb-icon.el-icon-circle::before {
    content: "\f111" !important; /* fa-circle */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Reduce background overlay fade on contact section */
.et_pb_section_0_tb_footer.fl-contact-shortform {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.65) 100%), url(/wp-content/uploads/sites/1402125/2018/08/Short-Form-min.jpg) !important;
}

/* Make contact section heading stand out */
.fl-contact-shortform h2 {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: bold !important;
    font-size: 48px !important;
}

/* Fix dropdown menu - keep submenu visible longer */
.menu-item-has-children .sub-menu {
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out !important;
    transition-delay: 0.2s !important;
}

.menu-item-has-children:hover .sub-menu {
    transition-delay: 0s !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add padding to reduce gap between menu item and submenu */
.menu-item-has-children {
    padding-bottom: 10px !important;
}

.menu-item-has-children .sub-menu {
    margin-top: -10px !important;
    padding-top: 10px !important;
}
