:root {
  --primary-color: #156953;
  --secondary-color: #419a00;
  --third-color: #97d851;
  --white-color: #fff;
  --black-color: #000;
  --gray-color: #3e3e3e;
  --hover-color: #003080;
}

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;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-gradient {
  background: linear-gradient(
    to right,
    rgb(21, 105, 83),
    #0f943e,
    rgb(119, 176, 38),
    rgb(78, 154, 0)
  ) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}
.text-third {
  color: var(--third-color) !important;
}

.title-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
  height: 2.6rem;
}

/* Header */
#header {
  max-height: 140px;
}

#header .header-top {
  max-height: 93px;
}
#header .header-bottom {
  background-color: var(--primary-color);
  padding: 0px !important;
}

#header .logo {
  width: 272px;
  height: 78px;
}

#header .navbar {
  top: 90px;
  z-index: 10;
}

#header .nav-link {
  font-size: 0.85rem;
  color: var(--white-color);
  padding: 12px;
}

.nav-link.active,
.nav-link:hover,
#navbarNav .dropdown-item:hover {
  color: var(--white-color) !important;
  background-color: var(--secondary-color) !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

#header .dropdown-menu {
  border-radius: 0;
  transform: translateX(-10%) !important;
}

#header .dropdown-menu-wide {
  min-width: 900px;
  transform: translateX(-30%) !important;
  padding: 12px;
}
#header .dropdown-menu-wide.wide-2 {
  min-width: 500px;
}

#header .dropdown-menu .dropdown-item {
  font-size: 0.825rem;
}

/* Main */
#main {
  margin-top: 40px;
}

#customCarousel .carousel-item img {
  object-fit: fill;
  min-height: 385px !important;
}

#customCarousel .carousel-control-prev,
#customCarousel .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: 15% 5%;
}

#customCarousel .carousel-control-prev:hover,
#customCarousel .carousel-control-next:hover {
  background-color: var(--secondary-color);
}

#customCarousel .carousel-control-prev,
#customCarousel .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#customCarousel:hover .carousel-control-prev,
#customCarousel:hover .carousel-control-next {
  opacity: 1;
}

.feature-item {
  font-size: 0.85rem;
}

/* Section: Technology */
.modern-tech {
  background: url("/assets/images/bg.jpg") no-repeat center center/cover;
}

.modern-tech .card {
  border-radius: 10px;
  overflow: hidden;
}

.modern-tech .card-title {
  font-size: 1rem;
}

.modern-tech .card-text {
  font-size: 0.9rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
  height: 2.6rem;
}

.hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1) !important;
}

.btn {
  font-size: 0.9rem !important;
  padding: 0.5rem 1rem;
}

#modernTechCarousel .carousel-control-prev,
#modernTechCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white-color);
  top: 50%;
}

#modernTechCarousel .carousel-control-prev i,
#modernTechCarousel .carousel-control-next i {
  font-size: 1.2rem;
  color: var(--primary-color);
}
#mobileModernTechCarousel .carousel-control-prev i:hover,
#mobileModernTechCarousel .carousel-control-next i:hover {
  font-size: 1.2rem;
  color: var(--primary-color);
}

#modernTechCarousel .carousel-control-prev {
  left: -5%;
}

#modernTechCarousel .carousel-control-next {
  right: -5%;
}

.btn-details {
  transition: background-color 0.3s ease;
  font-size: 0.8rem !important;
}
.btn-details:hover {
  background-color: #125a47 !important;
}

/* Section: Real Beauty Stories */

#realBeautyCarousel .carousel-item-content,
#realBeautyCarousel .carousel-item img {
  min-height: 345px !important;
}

#realBeautyCarousel .carousel-item {
  cursor: pointer;
}
#realBeautyCarousel .carousel-item p {
  font-size: 15px;
}

#realBeautyCarousel .carousel-control-prev {
  left: -10%;
}

#realBeautyCarousel .carousel-control-next {
  right: -10%;
}
.btn {
  overflow: hidden !important;
}

#realBeautyCarousel .carousel-inner img {
  max-height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

.is-gloss:after,
.is-shade:after,
.is-bevel:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  -webkit-box-shadow: inset 0 1.2em 0 0 rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1.2em 0 0 rgba(255, 255, 255, 0.1);
}

/* Section: Promotions */
.promotion-item {
  border-bottom: 4px solid var(--secondary-color);
}
.promotion-item {
  height: 350px;
}

.promotion-item img {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.3s ease-in-out;
}

.promotion-item img:hover {
  transform: scale(1.1);
}

.promotion-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.promotion-content h6 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 2.5rem;
}

.promotion-content p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  font-size: 0.875rem;
  height: 6.5rem;
}

.promotions .carousel-control-prev {
  left: -10% !important;
}
.promotions .carousel-control-next {
  right: -10% !important;
}

/* Section: News */
#news-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-in-out;
  background-color: rgb(246, 237, 237);
}

#news-section.animate {
  opacity: 1;
  transform: translateY(0);
}

#news-section .card .card-title,
#news-section .card .card-text {
  font-size: 0.875rem;
}

#news-section .card .card-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 0.875rem;
  height: 5rem;
}

#news-section .card img {
  transition: transform 0.3s ease-in-out;
}

#news-section .card img:hover {
  transform: scale(1.1);
}

/* Section: Videos */
#videoExperienceCarousel {
  cursor: pointer;
}
#videoExperienceCarousel h5 {
  font-size: 15px;
}

#videoExperienceCarousel .card {
  border-radius: 0;
  border-bottom: 4px solid var(--secondary-color) !important;
}

#videoExperienceCarousel .carousel-control-prev {
  left: -10% !important;
}
#videoExperienceCarousel .carousel-control-next {
  right: -10% !important;
}

/* Section: Customer testimonials */
.customer-testimonials {
  background: url("/assets/images/Công-nghệ-hiện-đại-bg.jpg") no-repeat center
    center/cover;
}

.customer-testimonials .carousel-indicators {
  bottom: -10%;
}
.customer-testimonials .carousel-indicators .active {
  background-color: rgba(0, 0, 0, 1) !important;
}

/* Section: faq-and-benefits */

.top-banner p {
  font-size: 0.875rem;
  color: var(--third-color);
  margin-bottom: 0;
}

/* Input and button styles */
.top-banner form .form-control {
  height: 40px;
  font-size: 0.875rem;
}

.top-banner form .btn {
  height: 40px;
  font-size: 0.85rem;
  font-weight: bold;
  background-color: var(--secondary-color);
  color: var(--white-color) !important;
}

.accordion-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: bold;
  border: none;
  box-shadow: none;
  font-size: 1rem;
  border-radius: 0;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Adjust icons */
.accordion-button::after {
  filter: brightness(0) invert(1);
}

/* Accordion Body */
.accordion-body {
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.accordion-item {
  border: none;
  margin-bottom: 5px;
}

/* Footer */

.footer p {
  font-size: 0.75rem;
}

.footer li {
  font-size: 0.825rem;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  padding: 6px 0;
}
.footer li a:hover {
  color: #ccc !important;
}

.custom-go-to-top {
  border: 2px solid var(--white-color);
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white-color);
  background-color: #4267b2;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon i {
  line-height: 1;
}

.social-icon:nth-child(1) {
  background-color: #4267b2;
}

.social-icon:nth-child(2) {
  background-color: #e4405f;
}

.social-icon:nth-child(3) {
  background-color: #1da1f2;
}

.social-icon:nth-child(4) {
  background-color: #e60023;
}

.social-icon:nth-child(5) {
  background-color: #0077b5;
}

/* Contact floating */
.floating-sidebar {
  position: fixed;
  top: 60%;
  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: var(--white-color);
  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) {
  html,
  body {
    overflow-x: hidden;
  }

  #header {
    max-height: 70px;
  }

  #header .logo {
    height: 70px;
  }

  #offcanvasMenu {
    background-color: rgba(245, 164, 43, 0.8);
  }

  .nav-item {
    background-color: transparent;
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 18px !important;
  }

  .nav-item > .collapse.show {
    background-color: rgb(0, 0, 0, 0.2);
  }

  .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
  }

  .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

  .toggle-icon {
    font-size: 1.5rem;
    color: #929292;
  }

  #main {
    margin-top: 0;
  }

  #customCarousel .carousel-item img {
    min-height: 132px !important;
  }

  #customCarousel .carousel-control-prev,
  #customCarousel .carousel-control-next {
    display: none;
  }

  #customCarousel .carousel-indicators {
    bottom: -15%;
  }

  #realBeautyCarousel .carousel-control-prev {
    left: -6%;
    top: -10%;
  }

  #realBeautyCarousel .carousel-control-next {
    right: -6%;
    top: -10%;
  }

  .promotion-item {
    height: auto;
  }

  .promotion-item img {
    object-fit: cover;
    width: 100% !important;
    height: 450px !important;
  }

  .promotions .carousel-control-prev {
    left: -6% !important;
  }
  .promotions .carousel-control-next {
    right: -6% !important;
  }
  /* Section: Customer testimonials  */
  .customer-testimonials .carousel-item {
    min-height: 570px;
  }

  #footer {
    margin-bottom: 50px;
  }
}
