/* Import Lato font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    font-family: 'Lato', sans-serif !important;
}

.fa, .fa:before, .fa:after,
[class^="fa-"], [class*=" fa-"],
.fas, .far, .fab, .fal, .fad {
    font-family: FontAwesome !important;
}

body,
p,
a,
button,
input,
textarea,
select,
label,
span,
div,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.default-btn,
.optional-btn,
.navbar,
.navbar-nav,
.nav-item,
.nav-link,
.dropdown-menu,
.dropdown-item,
.form-control,
.btn,
.table,
th,
td,
li,
ul,
ol {
    font-family: 'Lato', sans-serif !important;
}

/* Override any existing font-family declarations */
[class*="font-family-"],
[style*="font-family"] {
    font-family: 'Lato', sans-serif !important;
}

/* Ensure headings use Lato */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Lato', sans-serif !important;
}

/* Override Bootstrap default fonts */
.navbar-brand,
.navbar-nav .nav-link,
.dropdown-menu .dropdown-item,
.btn,
.form-control,
.input-group-text,
.alert,
.badge,
.card-title,
.card-text,
.list-group-item,
.modal-title,
.modal-body,
.tooltip,
.popover-title,
.popover-content {
    font-family: 'Lato', sans-serif !important;
}

/* Override any custom font classes */
.font-montserrat,
.font-poppins,
.font-roboto,
.font-arial,
.font-helvetica {
    font-family: 'Lato', sans-serif !important;
}

/* Override specific font families found in the project */
/* Montserrat overrides */
[style*="font-family: montserrat"],
[style*="font-family:montserrat"],
.font-family-montserrat,
.about-main-content .about-information h5,
.offer-item .accordion .accordion-item .accordion-title h3,
.reviews-slides .reviews-thumbnails .item .title h3,
.membership-levels-table .table thead th .desc-1,
.membership-levels-table .table thead th .desc-2,
.courses-details-desc .tab-content .courses-reviews h3,
.courses-details-desc .tab-content .courses-review-comments h3,
.products-details-tabs .tab-content .tab-pane .products-reviews .review-content h3,
.purchase-guide-content h3 span,
.privacy-policy-content h3 span,
.terms-of-service-content h3 span,
#contactForm #msgSubmit.text-danger,
#contactForm #msgSubmit.text-success {
    font-family: 'Lato', sans-serif !important;
}

/* Poppins overrides */
[style*="font-family: poppins"],
[style*="font-family:poppins"],
.font-family-poppins,
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6,
.single-blog .blog-image .tag,
.single-blog-item .blog-image .tag,
.cart-table table tbody tr td.product-name a,
.wishlist-table table tbody tr td.product-name a {
    font-family: 'Lato', sans-serif !important;
}

/* Arial overrides */
[style*="font-family: Arial"],
[style*="font-family:Arial"],
.font-family-arial,
.magnific-popup .mfp-close {
    font-family: 'Lato', sans-serif !important;
}

/* Helvetica overrides */
[style*="font-family: Helvetica"],
[style*="font-family:Helvetica"],
.font-family-helvetica,
.odometer.odometer-theme-default {
    font-family: 'Lato', sans-serif !important;
}

/* Sans-serif overrides */
[style*="font-family: sans-serif"],
[style*="font-family:sans-serif"],
.font-family-sans-serif,
.radio-toolbar label {
    font-family: 'Lato', sans-serif !important;
}

/* Bootstrap CSS variable overrides */
:root {
    --bs-font-sans-serif: 'Lato', sans-serif !important;
    --bs-font-monospace: 'Lato', sans-serif !important;
}

/* Override any remaining font declarations */
*[class*="font-"] {
    font-family: 'Lato', sans-serif !important;
}

/* Ensure all text elements use Lato */
.text-*,
[class*="text-"] {
    font-family: 'Lato', sans-serif !important;
}

/* Override any inline styles */
[style*="font-family"] {
    font-family: 'Lato', sans-serif !important;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    font-family: 'Lato', sans-serif !important;
}

/* Ensure FontAwesome icons are properly excluded */
.fa, .fa:before, .fa:after,
[class^="fa-"], [class*=" fa-"],
.fas, .far, .fab, .fal, .fad,
i.fa, i[class^="fa-"], i[class*=" fa-"] {
    font-family: FontAwesome !important;
}
