/* FD Fonts Global Implementation - Language-Specific Font Support */
/* Complete font replacement with English and Persian font support */

/* ===== FONT FACE DECLARATIONS ===== */

/* ===== ENGLISH FONTS (Pinar) ===== */
/* Pinar Base Font Family for English */
@font-face {
    font-family: 'Pinar-EN';
    src: url('../fonts/Pinar-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-EN';
    src: url('../fonts/Pinar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-EN';
    src: url('../fonts/Pinar-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS1 Font Family for English */
@font-face {
    font-family: 'Pinar-DS1-EN';
    src: url('../fonts/Pinar-DS1-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS1-EN';
    src: url('../fonts/Pinar-DS1-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS1-EN';
    src: url('../fonts/Pinar-DS1-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS1-EN';
    src: url('../fonts/Pinar-DS1-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS2 Font Family for English */
@font-face {
    font-family: 'Pinar-DS2-EN';
    src: url('../fonts/Pinar-DS2-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS2-EN';
    src: url('../fonts/Pinar-DS2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS2-EN';
    src: url('../fonts/Pinar-DS2-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS2-EN';
    src: url('../fonts/Pinar-DS2-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS3 Font Family for English */
@font-face {
    font-family: 'Pinar-DS3-EN';
    src: url('../fonts/Pinar-DS3-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS3-EN';
    src: url('../fonts/Pinar-DS3-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS3-EN';
    src: url('../fonts/Pinar-DS3-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS3-EN';
    src: url('../fonts/Pinar-DS3-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS4 Font Family for English */
@font-face {
    font-family: 'Pinar-DS4-EN';
    src: url('../fonts/Pinar-DS4-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS4-EN';
    src: url('../fonts/Pinar-DS4-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS4-EN';
    src: url('../fonts/Pinar-DS4-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS4-EN';
    src: url('../fonts/Pinar-DS4-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== PERSIAN FONTS (Pinar FD) ===== */
/* Pinar FD Base Font Family for Persian */
@font-face {
    font-family: 'Pinar-FD';
    src: url('../fonts/Pinar-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-FD';
    src: url('../fonts/Pinar-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-FD';
    src: url('../fonts/Pinar-FD-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-FD';
    src: url('../fonts/Pinar-FD-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS1 Font Family */
@font-face {
    font-family: 'Pinar-DS1-FD';
    src: url('../fonts/Pinar-DS1-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS1-FD';
    src: url('../fonts/Pinar-DS1-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS1-FD';
    src: url('../fonts/Pinar-DS1-FD-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS1-FD';
    src: url('../fonts/Pinar-DS1-FD-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS2 Font Family */
@font-face {
    font-family: 'Pinar-DS2-FD';
    src: url('../fonts/Pinar-DS2-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS2-FD';
    src: url('../fonts/Pinar-DS2-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS2-FD';
    src: url('../fonts/Pinar-DS2-FD-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS2-FD';
    src: url('../fonts/Pinar-DS2-FD-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS3 Font Family */
@font-face {
    font-family: 'Pinar-DS3-FD';
    src: url('../fonts/Pinar-DS3-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS3-FD';
    src: url('../fonts/Pinar-DS3-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS3-FD';
    src: url('../fonts/Pinar-DS3-FD-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS3-FD';
    src: url('../fonts/Pinar-DS3-FD-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pinar DS4 Font Family */
@font-face {
    font-family: 'Pinar-DS4-FD';
    src: url('../fonts/Pinar-DS4-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS4-FD';
    src: url('../fonts/Pinar-DS4-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

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

@font-face {
    font-family: 'Pinar-DS4-FD';
    src: url('../fonts/Pinar-DS4-FD-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar-DS4-FD';
    src: url('../fonts/Pinar-DS4-FD-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== GLOBAL FONT APPLICATION WITH LANGUAGE-SPECIFIC SUPPORT ===== */

/* CSS Custom Properties for consistent sizing and language-specific fonts */
:root {
    /* English Font Families */
    --en-font-primary: 'Pinar-EN', 'Pinar-DS1-EN', 'Pinar-DS2-EN', 'Pinar-DS3-EN', 'Pinar-DS4-EN', sans-serif;
    --en-font-heading: 'Pinar-EN', 'Pinar-DS1-EN', sans-serif;
    --en-font-body: 'Pinar-EN', 'Pinar-DS2-EN', sans-serif;
    
    /* Persian Font Families */
    --fa-font-primary: 'Pinar-FD', 'Pinar-DS1-FD', 'Pinar-DS2-FD', 'Pinar-DS3-FD', 'Pinar-DS4-FD', sans-serif;
    --fa-font-heading: 'Pinar-FD', 'Pinar-DS1-FD', sans-serif;
    --fa-font-body: 'Pinar-FD', 'Pinar-DS2-FD', sans-serif;
    
    /* Default to English fonts */
    --fd-font-primary: var(--en-font-primary);
    --fd-font-heading: var(--en-font-heading);
    --fd-font-body: var(--en-font-body);
    
    /* Text size factors - Optimized for readability */
    --size-reduction: 0.9;
    --heading-reduction: 0.92;
    --body-reduction: 0.9;
}

/* Language-specific font application */
html[lang="en"], 
body[lang="en"],
.lang-en,
:not([lang="fa"]):not([dir="rtl"]):not(.rtl-layout):not(.persian-text) {
    --fd-font-primary: var(--en-font-primary);
    --fd-font-heading: var(--en-font-heading);
    --fd-font-body: var(--en-font-body);
}

html[lang="fa"], 
body[lang="fa"],
[lang="fa"], 
[dir="rtl"], 
.rtl-layout, 
.persian-text,
.lang-fa {
    --fd-font-primary: var(--fa-font-primary);
    --fd-font-heading: var(--fa-font-heading);
    --fd-font-body: var(--fa-font-body);
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.8 !important;
}

/* Universal font application - Override all existing fonts except icons */
*:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fass):not(.fasr):not(.fasl):not(.fasb):not(i[class*="fa"]) {
    font-family: var(--fd-font-primary) !important;
}

/* Ensure Font Awesome icons keep their proper font families */
.fa, .fas, .far, .fal, .fab, .fad, .fass, .fasr, .fasl, .fasb,
[class*="fa-"], i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

/* Body and base elements */
html,
body {
    font-family: var(--fd-font-body) !important;
    font-size: calc(16px * var(--body-reduction)) !important; /* 14.4px instead of 16px */
    line-height: 1.6 !important;
}

/* Headings with optimized sizes */
h1, .h1 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(2.2rem * var(--heading-reduction)), 4.5vw, calc(3.5rem * var(--heading-reduction))) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

h2, .h2 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(1.9rem * var(--heading-reduction)), 4vw, calc(2.8rem * var(--heading-reduction))) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

h3, .h3 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(1.6rem * var(--heading-reduction)), 3.5vw, calc(2.2rem * var(--heading-reduction))) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

h4, .h4 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(1.35rem * var(--heading-reduction)), 3vw, calc(1.8rem * var(--heading-reduction))) !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

h5, .h5 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(1.15rem * var(--heading-reduction)), 2.5vw, calc(1.5rem * var(--heading-reduction))) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

h6, .h6 {
    font-family: var(--fd-font-heading) !important;
    font-size: clamp(calc(1rem * var(--heading-reduction)), 2vw, calc(1.25rem * var(--heading-reduction))) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Paragraphs and text elements */
p, .p {
    font-family: var(--fd-font-body) !important;
    font-size: calc(1rem * var(--body-reduction)) !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
}

/* Links */
a, .link {
    font-family: var(--fd-font-body) !important;
    font-size: calc(1rem * var(--body-reduction)) !important;
}

/* Lists */
ul, ol, li {
    font-family: var(--fd-font-body) !important;
    font-size: calc(1rem * var(--body-reduction)) !important;
    line-height: 1.6 !important;
}

/* Buttons */
button, .btn, input[type="button"], input[type="submit"] {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.95rem * var(--body-reduction)) !important;
    font-weight: 500 !important;
}

/* Forms */
input, textarea, select {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.95rem * var(--body-reduction)) !important;
}

label, .form-label {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.9rem * var(--body-reduction)) !important;
    font-weight: 500 !important;
}

/* Navigation */
nav, .nav, .navbar {
    font-family: var(--fd-font-body) !important;
}

.nav-link, .navbar-nav .nav-link {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.95rem * var(--body-reduction)) !important;
}

/* Tables */
table, th, td {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.9rem * var(--body-reduction)) !important;
}

/* Cards and components */
.card, .card-title, .card-text {
    font-family: var(--fd-font-body) !important;
}

.card-title {
    font-size: calc(1.25rem * var(--heading-reduction)) !important;
    font-weight: 600 !important;
}

.card-text {
    font-size: calc(1rem * var(--body-reduction)) !important;
}

/* Alerts and notifications */
.alert {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.95rem * var(--body-reduction)) !important;
}

/* Badges and tags */
.badge, .tag {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.8rem * var(--body-reduction)) !important;
}

/* Small text */
small, .small {
    font-family: var(--fd-font-body) !important;
    font-size: calc(0.8rem * var(--body-reduction)) !important;
}

/* Code elements */
code, pre {
    font-family: 'Pinar-EN', monospace !important;
    font-size: calc(0.9rem * var(--body-reduction)) !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    :root {
        --size-reduction: 0.88; /* Slightly more reduction on desktop */
        --heading-reduction: 0.9;
        --body-reduction: 0.88;
    }
}

/* Tablet (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    :root {
        --size-reduction: 0.9;
        --heading-reduction: 0.92;
        --body-reduction: 0.9;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    :root {
        --size-reduction: 0.92; /* Less reduction on mobile for readability */
        --heading-reduction: 0.94;
        --body-reduction: 0.92;
    }
    
    h1, .h1 {
        font-size: clamp(calc(1.8rem * var(--heading-reduction)), 6vw, calc(2.5rem * var(--heading-reduction))) !important;
    }
    
    h2, .h2 {
        font-size: clamp(calc(1.5rem * var(--heading-reduction)), 5vw, calc(2rem * var(--heading-reduction))) !important;
    }
}

/* ===== OVERRIDE EXISTING FONT DECLARATIONS ===== */
/* Force override any existing font-family declarations */
.feature, .feature-title, .feature-content,
.hero, .hero-title, .hero-subtitle,
.section-title, .section-subtitle,
.pricing-card, .testimonial,
.footer, .header,
.dashboard, .profile,
.form-control, .form-label,
.dropdown, .modal,
.tooltip, .popover {
    font-family: var(--fd-font-primary) !important;
}

/* Specific overrides for common classes */
.text-lg { font-size: calc(1.125rem * var(--body-reduction)) !important; }
.text-xl { font-size: calc(1.25rem * var(--body-reduction)) !important; }
.text-2xl { font-size: calc(1.5rem * var(--heading-reduction)) !important; }
.text-3xl { font-size: calc(1.875rem * var(--heading-reduction)) !important; }
.text-4xl { font-size: calc(2.25rem * var(--heading-reduction)) !important; }
.text-5xl { font-size: calc(3rem * var(--heading-reduction)) !important; }

.text-sm { font-size: calc(0.875rem * var(--body-reduction)) !important; }
.text-xs { font-size: calc(0.75rem * var(--body-reduction)) !important; }

/* ===== PRINT STYLES ===== */
@media print {
    * {
        font-family: var(--fd-font-primary) !important;
        font-size: calc(1rem * 0.9) !important; /* Slightly smaller for print */
    }
}