/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

body{
    background: url(../img/BG1.webp) no-repeat;
    background-size: 100% 100%;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.text-int{
    text-indent: 2em;
}

img{
  max-width: 100%;
  max-height: 100%;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 15px;
    padding: 5px 0;
    color: #eee;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #fff;
    text-decoration: underline;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Facts ***/
.facts-overlay {
    background: rgba(0, 0, 0, .1);
    border-radius: 10px;
    cursor: pointer;
    transition: background linear .25s;
}

.facts-overlay:hover {
    background: rgba(0, 0, 0, .65);
}

/*** Footer ***/
.footer {
    color: #eee;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #eee;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #eee;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.fixedArea {
    position: sticky;
    left: 0%;
    top: 0px;
    z-index: 9;
    padding-left: 0;
    width: 100%;
}

@media (max-width: 800px) {
    .fixedArea { position: static;
    }
}

.m-p {
    font-size: 1.5em;
}

.l-p {
    font-size: 2em;
}

.xl-p {
    font-size: 3em;
}

.owl-2-style .owl-nav {
  display: none; }

.owl-2-style .owl-dots {
  text-align: center;
  position: relative;
  bottom: -30px; }
  .owl-2-style .owl-dots .owl-dot {
    display: inline-block; }
    .owl-2-style .owl-dots .owl-dot span {
      display: inline-block;
      width: 15px;
      height: 3px;
      border-radius: 0px;
      background: #cccccc;
      -webkit-transition: 0.3s all cubic-bezier(0.32, 0.71, 0.53, 0.53);
      -o-transition: 0.3s all cubic-bezier(0.32, 0.71, 0.53, 0.53);
      transition: 0.3s all cubic-bezier(0.32, 0.71, 0.53, 0.53);
      margin: 3px; }
    .owl-2-style .owl-dots .owl-dot.active span {
      background: #007bff; }
    .owl-2-style .owl-dots .owl-dot:active, .owl-2-style .owl-dots .owl-dot:focus {
      outline: none; }


/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 100px;
    max-width: 100%;
    background: #00000033;
    color: #fff;
    transition: all 0.3s;
}

@media (max-width: 800px) {
    #sidebar {
      display: none;
    }
    .wrapper { 
    display: block;
    }
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

.sidebar-bg1 {
  background: linear-gradient(to right,#151e2d,#2a344d);
}

.sidebar-bg2 {
  background: linear-gradient(to left,#151e2d,#2a344d);
}

.sidebar-bg1 , .sidebar-bg2 {
  border-right: 3px solid #0195ff;
  }

.sidebar-bg1:hover , .sidebar-bg2:hover {
  background: linear-gradient(to left,#2a346f,#2a346f);
  border-right: 3px solid #afb1b0;
}

/* viewall */
.box-article {
  background-color: #000;
  padding: 3em;
}
.article_link a {
  font-size: 2em;
  color: #fff !important;
  text-decoration: none;
  text-shadow: 3px 3px 3px #03a9f4;
}
.article_link a:hover {
  text-decoration: underline !important;
}
.news-articles {
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 23px;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.news-articles-h2 {
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 23px;
  color: #fff;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.news-articles-h2:hover {
  color: #8d8d8d;
}
.news-articles-p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.box-articles {
  color: #fff;
}

.container-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.cards {
  padding: 1em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: clamp(20rem, calc(20rem + 2vw), 22rem);
  overflow: hidden;
  box-shadow: 0 0.1rem 1rem #2196f3;
  transition: 1s box-shadow;
  border-radius: 0.5em;
  background: linear-gradient(to top,#3f51b5,#00bcd4);
}
.cards:hover {
  box-shadow: 0 0.1rem 1.2rem rgba(255, 255, 255, 1);
  transition: 0.3s ease-in-out;
}

.cards img {
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.cards:hover img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

a.cards {
  color: #666 !important;
}

a.cards:hover {
  cursor: pointer;
  text-decoration: none !important;
}

.card__image_show {
  width: auto !important;
  object-fit: cover;
}
.card__image {
  width: auto !important;
  height: 13.75em;
  object-fit: contain;
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.75rem;
}

.tag + .tag {
  margin-left: 0.5em;
}

.tag-footer {
  display: inline-flex;
  background: #0688e6;
  padding: 0.25em 0.75em;
  margin:.25em;
  border-radius: 1em;
  color: #fff;
  transition: 0.5s;
  border: 1px solid transparent;
  cursor: pointer;
}
.tag-footer:hover {
  border: 1px solid #fff;
}

.tag-red {
  background: #5d4037;
  border: 1px solid #fff;
  color: #fff;
  transition: 0.5s;
}
.tag-red:hover {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}
.link-tag {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.75rem;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  transition: 0.5s;
  text-decoration: none;
}

.link-tag:hover {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}

.card__body h4 {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.card__footer {
  display: flex;
  padding: 1rem;
  margin-top: auto;
}

/* pagi */
.pagination .active {
  font-size: 20px;
  color: #fff;
  border-bottom: 2px solid #fff;
}

.pagination a {
  font-size: 15px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 0 15px 5px;
  transition: transform 0.3s;
}

.pagination a:hover {
  color: #d1d1d1;
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
/* search */
.searchBox {
  height: 35px;
  border-radius: 40px;
}

.searchBox:hover > .searchInput {
  width: 240px;
  padding: 0 6px;
}
.searchBox:focus-within > .searchInput {
  width: 240px;
  padding: 0 6px;
}

.searchBox:hover > .searchButton {
  color: #2f3640;
}

.searchButton {
  color: white;
  height: 30px;
  width: 30px;
  padding-bottom: 0em;
  border-radius: 50%;
  background: #3a5244;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  position: absolute;
  right: 0.4em;
  top: 0.2em;
}

.searchInput {
  border: none;
  border-radius: 1em;
  background: #fff;
  outline: none;
  float: left;
  padding: 0;
  color: #000;
  font-size: 16px;
  transition: 0.4s;
  line-height: 40px;
  width: 0px;
}

@media screen and (max-width: 620px) {
  .searchBox:hover > .searchInput {
    width: 150px;
    padding: 0 6px;
  }
}

.toc-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  visibility: hidden;
  position: relative;
  justify-content: center;
}

.toc-title:after {
  visibility: visible;
  display: flex;
  justify-content: center;
  content: "สารบัญ";
}

.widget-toc {
  display: table;
  border: 1px solid #ffffff;
  background-color: #424242;
  padding-right: 1rem;
  font-size: 95%;
}
.widget-toc a {
  color: #ffffff;
  text-decoration: underline !important;
}
.widget-toc ol {
  padding-right: 0px;
  counter-reset: item;
}
.widget-toc ol li {
  display: block;
  position: relative;
}
.widget-toc ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  position: absolute;
  margin-right: 100%;
  right: 0.5rem;
  inline-size: max-content;
}

@property --num {
  syntax: "<integer>";
  initial-value: 1;
  inherits: false;
}

.countdown {
  animation: counter 5s alternate ease-in-out;
  counter-reset: num var(--num);
  font: 800 40px system-ui;
}
.countdown::after {
  content: counter(num);
}

@keyframes counter {
  from {
    --num: 100;
  }
  to {
    --num: 1;
  }
}

@property --numm {
  syntax: "<integer>";
  initial-value: 3;
  inherits: false;
}

.countdownn {
  animation: counterr 4s alternate ease-in-out;
  counter-reset: numm var(--numm);
  font: 800 40px system-ui;
}
.countdownn::after {
  content: counter(numm);
}

@keyframes counterr {
  from {
    --numm: 100;
  }
  to {
    --numm: 3;
  }
}
.p-grey{color:#9e9e9e;}

.progress {
  background: rgba(255,255,255,0.1);
  justify-content: flex-start;
  border-radius: 100px;
  align-items: center;
  position: relative;
  padding: 0 5px;
  display: flex;
  height: 40px;
  width: 100%;
}

.progress-value {
  animation: load 5s normal forwards;
  box-shadow: 0 10px 40px -10px #fff;
  border-radius: 100px;
  background: #fff;
  height: 30px;
  width: 0;
}

@keyframes load {
  0% { width: 100%; }
  100% { width: 10%; }
}

.progresss {
  background: rgba(255,255,255,0.1);
  justify-content: flex-start;
  border-radius: 100px;
  align-items: center;
  position: relative;
  padding: 0 5px;
  display: flex;
  height: 40px;
  width: 100%;
}

.progresss-value {
  animation: loadd 4s normal forwards;
  box-shadow: 0 10px 40px -10px #fff;
  border-radius: 100px;
  background: #fff;
  height: 30px;
  width: 0;
}

@keyframes loadd {
  0% { width: 100%; }
  100% { width: 30%; }
}

.x-hamburger {
    margin-right: 20px;
    margin-top: 2px;
    width: 25px;
    height: 24px;
    position: relative;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

@media (max-width:1199.98px) {
    .x-hamburger {
        margin-right: 10px
    }
}

@media (max-width:991.98px) {
    .x-hamburger {
        display: block
    }
}

@media (max-width:575.98px) {
    .x-hamburger {
        width: 20px;
        margin-top: 3px
    }
}

.x-hamburger span {
    width: 70%;
    display: block;
    position: absolute;
    height: 3px;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: .25s ease-in-out
}

.x-hamburger span:first-child {
    top: 0;
    -webkit-animation: x-hamburger-wave .4s ease-out infinite alternate;
    animation: x-hamburger-wave .4s ease-out infinite alternate
}

.x-hamburger span:first-child,
.x-hamburger span:nth-child(2) {
    -webkit-transform-origin: left center;
    transform-origin: left center
}

.x-hamburger span:nth-child(2) {
    top: 9px;
    -webkit-animation: x-hamburger-wave .4s ease-out .3s infinite alternate;
    animation: x-hamburger-wave .4s ease-out .3s infinite alternate
}

.x-hamburger span:nth-child(3) {
    top: 18px;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-animation: x-hamburger-wave .4s ease-out .6s infinite alternate;
    animation: x-hamburger-wave .4s ease-out .6s infinite alternate
}

@media (max-width:575.98px) {
    .x-hamburger span:nth-child(2) {
        top: 7px
    }

    .x-hamburger span:nth-child(3) {
        top: 14px
    }
}

.x-hamburger.-open {
    width: 25px
}

.x-hamburger.-open span {
    width: 100%;
    -webkit-animation: none;
    animation: none
}

.x-hamburger.-open span:first-child {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 0;
    left: 5px
}

.x-hamburger.-open span:nth-child(2) {
    width: 0;
    opacity: 0
}

.x-hamburger.-open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 18px;
    left: 5px
}

@media (max-width:575.98px) {
    .x-hamburger.-open {
        width: 20px
    }

    .x-hamburger.-open span:nth-child(3) {
        top: 15px
    }
}

@-webkit-keyframes x-hamburger-wave {
    0% {
        width: 70%
    }

    to {
        width: 100%
    }
}

@keyframes x-hamburger-wave {
    0% {
        width: 70%
    }

    to {
        width: 100%
    }
}

.wink-text {
    font-weight: 800;
    -webkit-filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, .5));
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, .5));
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ff9800;
    background: #fff -webkit-gradient(linear, 100% 0, 0 0, from(#fff), color-stop(.5, #ff9800), to(#fff));
    background-position: -200px top;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation-name: x-shimmer;
    animation-name: x-shimmer;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

@-webkit-keyframes x-shimmer {
    0% {
        background-position: -200px top
    }

    to {
        background-position: 200px top
    }
}


@media screen and (min-width: 992px){
.mobile-form-show{display: none;}
}
@media screen and (max-width: 991px){
.mobile-form-show{display: block;}
}

@media screen and (max-width: 991px){
  .mobile-footer-pb {
    padding-bottom: 150px;
  }
}
.mobile-wrapper {
  bottom:0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: transparent;
  position: fixed;
  z-index: 10001;
}
.mobile-navbar {
  position: relative;
  height: 100px;
  width: 400px;
  max-width: 100%;
  padding-left: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 5px;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
  background: url(../img/footer.webp);
  box-shadow: 0 10px 20px rgba(82, 74, 74, 0.3);
  border-top: 3px solid #fbd256;
}
.mobile-circle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(110px - 40px);
  margin-bottom: 0;
  height: 60px;
  width: 60px;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000f28;
  z-index: 9;
  box-shadow: 0 5px 5px rgba(255, 147, 85, 0.35);
  transition: height 0.3s;
}
.mobile-circleBackground {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(110px - 90px / 2);
  margin-bottom: 0;
  height: calc(60px + 10px);
  width: calc(60px + 10px);
  border-radius: calc(100px / 2);
  background: linear-gradient(to top,#00c7ff,#ffffff);
}
.mobile-icon-home,
.mobile-icon-settings {
  font-size: 28px;
  color: #f5f5f5;
}

.overlay {
  height: 0%;
  width: 100%;
  position: absolute;
  z-index: 10000;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: absolute;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}