/* Noto Sans Thai - Local Fonts Definition */
@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/NotoSansThai-Thai.woff2') format('woff2'),
         url('../fonts/NotoSansThai-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSansThai-Thai.woff2') format('woff2'),
         url('../fonts/NotoSansThai-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/NotoSansThai-Thai.woff2') format('woff2'),
         url('../fonts/NotoSansThai-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/NotoSansThai-Thai.woff2') format('woff2'),
         url('../fonts/NotoSansThai-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/NotoSansThai-Thai.woff2') format('woff2'),
         url('../fonts/NotoSansThai-Bold.ttf') format('truetype');
}

/* Global Font Application & Antialiasing */
html, body {
    font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea {
    font-family: inherit;
}

.swal2-popup, .swal2-title, .swal2-html-container, .swal2-actions, .swal2-confirm, .swal2-cancel {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

/* Ensure Font Awesome always preserves its icon font */
.fa, .fas, .far, .fal, .fad, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}
