/* Font Awesome Font Loading Fix - Override external URLs with local paths */

/* Override Font Awesome font URLs to use local assets instead of external seantheme.com */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../lib/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../lib/fontawesome/webfonts/fa-regular-400.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../lib/fontawesome/webfonts/fa-brands-400.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-brands-400.ttf') format('truetype');
}

/* Ensure Font Awesome classes use the correct font family */
.fa, .fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

.far {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400;
}

/* Override any vendor.min.css font references */
@font-face {
    font-family: 'FontAwesome';
    src: url('../lib/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Force override any external font references by redefining with higher specificity */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../lib/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../lib/fontawesome/webfonts/fa-brands-400.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-brands-400.ttf') format('truetype');
}

/* Additional override for any remaining external references */
@font-face {
    font-family: 'FontAwesome';
    src: url('../lib/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('../lib/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Force all Font Awesome elements to use local fonts with high specificity */
html body .fa,
html body .fas,
html body .far,
html body .fab,
html body [class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
}

/* Ensure specific font weights are applied */
html body .fa-solid,
html body .fas {
    font-weight: 900 !important;
}

html body .fa-regular,
html body .far {
    font-weight: 400 !important;
}

html body .fa-brands,
html body .fab {
    font-family: 'Font Awesome 6 Brands', sans-serif !important;
    font-weight: 400 !important;
}
