:root {
    /* Khai báo biến phông chữ toàn cục */
    --global-font-family: var(--wd-text-font, "Inter", Arial, Helvetica, sans-serif);
    --global-font-weight: var(--wd-text-font-weight, 400);
    --global-font-size: var(--wd-text-font-size, 16px);
    --global-line-height: var(--wd-text-line-height, 1.6);
    --global-text-color: var(--wd-text-color, #767676);
}

body {
    /* Áp dụng phông chữ cho toàn bộ body */
    font-family: var(--global-font-family);
    font-size: var(--global-font-size);
    font-weight: var(--global-font-weight);
    line-height: var(--global-line-height);
    color: var(--global-text-color);
    
    /* Thiết lập rendering phông chữ tốt hơn */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Thêm cho Firefox */
}

/* Áp dụng riêng cho các thẻ heading (Tiêu đề) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wd-title-font, "Inter", Arial, Helvetica, sans-serif);
    font-weight: var(--wd-title-font-weight, 600);
    color: var(--wd-title-color, #242424);
}