/**
 * DesIDEA Website - Global Font Family Standardization
 * Enforces 'Poppins', sans-serif across all text, components, and pages.
 * Preserves icon fonts (Font Awesome, Glyphicons).
 */

:root {
    --di-font-sans: 'Poppins', sans-serif !important;
    --sv-font-sans: 'Poppins', sans-serif !important;
    --sv-font-serif: 'Poppins', sans-serif !important;
    --cs-sans: 'Poppins', sans-serif !important;
    --ss-sans: 'Poppins', sans-serif !important;
    --pm-sans: 'Poppins', sans-serif !important;
    --uf-sans: 'Poppins', sans-serif !important;
    --uf-font-sans: 'Poppins', sans-serif !important;
    --uf-font-display: 'Poppins', sans-serif !important;
    --uf-font-mono: 'Poppins', sans-serif !important;
    --font-display: 'Poppins', sans-serif !important;
    --font-body: 'Poppins', sans-serif !important;
    --font-family-sans-serif: 'Poppins', sans-serif !important;
}

/* Global root & body typography */
html,
body {
    font-family: 'Poppins', sans-serif !important;
}

/* Headings H1-H6 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* Paragraphs, descriptions, and inline text elements */
p,
span:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-duotone):not(.fa-sharp):not([class*="fa-"]):not([class*=" fa-"]):not([class^="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not([class*=" glyphicon-"]):not([class^="glyphicon-"]),
a:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-duotone):not(.fa-sharp):not([class*="fa-"]):not([class*=" fa-"]):not([class^="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not([class*=" glyphicon-"]):not([class^="glyphicon-"]),
b, strong, em,
i:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-duotone):not(.fa-sharp):not([class*="fa-"]):not([class*=" fa-"]):not([class^="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not([class*=" glyphicon-"]):not([class^="glyphicon-"]),
small, mark, sub, sup,
blockquote, q, cite, caption {
    font-family: 'Poppins', sans-serif !important;
}

/* Navigation, menus, dropdowns, header, and footer */
header, footer, nav,
.site-header, .main-header-fixed, .hero-navbar-container,
.navbar, .navbar-nav, .nav-item, .nav-link,
.dropdown-menu, .dropdown-item, .mega-menu, .mega-menu a,
.footer, .site-footer, #colophon, .footer-menu, .footer-nav {
    font-family: 'Poppins', sans-serif !important;
}

/* Buttons and CTA text */
button,
.btn, .button, .nav-cta,
input[type="button"], input[type="submit"], input[type="reset"] {
    font-family: 'Poppins', sans-serif !important;
}

/* Forms, input fields, labels, and placeholders */
form,
label,
input,
textarea,
select,
optgroup,
option,
.form-control,
.form-group,
.form-label,
::placeholder,
::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    font-family: 'Poppins', sans-serif !important;
}

/* Cards, tables, lists, and content sections */
.card, .card-title, .card-subtitle, .card-body, .card-text, .card-header, .card-footer,
table, thead, tbody, tfoot, tr, th, td,
ul:not([class*="fa-ul"]), ol,
li:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]),
dl, dt, dd,
section, article, main, aside {
    font-family: 'Poppins', sans-serif !important;
}

/* Modals, popups, tooltips, notifications, and badges */
.modal, .modal-dialog, .modal-content, .modal-header, .modal-title, .modal-body, .modal-footer,
.popup, .custom-popup, .tooltip, .popover, .toast, .alert, .badge, .notification {
    font-family: 'Poppins', sans-serif !important;
}

/* Breadcrumbs and pagination */
.breadcrumb, .breadcrumb-item,
.pagination, .page-item, .page-link {
    font-family: 'Poppins', sans-serif !important;
}

/* Chatbot container, launcher, and widget text */
#desidea-chatbot-root,
#desidea-chatbot-root *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]),
.desidea-cb-launcher,
.desidea-cb-launcher *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]),
.desidea-cb-panel,
.desidea-cb-panel *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]) {
    font-family: 'Poppins', sans-serif !important;
}

/* Catch-all for any other text elements, strictly excluding icon fonts */
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-duotone):not(.fa-sharp):not([class*="fa-"]):not([class*=" fa-"]):not([class^="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not([class*=" glyphicon-"]):not([class^="glyphicon-"]):not([data-icon]) {
    font-family: 'Poppins', sans-serif;
}

/* Explicitly preserve icon fonts */
.fa, .fas, .far, .fab, .fal, .fad,
.fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-duotone, .fa-sharp,
[class*="fa-"], [class*=" fa-"], [class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
}
.fab, .fa-brands, [class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
}
.glyphicon, [class*="glyphicon-"], [class*=" glyphicon-"], [class^="glyphicon-"] {
    font-family: "Glyphicons Halflings" !important;
}
