@import url("/css/fonts.css");

:root {
  --fc-red: #ce2228;
  --red: #ce2228;

  --fc-default: #000;
  --fc-a: #80121f;
  --fc-a-hover: #ce2228;
  --f-default: "Kanit", serif;
  --f-a: "Kanit", sans-serif;

  --header-height: 100px;
  --header-height-mobile: 54px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-default);
  font-optical-sizing: auto;
  font-weight: normal;
  font-size: 1em;
  color: var(--fc-default);
  background-color: #f7f7f7;
  min-width: 355px;
}

a {
  transition: color 0.3s, background-color 0.3s;
  text-decoration: none;
  font-family: var(--f-a);
  color: var(--fc-a);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--fc-a-hover);
}

button {
  transition: color 0.3s, background-color 0.3s;
  border: 0;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

h1,
h2,
h3 {
  font-family: var(--f-a);
}

h3 {
  line-height: 1.4em;
}

/** Under Bottom Begin */
.copyright {
  background-color: #1d1d1d;
}

.icon-social {
  width: 24px;
  height: 24px;
  display: inline-block;
  color: #000;
  padding-top: 2px;
  background-color: #fff;
}

/** Under Bottom End */

/** Main Begin */
#main {
  margin-top: var(--header-height);
  padding-bottom: 3em;
  position: relative;
  transition: 0.5s;
}

@media screen and (min-width: 992px) {
  #main {
    padding-top: 2em;
    padding-left: 3.5em;
    padding-right: 3.5em;
  }
}

/** Main End */


/** Header Footer Begin */

footer {
  background-color: #000;
  transition: 0.5s;
  color: #fff;
}

footer a {
  display: inline-block;
  color: #fff;
}

footer a:hover {
  color: #fff;
}

footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

footer ul li {
  padding: 0;
  margin-top: 0.2em;
}

footer .thailand {
  font-size: 30px;
  line-height: 24px;
  vertical-align: bottom;
  font-weight: 600;
  color: #fff;
}


#switch-lang-footer a:hover {
  color: #fff;
  background-color: #000;
}


#switch-lang-header {
  background-color: #343434;
}

header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 3;
  min-height: var(--header-height-mobile);
  transition: 0.5s;
  background-color: #fff;
  color: #000;
}

header.with-shadow {
  background: rgba(255, 255, 255, 1);
}

header.with-background {
  background: rgba(16, 21, 33, 1);
}

header ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

header ul li {
  margin: 0;
}

header .thailand {
  font-size: 36px;
  line-height: 30px;
  vertical-align: bottom;
  font-weight: 600;
  color: #000;
}

header.with-background,
header.with-background .thailand {
  color: #fff;
}

header .row-second a,
header .row-third a {
  display: inline-block;
  vertical-align: middle;
  color: #000;
}

header .row-second a.active,
header .row-second a:hover,
header .row-second button:hover,
header .row-third a:hover,
header .row-third a.active {
  color: var(--fc-a-hover);
  transition: 0.5s;
}

header .menu li {
  display: inline-block;
  margin: 0.2em 0.96em;
}

header .hm {
  vertical-align: middle;
}

header .hm .hm-sub {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.3em 1em rgba(53, 46, 44, .14);
  position: absolute;
  z-index: 3;
  width: 240px;
  right: -600px;
  top: 0;
  transition: all 0.5s ease-out;
  height: 100vh;
  text-align: left;
}

header .hm .hm-sub ul {
  padding: 0 1em 0 1em;
}

header .hm .hm-sub ul li {
  margin: 0.4em 0;
  width: 100%;
}

header .hm:hover .hm-sub {
  right: 0;
}

@media screen and (min-width: 992px) {
  header {
    background-color: unset;
    color: #fff;
  }

  header.with-shadow {
    background: rgba(16, 21, 33, 1);
  }

  header .thailand {
    color: #fff;
  }

  header .hm .hm-sub {
    box-shadow: none;
    position: relative;
    right: unset;
    width: unset;
    height: unset;
    background-color: unset;
    transition: none;
  }

  header .hm .hm-sub ul li {
    width: auto;
  }

  #switch-lang-footer a {
    color: #000;
  }

  #switch-lang-header a {
    color: #fff;
  }

  #switch-lang-header a:hover {
    color: #000;
  }

  header .row-second button,
  header .row-second a {
    display: inline-block;
    vertical-align: middle;
    padding: 0.2em 1.1em;
    color: #fff;
  }

  header .row-second a.active {
    background-color: #000;
    color: #fff;
    border-radius: 16px;
  }

  .copyright {
    padding: 0 2em;
  }
}

/** Header Footer End */

/** Slogan Begin */


/** Slogan End */

/** Button Begin */
.btn-default {
  background: none;
  padding: 0.8em 1.6em;
  border-radius: 3em;
  min-width: 14em;
  display: inline-block;
  text-align: center;
}

.btn-black {
  color: #fff;
  border: 1px solid #000;
  background: #000;
  background-color: #000;
}

.btn-red {
  color: #fff;
  border: 1px solid var(--fc-a-hover);
  background: var(--fc-a-hover);
  background-color: var(--fc-a-hover);
}

.btn-red.active,
.btn-red:focus,
.btn-red:hover {
  color: #fff;
  border: 1px solid #000;
  background: #000;
  background-color: #000;
}

/** Button End */



/** Standard Begin */
.hide {
  display: none
}

.x-small {
  font-size: .8125em;
}

.xx-small {
  font-size: .75em;
}

.xxx-small {
  font-size: .6em;
}

.fc-white,
a.fc-white:hover {
  color: #fff;
}

.fc-black,
a.fc-black:hover {
  color: #000;
}

.fc-red,
a.fc-red:hover {
  color: var(--fc-a-hover);
  transition: color 0.3s, background-color 0.3s;
}

.bg-gray {
  background-color: #e2e2e2;
  color: #000;
}

.bg-black {
  background-color: #000;
  color: #fff;
}

.fw-light2 {
  font-weight: 200;
}

/** Standard End */


/** Breadcrumb Begin */
.breadcrumb a {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #000;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
}

/** Breadcrumb End */

/* Spacing Begin */
.mw-60 {
  min-width: 60px;
  display: inline-block;
}

.mw-100 {
  min-width: 100px;
  display: inline-block;
}

.mw-120 {
  min-width: 120px;
  display: inline-block;
}

.wh-100 {
  width: 100%;
  height: 100%;
}

/* Spacing End */

/** Text Begin */
.text-truncate-2 {
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  height: 42px;
  padding-top: 1px;
}

/** Text End */


/* Pagination Begin */
.paging .pages {
  display: inline-block;
  margin-bottom: 0;
}

.paging .previous,
.paging .next {
  display: inline-block;
  margin-bottom: 0.5em;
  border: 1px solid #ddd;
}

.paging .previous a,
.paging .next a {
  padding: 0 1em;
}

.paging .pages li {
  width: 30px;
  text-align: center;
  margin-bottom: 0.5em;
}

.paging a {
  display: block;
}

.paging a.current,
.paging a:hover {
  background-color: var(--red);
  color: #fff;
}

/* Pagination End */

.published-0 {
  background-color: #ddd;
}

[data-name="login-form"] {
  max-width: 340px;
  margin: 0 auto;
}

[data-name="login-form"] h1 {
  letter-spacing: 0.08em;
}

@media screen and (min-width: 768px) {
  [data-name="login-form"] {
    max-width: 600px;
  }
}


/** From-To Begin */
[data-name="from-to"] .card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

[data-name="from-to"] i {
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

[data-name="from-to"] .line-dot {
  display: block;
  border-left: 2px dotted var(--fc-red);
  margin: 0 0.7em;
  position: absolute;
  margin-top: -1.5em;
}

[data-name="from-to"] .text-truncate-2 {
  display: inline-block;
  width: calc(100% - 40px);
  vertical-align: top;
}

/** From-To End */

input[type="number"] {
  -moz-appearance: textfield;
}
