:root {
  --primary-color: #00502b;
  --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;
}

h2.title-all-home {
  color: #08541f;
  text-align: center;
  text-transform: uppercase;
  font-size: 35px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
  font-family: "Playfair Display";
}
h2.title-all-home:before {
  content: "";
  position: absolute;
  background-color: #08541f;
  width: 78px;
  height: 2px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

/* Header */
.navbar-brand img {
  height: 75px;
  width: 75px;
}

#header .nav-link {
  color: var(--white-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
#header .nav-link:hover {
  color: #d5ab49;
}

#header .nav-item:hover .dropdown-menu,
#header .search:hover .dropdown-menu {
  display: block;
}

#header .dropdown-menu {
  display: none;
  position: absolute;
  width: 90vw;
  top: 100%;
  left: 0;
  padding: 15px 15px 20px;
  border: 2px solid #d5ab49;
  border-radius: 10px;
  background-color: #00673d;
  transform: translateX(-18%);
  z-index: 1000;
}

#header .dropdown-item {
  color: var(--white-color);
  text-decoration: none;
  padding: 10px 0;
  font-size: 13px;
  text-transform: capitalize;
  border-bottom: 1px dashed #e1e1e14d;
  position: relative;
}

#header .dropdown-item:hover {
  color: #d5ab49;
  background-color: transparent;
}

#header .dropdown-item.title {
  font-weight: bold;
  border-bottom: 1px dashed #d5ab49;
}

#header .dropdown-item.title::after {
  content: "";
  width: 30%;
  height: 3px;
  background-color: #d5ab49;
  position: absolute;
  left: 0;
  bottom: -1px;
}

.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#header .phone-number {
  color: #f3dd82;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #24965a;
  background: #003c21;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

#header .search-icon {
  color: #f3dd82;
  height: 30px;
  width: 30px;
  display: inline-block;
  line-height: 30px;
  text-align: center;
  position: relative;
  border: 1px solid #24965a;
  background: #003c21;
  border-radius: 4px;
  margin-left: 10px;
}

#header .search .dropdown-menu {
  top: 80%;
  width: auto;
  left: 76%;
}

#header .search .dropdown-menu::before {
  content: "";
  width: 100%;
  height: 20px;
  background-color: transparent;
  position: absolute;
  top: -20px;
  right: 0;
}

#header .search .search-button {
  height: 36px;
  width: 36px;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: #f3dd82;
  border: 1px solid #f3dd82;
}

#header .search-input {
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #f3dd82;
}
#main {
  margin-top: 82px;
}

.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 button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
}

#heroCarousel .carousel-indicators .active {
  background-color: var(--white-color);
}

/* Services */
.service-section .service-card {
  border-radius: 15px;
  border: 2px solid #eace83;
  overflow: hidden;
  box-shadow: 0px 5px 10px 0px #ccc;
  color: #000;
  font-size: 15px;
  padding: 20px;
  background-color: #fbf1f0;
}
.service-section .card-title {
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 900;
  padding: 0;
  font-size: 15px;
  color: #08541f;
}

.service-section .card-text {
  font-size: 14px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-section .card .btn {
  background-color: var(--primary-color);
  text-transform: uppercase;
}
.service-section .card .btn:hover {
  background-color: #00673d;
}
.service-section .service-sub p {
  color: #06562d;
  text-transform: uppercase;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 700;
}

/* Video Section */
.video-section {
  background-image: url("assets/images/video-section.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.video-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.video-section h2.title-all-home {
  color: var(--white-color);
}

.video-section h2.title-all-home::before {
  background: var(--white-color);
}
.video-section .thumbnail {
  background: #24965a;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-section .thumbnail p {
  text-align: center;
  background: #24965a;
  color: var(--white-color);
  font-size: 14px;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-overflow: ellipsis;
}
/* Tabs view */
.tabs-view .nav-link {
  width: 128px;
  height: 120px;
  padding: 0;
  border: none;
  position: relative;
}

.tabs-view .nav-link:hover {
  border: none;
}

.tabs-view .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  margin-left: -15px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid #004d2b;
}

.tabs-view .tab-content {
  padding: 0 12px;
}

/* Before and after */

.changed-section {
  background-image: url("/assets/images/bfat-bgr.jpg");
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.changed-section h2.title-all-home {
  color: #f0f0a0;
}
.changed-section h2.title-all-home::before {
  background-color: #aa9147;
}

.changed-section .description {
  max-width: 900px;
  text-align: justify;
  text-align-last: center;
  margin: 0 auto 50px;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
}

.image-item {
  position: relative;
  overflow: hidden;
}

.before-img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s linear, transform 0.3s ease;
}

.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s linear, transform 0.3s ease;
}

.image-item:hover .before-img {
  opacity: 0;
  transform: translateY(-10px);
  cursor: pointer;
}

.image-item:hover .after-img {
  opacity: 1;
  transform: translateY(0);
  cursor: pointer;
}

/* News */
.news-section {
  background-image: url("assets/images/news-bgr.jpg");
  background-size: cover;
  background-position: center;
}
.news-section .title-all-home {
  font-size: 28px;
}

.news-section .highlighted-item-main img {
  width: 100%;
  height: 205px;
  width: 100%;
  object-fit: cover;
  box-shadow: 6px 6px 0px #dddddd;
}
.news-section .news-info {
  padding-bottom: 1.4em;
  padding-top: 0.7em;
  width: 100%;
}

.news-section .highlighted-item .news-info {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 1.4em;
  padding-top: 0.5em;
  width: 100%;
}
.news-section .news-info p {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-section .highlighted-item-main h5 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--primary-color);
  font-weight: bold;
}

.news-section .highlighted-item a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.news-section .highlighted-item img {
  width: 90px;
  height: 62px;
  object-fit: cover;
  box-shadow: 4px 4px 0px #dddddd;
}
.news-section .highlighted-item p {
  font-size: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
  padding: 0;
  font-weight: 500;
  color: #00502b;
  line-height: 1.5;
}

.news-section .highlighted-item h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  font-weight: bold;
}

.news-section h5:hover {
  color: var(--black-color);
}
.faq-item {
  background-color: #ededed;
  margin: 0.3rem 0;
  padding: 6px;
}
.faq-item.top {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.faq-item.bottom {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.faq-item a {
  display: flex;
  justify-content: start;
  align-items: start;
}

.faq-item img {
  margin-right: 4px;
  margin-top: 2px;
}

.faq-item h6 {
  font-size: 15px;
  color: var(--black-color);
}

/* Contact */
.contact-section .background {
  background-color: #e8e8e8;
  border-radius: 30px;
  padding: 40px 0;
}
.contact-section .contact-card {
  background-image: url("assets/images/bg-hotline.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  margin: 0 10px;
  padding: 20px 5px;
}

.contact-card img {
  width: 60px;
  height: 60px;
}

.contact-card h5 {
  font-size: 16px;
  padding: 20px 0;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0px;
  color: var(--white-color);
}

.contact-card .phone-number {
  color: #f3dd82;
  padding-bottom: 5px;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
  font-size: 33px;
  font-weight: 600;
  position: relative;
}
.contact-card .phone-number::before {
  background-color: #f3dd82;
  content: "";
  position: absolute;
  width: 78px;
  height: 2px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}
.contact-card .description {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  color: var(--white-color);
}

.contact-form {
  padding: 30px;
}

.contact-form input {
  border-radius: 6px;
  border: 1px solid #000;
  padding: 16px;
  width: 100%;
  margin-bottom: 10px;
}

.contact-form button {
  background: #f3db7b;
  color: #014e2a;
  padding: 10px 35px;
  border-radius: 30px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.4s;
  font-weight: bold;
  border: 1px solid #f3db7b;
  font-size: 14px;
  margin-top: 16px;
}

.contact-form button:hover {
  background-color: #d5ab49;
}

/* footer */
.contact-footer {
  background-image: url("assets/images/bg-footer.jpg"); /* Background image */
  background-size: cover;
  background-position: center;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--white-color);
  text-align: center;
}

.contact-footer .subheading {
  font-size: 18px;
}
.contact-footer .subheading:hover,
.contact-footer p:hover,
.contact-footer h3:hover {
  color: #d5ab49;
}

/* btn go to top */
.custom-go-to-top {
  border-radius: 50%;
  background-color: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  bottom: 4% !important;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
}
.custom-go-to-top:hover {
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

.contact-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
}

.contact-float .contact-btn {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  text-align: center;
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 18px;
  border-radius: 20px;
}

/* Zalo Button */
.btn-zalo {
  background: #8eb22b;
  width: 115px;
}

/* Facebook Button */
.btn-facebook {
  background-color: #3b5998;
  width: 145px;
}

/* Hotline Button */
.btn-hotline {
  background-color: #e91e63;
  width: auto;
}

.contact-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  #header {
  }

  .navbar-toggler {
    border: none;
    font-size: 24px;
    color: #f3dd82;
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  .navbar-brand img {
    width: 62px;
    height: 62px;
  }

  #header .search .dropdown-menu {
    top: 80%;
    width: 60vw;
    left: 50%;
  }

  .offcanvas {
    background: var(--primary-color);
  }

  .offcanvas .btn-close:focus {
    box-shadow: none;
  }

  #offcanvasNav .nav-item {
    border-bottom: 2px solid #003c20;
  }

  #offcanvasNav .nav-item .nav-link {
    color: var(--white-color);
    font-weight: 700;
    padding: 13px 18px;
    font-size: 0.9rem;
    width: 100%;
    text-align: start;
    text-transform: uppercase;
  }
  #offcanvasNav .nav-item .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #d7b763;
  }

  #offcanvasNav .nav-item .nav-link.active {
    color: #d7b763 !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 .nav-link.title {
    color: #d7b763;
    padding: 5px 0 5px 25px;
  }

  #offcanvasNav .sub-menu .nav-link {
    font-size: 14px;
    font-weight: normal;
    text-transform: initial;
    padding: 5px 0 5px 35px;
  }

  #main {
    margin-top: 72px;
  }


  .video-section .video-container iframe {
    height: 230px;
  }

  .video-section .thumbnail iframe {
    height: 185px;
  }

  .tabs-view .nav-link {
    width: 98px;
    height: 90px;
    padding: 0;
    border: none;
    position: relative;
  }
  .news-section .highlighted-item {
    padding: 12px 0px;
    border-bottom: 1px solid #ddd;
  }
  .news-section .highlighted-item img {
    height: 116px;
    width: 50%;
  }

  .contact-card h5 {
    font-size: 10px;
  }

  .contact-card .phone-number {
    font-size: 18px;
  }
  .contact-card .description {
    font-size: 8px;
  }

  .contact-float {
    display: none;
  }
}
