/* 
   GLOBAL FONTS CONFIGURATION
   Centralizes all font-family definitions for the entire website.
*/

/* Kanit Font Face Definitions */
@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Regular.ttf') format('truetype');
    font-weight: 400;
    /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Light.ttf') format('truetype');
    font-weight: 300;
    /* Light */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Medium.ttf') format('truetype');
    font-weight: 500;
    /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    /* SemiBold */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('../font/Kanit-Bold.ttf') format('truetype');
    font-weight: 700;
    /* Bold */
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- Font Families --- */

    /* All text uses Kanit font */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;

    /* Legacy/Alternative mappings (for backward compatibility) */
    --font-primary: var(--font-body);
    --font-secondary: var(--font-heading);
}

/* Force Kanit 100% globally across all elements, excluding icons */
*:not(i):not([class*="fa-"]):not(.fas):not(.fab):not(.far):not(.fal):not(.material-icons) {
    font-family: 'Kanit', sans-serif !important;
}