:root {
  --primary-color: #644421;
  /* --secondary-color: #aa5f14; */
  --white-color: #fff;
  --black-color: #000;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
}
p {
  font-family: "Open Sans", sans-serif;
}
span {
  font-family: "Open Sans", sans-serif;
}

a {
  text-decoration: none !important;
  color: var(--white-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

#header {
  height: 85px;
}
.navbar {
  background-image: linear-gradient(#644421, rgb(71 36 0));
}

.navbar-brand {
  background: rgb(170, 95, 20);
  padding: 0 32px;
}

.navbar-brand img {
  width: 82px;
  height: 85px;
}
.nav-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem;
}

.nav-item a.active {
  color: #d7dfb3 !important;
}

.nav-item a:hover {
  color: #d7dfb3 !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -50%;
  padding: 20px;
  width: 260px;
  z-index: 1;
  border: 1px solid var(--primary-color);
}
.nav-item.dropdown .dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 30%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white-color);
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
  padding: 12px 16px;
  color: #666666d9 !important;
}

#main {
  margin-top: 85px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--white-color);
  border-radius: 50%;
  margin: 10% 5%;
  background-color: var(--white-color);
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  top: 25%;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

/* Introduce */
#introduce h6,
#footer h6 {
  margin-bottom: 30px;
  color: rgb(170, 95, 20);
  text-transform: none;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0;
  position: relative;
}

#introduce h6::before,
#footer h6::before {
  position: absolute;
  bottom: -12px;
  height: 3px;
  left: 0;
  width: 32px;
  content: "";
  z-index: 3;
  background: #fdce4b;
}

#introduce .introduce-title {
  font-size: 35px;
  line-height: 1.23em;
  font-weight: 400;
  width: 70%;
  color: #4a2703;
}

#introduce .introduce-description {
  font-weight: 400;
  color: #333333;
  font-size: 95%;
  text-align: justify;
}

.custom-btn {
  border: 1px solid var(--primary-color);
  padding: 10px 30px;
  border-radius: 0;
  color: var(--primary-color) !important;
}
.custom-btn:hover {
  background: #fff7e0 !important;
  color: #aa5f13 !important;
  border: 1px solid #fff7e0 !important;
}

/* Service */
#services h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #4a2703;
  margin: 0;
  padding: 0px 30px 60px 0;
}

#services .card {
  border: 0;
  cursor: pointer;
}

#services .card img {
  width: 197px;
  height: 197px;
  border-radius: 99%;
  border: 1px solid #f7dfb3;
  padding: 5px;
}

#services .card .card-title {
  line-height: 27px;
  font-weight: bold;
  color: rgb(170, 95, 20);
  text-align: center;
  font-style: normal;
  font-weight: 400;
}

#services .card .card-text {
  color: #494949;
  font-size: 95%;
  text-align: justify;
}
#services .card:hover .card-text {
  color: #eea616;
}

/* Customer exp */

.customer-experience h2 {
  font-size: 2rem;
  color: #6c4f2b;
}

.nav-pills .nav-link {
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0;
  background: #e9e9e9;
  padding: 8px 20px;
  border-radius: 20px;
  color: #512f09;
}

.nav-pills .nav-link:hover {
  background-color: #fff7e0;
}

.nav-pills .nav-link.active {
  background-color: #aa5f13;
  color: white;
}

.customer-experience .img-fluid {
  border: 1px solid rgb(199, 177, 177);
}

/* Exercise */

.slick-carousel {
  position: relative;
  max-width: 100%;
}

.slick-carousel .carousel-item {
  opacity: 0.5;
  margin: 0 15px;
  cursor: pointer;
}

.slick-carousel .carousel-item.slick-current.slick-active {
  opacity: 1;
}

.slick-carousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  max-height: 520px;
}

.slick-carousel .carousel-caption {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  text-align: left;
  background: linear-gradient(
    to top,
    #3e1d00 0%,
    rgba(12, 38, 53, 0) 100%
  ) !important;
  padding: 50px 25px 25px 25px;
  opacity: 0;
  transition: all 0.3s linear;
}

.slick-carousel .carousel-caption h5 {
  font-size: 27px;
  color: var(--white-color);
}
.slick-carousel .carousel-caption p {
  font-size: 15px;
  color: #f1f1f1;
}

.slick-carousel .carousel-item:hover .carousel-caption {
  opacity: 1;
}

.exercise .carousel-control-prev,
.exercise .carousel-control-next {
  opacity: 0;
  top: 15%;
  border: 1px solid var(--primary-color);
}
.exercise:hover .carousel-control-prev,
.exercise:hover .carousel-control-next {
  opacity: 1;
}
/* Customize the dots */
.slick-dots {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Style individual dots */
.slick-dots li button {
  background-color: #ccc;
  border: none;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slick-dots li button:before {
  display: none;
}

.slick-dots li.slick-active button {
  background-color: #d88e4c;
  transform: scale(1.2);
}

.slick-dots li button:hover {
  background-color: #b28a53;
}

/* News */
.news h3 {
  border-bottom: 2px solid rgb(240 185 74);
  font-size: 30px;
  padding: 0 0 8px;
}

.news .card {
  border: none;
  cursor: pointer;
}

.news .card-img {
  border-radius: 0;
}

.news .card .card-body {
  padding: 10px 0 20px 20px;
}

.news .card .card-title {
  line-height: 1.3;
  margin-bottom: 0.1em;
  margin-top: 0.1em;
  font-size: 1rem;
  font-weight: bold;
  color: #4a2703;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.5rem;
}

.news .card .card-title:hover {
  color: #644421;
}

.news .card .card-text {
  font-size: 14px;
  color: #494949;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 4rem;
}

/* footer */
.footer h2 {
  font-size: 35px;
  line-height: 1.23em;
  font-weight: 400;
  font-style: normal;
  color: #4a2703;
  margin-bottom: 1rem;
}
.footer p {
  font-size: 1rem;
  color: #333333;
}

.info {
  padding: 4rem;
}
.contact {
  padding-top: 2rem;
}

.contact li {
  font-size: 1rem;
  padding-bottom: 1rem;
}
.contact i {
  font-size: 1rem;
  color: rgb(170, 95, 20);
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #3b5998;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  margin-right: 6px;
}

.social-icons a:hover {
  opacity: 0.8;
}

.social-icons .facebook {
  background-color: #3b5998;
}

.social-icons .twitter {
  background-color: #55acee;
}

.social-icons .instagram {
  background-color: #e4405f;
}

.social-icons .pinterest {
  background-color: #bd081c;
}

.contact-form {
  background-image: url("/assets/images/footer-bg.jpg");
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: bottom;
  padding: 4rem;
}

.contact-form form {
  background: white;
  padding: 50px;
  box-shadow: 2px 2px 30px #0000001a;
  border-radius: 10px;
}

.contact-form form h3 {
  font-size: 25px;
  font-weight: normal;
  letter-spacing: 0;
  color: #4a2703;
}

.contact-form form input,
.contact-form form textarea {
  height: 45px;
  border: none;
  box-shadow: none;
  border-bottom: 2px solid #ffc10740;
  padding: 5px 10px;
  font-size: 15px;
  background: #fffbee;
  color: #aa5f13;
  border-radius: 5px;
}
.contact-form form textarea {
  height: auto;
}

.contact-form .btn {
  margin: 0;
  text-transform: none;
  color: white;
  font-weight: normal;
  padding: 8px 30px;
  background: #fffbee;
  color: #aa5f13;
  border-bottom: 2px solid #ffc10740;
}
.contact-form .btn:hover {
  color: var(--white-color);
  background: var(--primary-color);
  border-bottom: 2px solid #ffc10740;
}
.absolute-footer {
  background-color: #644421;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.9em;
  padding: 10px 0 15px;
}

/* btn go to top */
.custom-go-to-top {
  border-radius: 50%;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  bottom: 4% !important;
  width: 40px;
  height: 40px;
}
.custom-go-to-top:hover {
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

/* Contact floating */
.floating-sidebar {
  position: fixed;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  z-index: 9999;
  border-radius: 5px;
  max-width: 100%;
  overflow: hidden;
}

.floating-sidebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  width: 60px;
  height: 60px;
  background-color: rgb(238, 166, 22);
  margin: 5px 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--white-color);
}

.floating-sidebar a img {
  width: 100%;
  height: 100%;
}

.floating-sidebar a span {
  font-size: 10px;
  font-weight: 500;
  color: var(--white-color);
  position: absolute;
  bottom: 0px;
}

@media (max-width: 768px) {
  #header {
    height: 70px;
  }

  .navbar-brand {
    background: none;
    padding: 0 32px;
  }

  .navbar-brand img {
    height: 70px;
  }

  .search-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 23px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .navbar-toggler {
    border: none;
    font-size: 24px;
    color: #ffc107;
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  .offcanvas.half-width {
    width: 70%;
  }

  .offcanvas-start {
    background: #644421;
  }

  .offcanvas .btn-close {
    position: relative;
    right: -45%;
    top: 5px;
    font-size: 1.2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  }

  .offcanvas .btn-close:focus {
    box-shadow: none;
  }

  .offcanvas .nav-link-group li {
    border-top: 1px solid rgb(236, 236, 236);
    padding: 12px 0;
  }
  .offcanvas .nav-link-group li:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .offcanvas .nav-link-group a {
    color: #666666d9 !important;
    text-decoration: none;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.8rem;
  }

  /* Search Box */
  .search-box {
    display: flex;
    border-radius: 30px;
    border: 1px solid #ccc;
    overflow: hidden;
    padding: 0 8px;
  }
  .search-input {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    background-color: transparent;
    color: var(--white-color);
  }

  .search-input::placeholder {
    color: var(--white-color);
  }

  .search-input:focus {
    box-shadow: none;
    background-color: transparent;
    color: var(--white-color);
  }

  .search-button {
    border: none;
    font-size: 18px;
    cursor: pointer;
    background-color: transparent;
  }

  #offcanvasNav .nav-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  #offcanvasNav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 13px 16px;
    font-size: 1rem;
  }
  #offcanvasNav .nav-item .nav-link:hover {
    background-color: #5f4021;
  }

  #offcanvasNav .nav-item .nav-link.active {
    color: var(--white-color) !important;
  }

  #offcanvasNav .dropdown-menu .dropdown-item:hover {
    background: none;
    color: var(--white-color) !important;
  }

  #offcanvasNav .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
  }

  #offcanvasNav .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

  #offcanvasNav .sub-menu {
    background: #5f4021 !important;
  }

  #offcanvasNav .sub-menu .nav-link {
    font-weight: normal;
  }

  .modal-backdrop {
    z-index: 0;
  }

  .modal-content {
    background-color: transparent;
    border: none;
    outline: none;
  }

  .modal-body {
    text-align: center;
    padding: 0;
    z-index: 1050;
    background: transparent;
  }

  .modal-body .search-box {
    background-color: transparent !important;
    background-color: hsla(0, 0%, 100%, 0.2) !important;
  }

  .modal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: larger;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  }

  .modal .btn-close:hover {
    color: var(--white-color) !important;
  }

  #main {
    margin-top: 70px;
  }

  #heroCarousel .carousel-control-next,
  #heroCarousel .carousel-control-prev {
    display: none;
  }

  #introduce h6 {
    margin-bottom: 20px;
    font-size: 17px;
    color: #aa5f14;
  }

  #introduce .introduce-title {
    font-size: 25px;
    line-height: 35px;
    width: 85%;
  }

  .custom-btn {
    display: block;
  }

  .exercise .carousel-control-prev,
  .exercise .carousel-control-next {
    display: none;
  }

  .news .card .card-body {
    padding: 10px 0;
  }

  .contact-form,
  .info {
    padding: 1.5rem;
  }

  .contact-form form {
    padding: 20px;
  }
}
