:root {
  --primary-color: #218fb2;
  --secondary-color: #f8d3e3;
  --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;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

#header {
  height: 100px;
  background-color: var(--white-color);
}
.navbar-nav {
  width: 90%;
  justify-content: space-around;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item .nav-link {
  text-align: center;
  color: var(--primary-color);
  line-height: 22px;
  position: relative;
  font-weight: 700;
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.navbar-nav .nav-item .nav-link:hover {
  color: var(--secondary-color);
}

.navbar-nav .dropdown-menu .nav-item:hover > .nav-link {
  border-top: 1px solid #f7f7f7;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: #218fb2;
  text-align: center;
}

.navbar-nav .nav-item .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 0;
  border: 2px solid #ddd;
  background-color: #fff;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
}

.navbar-nav .nav-item:hover > .dropdown-menu {
  display: block;
}

.navbar-nav .nav-item .dropdown-menu .dropdown-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  text-transform: uppercase;
  border-top: 1px solid #f7f7f7;
  padding: 12px 20px;
}

.navbar-nav .nav-item .dropdown-menu .dropdown-item:hover {
  color: var(--white-color);
  background-color: var(--secondary-color);
}

/* Submenu displayed to the right */
.navbar-nav .nav-item .dropdown-menu .dropdown-submenu {
  position: relative;
}

.navbar-nav .nav-item .dropdown-menu .dropdown-submenu .dropdown-menu {
  top: -120%;
  left: 100%;
  display: none;
  background-color: var(--secondary-color);
}
.navbar-nav
  .nav-item
  .dropdown-menu
  .dropdown-submenu
  .dropdown-menu
  .dropdown-item:hover {
  background-color: var(--primary-color);
}

.navbar-nav .nav-item .dropdown-menu .dropdown-submenu:hover .dropdown-menu {
  display: block;
}

.navbar-nav .nav-item .dropdown-menu {
  min-width: 200px;
}

.nav-link .fa-brands {
  font-size: 2.5rem;
  color: #bfbfbf;
}

.main {
  margin-top: 100px;
}

/* #heroCarousel .carousel-item img {
  min-height: 575px;
} */

.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: 12%;
  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;
}

#heroCarousel .carousel-indicators {
  top: 0;
  right: -13%;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}
#heroCarousel .carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
}

#heroCarousel .carousel-indicators .active {
  background-color: var(--white-color);
}

/* introduce */

.introduce {
  /* padding-top: 50px; */
  padding-bottom: 50px;
}

.introduce .list-cards {
  margin-top: -5%;
}

.introduce .card {
  background: var(--white-color);
  padding: 25px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px -2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.3s ease;
}
.introduce .card.higher {
  margin-top: -8%;
}
.introduce .card img {
  height: 150px;
}

.introduce .card:hover {
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.22);
}

.introduce .card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}

.introduce .card-title {
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: var(--primary-color);
  transition: color 0.3s, opacity 0.3s, transform 0.3s;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.2rem;
}

.introduce .card-title:hover {
  color: var(--black-color);
}

.introduce .card-text {
  font-size: 0.9rem;
  color: #212121;
  margin-bottom: 20px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  height: 5.3rem;
}

.introduce .btn {
  background-color: var(--white-color);
  border: 2px solid rgb(192, 192, 192);
  color: #c0c0c0;
  border-radius: 0;
  text-transform: uppercase;
  padding: 8px 28px;
  font-weight: bold;
}

.introduce .btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
}

/* Services */

.services-section {
  position: relative;
  background-image: url("assets/images/bg-1.jpg");
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  color: white;
}

/* Overlay Effect */
/* .services-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 1;
} */

/* Title Styling */
.services-section .services-title,
.testimonial-title,
.consultation-title,
.brands-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.services-section .services-title span,
.testimonial-title span,
.consultation-title span,
.brands-title span {
  display: block;
  font-size: 4rem;
  font-family: "Dancing Script", sans-serif;
  text-transform: initial;
  font-weight: normal;
}

.service-card {
  position: relative;
}

.service-img {
  width: 145px;
  height: 145px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

.services-section .btn {
  border: 1px solid #fcfefe;
  color: var(--white-color);
  background-color: transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 10px 24px;
  font-weight: bold;
}

.services-section .btn:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

/* Before and after */
.before-after-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #999999;
}

.before-after-title span {
  display: block;
  font-size: 4rem;
  font-family: "Dancing Script", sans-serif;
  color: var(--primary-color);
  text-transform: initial;
  font-weight: normal;
}

.before-after-section .content p {
  font-size: 0.75rem;
  color: var(--black-color);
}
.ba-slider {
  position: relative;
  overflow: hidden;
}

.ba-slider img {
  width: 100%;
  display: block;
}

.resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.handle {
  /* Thin line seperator */
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
}

.handle:after {
  /* Big orange knob  */
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;

  content: "\21d4";
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;

  background: #ffb800;
  border: 1px solid #e6a600;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 60px 50px -30px #ffd466;
}

.before-label {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 18px;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
}

.after-label {
  position: absolute;
  bottom: 0px;
  left: 0px;
  font-size: 18px;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
}

/* Testimonial Section */
.testimonial-section {
  position: relative;
  color: white;
  padding: 40px 0px 0px 0px;
  background-size: cover;
  background-position: center;
  text-align: center;
  background-image: url("assets/images/bg-2.jpg");
  background-size: cover;
  background-position: center;
}

.testimonial-title {
  padding: 0;
}

/* Video and news */
.video-news-section .section-title {
  font-size: 3rem;
  font-family: "Dancing Script", sans-serif;
  text-transform: initial;
  font-weight: normal;
  color: var(--primary-color);
}

.video-news-section .video-caption,
.video-news-section .news-caption--title {
  font-size: 1rem;
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
  padding: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 3rem;
}

.video-news-section .news-caption--text {
  font-size: 0.9rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.6rem;
}

.video-news-section .btn {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
}

.video-news-section .btn:hover {
  background-color: rgb(26, 115, 145);
  color: var(--white-color);
}

.video-news-section img {
  height: 315px;
}

.video-news-section .carousel-control-prev,
.video-news-section .carousel-control-next {
  top: 20%;
}

/* consultation */
.consultation-section {
  background-image: url("assets/images/bg-3.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  text-align: center;
  padding: 60px 0;
}

.consultation-form .form-control {
  border-radius: 4px;
  padding: 10px;
  font-size: 16px;
}

.consultation-form button {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
}

.consultation-form button:hover {
  background-color: rgb(26, 115, 145);
}

.consultation-form .mb-3 {
  margin-bottom: 20px;
}

/* brands */
.brands-section .slick-carousel {
  padding: 0 40px;
}

.brands-section .carousel-control-prev,
.brands-section .carousel-control-next {
  opacity: 1;
  top: -150%;
  background-color: transparent;
  border: none;
}
.brands-section .carousel-control-prev:hover,
.brands-section .carousel-control-next:hover {
  color: var(--primary-color);
}

/* Footer  */
.footer-section {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: rgb(0, 135, 177);
}

.footer-section h5 {
  color: var(--white-color);
  font-weight: bold;
}

.footer-logo img {
  width: 200px;
}

.footer-description {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--white-color);
}

.footer-info {
  font-size: 0.9rem;
  padding-left: 1rem;
  color: var(--white-color);
}

.footer-info li {
  margin-bottom: 10px;
}

.footer-links {
  list-style-type: none;
  padding-left: 0;
}

.footer-links li {
  padding: 8px 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 1px solid hsla(0, 0%, 100%, .2);
}

.footer-links li i {
  color: #7a9c59;
  margin-right: 4px;
}

.footer-links a {
  color: #f1f1f1;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white-color);
}


.social-media {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.social-icon {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 4px; 
  justify-content: center;
  align-items: center;
}

.social-icon i {
  font-size: 1rem;
  color: var(--white-color); 
}


.social-icon:nth-child(1) {
  background-color: #3a589d; 
}

.social-icon:nth-child(2) {
  background-color: #111111; 
}

.social-icon:nth-child(3) {
  background-color: #51cb5a; 
}

.social-icon:nth-child(4) {
  background-color: #cb2320; 
}

.social-icon:nth-child(5) {
  background-color: #c33223; 
}


.social-icon:hover {
  opacity: 0.9;
}

.footer-bottom {
  background-color: #d1b1c2;
  padding: 10px 0;
}

.footer-bottom p {
  color: hsla(0, 0%, 100%, .5);
  font-size: 0.9rem;
  margin: 0;
}

/* 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);
}

@media (max-width: 768px) {
  #header {
    background-color: #0088b2;
    height: 55px;
  }
  #main {
    margin-top: 55px;
  }

  .services-section .services-title,
  .testimonial-title,
  .consultation-title,
  .brands-title {
    font-size: 0.9rem;
  }
  .navbar-nav {
    width: 100%;
  }
  .navbar-brand img {
    height: 40px;
  }

  .navbar-toggler {
    border: none;
    font-size: 24px;
    color: var(--white-color);
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  .offcanvas.half-width {
    width: 70%;
  }

  .offcanvas-start {
    background: hsla(0, 0%, 100%, 0.95);
  }

  .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;
  }

  /* Search Box */
  .search-box {
    display: flex;
    overflow: hidden;
  }
  .search-input {
    font-size: 16px;
    padding: 8px 12px;
    color: var(--black-color);
  }

  .search-input:focus {
    color: var(--black-color);
  }

  .search-button {
    font-size: 18px;
    padding: 0 12px;
    outline: none;
    border: none;
    background-color: var(--secondary-color);
    border-radius: 6px;
    margin-left: 4px;
  }

  .search-button:hover {
    background-color: #fcbdd9;
  }

  .navbar-nav .nav-item {
    display: block;
  }

  #offcanvasNav .nav-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  #offcanvasNav .nav-item .nav-link {
    color: #666666d9;
    font-weight: 700;
    padding: 13px 18px;
    font-size: 0.8rem;
    width: 100%;
    text-align: start;
  }
  #offcanvasNav .nav-item .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--black-color);
  }

  #offcanvasNav .nav-item .nav-link.active {
    color: var(--black-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-color: rgba(0, 0, 0, 0.05);
  }

  #offcanvasNav .sub-menu .nav-link {
    font-weight: normal;
  }

  #heroCarousel .carousel-item img {
    min-height: 172px;
  }
  /* introduce */
  .introduce .card {
    padding: 10px;
  }

  .introduce .card img {
    height: 215px;
  }

  .introduce .card.higher {
    margin-top: 0;
  }

  .brands-section .slick-carousel {
    padding: 0 20px;
  }

  .brands-section .slick-carousel img {
    width: 180px;
    height: 60px;
  }

  .brands-section .carousel-control-prev,
  .brands-section .carousel-control-next {
    opacity: 0;
  }
}
