/* Google Fonts Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap');

/* Bengali CDN Fallback for SolaimanLipi */
@import url('https://cdn.jsdelivr.net/gh/mirazmac/bengali-webfont-cdn@master/solaimanlipi/style.css');

/* Local High-Performance SolaimanLipi Font */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('/assets/fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* Local High-Performance Roboto Font */
@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-font: 'Roboto', sans-serif;
}

html, body {
    font-family: var(--app-font), 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* English Language Active -> Roboto */
html[lang="en"], html[lang="en"] body, .lang-en, .lang-en body {
    --app-font: 'Roboto', sans-serif;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Bengali Language Active -> SolaimanLipi */
html[lang="bn"], html[lang="bn"] body, .lang-bn, .lang-bn body {
    --app-font: 'SolaimanLipi', 'Roboto', sans-serif !important;
    font-family: 'SolaimanLipi', 'Roboto', sans-serif !important;
}

.font-roboto {
    font-family: 'Roboto', sans-serif !important;
}

.font-solaiman {
    font-family: 'SolaimanLipi', sans-serif !important;
}
