/* =========================================================
 * SF Pro Display - Local @font-face & Global Typography
 * ========================================================= */

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Ultralight.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-UltralightItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Thin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-ThinItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-HeavyItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sf-pro-display/SF-Pro-Display-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Apply SF Pro Display across the entire site (overrides Flatsome & Additional CSS) */
:root {
    --wp--preset--font-family--svn-product-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html,
body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Base text elements (excludes icon fonts like .fa, .icon-*) */
p,
li,
td,
th,
label,
blockquote,
figcaption,
.nav-dropdown,
.header-nav,
.header-nav-main .nav > li > a,
.header-nav .nav > li > a,
.nav > li > a,
.mobile-sidebar .nav > li > a,
.off-canvas-center .nav-sidebar.nav-vertical > li > a,
h1, h2, h3, h4, h5, h6,
.heading-font,
.alt-font,
.entry-title,
.post-title,
.box-text .name,
.box-text .name a,
.top-ranked-posts .post-title,
.top-ranked-posts .name,
.top-ranked-posts .name a,
.top-ranked-posts .box-text a,
.top-ranked-posts .col::before,
.list-post3 .post-item .post-title::before,
.section-title-normal span,
.from_the_blog_excerpt,
.entry-content,
.widget,
.tagcloud a,
.box-text .post-meta,
.box-text .post-meta::before,
.box-text .author-date,
.box-text .author-date::before,
.box-text .entry-meta,
.box-text .entry-meta::before,
.blog-wrapper .post-item .box-text .post-meta,
.tin-noi-bat .post-meta,
.tn-no-meta .post-meta,
.single-post .entry-author,
.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.footer-contact-info,
.footer-contact-info p,
.footer-contact-info span:not([class*="icon"]):not(.fa),
.footer-contact-info div,
.footer-contact-info a,
.mc4wp-form,
.mc4wp-form label,
.mc4wp-form p,
.mc4wp-form input[type="email"],
.mc4wp-form input[type="text"],
.mc4wp-form input[type="email"]::placeholder,
.mc4wp-form input[type="text"]::placeholder,
.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"],
button,
input,
select,
textarea,
.button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* =========================================================
 * Balanced Font Weights for SF Pro Display
 * ========================================================= */

/* Primary page & section headings */
h1,
.entry-title,
.blog-single .entry-title,
.section-title-normal span {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Secondary headings */
h2, h3, h4, h5, h6,
.heading-font,
.widget-title,
.bai-viet-lien-quan h3 {
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}

/* Card & list post titles (Semibold 600 instead of heavy 700) */
.post-title,
.box-text .name,
.box-text .name a,
.top-ranked-posts .post-title,
.top-ranked-posts .name,
.top-ranked-posts .name a,
.top-ranked-posts .box-text a,
.list-bai-viet .tieu-de-bai-viet {
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

/* Ranked numbers */
.top-ranked-posts .col::before,
.list-post3 .post-item .post-title::before {
    font-weight: 700 !important;
}

/* Navigation menu (Semibold 600 for top level, Medium 500 for dropdowns) */
.header-nav-main .nav > li > a,
.header-nav .nav > li > a,
.nav > li > a {
    font-weight: 600 !important;
    letter-spacing: 0.005em !important;
}

.nav-dropdown > li > a,
.sub-menu > li > a {
    font-weight: 500 !important;
}

/* Meta: author, date, "BY " prefix (Medium 500 for subtle contrast) */
.box-text .post-meta,
.box-text .post-meta::before,
.box-text .author-date,
.box-text .author-date::before,
.box-text .entry-meta,
.box-text .entry-meta::before,
.blog-wrapper .post-item .box-text .post-meta,
.tin-noi-bat .post-meta,
.tn-no-meta .post-meta,
.single-post .entry-author,
.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline {
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
}

/* Body copy, excerpts, footer text */
body,
p,
.from_the_blog_excerpt,
.footer-contact-info p {
    font-weight: 400 !important;
}

/* Article body content (Light 300) */
.entry-content,
.entry-content p,
.entry-content p > span:not([class]),
.entry-content li,
.entry-content blockquote,
.blog-single .entry-content {
    font-weight: 300 !important;
}

.entry-content strong,
.entry-content b {
    font-weight: 600 !important;
}

.single-post .post-sapo {
    font-weight: 500 !important;
}

/* Mailchimp form & buttons */
.mc4wp-form label,
.mc4wp-form p {
    font-weight: 600 !important;
}

.mc4wp-form input[type="email"],
.mc4wp-form input[type="text"] {
    font-weight: 400 !important;
}

button,
.button,
.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"],
#comments input[type="submit"] {
    font-weight: 600 !important;
}
