/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
:root {
  --primary-color: #067057;
  --white-color: #ffffff;
  --light-gray-color: #f0f0f0;
  --black-color: #1a1818;
  --gold-color: #b19b53;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 14px;
  overflow-x: hidden;
  color: var(--black-color);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

a:hover {
  color: var(--gold-color);
}

h1 {font-size: 38px; font-weight: 600;}
h2 {font-size: 22px; font-weight: 600; line-height: 1.5;}
h3 {font-size: 17px; font-weight: 500; line-height: 1.5;}
h4 {font-size: 16px; font-weight: 500; line-height: 1.5;}

h5,h6 {
  font-weight: 500;
}

h1,h2,h3,h4,h5,h6 {margin-bottom: 1rem;}

.text-white h1,.text-white h2 {font-weight: 500;}
.text-white p {font-weight: 200;}

strong {
  font-weight: 600;
}

img {
  width: 100%;
  height: auto;
}

.img-cover {height: 100%; object-fit: cover;}

.text-gold {color: var(--gold-color);}

.bg-pri {background-color: var(--primary-color);}
.bg-black {background-color: var(--black-color) !important;}
.bg-light-gray {background-color: var(--light-gray-color);}

.p-section {
  padding: 80px 0;
}
.p-section-bottom {
  padding-bottom: 80px;
}

.line-clamp {
  display: -webkit-box;
  max-width: 100%;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp.line-1 {-webkit-line-clamp: 1;}
.line-clamp.line-2 {-webkit-line-clamp: 2;}
.line-clamp.line-3 {-webkit-line-clamp: 3;}

.btn-main {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  font-size: 16px;
  font-weight: 400;
  text-transform: lowercase;
  padding: 8px 24px;
}

.btn-main .dots-container {
  position: relative;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}

.btn-main .dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--white-color);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dot.dot-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0;}

.btn-main:hover {
  color: var(--white-color);
}
.btn-main:hover .dot-1 {
  transform: translate(0px, -4px);
}
.btn-main:hover .dot-2 {
  transform: translate(-4px, 0px);
}
.btn-main:hover .dot-3 {
  transform: translate(0px, 4px);
}
.btn-main:hover .dot-4 {
  transform: translate(-4px, 0px);
}
.btn-main:hover .dot-5 {
  opacity: 1;
  transform: translate(40%, -50%);
}

.btn-main.no-bg {
  background-color: transparent;
  color: var(--black-color);
  border: 1px solid var(--primary-color);
  font-weight: 500;
}
.btn-main.no-bg .dot {
  background-color: var(--primary-color);
}

.btn-main.back {
  padding: 8px 26px;
}
.btn-main.back:hover .dot-1 {
  transform: translate(4px, 0px);
}
.btn-main.back:hover .dot-2 {
  transform: translate(0px, -4px);
}
.btn-main.back:hover .dot-3 {
  transform: translate(4px, 0px);
}
.btn-main.back:hover .dot-4 {
  transform: translate(0px, 4px);
}
.btn-main.back:hover .dot-5 {
  opacity: 1;
  transform: translate(-5px, -2px);
}

.btn-clear {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--black-color);
  border: 1px solid var(--black-color);
  font-size: 16px;
  font-weight: 500;
  text-transform: lowercase;
  padding: 7px 30px;
}

.btn-clear:hover {
  color: var(--black-color);
}

.btn-clear .icon {
  width: 16px;
  margin-left: 10px;
}

.btn-download {
  font-size: 16px;
}
.btn-download .icon {
  width: 26px;
}
.btn-download:hover {
  color: var(--white-color);
}

.btn-discover-more span {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.btn-discover-more:hover {
  color: var(--black-color);
}
.btn-discover-more .icon {
  width: 15px;
}

.page-mt {
  margin-top: 96px;
}

.container-fluid {
  padding-left: 5%;
  padding-right: 5%;
}

.shadow-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 1;
}

.shadow-img.shadow-top::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.8) 15%, rgba(39, 39, 39, 0.3) 50%);
}

.lazy {
  opacity: 0;
  transition: opacity .5s;
}

.lazy.loaded {
  opacity: 1;
}

.content-center {
  padding: 5% 10%;
  min-height: 400px;
}

.bg-blur {
  background: linear-gradient(310deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(39px);
  -webkit-backdrop-filter: blur(39px);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
#header {
  color: #000000;
  background: #ffffff;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 3px solid var(--primary-color);
}

#header .navbar {
  padding: 20px 0;
}

#header .nav-link {
  font-size: 19px;
  font-weight: 500;
  color: var(--black-color);
  padding: 8px 10px;
}

.navbar-brand img {
  width: 180px;
  height: auto;
}

#header .navbar .dropdown {
  position: unset;
}

#header .dropdown-menu {
  border: none;
  border-radius: 0;
}

#header .dropdown-menu ul.menu {
  list-style: none;
  position: relative;
  width: max-content;
  padding-left: 0;
}

#header .dropdown-menu .dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black-color);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .submenu {
  display: none;
  left: 100%;
  top: 0;
}

.dropdown-menu {
  overflow: visible !important;
}

.submenu {
  display: none;
}

.submenu.show {
  display: block;
}

.dropdown-item:focus, .dropdown-item:hover {
  color: inherit;
  background-color: transparent;
}

#header .navbar .switch-lang {
  position: relative;
  margin-right: 5px;
}

#header .switch-lang .btn {
  padding: 0;
}
#header .switch-lang .btn.show,
#header .switch-lang .btn:active {
  border-color: transparent;
}

#header .switch-lang img {
  width: 30px;
  height: auto;
}

#header .navbar .switch-lang .dropdown-menu[data-bs-popper] {
  transform: translateY(33px);
}

#header .navbar .switch-lang .dropdown-toggle::after {
  display: none;
}

#header .navbar .change-lang .dropdown-menu {
  min-width: 120px;
}
#header .navbar .change-lang .dropdown-menu[data-bs-popper] {
  left: auto;
  right: 0;
}

#header .social-list {
  border-left: 1px solid var(--primary-color);
  padding-left: 5px;
}

#header .social {
  width: 30px;
  height: auto;
  margin-right: 5px;
}

#header .social:last-child {
  margin-right: 0;
}

.navbar-toggler {
  border: none;
  padding: 0 0 0 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

#header .social-mb img {
  width: 31px;
}

@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-nav .dropdown-menu {
    width: 100%;
  }
  .dropdown-toggle::after {
    display: none;
  }
  #header .dropdown-menu.main {
    padding: 18px 0;
  }
  .dropdown-menu ul.menu {
    margin: auto;
  }
  .dropdown-submenu .submenu {
    position: absolute;
    padding: 5px 0;
    max-height: 140px;
    overflow-y: auto !important;
    border: none;
  }
  .dropdown-submenu .submenu::-webkit-scrollbar {
    width: 4px;
  }
  .dropdown-submenu .submenu::-webkit-scrollbar-track {
    background-color: transparent;
    -webkit-border-radius: 8px;
    border-radius: 8px;
  }
  .dropdown-submenu .submenu::-webkit-scrollbar-thumb {
    -webkit-border-radius: 8px;
    border-radius: 8px;
    background: var(--primary-color);
  }
  .dropdown-submenu .submenu .dropdown-item {
    padding: 3px 16px !important;
  }
  .dropdown-submenu .submenu .dropdown-item:hover {
    color: var(--gold-color) !important;
  }
  .dropdown-submenu:hover > .submenu {
    display: block;
  }
  #header .main-link {
    position: relative;
  }
  #header .main-link::before {
    opacity: 0;
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background-color: var(--primary-color);
    transition: all .3s ease-in-out;
  }
  #header .main-link:hover::before,
  #header .main-link.show::before {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .navbar-brand img {
    width: 150px;
  }
  #header .nav-link {
    font-size: 18px;
  }
  #header .nav-link.social-mb img {
    width: 24px;
  }
  #header .navbar .switch-lang .dropdown-menu[data-bs-popper] {
    transform: translateY(28px);
  }
}

@media (max-width: 575px) {
  #header .navbar {
    padding: 10px 0;
  }
  #header .switch-lang img {
    width: 26px;
  }
  #header .social-mb img {
    width: 27px;
  }
  #header .navbar .switch-lang .dropdown-menu[data-bs-popper] {
    transform: translateY(19.5px);
  }
}

/*--------------------------------------------------------------
# Four Dots Animation
--------------------------------------------------------------*/
.four-dots {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.four-dots .dots-container {
  position: relative;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.four-dots .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
}

/* ตำแหน่งปกติ (เป็น 2x2 grid) */
.dot.dot-1 { top: 0;    left: 0; }
.dot.dot-2 { top: 0;    right: 0; }
.dot.dot-3 { bottom: 0; left: 0; }
.dot.dot-4 { bottom: 0; right: 0; }

/* เมื่อ Hover → ขยับเข้าศูนย์กลางให้เป็นรูป + */
.four-dots:hover .dot-1 {
  transform: translate(5px, -1px);
}
.four-dots:hover .dot-2 {
  transform: translate(1px, 5px);
}
.four-dots:hover .dot-3 {
  transform: translate(-1px, -5px);
}
.four-dots:hover .dot-4 {
  transform: translate(-5px, 1px);
}

/*--------------------------------------------------------------
# Search
--------------------------------------------------------------*/
.search-toggle {
  padding-left: 8px;
}

.search-toggle img {
  width: 30px;
}

.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 98px;
  padding-top: 110px;
  background: var(--white-color);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.search-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-popup .search-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.search-container {
  max-width: 400px;
  margin: auto;
}

.search {
  position: relative;
}

.search .icon {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translate(0, -50%);
  cursor: pointer;
  z-index: 1;
}

.search #search-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--black-color);
  font-size: 22px;
  font-weight: 600;
  padding: 4px 16px 4px 0px;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  color: var(--black-color);
  outline: none;
}

.search #search-input::placeholder {
  color: var(--black-color);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: #000000;
  background-color: #EEEEEE;
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding: 60px 0;
}

.footer-address {
  max-width: 340px;
}

.footer-text h1,.footer-text h2,.footer-text h3,.footer-text h4,.footer-text h5,.footer-text h6 {
  margin-bottom: .5rem;
}

.logo-mapei-footer {
  width: 95px;
  margin: 0 3px;
}

.footer .footer-top h2 {
  line-height: 1;
}

.footer .footer-top h4 {
  font-size: 15px;
}

.footer .footer-top p {
  font-weight: 300;
}

.footer .footer-top .menu {
  list-style: none;
  padding-left: 0;
}

.footer .footer-top .menu li {
  font-size: 16px;
  font-weight: 500;
  text-transform: lowercase;
  margin-bottom: 10px;
}

.footer .footer-top .menu li:last-child {
  margin-bottom: 0;
}

.footer .footer-top .social-list {
  display: grid;
  grid-template-columns: 28px 28px;
  gap: 10px;
}

.footer .social-list .social img {
  width: 28px;
}

.footer .copyright {
  padding: 10px 0;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 200;
}

.footer .copyright a {
  font-size: 13px;
  margin-bottom: 0;
}

.footer .copyright p {
  font-size: 13px;
  margin-bottom: 0;
}

.footer .logo {
  width: 150px;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination-custom {
  padding-top: 80px;
}

.pagination-bar {
  max-width: 420px;
  /* ความยาวแถบหลัก */
  margin: 0 auto;
  text-align: center;
}

.segments {
  display: grid;
  grid-template-columns: repeat(var(--total-pages), 1fr);
  height: 4px;
  background: var(--light-gray-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.segment {
  background: var(--light-gray-color);
}

.segment.active {
  background: var(--gold-color);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--primary-color) transparent var(--primary-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Breadcrumb
--------------------------------------------------------------*/
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--black-color);
  --bs-breadcrumb-item-active-color: var(--primary-color);
  --bs-breadcrumb-item-padding-x: .5rem;
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
}

.breadcrumb-item.inner {
  max-width: 150px;
}

.breadcrumb-item a:hover {
  color: inherit;
}

.breadcrumb-white {
  --bs-breadcrumb-divider-color: var(--white-color);
  --bs-breadcrumb-item-active-color: var(--white-color);
  font-weight: 200;
  color: var(--white-color);
}

.breadcrumb-white .breadcrumb-item+.breadcrumb-item::before {
  font-weight: 200;
}

.breadcrumb-white .breadcrumb-item.active {
  font-weight: 400;
}

/*--------------------------------------------------------------
# Figure
--------------------------------------------------------------*/
figure {
  overflow: hidden;
  margin: 0;
}
.on-hover-img figure img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-out !important;
	transition: .3s ease-out !important;
}
.on-hover-img:hover figure img{
	-webkit-transform: scale(1.13);
	transform: scale(1.13);
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 820px;
  position: relative;
  padding: 136px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .img-banner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero .container-fluid {
  position: relative;
  z-index: 3;
  /* margin-top: auto; */
}

.hero h1 {
  max-width: 650px;
}

.hero h3 {
  max-width: 650px;
  font-weight: 400;
}

.hero ul {
  list-style: none;
  padding-left: 0;
}
.hero ul li {
  margin-bottom: 5px;
}

.hero.no-banner {
  background-color: var(--black-color);
}

.hero.no-banner-product {
  background-color: var(--light-gray-color);
  justify-content: start;
}

.hero.no-banner-product .download-content {
  border-color: var(--black-color);
}

.hero.no-banner-product .btn-download {
  font-weight: 500;
}

.bannerSwiper #breadcrumb {
  position: absolute;
  top: 116px;
  left: 5%;
  z-index: 4;
}

@media (max-width: 991px) {
  .hero {
    min-height: 700px;
  }
  .hero.product {
    min-height: 800px;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: 600px;
  }
  .hero.product {
    min-height: 710px;
  }
}
@media (max-width: 575px) {
  .hero h1 br{
    display: none;
  }

  .hero h3 br{
    display: none;
  }

  .hide-mb {
    display: none;
  }
}
/*

@media (max-width: 480px) {
  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 14px;
  }
} */

/*--------------------------------------------------------------
# Swiper
--------------------------------------------------------------*/
.swiper-container {
  position: relative;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
}
.swiper-button-next,
.swiper-button-prev {
  width: 30px;
  height: 30px;
  top: 44% !important;
}
.swiper-button-prev {
  left: -40px !important;
}
.swiper-button-next {
  right: -40px !important;
}
.swiper-button-prev {
  transform: rotate(180deg);
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}
.swiper-scrollbar {
  background: var(--white-color);
  &.swiper-scrollbar-horizontal {
    width: 30%;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
  }
}
.swiper-scrollbar-drag {
  background: var(--gold-color);
  cursor: grab;
}

.scroll-custom .swiper-scrollbar {
  background: var(--light-gray-color);
}

/*--------------------------------------------------------------
# Home
--------------------------------------------------------------*/
.bg-about .content {
  width: 50%;
  padding: 5%;
}

.collection-card:hover {
  color: inherit;
}
.collection-card:hover .dot-1 {
  transform: translate(5px, 11px);
}
.collection-card:hover .dot-2 {
  transform: translate(-5px, -1px);
}
.collection-card:hover .dot-3 {
  transform: translate(-1px, -5px);
}
.collection-card:hover .dot-4 {
  transform: translate(1px, -5px);
}

.bg1-home-content {
  max-width: 620px;
  text-shadow: 0px 1px 4px #000;
}

.icon-dot {
  width: 22px;
}

#product-home {
  scroll-margin-top: 40px;
}

.partnerSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  max-width: 180px;
}

.bg-height {
  min-height: 90vh;
}
.bg-height-medium {
  min-height: 55vh;
}

.bg-content {
  padding: 50px 0;
}

/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/
.bg1-about-content {
  max-width: 665px;
}

.vision {
  padding-right: 20px;
  margin-right: 40px;
}

.mission {
  padding-left: 20px;
  margin-left: 40px;
}

.logo-mapei {
  width: 180px;
  margin: 0 20px;
}

h1.mapei-text {
  max-width: 610px;
}

.about-distributor {
  max-width: 1050px;
}

.about-two-content {
  padding: 3%;
  width: 50%;
}

.about-two-content .content.left {
  padding: 5%;
  background: linear-gradient(310deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/*--------------------------------------------------------------
# Product
--------------------------------------------------------------*/
.product-card .line-under {
  width: 0;
  height: 8px;
  background-color: var(--primary-color);
  opacity: 0;
  transition: width 0.3s ease-out,opacity 0.3s ease-out;
}
.product-card:hover {
  color: inherit;
}
.product-card:hover .line-under {
  width: 100%;
  opacity: 1;
}

.product-card img {
  height: 404px;
  object-fit: contain;
}

.dropdown.filter .btn {
  width: 75%;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  text-align: start;
  padding: 0 0 0 38px;
  text-transform: lowercase;
}

.dropdown.filter .dropdown-toggle::after {
  display: none;
}

.dropdown.filter .btn-toggle {
  width: 100%;
  border-bottom: 1px solid var(--black-color);
  padding: 5px 0;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown.filter .btn-toggle svg#chev {
  flex-shrink: 0;
}

.dropdown.filter .btn.show,
.dropdown.filter .btn:active {
  border-color: inherit;
}

.dropdown.filter svg#chev {
  width: 16px;
  height: auto;
  margin-right: 5px;
}

.dropdown.filter .dropdown-menu {
  display: block;
  overflow: hidden !important;
  width: 75%;
  max-height: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
  z-index: -1;
}

.dropdown.filter .dropdown-menu.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(31px) !important;
  z-index: 1000;
}

.dropdown.filter .dropdown-item {
  padding: 0 0 8px 38px;
  font-size: 14px;
  text-transform: lowercase;
  white-space: normal;
}

.dropdown.filter li:last-child .dropdown-item {
  padding: 0 0 0 38px;
}

.dropdown.filter li.has-sub-dropdown .dropdown-item {
  padding: 0 0 8px 38px;
}

.dropdown.filter .sub-dropdown {
  display: block;
  list-style: none;
  padding-left: 38px;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
  overflow: hidden;
}

.dropdown.filter .has-sub-dropdown:hover>.sub-dropdown,
.dropdown.filter .has-sub-dropdown.open>.sub-dropdown {
  max-height: 500px;
  opacity: 1;
}

.dropdown.filter .sub-item {
  font-size: 14px;
  font-weight: 400;
  padding-bottom: 8px;
  padding-left: 10px;
}

.dropdown.filter .color-block {
  width: 15px;
  height: 15px;
  border: 1px solid #707070;
}

.dropdown.filter .color-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-color);
  opacity: 0;
  transition: opacity .3s ease-out;
}

.dropdown.filter .dropdown-item.active,
.dropdown.filter .dropdown-item:active {
  color: inherit;
  background-color: inherit;
}

.dropdown-item.color-item.active .color-check {
 opacity: 1;
}

.product-detail-content {
  position: absolute;
  top: 116px;
  left: 5%;
  right: 5%;
  z-index: 3;
}

.product-detail-content h1 {
  margin-top: 50px;
}

.product-detail {
  padding: 42px 42px 0 42px;
  margin-top: 30px;
  max-width: 820px;
}

.bg-blur-white {
  background: linear-gradient(310deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(39px);
  -webkit-backdrop-filter: blur(39px);
}

.bg-blur-black {
  background: linear-gradient(310deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  backdrop-filter: blur(39px);
  -webkit-backdrop-filter: blur(39px);
}

.product-detail .detail-content {
  overflow: auto;
  max-height: 325px;
}

.product-detail .detail-content::-webkit-scrollbar {
  width: 4px;
}

.product-detail .detail-content::-webkit-scrollbar-track {
  background-color: transparent;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

.product-detail .detail-content::-webkit-scrollbar-thumb {
  -webkit-border-radius: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--white-color), transparent 25%);
}

.swiper.gallery {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.swiper.gallery .swiper-slide {
  background-size: cover;
  background-position: center;
}

.gallerySwiper {
  box-sizing: border-box;
  padding: 15px 0;
}

.gallerySwiper .swiper-slide {
  height: 100%;
  opacity: 0.4;
}

.gallerySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper.gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-content {
  padding: 15px 0 10px;
  border-top: 1px solid var(--white-color);
}

.download-content.no-file {
  border-top: 0;
}

.product-thumbs {
  max-width: 450px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.productThumbs {
  box-sizing: border-box;
  padding: 15px 0;
}

.productThumbs .swiper-slide {
  height: 100%;
  opacity: 0.4;
}

.productThumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.product-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev.product,
.swiper-button-next.product {
  top: 52% !important;
  display: flex;
}
.swiper-button-prev.product {
  left: 5px !important;
}
.swiper-button-next.product {
  right: 5px !important;
}

.about-customise p {
  font-weight: 300;
}

.content-reverse p {
  font-weight: 100;
}

.process-item p {
  font-weight: 300;
}

/*--------------------------------------------------------------
# Customise
--------------------------------------------------------------*/
.customise-title {
  position: absolute;
  top: 160px;
  left: 5%;
  z-index: 3;
}

.hero.customise {
  padding-top: 210px;
}

.customise-dot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.customise-dot .dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-color);
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.menu-list {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
  user-select: none;
}

.menu-list.centered {
  justify-content: center;
}

.menu-list::-webkit-scrollbar {
  height: 0;
}

.menu-list a {
  margin-right: 30px;
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
  pointer-events: auto;
}

.menu-list.really-dragging a {
  pointer-events: none; /* disable hover tooltip */
}

.menu-list a:last-child {
  margin-right: 0;
}

.menu-list .icon {
  width: 17px;
  height: auto;
  margin-right: 12px;
}

.menu-list a:hover {
  color: inherit;
}

.menu-list a:hover,
.menu-list a.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.menu-wrapper .fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}

.menu-wrapper .fade-left {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.menu-wrapper .fade-right {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.menu-wrapper .fade.show {
  opacity: 1;
}

.project-card {
  display: block;
  transition: transform 0.3s ease;
}

.project-card h3 {
  display: flex;
  align-items: center;
}

.project-title-icon {
  display: flex;
  align-items: center;
  height: 1.25rem;
  margin-right: 10px;
  transition: all .3s ease;
}

.project-card:hover {
  color: inherit;
}

.project-card:hover .project-title-icon {
  margin-right: 18px;
}

.vertical-dots-animate .dots-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease-out;
}

.vertical-dots-animate .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 0;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  place-self: center;
}

.vertical-dots-animate .dot-2 {
  transform: translateX(0);
  opacity: 1;
}

.vertical-dots-animate .dot-1,
.vertical-dots-animate .dot-3 {
  transform: translateX(6px);
  opacity: 0;
}

.vertical-dots-animate:hover .dot {
  opacity: 1;
}

.vertical-dots-animate:hover .dot-1 {
  transform: translateX(0);
  order: 1;
}

.vertical-dots-animate:hover .dot-2 {
  transform: translateX(8px);
  order: 2;
}

.vertical-dots-animate:hover .dot-3 {
  transform: translateX(0);
  order: 3;
}

.project-detail-content {
  position: absolute;
  top: 116px;
  left: 5%;
  right: 5%;
  z-index: 3;
}

.project-detail {
  padding: 3%;
  margin-top: 90px;
  max-width: 520px;
}

.project-detail .detail-content {
  overflow: auto;
  max-height: 410px;
}

.project-detail .detail-content::-webkit-scrollbar {
  width: 4px;
}

.project-detail .detail-content::-webkit-scrollbar-track {
  background-color: transparent;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

.project-detail .detail-content::-webkit-scrollbar-thumb {
  -webkit-border-radius: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--white-color), transparent 25%);
}

.page-content-detail p {
  font-weight: 300;
}

.title-bd-r {
  border-right: 1px solid var(--black-color);
}


/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog-card:hover {
  color: var(--black-color);
}

.blog-card .hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: .3s ease-out;
}

.blog-card .hover .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: auto;
}

.blog-card .shadow-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);
  opacity: 0;
  transition: .3s ease-out;
}

.blog-card:hover .shadow-img::before {
  opacity: 1;
}

.blog-card:hover .hover {
  opacity: 1;
}

/*--------------------------------------------------------------
# Contact Us
--------------------------------------------------------------*/
.contact-bg {
  padding: 22px 10%;
}

.contact-bg .content {
  padding: 8% 6%;
  color: var(--white-color);
}

.contact-bg .content h1 {
  font-weight: 500;
}

.contact-bg .content h4 {
  font-weight: 300;
}

.contact-bg .social {
  width: 22px;
  margin-right: 5px;
}

.contact-bg .social:last-child {
  margin-right: 0;
}

.content-form {
  padding: 13.5% 14%;
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.form-control,
.form-select {
  padding: 4px 0;
  font-size: 16px;
  font-weight: 500;
  background-color: transparent !important;
  color: var(--black-color);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--black-color);
}

.form-control:focus,
.form-select:focus {
  color: var(--black-color);
  border-color: var(--primary-color);
  box-shadow: 0 1px 0 0 #22324b80;
}

.form-control::placeholder {
  color: var(--black-color);
}

.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%231a1818' d='M17.32,6.23c-.24-.23-.62-.23-.86,0l-6.46,6.3L3.54,6.22c-.24-.23-.62-.23-.86,0-.23.23-.24.6-.01.83l6.87,6.7c.25.24.65.24.9,0l6.87-6.7c.23-.23.24-.6.01-.83Z'/%3e%3c/svg%3e");
  background-position: right bottom 4px;
  background-size: 16px;
}

.form-check-input {
  background-color: var(--black-color);
  border-radius: 0 !important;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: color-mix(in srgb, var(--primary-color), transparent 75%);
  outline: 0;
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary-color), transparent 75%);
}

.form-check-label {
  font-weight: 300;
}

/*--------------------------------------------------------------
# Google Map
--------------------------------------------------------------*/
.container-iframe {
  width: 100%;
  height: 230px;
}

.container-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gy-custom {
  --bs-gutter-y: 2rem;
}

/*--------------------------------------------------------------
# CKEDITOR5
--------------------------------------------------------------*/

figure.image {
  margin: .9em auto;
}
figure.image img,
img.image_resized {
  height: auto !important;
}

.image-style-align-left {
  float: left;
  margin-right: 1.5em !important;
}

.image-style-align-right {
  float: right;
  margin-left: 1.5em !important;
}

.image_resized {
  margin-left: auto;
  margin-right: auto;
}

.image-style-block-align-right {
  margin-left: auto;
  margin-right: unset;
}

.image-style-block-align-left {
  margin-right: auto;
  margin-left: unset;
}

.marker-yellow {
  background-color: #b9b924;
  color: #fff;
}

.marker-green {
  background-color: #17c117;
  color: #fff;
}

.marker-pink {
  background-color: #f63666;
  color: #fff;
}

.marker-blue {
  background-color: #2B5597;
  color: #fff;
}

.pen-red {
  color: #e91313;
}

.pen-green,
.pen-red {
  background-color: transparent;
}

.pen-green {
  color: #180;
}

figure.media {
  display: block;
  background: transparent;
  width: auto;
  padding: 10px;
}

blockquote {
  border-left: 5px solid #ccc;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding-left: 1.5em;
  padding-right: 1.5em;
  margin: 0 0 1rem;
}

.ck-detail h2,.ck-detail h3,.ck-detail h4 {margin-bottom: .5rem}
.ck-detail p {line-height: normal;}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (min-width: 992px) {
  h2,h3,h4 {line-height: 1.8;}
  p {line-height: 2;}
  .g-lg-5 {
    --bs-gutter-x: 2.3rem;
    --bs-gutter-y: 2.3rem;
  }
  .process-item {
    max-width: 371px;
  }
  .highlight .menu-list a {
    margin-right: 47px;
  }
  .highlight .content-left h1 {
    margin-top: -6px;
  }
  .highlight-slide {
    padding-left: 20px;
  }
}

@media screen and (max-width: 1699px) {
  .product-card img {
    height: 340px;
  }
}

@media screen and (max-width: 1599px) {
  .product-card img {
    height: 315px;
  }
}

@media screen and (max-width: 1440px) {
  .product-card img {
    height: 295px;
  }
}

@media screen and (max-width: 1399px) {
  .product-card img {
    height: 280px;
  }
}

@media screen and (max-width: 1299px) {
  .product-card img {
    height: 260px;
  }
}

@media screen and (max-width: 1199px) {
  .search-toggle {
    padding-left: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
  }
  .search-toggle img {
    width: 26px;
    margin-left: .5rem;
  }
  .search-nav {
    padding: 10px;
  }
  .search-popup {
    margin-top: 0;
  }
  .dropdown.filter .btn {
    width: 100%;
  }
  .dropdown.filter .dropdown-menu {
    width: 100%;
  }
  .content-reverse br {
    display: none;
  }
  .product-card img {
    height: 235px;
  }
}

@media screen and (max-width: 1099px) {
  .product-card img {
    height: 220px;
  }
}

@media screen and (max-width: 1024px) {
  .product-card img {
    height: 200px;
  }
}

@media screen and (max-width: 991px) {
  h1 {font-size: 30px;}
  .bg-height {
    min-height: 500px;
  }
  .vision {
    padding-right: 20px;
    margin-right: 0;
  }
  .mission {
    padding-left: 20px;
    margin-left: 0;
  }
  .swiper-scrollbar {
    &.swiper-scrollbar-horizontal {
      width: 50%;
    }
  }
  .project-detail {
    margin-top: 65px;
  }
  .project-detail .detail-content {
    max-height: 400px;
  }
  .logo-mapei {
    width: 150px;
    margin: 0 10px;
  }
}

@media screen and (max-width: 767px) {
  .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .p-section {padding: 60px 0;}
  .page-mt {
    margin-top: 90px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  .swiper-scrollbar {
    &.swiper-scrollbar-horizontal {
      bottom: 5%;
    }
  }
  .vision {
    padding-right: 12px;
  }
  .mission {
    padding-left: 12px;
  }
  .partner-logo {
    max-width: 80%;
  }
  .about-two-content {
    width: 100%;
  }
  .about-two-content .content {
    min-height: 250px;
  }
  .project-detail {
    padding: 20px;
    margin-top: 50px;
  }
  .project-detail .detail-content {
    max-height: 310px;
  }
  .product-detail .detail-content {
    max-height: 310px;
  }
  .product-detail-content h1 {margin-top: 35px;}
  .product-detail {padding: 28px 28px 0 28px; margin-top: 25px;}
  .title-bd-r {border-right: none;}
  .about-customise br {
    display: none;
  }
  .search-toggle img {
    width: 18px;
  }
}

@media screen and (max-width: 575px) {
  h3 {font-size: 16px;}
  .p-section {
    padding: 50px 0;
  }
  .page-mt {
    margin-top: 70px;
  }
  .swiper-scrollbar {
    &.swiper-scrollbar-horizontal {
      width: 70%;
    }
  }
  .swiper.gallery {max-width: 90%; height: auto;}
  .gallerySwiper {height: auto !important;}
  .search-popup .search-close {
    top: 20px;
    right: 20px;
  }
  .bg-about .content {
    width: 100%;
  }
  .btn-clear {
    padding: 7px 20px;
  }
}

@media screen and (max-width: 430px) {
  .product-card img {
    height: 180px;
  }
}

@media screen and (max-width: 399px) {
  .product-card img {
    height: 150px;
  }
}
