/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gray-bg: #edeef1;
  --text-main: #003042;
  --bg-main: #14789c;
  --main-blue: 20, 120, 156;
  --blog-title: #1d1d1d;
  --blog-text: #555;
}

.container.header-inner {
  max-width: unset;
}

.row.container-970 {
  max-width: 970px !important;
}
.container-1120 {
  max-width: 1120px !important;
  margin: 0 auto;
}
.container-1280 {
  max-width: 1120px !important;
  margin: 0 auto;
}
/* .col:not(.post-item),
.columns,
.gallery-item {
  padding: 0;
} */
.banner h1,
.banner h2,
.banner h3 {
  margin: 0;
}
/* Text */
.section-title .subtitle {
  margin: 0.5rem 0 0;
  font-weight: 300;
  font-size: 1.125rem; /* 18px */
  line-height: 1.32em;
  color: #000;
  font-family: "Montserrat", sans-serif;
}

h1,
.h1 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2.5rem; /* 40px */
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

h2,
.h2 {
  text-transform: uppercase;
  color: #1c1c1c;
  font-size: 2.25rem; /* 36px */
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}
h3,
.h3 {
  text-transform: uppercase;
  color: #1c1c1c;
  font-size: 1.875rem; /* 30px */
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
}

h4,
.h4 {
  text-transform: uppercase;
  color: #1c1c1c;
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

h5,
.h5 {
  text-transform: uppercase;
  color: #1c1c1c;
  font-size: 1.125rem; /* 18px 0*/
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

h6,
.h6 {
  text-transform: uppercase;
  color: #1c1c1c;
  font-size: 1rem; /* 16px */
  line-height: 1.5 !important;
  letter-spacing: 0.02em;
  margin: 1.5rem 0; /* 24px 0*/
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 1rem;
}

blockquote,
dl,
figure,
form,
ol,
p,
pre,
ul {
  margin-bottom: 1rem;
}

.section-title {
  display: block !important;
}
.section-title .title {
  margin: 0;
}

/* Padding */
.pt-100 {
  padding-top: 6.25rem !important;
}
.pb-100 {
  padding-bottom: 6.25rem !important;
}
.pt-80 {
  padding-top: 5rem !important;
}
.pb-80 {
  padding-bottom: 5rem !important;
}
.pb-16 {
  padding-bottom: 1rem !important;
}
/* Margin */
.mb-20 {
  margin-bottom: 1.25rem !important;
}

/* Button */
.button.is-outline:not(.back-to-top),
input[type="button"].is-outline,
input[type="reset"].is-outline,
input[type="submit"].is-outline {
  border: 1px solid !important;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Work Sans", sans-serif;
  letter-spacing: 0.15em;
  padding: 14px 52px 13px 54px;
}

/* Post Item */
.post-item .box-text-inner.blog-post-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.post-item .box-text-inner h5.post-title {
  order: 1;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.2em;
  line-height: 1.23em;
  letter-spacing: 0.01em;
  font-family: "Work Sans", sans-serif;
}
.post-item .box-text-inner h5.post-title a {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.post-item .box-text {
  padding-top: 1.875rem;
  padding-left: 0;
  padding-right: 0;
}
.post-item .cat-label {
  padding: 3px;
  border: 0.5px solid;
}
.post-item .cat-label,
.post-item .post-meta {
  font-size: 0.7rem;
  color: var(--wp-admin-theme-color);
  order: 0;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: capitalize;
}
.post-item .post-meta {
  margin-left: 0;
  margin-right: 0;
}
.post-item .box-blog-post .is-divider {
  display: none;
}
.post-item .from_the_blog_excerpt {
  order: 2;
  font-size: 1rem;
}
.post-item a.button {
  order: 3;
  margin-top: 0.5rem;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.post-item a.button.is-underline:before {
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
}

/* Footer */
#footer {
  color: #1c1c1c;
}
#footer .col-info {
  padding-right: 0;
}

#footer
  .section-footer
  .col-info
  .icon-box-left
  .icon-box-img
  + .icon-box-text {
  padding-left: 0.8rem;
}

#footer .section-footer .col-info .icon-box-left .icon-box-img,
.icon-box-right .icon-box-img {
  width: 18px !important;
}
#footer .icon-box-img img,
.icon-box-img svg {
  padding-top: 4px;
}
#footer .icon-box {
  margin-bottom: 0.3rem;
}
#footer .section-footer .row-footer {
  justify-content: space-between !important;
  /* gap: 1.5rem; */
}

/* list-why-choose-us */
.list-why-choose-us::after {
  display: none;
}

/* .list-company-certificate .col,
.list-company-imgs .col {
  padding: 5px;
} */
.list-why-choose-us .col .box-text p {
  max-width: 500px;
  margin: 0 auto;
}
.list-why-choose-us .col .box-text {
  padding: 2rem;
}
/* .list-company-certificate .col .col-inner,
.list-company-imgs .col .col-inner {
  border: 2px solid var(--wp-admin-theme-color);
  transition: all 0.3s ease-in-out;
}
.list-company-certificate .col .col-inner:hover,
.list-company-imgs .col .col-inner:hover {
  border-color: #fdb513;
} */

.select-resize-ghost,
.select2-container .select2-choice,
.select2-container .select2-selection,
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  box-shadow: unset;
  border-radius: 0.25rem;
}

form label span {
  margin-top: 0.5rem;
}

form input[type="submit"] {
  margin-bottom: 0;
  width: 200px;
  border-radius: 0.25rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

form .wpcf7-spinner {
  display: none;
}

.list-company-certificate .col .col-inner,
.list-company-imgs .col .col-inner {
  position: relative;
  border-radius: 8px;
}
.list-company-certificate .col .col-inner::before,
.list-company-imgs .col .col-inner::before {
  background: linear-gradient(
    45deg,
    transparent 5%,
    rgb(255, 215, 137) 50%,
    transparent 99%
  );
  border-radius: inherit;
  content: "";
  inset: 0px;
  opacity: 0;
  position: absolute;
  transition: opacity 400ms;
  z-index: 0;
  left: -4px;
  top: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 8px;
}

.list-company-certificate .col .col-inner::before {
  left: -2px;
  top: -2px;
  right: -2px;
  bottom: -2px;
}

.list-company-certificate .col .col-inner:hover::before,
.list-company-imgs .col .col-inner.col-inner:hover::before {
  opacity: 1;
}
.list-company-certificate .col .col-inner .box-image,
.list-company-imgs .col .col-inner.col-inner .box-image {
  border-radius: 8px;
}
/* Post */
.post-sidebar {
  padding-left: 2rem;
  max-width: 100%;
  min-width: 150px;
}
.post-sidebar button[type="submit"] {
  display: none;
}
.post-sidebar .wp-block-search__inside-wrapper {
  display: block;
  flex-wrap: unset;
  width: 100%;
}
.blog-wrapper .large-9 {
  padding-right: 2rem;
}
.post-sidebar {
  padding-left: 2rem !important;
  padding-right: 0 !important;
}

.single .wpsp-related-posts1 .post-item {
  padding: 0 0.5rem;
}
.single article h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

.single article h2 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 0.5em;
  text-transform: unset;
}

.single article h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.45em;
  text-transform: unset;
}

.single article h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.4em;
  text-transform: unset;
}

.single article h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.35em;
  text-transform: unset;
}

.single article h6 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.3em;
  text-transform: unset;
}

.widget_search form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* khoảng cách giữa input và nút */
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.widget_search input[type="search"]:focus {
  border-color: #333;
}

.widget_search input[type="submit"] {
  padding: 10px 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  text-transform: none; /* không viết hoa toàn bộ */
}

.widget_search input[type="submit"]:hover {
  background-color: #000;
}

.flatsome_recent_posts .badge {
  width: 60px;
  height: auto;
  aspect-ratio: 1/1;
}
.flatsome_recent_posts a[title] {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.recent-blog-posts {
  align-items: center !important;
}

.div-form-contact {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#header .nav-left {
  margin: 0 auto;
  width: max-content;
}

#header .nav-left > li > a {
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.5s ease-in-out;
  letter-spacing: 0.05em;
}
#header .nav-left > li.current-menu-item > a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 0.5px;
}
#header .nav-left > li > a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 0.5px;
}
.nav > li {
  margin: 0 10px;
}

.woocommerce-page main {
  max-width: 1120px !important;
  margin: 0 auto;
}

.category-page-row {
  /* gap: 30px; */
  flex-wrap: nowrap;
}
.category-page-row > .col {
  flex-basis: unset;
  max-width: unset;
}

.category-page-row > .col.large-3 {
  width: 230px !important;
  flex-shrink: 0;
}
.category-page-row > .col.large-9 {
  flex-grow: 1;
}
.woocommerce .products {
  gap: 0px;
}
.woocommerce .products .product {
  max-width: 100%;
}
.woocommerce .widget_product_categories .is-divider {
  display: none;
}
.woocommerce .widget_product_categories .widget-title {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 1rem;
}
.woocommerce .product-categories .cat-item a {
  font-size: 0.9rem;
  color: gray;
}
.woocommerce .product-categories .cat-item a:hover {
  color: #333;
}
.woocommerce .title-wrapper .product-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0;
}
.woocommerce .title-wrapper .category {
  color: #0b71b9;
  padding: 0.25rem;
  border: 0.5px solid;
  display: inline-block;
  margin-bottom: 0rem;
  margin-top: 0.5rem;
}
.woocommerce .container .woocommerce-pagination {
  margin-bottom: 5rem;
}
.woocommerce.single-product .product-main .row {
  gap: 30px;
}
.woocommerce.single-product .product-main .row:after {
  display: none;
}
.woocommerce.single-product .is-divider {
  display: none;
}
.woocommerce.single-product .product-info .product-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.woocommerce.single-product .product-images a.button {
  width: 30px;
  height: 30px;
  display: inline-block;
  font-size: unset;
  padding: unset;
}
.woocommerce .product_meta .posted_in {
  font-size: 1rem;
  font-weight: bold;
}
.woocommerce .product_meta .posted_in a {
  color: #0b71b9c4;
  font-weight: normal;
}
.woocommerce .product_meta .posted_in a:hover {
  color: #0b71b9;
}
/* Responsive  */
.section-news .post-item {
  padding-bottom: 0;
}

.product-sidebar input[type="search"] {
  border-radius: unset;
}

/* Tablet */
@media screen and (max-width: 1023px) {
  .banner h1 {
    font-size: 6vw;
  }
  h1,
  .h1 {
    font-size: 7vw;
  }
  h2,
  .h2 {
    font-size: 6vw;
  }
  h3,
  .h3 {
    font-size: 3vw;
    margin-bottom: 0.5rem;
  }
  .section-title .subtitle {
    font-size: 3vw;
  }
  .list-company-imgs,
  .list-company-certificate {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .list-company-imgs .col,
  .list-company-certificate .col {
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .box-image > img {
    padding: 0;
  }
}

@media screen and (max-width: 849px) {
  #header .show-for-medium ul {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Mobile */
@media screen and (max-width: 576px) {
  .banner h1 {
    font-size: 7vw;
  }
  h1,
  .h1 {
    font-size: 7.5vw;
  }
  h2,
  .h2 {
    font-size: 6.5vw;
  }
  h3,
  .h3 {
    font-size: 4.5vw;
    margin-bottom: 0.5rem;
  }
  .section-title .subtitle {
    font-size: 4.3vw;
  }
  .pb-100 {
    padding-bottom: 3rem !important;
  }
  .pt-100 {
    padding-top: 3rem !important;
  }
  .pt-80 {
    padding-top: 3rem !important;
  }
  .pb-80 {
    padding-bottom: 3rem !important;
  }
  .pb-16 {
    padding-bottom: 3rem !important;
  }

  #footer .col-social-media {
    padding-bottom: 0;
  }
  #footer .col-info {
    padding-right: 0;
  }
  #footer .col-social-media .col-inner {
    max-width: unset;
  }
  #footer .row-collapse .img-inner > img {
    width: 80%;
    display: block;
  }
  .div-content-up .col-img {
    order: 1;
  }
  .div-content-up .col-text {
    order: 2;
  }
  #footer .row-footer > .col {
    padding-bottom: 0;
  }
}
