@font-face {
    font-family: "Mitr Header";
    src: url("/assets/fonts/mitr-header-thai.woff2?v=2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
    font-family: "Mitr Header";
    src: url("/assets/fonts/mitr-header-latin.woff2?v=2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}

html:has(> body > .school-site-layout) { scrollbar-gutter: stable; }

.tg-header__style-three {
    --home-heading: #22364d;
    --home-gold: #f6a623;
    --home-surface: #fff;
    background-color: #fff;
    --home-accent: #e8281a;
    --home-accent-dark: #c01e12;
    --tg-theme-primary: var(--home-accent-dark);
    --tg-theme-secondary: var(--home-heading);
    --tg-common-color-blue: var(--home-accent-dark);
    --tg-common-color-yellow: var(--home-gold);
    --tg-heading-color: var(--home-heading);
    --tg-body-color: #5d524a;
}

.tg-header__top {
    background: #111;
}
.tg-header__top-info :is(li, a, i) {
    color: #fff;
}
.tg-header__top-info li :is(i, a:hover) {
    color: var(--home-gold);
}
.tg-header__style-three > :is(.tg-header__top, #sticky-header) > .custom-container {
    width: calc(100% - 2 * var(--home-section-gutter, 16px));
    max-width: var(--home-section-width, 1110px);
    margin-inline: auto;
    padding-inline: 0;
}
.tg-header__top > .custom-container > .row {
    --bs-gutter-x: 0;
}
.tg-header__top .row > :has(> .tg-header__top-social) {
    display: none;
}
.tg-header__top .row > :has(> .tg-header__top-info) {
    width: 100%;
}
.tg-header__top-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 15px;
}
.tg-header__top-info li:last-child {
    display: flex;
}
@media (max-width: 767.98px) {
    .tg-header__top-info {
        font-size: 13px;
        line-height: 1.45;
    }
    .tg-header__top-info li:first-child {
        flex-basis: 100%;
    }
    .tg-header__top-info li i {
        font-size: 17px;
    }
}
#form1 > section:has(.tg-header__style-three #sticky-header) {
    background: #fff;
}
.tg-header__style-three #sticky-header,
.tg-header__style-three #sticky-header.sticky-menu {
    background: var(--home-surface);
    padding-block: 0;
    border-bottom: 1px solid #d9e5f4;
    box-shadow: 0 4px 18px rgb(49 28 17 / 8%);
}
.tg-header__style-three #sticky-header.sticky-menu {
    position: relative;
    animation: none;
    pointer-events: auto;
    box-shadow: 0 4px 18px rgb(49 28 17 / 12%);
}
.tg-header__style-three #sticky-header > .custom-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.tg-header__style-three #sticky-header .logo {
    padding: 0;
    background: transparent;
}
.tg-header__style-three #sticky-header .logo img.kangpla-header-logo,
.tg-header__style-three .tgmobile__menu .nav-logo img.kangpla-header-logo {
    display: block;
    width: clamp(170px, 17vw, 226px);
    max-width: 100%;
    height: auto;
}
.tg-header__style-three #sticky-header .mobile-nav-toggler {
    color: var(--home-heading);
}
.tg-header__style-three button.mobile-nav-toggler,
#school-mobile-menu button.close-btn {
    border: 0;
    background: transparent;
}
.tg-header__style-three button.mobile-nav-toggler {
    padding: 0;
}
#school-mobile-menu button.dropdown-btn {
    padding: 0;
    border: 0;
}
#school-mobile-menu,
#school-mobile-menu .close-btn,
#school-mobile-menu .dropdown-btn,
#school-mobile-menu .dropdown-btn .plus-line,
#school-mobile-menu .dropdown-btn .plus-line::after,
#school-mobile-menu + .tgmobile__menu-backdrop {
    transition: none;
}
.tg-header__style-three button.mobile-nav-toggler:focus-visible,
#school-mobile-menu :is(button, a[role="button"]):focus-visible {
    outline: 2px solid var(--home-accent-dark);
    outline-offset: 3px;
}
.tg-header__style-three #sticky-header .tgmenu__categories {
    display: none !important;
}
.tg-header__style-three #sticky-header .tgmenu__action > ul li.header-btn {
    display: none;
}

.tg-header__style-three .navigation li > a {
    font-family: "Mitr Header", Tahoma, sans-serif;
    font-weight: 400;
}
.tg-header__style-three .navigation a[aria-current] {
    color: var(--home-accent-dark);
}

@media (min-width: 1200px) {
    .tg-header__style-three #sticky-header .tgmenu__nav {
        gap: 16px;
        align-items: center;
    }
    .tg-header__style-three #sticky-header .tgmenu__main-menu {
        flex: 1 1 auto;
        justify-content: center;
    }
    .tg-header__style-three #sticky-header .tgmenu__main-menu > .navigation {
        margin: 0;
    }
    .tg-header__style-three .tgmenu__main-menu :is(.sub-menu, .sub-menu a) { transition: none; }
    .tg-header__style-three .tgmenu__main-menu li:focus-within > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .tg-header__style-three .tgmenu__main-menu .sub-menu li:hover > a { transform: none; }
    .tg-header__style-three #sticky-header .tgmenu__main-menu > .navigation > li > a {
        color: var(--home-heading);
        font-size: 14px;
        padding-inline: 8px;
        transition: none;
    }
    .tg-header__style-three #sticky-header .tgmenu__main-menu > .navigation > li > a:is(:hover, :focus-visible, [aria-current]),
    .tg-header__style-three #sticky-header .tgmenu__main-menu > .navigation > li:has(a[aria-current]) > a {
        color: var(--home-accent-dark);
        text-decoration: underline;
        text-decoration-color: var(--home-accent);
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
    }
}

#form1 .footer-bg {
    --tg-common-color-dark: #1a1a1a;
    background-color: #1a1a1a;
}
#form1 .footer-bg .copyright__wrapper {
    border-top-color: rgb(255 255 255 / 15%);
}
#form1 .footer-bg > .footer__top-wrap {
    display: none;
}
#form1 .footer-bg .copyright__wrapper {
    padding-block: 18px;
}
#form1 .footer-bg .copyright__wrapper .row {
    justify-content: center;
    row-gap: 6px;
    text-align: center;
}
#form1 .footer-bg .copyright__wrapper .row > :has(> :is(.copyright__text, .copyright__menu)) {
    width: 100%;
}
#form1 .footer-bg .copyright__wrapper :is(.copyright__text p, .copyright__menu a) {
    font-size: 13px;
    color: #b8aca4;
}
#form1 .footer-bg .copyright__wrapper .copyright__text p {
    margin: 0;
}
#form1 .footer-bg .copyright__wrapper .copyright__menu ul {
    gap: 4px 18px;
    align-items: center;
}
#form1 .footer-bg .copyright__wrapper .copyright__menu li::before {
    content: none;
}
#form1 .footer-bg .copyright__wrapper .copyright__menu a:is(:hover, :focus-visible) {
    color: #f6a623;
}
@media (min-width: 992px) {
    #form1 .footer-bg .copyright__wrapper .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    #form1 .footer-bg .copyright__wrapper .row > :has(> .copyright__text) {
        grid-column: 2;
    }

    #form1 .footer-bg .copyright__wrapper .row > :has(> .copyright__menu) {
        grid-column: 3;
    }
}
#form1 .footer-bg .copyright__wrapper .copyright__menu a[href="/login"] {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ff584c;
    border-radius: 6px;
    color: #fff;
}
#form1 .footer-bg .copyright__wrapper .copyright__menu a[href="/login"]:is(:hover, :focus-visible) {
    background: #b42119;
    color: #fff;
}
