﻿/*
    Quran Encyclopedia Typography
    UI fonts: KFGQPC KSA family
    Quran Uthmani text: KFGQPC Hafs Smart 08

    Required files:
    /Content/fonts/KSARegular.ttf
    /Content/fonts/KSARegular_B.ttf
    /Content/fonts/KSAHeading.ttf
    /Content/fonts/KSAHeavy.ttf
    /Content/fonts/KSAExtra.ttf
    /Content/fonts/ZakhrfaBlk.ttf
    /Content/fonts/HafsSmart_08.ttf
*/

@font-face {
    font-family: "KFGQPC KSA Regular";
    src: url("../fonts/KSARegular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC KSA Regular";
    src: url("../fonts/KSARegular_B.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC KSA Heading";
    src: url("../fonts/KSAHeading.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC KSA Heavy";
    src: url("../fonts/KSAHeavy.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC KSA Extra";
    src: url("../fonts/KSAExtra.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC Zakhrfa";
    src: url("../fonts/ZakhrfaBlk.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KFGQPC Hafs Smart";
    src: url("../fonts/HafsSmart_08.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Main Arabic UI */
html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: "KFGQPC KSA Regular", Tahoma, Arial, sans-serif;
}

/* Headings */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    font-family: "KFGQPC KSA Heading", "KFGQPC KSA Regular", Tahoma, Arial, sans-serif;
    font-weight: 400;
}

/* Strong UI emphasis */
.ui-heavy,
.section-kicker,
.hero-kicker,
.stat-value,
.brand-title {
    font-family: "KFGQPC KSA Heavy", "KFGQPC KSA Regular", Tahoma, Arial, sans-serif;
}

/* Decorative — use sparingly */
.ui-zakhrfa {
    font-family: "KFGQPC Zakhrfa", "KFGQPC KSA Heading", serif;
}

/* Quran text MUST stay on Hafs Smart */
.quran-uthmani,
[data-quran-text="uthmani"],
.bismillah-panel {
    font-family: "KFGQPC Hafs Smart", serif !important;
    direction: rtl;
    unicode-bidi: isolate;
    font-weight: normal !important;
    font-style: normal;
    line-height: 2.25;
}

/* Prevent inherited UI bold from changing Quran shaping */
.quran-uthmani strong,
.quran-uthmani b,
[data-quran-text="uthmani"] strong,
[data-quran-text="uthmani"] b {
    font-family: inherit;
    font-weight: normal;
}

/* English UI remains system/UI-friendly */
html[lang="en"] body,
html[dir="ltr"] body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
