@import "/landing/css/fonts.css";
@import "/landing/css/share-bar.css";

/* Standard Begin */
html {
  scroll-behavior: smooth
}

html.mourning {
  filter: grayscale(80%);
  -webkit-filter: grayscale(80%);
}

body {
  font-family: Gotham, Tahoma, sans-serif;
  font-weight: 400;
  color: #3d3935;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body[lang="th"] {
  font-family: 'DB Helvethaica X', Tahoma, sans-serif;
  font-weight: 300;
}

a {
  display: inline-block;
  color: #26b9ec;
  transition: 0.5s;
}

a:hover {
  color: #0e799e;
  text-decoration: none;
}

img {
  display: inline-block;
  vertical-align: middle;
}

input,
select,
textarea,
.small {
  font-weight: 300;
}

form a {
  font-weight: 500;
}

form label {
  font-size: .92rem;
}

form option {
  color: #3d3935
}

iframe {
  border: 0
}

.container-fluid {
  padding-left: 0;
  padding-right: 0
}

.container-fluid .row {
  margin-left: 0;
  margin-right: 0
}

/* Standard End */


/* Header Begin */
header {
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 2;
  margin-top: 2.5rem;
  transition: 0.5s;
}

header .hamburder {
  display: none;
}

header.freeze {
  margin-top: 0;
  background-color: rgba(0, 0, 0, .8);
  transition: 0.5s;
}

header>.row {
  padding: 0.6rem 0;
  display: flex;
  background-color: hsla(0, 0%, 4%, .5);
}

header .menu li {
  display: inline-flex;
  align-items: center;
  padding: 0 0.3rem;
}

header .menu a {
  vertical-align: top;
  color: #fff;
  font-weight: bold;
  padding: 0.2rem 1.2rem;
}

[lang="th"] header .menu a {
  font-weight: 400;
}


header .menu a:hover {
  color: #00bae2;
  text-decoration: none;
  transition: 1s;
}

header .menu a.active {
  color: #00bae2;
}

header .language a {
  display: inline-block;
  background-color: #3d3935;
  color: #807f7f;
  border-radius: 50%;
  font-size: .76rem;
  padding: .6rem .8rem;
  line-height: 1.4rem;
  font-weight: 500;
}

header .language a:hover {
  color: #b3b2b2;
  text-decoration: none;
}

header .language a.active {
  color: #fff;
}

header .language a:hover.active {
  color: #26b9ec;
}

header .switch .row .share,
header .switch .row .language {
  padding: 0;
  margin: 0;
}

@media (max-width: 1199px) {
  header {
    margin-top: 1rem;
  }

  header h1 {
    font-size: 1rem;
  }

  header .menu a {
    font-size: .92rem;
  }
}

/** Display Hamburger Menu */
@media (max-width: 991px) {
  header {
    margin-top: 0;
    background-color: rgba(0, 0, 0, .9);
    transition: 0.5s;
    text-align: right;
    width: 100%;
    height: 60px;
  }

  header .hamburger {
    display: block;
    z-index: 1;
    display: inline-block;
    font-size: 1.5em;
  }

  header>.hamburger {
    position: absolute;
    display: flex;
    width: 100%;
  }

  header>.menu-list {
    position: absolute;
    top: 50px;
    display: none;
    width: 50%;
    right: 0;
  }

  header .menu.nav {
    display: block;
    max-width: unset;
    flex: unset;
    padding: 0 15px;
    background-color: rgba(0, 0, 0, .8);
  }

  header .menu.nav .nav {
    display: block;
  }

  header .menu.nav .nav .nav-item {
    display: block;
    max-width: unset;
    border-left: 0;
    border-bottom: 1px solid #fff;
  }

  header .menu a {
    display: block;
    margin-top: 0;
    min-height: unset;
    padding: 1em;
  }

  header .switch {
    background-color: rgba(0, 0, 0, .8);
    display: block;
    max-width: unset;
    width: 100%;
    padding-bottom: 1em;
    flex: unset;
  }

  header .switch .row,
  header .switch .row .share,
  header .switch .row .language {
    display: block;
    max-width: unset;
    width: 100%;
    text-align: left;
    padding: 0.5em 0 0 0;
  }

  header .switch .language a {
    margin-bottom: 0.5em;
  }

  #share-bar .sharing-btn,
  #share-bar .sharing-providers {
    position: relative;
    visibility: visible;
    display: inline-block;
    width: auto;
    top: unset;
    vertical-align: top;
    margin-top: 0.5em;
  }

  #share-bar .sharing-btn>li,
  #share-bar .sharing-providers>li {
    text-align: left;
    display: inline-block;
    margin-left: 1em;
    margin-top: 0.5em;
  }

}

@media (max-width: 575px) {
  header .menu-list {
    width: 80%;
  }

  header .menu a {
    padding: 1em 0.5em 1em 0;
  }

  #share-bar .sharing-btn {
    display: none
  }

  #share-bar .sharing-providers>li {
    margin-left: 0;
  }

  #share-bar .sharing-providers>li:not(:first-child) {
    margin-left: 0.2em;
  }

  header h1 {
    font-size: .84em;
  }
}

/* Header End */

#swipper-top img {
  width: 100%;
  height: auto;
}

#swipper-top .swiper-pagination-bullet-active {
  background-color: #26b9ec;
}

/* Main Begin */
#main {
  position: relative;
}

[lang="th"] #main {
  letter-spacing: .05rem;
  font-size: .92rem;
}

section[data-name]:not(:first-child) {
  padding: 4em 0;
}

section[data-name]:not(:first-child) {
  opacity: 0.2;
}

section[data-name] h2 {
  margin: 1.5rem 0;
  font-weight: bold;
  color: #000;
}

section[data-name] iframe {
  border: 0;
}

section[data-name] .nav {
  justify-content: center;
  margin-bottom: 4%;
}

section[data-name] .nav a {
  color: #000;
  border-radius: unset;
  border-bottom: 4px solid #dbdbdc;
  margin: 0 1.5em;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  min-width: 100px;
  display: inline-block;
}

section[data-name] .nav a:not(.active):hover {
  color: #817970;
  border-bottom: 4px solid #bdb9b4;
  transition: 0.5s;
}

section[data-name] .nav a.active {
  color: #000;
  background-color: unset;
  font-weight: bold;
  border-bottom-color: #26b9ec;
}

section[data-name] .nav a:hover.active {
  border-bottom-color: #26b9ec;
}

@media (max-width: 575px) {
  section[data-name] {
    padding: 1em 0;
  }
}

/* Main End */

#project-info img {
  width: 100%;
  height: auto;
}

#project-info .tab-content {
  color: #0a0a0a;
}

#project-info .tab-content .row:not(.font-weight-bold) {
  margin-top: 0.4em;
  font-size: .96em;
}

#project-info .tab-content .row.font-weight-bold:not(:first-child) {
  margin-top: 1em !important;
}

/* Gallery */
#gallery h2 {
  color: #fff;
}

#gallery .row {
  max-height: 320px;
}

#gallery .row [class^=col] {
  overflow: hidden;
  padding: 0;
  text-align: center;
}

#gallery .row [class^=col] a {
  display: inline-block;
  text-align: center;
  line-height: 320px;
  height: 320px;
  overflow: hidden;
  vertical-align: top;
}

#gallery .row [class^=col] a img {
  transition: transform .5s ease;
  margin: -100%;
  vertical-align: middle;
  position: relative;
  width: unset;
  height: 320px;
}

#gallery .row [class^=col] a:hover img {
  transform: scale(1.2);
}

#gallery .row .col-8 a img {
  width: 100%;
  height: unset;
}

#gallery .row [class^=col] a:hover:before {
  opacity: 1;
  background-color: rgba(0, 0, 0, .4);
}

@media (max-width: 767px) {
  #gallery .row {
    height: 160px;
  }

  #gallery .row [class^=col] a {
    line-height: 160px;
    height: 160px;
  }

  #gallery .row [class^=col] a img {
    height: 160px;
  }
}

@media (max-width: 575px) {
  #gallery .row {
    height: 120px;
  }

  #gallery .row [class^=col] a {
    line-height: 120px;
    height: 120px;
  }

  #gallery .row [class^=col] a img {
    height: 120px;
  }
}

/* Form */
#register {
  text-align: center;
}

form {
  color: #fff;
  border-radius: 16px;
  padding: 1.5em;
  font-weight: 300;
}

form .hint {
  color: #bbb;
}

form .row [class^=col]:first-child {
  margin-top: 0.1em;
}

form .row [class^=col]:last-child {
  padding: 0;
}

form .row label {
  width: 90%;
}

form .row input[type="checkbox"] {
  vertical-align: top;
  margin: .3em .6em 0 0;
}

form input {
  background: transparent;
  border-color: transparent;
  border-bottom-color: hsla(0, 0%, 100%, .65);
}

form input[type="text"],
form input[type="email"],
form select {
  display: block;
  width: 100%;
  padding: 0 0.2em;
  border: 0;
  border-bottom: 1px solid #cacaca;
  background-color: transparent;
  color: #fff;
}

form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
  background-repeat: no-repeat;
  background-origin: content-box;
  background-position: right 2px center;
  background-size: 9px 6px;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus {
  outline: none !important;
  transition: 0.5s;
  border-bottom: 1px solid #26b9ec;
}

form button {
  border: 0;
  background: #26b9ec;
  padding: 0.4em 2.5em;
  color: #fff;
  transition: 0.5s;
}

form button:hover {
  color: #0e799e;
}


/* Footer Begin */
footer {
  color: #fff;
  font-size: 1.2em;
  padding-bottom: 1em;
}

[lang="th"] footer {
  letter-spacing: .05em;
}

footer .gototop {
  margin-top: -20px;
  z-index: 1;
}

footer .gototop a {
  background-color: #fff;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 10px 0 rgb(0 0 0 / 50%);
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 50%);
}

footer .gototop a span {
  margin: 10px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 1em;
  background-color: #fff;
  color: #26b9ec;
  border-radius: 50%;
  border: 1px solid #26b9ec;
  transition: 0.5s;
}

footer .gototop a:hover span {
  color: #1779ba;
}

footer .fa-arrow-up::before {
  display: inline-block;
  vertical-align: top;
  margin-top: -2px;
}

footer .follow ul li a {
  margin: 6px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #fff;
  color: #26b9ec;
  border-radius: 50%;
  transition: 0.5s;
}

footer .follow ul li a:hover {
  color: #1779ba;
}

footer .copy {
  font-size: .6em;
}

footer .tgtm-image-footer img {
  width: auto;
}

@media (max-width: 575px) {
  footer .logo img {
    width: 100%;
    height: auto;
  }
}


/* Sticky */
#fill-register-form {
  z-index: 1;
  right: 0;
  bottom: 13px;
  background-color: #26b9ec;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

#fill-register-form img {
  width: 18px;
  height: auto;
}

#fill-register-form a {
  color: #fff;
  font-weight: 500;
  font-size: .84em;
  padding: 0.2em 0 0.2em 0.5em;
}

/* Footer End */

/* Unit Recommend */
#unit-recommend .swiper-slide a img {
  width: 100%;
  height: auto;
}

#unit-recommend .swiper-slide .full-screen {
  background-color: rgba(0, 0, 0, .5);
  color: #fff;
}

#unit-recommend .swiper-button-next,
#unit-recommend .swiper-button-prev {
  top: unset;
  bottom: 0;
  color: #26b9ec;
}

#unit-recommend .swiper-button-next:after,
#unit-recommend .swiper-button-prev:after {
  font-size: 30px;
}

#unit-recommend .swiper-pagination-bullet-active {
  background-color: #26b9ec;
}

#unit-recommend .unit-info {
  font-family: Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
  margin-bottom: 2.5em;
}

#unit-recommend .unit-info h3 {
  font-size: 1.3em;
}

#unit-recommend .unit-info p:last-child a {
  display: block;
  font-weight: 500;
  border: 1px solid #26b9ec;
  background-color: #fff;
  color: #26b9ec;
  text-align: center;
  padding: 0.4em 0;
  font-size: 1.2em;
  margin-top: 1.2em;
}

#unit-recommend .unit-info p:last-child a:hover {
  color: #fff;
  background-color: #26b9ec;
}

/** Captcha */
.grecaptcha-badge {
  display: none
}

/** Cookie */
#cmpFloatButton {
  left: 5px !important;
  right: unset !important
}

#cmpFloatButton svg {
  width: 60px;
  height: 60px
}

/** Disclaimer Begin */
.i-disclaimer {
  display: inline-block;
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  background-color: #fff;
  color: #9da5c3;
  text-align: center;
  font-size: .6em;
  border-radius: 50%;
  right: 16px;
  top: 16px;
  cursor: pointer;
}

.i-disclaimer.left {
  right: unset;
  left: 16px;
}

.custom-disclaimer {
  --bs-tooltip-bg: #000;
  --bs-tooltip-color: #fff;
  --bs-tooltip-max-width: 300px;
  --bs-tooltip-font-size: .72em;
}

.with-disclaimer {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/** Disclaimer End */
