@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/fonts/bai-jamjuree-light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/fonts/bai-jamjuree-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/fonts/bai-jamjuree-medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/fonts/bai-jamjuree-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/fonts/bai-jamjuree-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

body.wp-child-theme-astra-child {
    --hoin-font: "Bai Jamjuree", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --hoin-display-size: clamp(34px, 4.2vw, 60px);
    --hoin-section-title-size: clamp(29px, 3.4vw, 48px);
    --hoin-card-title-size: clamp(20px, 1.8vw, 25px);
    --hoin-heading-tracking: -.02em;
    --e-global-typography-primary-font-family: var(--hoin-font);
    --e-global-typography-secondary-font-family: var(--hoin-font);
    --e-global-typography-text-font-family: var(--hoin-font);
    --e-global-typography-accent-font-family: var(--hoin-font);
    font-family: var(--hoin-font) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

body.wp-child-theme-astra-child:lang(zh) {
    --hoin-heading-tracking: 0;
}

#page :is(h1, h2, h3, h4, h5, h6, p, .elementor-widget-text-editor,
    .elementor-widget-text-editor li, .menu-link, .ast-button,
    .elementor-button, .elementor-tab-title, .e-n-tab-title, .e-n-tab-title-text,
    .wp-block-button__link, .entry-meta, .hoin-site-footer,
    input:not([type="checkbox"], [type="radio"]), textarea, select, button) {
    font-family: var(--hoin-font) !important;
}

#content h1 {
    font-size: var(--hoin-display-size) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: var(--hoin-heading-tracking) !important;
}

#content h2 {
    font-size: var(--hoin-section-title-size) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: var(--hoin-heading-tracking) !important;
}

#content h3 {
    font-size: var(--hoin-card-title-size) !important;
    font-weight: 600 !important;
    line-height: 1.22 !important;
    letter-spacing: var(--hoin-heading-tracking) !important;
}

#content :is(h4, h5, h6) {
    font-weight: 600;
    line-height: 1.25;
}

#content .elementor-widget-text-editor {
    font-size: 16px;
    line-height: 1.6;
}

#content .hoin-banner-track :is(h1, h2) {
    font-size: var(--hoin-display-size) !important;
    line-height: 1.08 !important;
}

#content .hoin-hero-copy .elementor-widget-text-editor p {
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 300;
    line-height: 1.55;
}

#content .hoin-hero-copy:lang(zh) .elementor-widget-text-editor p {
    font-weight: 400;
}

#content .hoin-home-application-gallery [role="tabpanel"] h3 {
    font-size: clamp(22px, 2.3vw, 30px) !important;
}

#page .main-header-menu .menu-link {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

#content :is(.elementor-button, .wp-block-button__link, .hoin-refresh-button) {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

#page .hoin-site-footer h2 {
    font-weight: 600;
    letter-spacing: var(--hoin-heading-tracking);
}
