@import url("https://fonts.googleapis.com/css?family=Sarabun&display=swap");

/* override font */
body {
  font-family: "Sarabun", sans-serif !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Prompt", sans-serif !important;
}

p.news-home {
  font-family: "Prompt", sans-serif !important;
}

.faq-button {
  width: 100%;
  margin: 0 0 5% 0;
  padding: 5% 0;
  background: #FFFFFF 0% 0% no-repeat;
  border: 1px solid #707070;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: gainsboro;
}

button.faq-button,
button.faq-button h2.faq-text {
  color: #3777BC;
}

h2.faq-text {
  font-size: 25px;
}

i.faq-icon {
  font-size: 124px;
  /* display: table-cell; */
  margin: 25px;
  vertical-align: middle;
}

i.manual-icon {
  font-size: 96px;
  margin: 39px;
  vertical-align: middle;
}

.search-home {
  border-radius: 250px;
}

button.search-home {
  width: 170px;
  background-color: #3777BC;
  padding-top: 8px;
  padding-bottom: 2px;
}

p.news-home {
  text-align: center;
  font-size: 35px;
  text-decoration: underline;
  text-decoration-color: #FFCC31;
  color: #3777BC;
}

button.news-home {
  text-align: center;
  border-radius: 250px;
  background-color: #3777BC;
  border: none;
  width: 150px;
}

img.news-home {
  height: 296px;
  width: 446px
}

.crop-text-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crop-text-3,
article div.list-article-content div.entry-excerpt p {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

article.type-post {
  margin: unset;
}

article div.list-article-content h2.entry-title {
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

p.has-small-font-size {
  font-size: 18px;
}


.btn-faq {
  text-transform: uppercase;
  border-radius: 2px;
  font-size: 13px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.has-search .form-control {
  padding-left: 2.375rem;
  border-radius: 25px;
}

.has-search .form-control-feedback {
  position: absolute;
  z-index: 2;
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 1.7rem;
  text-align: center;
  pointer-events: none;
  color: #aaa;
}

.onepress-menu-login {
  float: right !important;
}

button.punsarn-login,
button.punsarn-manual {
  height: 50px;
  font-size: 17px;
  margin-top: 12px;
  background-color: #3777BC;
  width: unset;
  padding: 5px 20px;
  font-weight: 400;
  border: none;
  border-radius: 250px;
}

div.su-tabs-pane-open {
  text-align: right;
}

button.punsarn-manual {
  margin: 2%;
}

a.home,
a.post-root,
a.taxonomy {
  color: #ffffff;
}

a.home:hover,
a.post-root:hover,
a.taxonomy:hover {
  color: #333333;
}

div.ewd-ufaq-post-margin-symbol {
  float: right;
}

div.page-header {
  padding: 4% 0px !important;
}

h1.entry-title {
  font-size: 1.6rem !important;
}

.hero__content h2,
.hero__content .hero-small-text {
  margin: unset
}

.recent-blog-posts,
.site-content {
  background-color: #f5f5f5;
}

.hero-slideshow-wrapper:after {
  background-color: rgba(255, 255, 255, 0) !important;
}

#article.page,
article#post-1457,
body.single-post main.site-main {
  background-color: #ffffff;
  padding: 2em 3em;
}

aside.footer-widget {
  text-align: center;
}

div.textwidget p {
  margin-bottom: 3px
}

footer.site-footer div.footer-widgets {
  padding-top: 30px;
  padding-bottom: unset;
}

.entry-header h2.entry-title a,
div.entry-content h1.the-title,
div.ufaq-faq-title-text h4,
.card-title {
  color: #3777BC;
}

div.container h1.entry-title {
  overflow: hidden;
  width: 80%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

div.container {
  /* margin-left: 6%;
    /* margin-top: 2%;
	/* width:80% */
}

div.ufaq-faq-title-text {
  background-color: #ffffff;
}

div.ufaq-faq-body {
  background-color: #ebf8ff;
  border-radius: 20px;
}

div.ewd-ufaq-faqs {
  border: solid 1px;
  border-radius: 20px;
  padding: 5px 12px;
  background-color: #ffffff;
  border-color: gainsboro;
}

h1.entry-title,
h1.entry-title a,
h1.entry-title span.post-page {
  color: #ffffff;
}

div.card {
  border: none;
  background-color: #ffffff;
  width: 18rem;
  /**height: 26rem;**/
}

img.card-img-top {
  height: 15vw;
  object-fit: cover;
}

div.form-row span.fa-search {
  right: 1em;
  color: #3777BC;
}

/* ----------- Laptop Non-Retina Screens ----------- */
@media (min-width:769px) {
  .hidden-xl {
    display: none;
    visibility: hidden;
  }

  .hero__content .row h2.hero-large-text {
    padding-top: 5%;
    text-align: left;
  }
}

/* ----------- iPad 3, 4 and Pro 9.7" ----------- */
/* Portrait and Landscape */
@media only screen
/* and (min-device-width: 768px)  */
and (max-device-width: 768px)

/* and (-webkit-min-device-pixel-ratio: 2) */
  {
  .hidden-md {
    display: none;
    visibility: hidden;
  }
}

/* ----------- iPhone 6, 6S, 7 and 8 ----------- */
/* Portrait and Landscape */
@media only screen
/*and (min-device-width: 375px) */
and (max-device-width: 375px)

/* and (-webkit-min-device-pixel-ratio: 2) */
  {
  .hidden-xs {
    display: none;
    visibility: hidden;
  }

  .hero__content {
    margin: 5%;
  }

  .hero__content .form-row {
    text-align: center;
  }

  .hero__content div.col-sm-8 {
    padding-bottom: 10%;
  }

  form.punsarn-search-form input {
    border: solid 1px gray;
  }

  div.card {
    width: 100%;
  }

  img.card-img-top {
    height: 53vw;
    object-fit: cover;
  }
}

/* Landscape */
@media only screen
/* and (min-device-width: 375px) */
and (max-device-width: 375px)

/* and (-webkit-min-device-pixel-ratio: 2) */
and (orientation: landscape) {
  div.container {
    /* margin-left: 6%; */
    /* margin-top: 2%;  */
    width: 100%;
  }
}

#search-course-button {
  visibility: visible;
  opacity: 1;
  transform: unset;
  border-radius: 25px;
}

div.alert {
  margin: 0.5em
}


/* responsive main page */
.hero-slideshow-wrapper .row {
  margin: 0px;
}

.hero-slideshow-wrapper .row>div {
  padding: 0px;
}

.tm-toolbar ul.uk-subnav li {
  padding: 0px 20px;
}

.tm-toolbar ul.uk-subnav li a {
  padding-top: 6px;
}

#site-navigation ul.onepress-menu li a {
  padding-left: 30px;
  padding-right: 10px;
}

.tm-toolbar ul.uk-subnav>li.ls .uk-responsive-height {
  padding: 0px 0px;
}

@media (max-width: 1140px) {
  .tm-toolbar ul.uk-subnav>li {
    display: none;
  }

  .tm-toolbar ul.uk-subnav>li.topmenuimg,
  .tm-toolbar ul.uk-subnav>li.ls {
    display: block;
  }

  #site-navigation ul.onepress-menu-login {
    display: none;
  }

  #site-navigation ul.onepress-menu-mobile li.menu-item:last-child {
    display: block;
    visibility: visible;
  }

  #footer-widgets {
    padding: 0px 30px;
  }

  #footer-widgets>.container {
    width: auto;
    padding-right: 25px;
  }
}

@media (max-width: 767px) {
  .hidden-sm {
    display: none;
  }

  .punsarn-search-form {
    padding: 0px 0px 40px 0px;
    text-align: center;
  }

  .hero-content-header>h2 {
    text-align: center !important;
  }

  .punsarn-search-form #search-course-button {
    border: 0.5px solid #95c5e0;
  }
}

@media (max-width: 575px) {
  .recent-blog-posts {
    text-align: center;
  }

  .recent-blog-posts .card-deck {
    display: inline-grid;
    text-align: left;
  }

  .hero-slideshow-wrapper {
    padding: 0px 25px !important;
  }

  .recent-blog-posts>.container {
    padding: 0px;
  }

  #footer-widgets {
    padding: 0px 30px;
  }

  #nav-toggle {
    margin-right: 25px;
  }

  .site-header>.container {
    width: auto;
  }
}

.tm-toolbar .uk-container .uk-subnav li.nav-collab {
  display: none;
}

.tm-toolbar .uk-container {
  width: max-content;
}

.site-info {
  display: none;
}

.list-article-content .list-article-meta {
  display: none;
}

.breadcrumbs {
  display: none;
}

.ewd-ufaq-faq-div div.ewd-ufaq-faq-title div.ewd-ufaq-post-margin-symbol {
  float: right;
  color: #3777BC;
}

.ewd-ufaq-faq-title-text * {
  color: #3777BC;
}

div.ewd-ufaq-faq-body {
  background-color: #ebf8ff;
  border-radius: 20px;
}

.entry-content #ewd-ufaq-jquery-ajax-search .clear-field {
  display: none;
}

#ewd-ufaq-ajax-search-submit {
  display: none;
}

a {
  color: #3777BC;
}
