/* ─── Font Face Declarations ───────────────────────────────────────────────────── */

/* Khmer Font - KhmerOS Battambang */
@font-face {
  font-family: 'KhmerOS Battambang';
  src: url('/fonts/KhmerOS_battambang.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* English Font - Times New Roman */
@font-face {
  font-family: 'Times New Roman';
  src: url('/fonts/Times_New_Roman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Language-based Font Classes ─────────────────────────────────────────────── */

/* English font class */
.font-en {
  font-family: 'Times New Roman', san !important;
}

/* Khmer font class (for all Khmer text including titles) */
.font-kh {
  font-family: 'KhmerOS Battambang', san !important;
}

/* Global font application based on language attribute */
[lang="en"] {
  font-family: 'Times New Roman', san;
}

[lang="kh"] {
  font-family: 'KhmerOS Battambang', san;
}

/* Apply to body */
body {
  font-family: 'Times New Roman', san;
}

body[lang="kh"] {
  font-family: 'KhmerOS Battambang', san;
}

/* Khmer headings also use KhmerOS Battambang font */
[lang="kh"] h1,
[lang="kh"] h2,
[lang="kh"] h3,
[lang="kh"] h4,
[lang="kh"] h5,
[lang="kh"] h6,
[lang="kh"] .title,
[lang="kh"] .heading {
  font-family: 'KhmerOS Battambang', san;
}

/* FontAwesome icons - all set to orange color */
.fa, .fas, .far, .fab, .fal, .fad, .fass, .fasr, .fasl, 
.fontawesome, .fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-duotone,
i[class*="fa-"], span[class*="fa-"], div[class*="fa-"] {
  color: rgb(240, 125, 0) !important;
}
