/*
Theme Name: MatBaoWS
Description: This is a child theme for Flatsome Theme
Author: MatBaoWS Team
Template: flatsome
Version: 3.1
*/
/*************** ADD CUSTOM CSS HERE.   ***************/

/* Custom Homepage Banner */
.custom-home-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.custom-banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}
.custom-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 4%;
  line-height: 1.2;
}
.custom-banner-slogan {
  width: 48%;
  color: #fff;
  font-weight: 800;
  font-size: 1.45vw;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: sloganFullColorChange 0.8s infinite ease-in-out;
}
.custom-banner-slogan span {
  color: inherit !important;
}

@keyframes sloganFullColorChange {
  0%, 100% {
    color: #ffffff;
  }
  50% {
    color: #fec931;
  }
}
.custom-banner-contacts {
  width: 48%;
  color: #fff;
  font-weight: 600;
  font-size: 1.2vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2vw;
}
.custom-banner-contacts span {
  display: flex;
  align-items: center;
}
.custom-banner-contacts a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.custom-banner-contacts a:hover {
  opacity: 0.85;
}
.custom-banner-contacts a.phone-link {
  color: #fec931;
  font-weight: 700;
}
@media (max-width: 767px) {
  .custom-banner-overlay {
    height: 26%;
    padding: 0 3%;
    position: absolute;
    z-index: 1;
  }
  .custom-banner-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background-color: #c62121;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  }
  .custom-banner-slogan {
    width: 55%;
    font-size: 1.6vw;
  }
  .custom-banner-contacts {
    width: 43%;
    font-size: 1.4vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    line-height: 1;
  }
  .custom-banner-contacts span {
    white-space: nowrap;
  }
}