@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
  height: 100%;
}

:root {
  --maincolorline: #212529;
}

a {
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Kanit", sans-serif, "bsf-sans";
}

header {
  flex: 0 0 auto;
  background: #104b98;
  justify-content: center;
  flex: 0 0 auto;
}

.main-content {
  background: #f5f5f5;
  /* padding: 2rem; */
  flex: 1 0 auto;
}

footer {
  flex: 0 0 auto;
  color: #fff;
  background: #104b98;
}

.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  color: rgb(255 255 255 / 90%);
}

.h-loan {
  color: #104b98;
  font-size: large;
}

.h-loan_3 {
  color: #104b98;
}

.h-loan_sub {
  color: #104b98;
  font-size: large;
}

.h-loan_main {
  color: #104b98;
}

.logo {
  /* width: 40px; */
}

.hr-confirm {
  width: 10%;
  height: 10px;
  background-color: #58b573;
  border: 0;
  margin-top: -13px;
  margin-bottom: 5px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  display: block;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  font-size: var(--bs-nav-link-font-size);
  font-weight: var(--bs-nav-link-font-weight);
  color: rgb(255 255 255 / 90%);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-link:hover {
  color: #cccc;
}

.logo-sm {
}

.menu {
  width: 100%;

  height: auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.logo {
  height: auto;
  /* width: 220px; */
  width: 200px;
}

.bd-navbar {
  background-color: transparent;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.form-year {
  border-radius: 32px;
  font-size: small;
  font-weight: 300;
}

.form-year option {
  background-color: #007566;
  color: #fff;
}

/* .form-year option{
  background-color: #63c5b8;
  color: #fff;
} */
.list-user {
  /* border-top: 1px  solid red;
  border-left: 0px;
  border-bottom: 1px solid red; */
}

.text-logo {
  font-size: small;
  font-weight: 300;
}

.btn-menu:hover {
  width: 40px;
  border-radius: 100px;
  background: #589a8d;
}

.navbar-brand {
  margin-left: 10px;
  margin-right: 10px;
}

.text-footer {
  font-weight: 200;
}

.text-logo-main-menu {
  font-size: inherit;
  font-weight: 400;
  margin: 0px;
  font-size: 16px;
}

.text-logo-sub-menu {
  font-size: small;
  font-weight: 300;
  margin: 0px;
}

.text-login {
  font-weight: 400;
  color: #fff;
  margin-top: 10px;
  font-size: larger;
}

.icon-login {
  margin-right: 5px;
}

.text-login:hover {
  font-weight: 400;
  color: #fff;
  margin-top: 10px;
  font-size: larger;
}

.text-logo-main {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.text-logo-sub {
  font-size: 17px;
  font-weight: 200;
  text-align: center;
}

.box-select {
  margin-top: 10px;
  width: 100%;
}

.box-logo {
  padding: 10px;
}

.box-text-logo {
  padding: 11px;
}

.logo-main {
  width: 15%;
  float: right;
}

.btn-menu {
  width: 40px;
  border-radius: 100px;
  background: #265c4b;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}

.offcanvas {
  max-width: 80%;
}

.link-menu {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

.link-menu:hover {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

.icon-menu {
  color: #ffff;
}

.box-menu {
  padding: 10px;
  background-color: #007566;
  /* border-top: 1px solid #007566; */
  border-bottom: 1px solid #007566;
}

.box-menu:hover {
  padding: 10px;
  background-color: #8fc1b5;
  /* border-top: 1px solid #007566; */
  border-bottom: 1px solid #8fc1b5;
}

.text-h-category {
  font-size: 12px;
  font-weight: 400;
  color: #265c4b;
  margin: 0px;
}

.main-box {
  background: linear-gradient(357deg, #002761, #71afff, #fcfafa);
  height: auto;
  width: 100%;
}

.text-h-category:hover {
  font-size: 12px;
  font-weight: 400;
  color: #007566;
  margin: 0px;
}

.box_zoom {
  height: auto;
  transition: all ease-in-out 0.9s;
}

.box_zoom:hover {
  transform: scale(0.9);
}

.banner {
  width: 65px;
  height: 65px;
}

.text-sub {
  color: #414141cc;
}

.bg-login {
  background-image: url(../images/bg_green.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  max-height: auto;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #007566;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

#myBtn:hover {
  display: none;
  position: fixed;
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #8fc1b5;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

.carousel-item {
  transition: transform 1s ease-in-out;
  /* นุ่มขึ้น */
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 30px;
}

.marquee-text {
  position: absolute;
  white-space: nowrap;
  animation: marquee-left 60s linear infinite;
  font-size: 18px;
  color: #000;
}
.marquee-text:hover {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    right: -100%;
  }

  to {
    right: 100%;
  }
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.slider-track img {
  height: 300px;
  margin-right: 20px;
  border-radius: 12px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (min-width: 375px) {
  .text-logo-main {
    font-size: 23px;
    font-weight: 500;
    color: #fff;
    text-align: center;
  }

  .text-logo-main-menu {
    font-size: inherit;
    font-weight: 400;
    margin: 0px;
    font-size: 18px;
  }
}

@media (min-width: 425px) {
  .text-h-category {
    font-size: 11px !important;
    font-weight: 500;
    color: #007566;
    margin: 0px;
  }

  .banner {
    width: 75px !important;
    height: 75px !important;
  }

  .text-logo-main-menu {
    font-size: inherit;
    font-weight: 400;
    margin: 0px;
    font-size: 20px;
  }

  .text-logo-main {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .text-h-category {
    font-size: 13px !important;
  }

  .right_but_banner {
    font-size: larger;
    color: #ffffffcc;
  }

  .left_but_banner {
    font-size: larger;
    color: #fefefecc;
  }

  .h-loan {
    font-size: smaller !important;
  }

  .text-logo-main-menu {
    font-size: inherit;
    font-weight: 400;
    margin: 0px;
    font-size: 18px;
  }

  .offcanvas {
    max-width: 40% !important;
  }

  .text-logo-main {
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    text-align: left;
  }

  .text-login {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .text-login:hover {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .text-logo-sub {
    font-size: 11px;
    font-weight: 200;
    text-align: left;
  }

  .logo-main {
    width: 41%;
    margin-right: auto;
    margin-left: auto;
    float: right;
  }
}

@media (min-width: 1024px) {
  .h-loan {
    font-size: larger !important;
  }

  .text-h-category {
    font-size: 16px !important;
  }

  .offcanvas {
    max-width: 30% !important;
  }

  .text-login {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .text-login:hover {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .logo-main {
    width: 35%;
    margin-right: auto;
    margin-left: auto;
    float: right;
  }

  .box-text-logo {
    padding: 0px;
  }

  .text-logo-main {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
  }

  .text-logo-sub {
    font-size: 12px;
    font-weight: 200;
  }
}

@media (min-width: 1200px) {
  .h-loan {
    font-size: x-large !important;
  }

  .offcanvas {
    max-width: 25% !important;
  }

  .text-logo-main-menu {
    font-size: inherit;
    font-weight: 400;
    margin: 0px;
    font-size: 20px;
  }

  .text-login {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .text-login:hover {
    margin: 0px;
    color: #fff;
    padding: 0px;
  }

  .logo-main {
    width: 35%;
    margin-right: auto;
    margin-left: auto;
    float: none;
  }

  .box-logo {
    padding: 0px;
    text-align: end;
  }

  .box-text-logo {
    padding: 0px;
  }

  .text-logo-main {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
  }

  .text-logo-sub {
    font-size: 14px;
    font-weight: 200;
  }
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.nav-item {
  margin-top: auto;
  margin-bottom: auto;
}

@keyframes marquee-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.animation_banner {
  animation: marquee-left 15s linear infinite;
}
.animation_banner:hover {
  animation-play-state: paused;
}

.text-custom-link {
  color: #003b81;
}

a.btn-custom-link {
  background: #e1e1e1;
  color: #000;
  border: solid 1px #cacaca;
  border-radius: 0.25rem;
}

a.btn-custom-link:hover {
  border: solid 1px #00408e;
  background-color: #0a58b8;
  color: #fff;
}
