/* Font Path Fixes - Override incorrect paths in main.css */

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/fa-brands-400.woff2") format("woff2"),
         url("/assets/fonts/fa-brands-400.woff") format("woff");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/fa-regular-400.woff2") format("woff2"),
         url("/assets/fonts/fa-regular-400.woff") format("woff");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("/assets/fonts/fa-solid-900.woff2") format("woff2"),
         url("/assets/fonts/fa-solid-900.woff") format("woff");
}

@font-face {
    font-family: "themify";
    src: url("/assets/fonts/themify.eot");
    src: url("/assets/fonts/themifyd41d.eot?#iefix") format("embedded-opentype"),
         url("/assets/fonts/themify.woff") format("woff"),
         url("/assets/fonts/themify.ttf") format("truetype"),
         url("/assets/fonts/themify.html") format("svg");
    font-weight: normal;
    font-style: normal;
}

/* Override Font Awesome 6 Pro references with Free version */
.fa, .fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Override any Pro references */
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Specific overrides for elements using Font Awesome 6 Pro */
.main-link-toggle::after,
.accordion-faq .card-header:after,
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before,
.single-radio-box input[type="radio"]:checked ~ label .custom-check::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.ti, [class^="ti-"], [class*=" ti-"] {
    font-family: "themify" !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* Prevent font loading errors from breaking layout */
.fa, .fas, .far, .fab, .ti {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Comprehensive Font Awesome Free Override */

/* Override CSS variables that reference Pro */
:root {
    --fa-style-family: "Font Awesome 6 Free" !important;
    --fa-style: 900 !important;
}

/* Force all Font Awesome elements to use Free fonts */
.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure solid icons use weight 900 */
.fa, .fas, .fa-solid,
.fa-home, .fa-phone, .fa-envelope, .fa-map-marker-alt,
.fa-linkedin-in, .fa-instagram,
.fa-bars, .fa-times, .fa-chevron-down, .fa-chevron-up {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Ensure regular icons use weight 400 */
.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Ensure brand icons use brands font */
.fab, .fa-brands,
.fa-linkedin, .fa-instagram, .fa-facebook, .fa-twitter {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Fix specific icons that might not be working */
.fa-phone-alt::before { content: "\f879"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-linkedin-in::before { content: "\f0e1"; }
.fa-instagram::before { content: "\f16d"; }
.fa-bars::before { content: "\f0c9"; }
.fa-times::before { content: "\f00d"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-chevron-up::before { content: "\f077"; }