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

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

/* .header-block .button {
  margin: 0;
} */
b,
strong {
  font-weight: 600;
}
:root {
  --color-heading: #071028;
}
.radius-10 {
  .img-inner {
    border-radius: 10px;
  }
}
.mb-0 {
  margin-bottom: 0 !important;
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 0 !important;
  }
}
.mb-10 {
  margin-bottom: 10px !important;
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 10px !important;
  }
}
.mb-15 {
  margin-bottom: 15px !important;
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 15px !important;
  }
}
.pd-0 {
  padding: 0 !important;
  > .col {
    padding: 0 !important;
  }
}
.pd-t0 {
  padding-top: 0 !important;
  > .col-inner {
    padding-top: 0 !important;
  }
}
.btn-center .button,
.btn-center .text-center {
  display: flex;
  justify-content: center;
}
.btn-primary,
.contact-menu a,
.btn-contact {
  margin: 0;
  display: flex;
  align-items: center;
  width: max-content;
  min-height: auto;
  color: #fff !important;
  &:hover {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
  }
  i {
    top: 0;
    background: var(--fs-color-secondary);
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 100%;
    font-size: 28px !important;
  }
}
.btn-more {
  &:hover {
    color: var(--fs-color-secondary) !important;
    i {
      background: var(--fs-color-secondary) !important;
    }
  }
  i {
    top: 0;
    background: var(--fs-color-primary);
    color: #fff;
    width: 22px;
    height: 22px;
    margin-left: 2px !important;
    border-radius: 100%;
    font-size: 19px !important;
  }
}
.absolute-footer {
  display: none;
}
.header-nav.nav .contact-menu {
  display: table;
  margin: 0 auto;
}
.nav-vertical .contact-menu a {
  flex-grow: inherit;
  margin: 10px;
}
.contact-menu a {
  background-color: var(--fs-color-primary);
  flex-direction: row-reverse;
  color: #fff !important;
  padding: 0 0 0 15px !important;
  border-radius: 99px;
  gap: 10px;
  i {
    opacity: 1 !important;
    margin: 0 !important;
  }
  i:before {
    color: #fff !important;
  }
}
/* Header */
.nav-spacing-xlarge > li {
  margin: 0 30px;
}

footer a:not(:hover),
.link-color-base a:not(:hover) {
  color: var(--fs-color-base);
}
.link-color-heading a:not(:hover) {
  color: var(--color-heading);
}
.ul-footer ul {
  margin: 0;
}
.ul-footer li {
  list-style: none;
  margin: 0 0 15px 0 !important;
  line-height: 1.3;
}
.ul-footer li a {
  transition: all 0.3s ease-in-out;
}
.footer-contact form {
  button,
  input,
  select,
  textarea {
    height: 52px;
    background-color: transparent !important;
    border-color: #ffffff4d !important;
    color: #fff !important;
    box-shadow: none !important;
    margin-top: 7px;
    font-size: inherit;
    &::-webkit-input-placeholder {
    }
    &::-moz-placeholder {
    }
  }
  fieldset + label {
    margin-top: 0;
  }
  textarea {
    height: 100px;
  }
  input.wpcf7-submit {
    background-color: #fff !important;
    color: var(--fs-color-base) !important;
    text-transform: none;
    height: auto;
    width: auto;
    margin: 0;
    &:hover {
      background-color: var(--fs-color-primary) !important;
      color: #fff !important;
      border-color: var(--fs-color-primary) !important;
    }
  }
  .wpcf7-spinner {
    position: absolute;
    top: 0;
    left: 0;
  }
  label {
    margin-top: 10px;
  }
}

.gradient-text {
  h1 code {
    background: linear-gradient(to right, #1a4a9e, #3a86ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: inherit;
    padding: 0;
    border: none;
    margin: 0;
    font-size: inherit;
  }
}

.gradient-btn {
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e4da1 0%, #359ad8 100%);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #359ad869;
  &:hover {
    box-shadow: 0 0 10px #359ad8;
  }
}
.gradient-btn-outline {
  border: 2px solid transparent !important;
  background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #1e4da1, #359ad8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  span {
    transition: all 0.3s ease;
    background-image: linear-gradient(135deg, #1e4da1 0%, #359ad8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  &:hover {
    background-image: linear-gradient(to right, #1e4da1 0%, #359ad8 100%), linear-gradient(to right, #1e4da1, #359ad8);
    box-shadow: 0 0 10px #359ad8 !important;
    span {
      background: #ffff;
      background-clip: text;
    }
  }
}

.home-counter {
  .counter-label {
    font-size: 20px;
    opacity: 1;
    color: var(--color-heading);
  }
  .flt-counter-box {
    padding: 0;
  }
  .col:after,
  .col::before {
    border-color: #b3b3b3;
  }
}
.number-divider {
  margin-left: -30px;
  position: relative;
  line-height: normal;
  &::after {
    content: "";
    position: absolute;
    left: 30px;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--fs-color-primary);
    bottom: 10px;
  }
}

.our-solution {
  .col {
    padding-left: 5px;
    padding-right: 5px;
  }
  .col .col-inner {
    --bg-color: rgb(235, 235, 235);
    --gap: 24px;
    --arrow-size: 20px; /* Độ nhọn của mũi tên */
    position: relative;
  }

  .col .col-inner::after,
  .col .col-inner::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
  }

  .col .col-inner::after {
    right: calc(var(--arrow-size) * -1);
    border-left: var(--arrow-size) solid var(--bg-color);
    z-index: 2;
    border-top: var(--arrow-size) solid transparent;
    border-bottom: var(--arrow-size) solid transparent;
  }
  .col .col-inner::before {
    left: 0;
    border-left: var(--arrow-size) solid white;
    z-index: 1;
    border-top: var(--arrow-size) solid transparent;
    border-bottom: var(--arrow-size) solid transparent;
  }
  .col:first-child .col-inner::before {
    display: none;
  }
  .col:last-of-type .col-inner::after {
    display: none;
  }

  .icon-box {
    position: relative;
    height: 100%;
  }
  .icon-box-text {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .icon-box-img {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
    z-index: 1;
  }
  .icon-content {
    margin-top: auto;
    li {
      line-height: normal;
      margin-bottom: 10px;
    }
  }
}

body:not(.ux-builder-iframe) {
  .our-solution {
    .col-inner .icon-content,
    .col-inner:hover .icon-box-img {
      visibility: hidden;
      opacity: 0;
      transition: all 0.3s ease;
    }
    .col-inner:hover .icon-content,
    .col-inner .icon-box-img {
      visibility: visible;
      opacity: 1;
      transition: all 0.3s ease;
    }
    .col-inner:hover .icon-box:after {
      content: "";
      position: absolute;
      bottom: -30px;
      width: calc(100% + 40px);
      left: -20px;
      height: 4px;
      background: var(--fs-color-primary);
      border-radius: 12px;
    }
  }
  .ss-solutions .section-content > .row h2 strong {
    font-weight: inherit;
    position: absolute;
    left: 0;
  }
}
.banner-desktop {
  overflow: hidden;
  .ux-shape-divider--top {
    /* top: -1px; */
    transform: rotate(90deg);
    top: 50%;
    left: -50%;
  }
}
.ss-logo img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  transition: all 0.3s ease;
  filter: invert(1) sepia(1) saturate(0) brightness(2);
  &:hover {
    transform: scale(1.1);
  }
}
.ss-logo {
  .col-inner {
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid var(--fs-color-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.post-meta-box {
  position: absolute;
  bottom: 15px;
}
.col.post-item .col-inner {
  height: 100%;
}
.box.box-blog-post {
  background-color: #ebebebde;
  border-radius: 8px;
  height: 100%;
  .box-image {
    border-radius: 8px;
  }
  .box-text-inner {
    padding-bottom: 65px;
  }
}
.slider-logo img {
  /* width: 150px;
  max-width: 150px;
  object-fit: contain;
  display: table;
  margin: 0 auto; */
}
.counter-about {
  .flt-counter {
    font-size: 58px;
    margin-bottom: 40px;
  }
  .counter-label {
    font-size: 20px;
  }
}
.form-contact-us {
  .wpcf7-radio.your-subject {
    display: flex;
    flex-wrap: wrap;
    line-height: normal;
    margin-bottom: 12px;
    gap: 10px 30px;
  }

  span.wpcf7-list-item {
    width: auto;
    position: relative;
    margin: 0px !important;
  }

  input[type="radio"] {
    /* opacity: 0; */
  }

  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="url"],
  textarea {
    padding: 8px 12px !important;
    height: 40px;
    font-size: inherit;
    box-shadow: none !important;
    border-color: #0000004d !important;
    border-radius: 4px !important;
  }
  textarea {
    height: 100px;
  }
  .wpcf7-spinner {
    position: absolute;
    right: 0;
  }
  .wpcf7-response-output {
    margin: 20px 0 0 !important;
  }
  .wpcf7-submit {
    width: auto;
    border-radius: 99px !important;
    text-transform: none;
    margin-top: 10px;
  }
  .cf7-arrow-btn {
    padding-right: 50px;
    border-radius: 99px;
    background: var(--fs-color-primary);
    border: none;
    position: relative;
    cursor: pointer;
    margin: 10px 0 0 0;
    line-height: normal;
    color: #fff;
    &:hover,
    &:hover::after {
      box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
    }
  }
  .cf7-arrow-btn::before {
    content: "";
    /* background: var(--fs-color-secondary); */
    position: absolute;
    top: 50%;
    right: 10px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
  }
  .cf7-arrow-btn::after {
    content: "";
    position: absolute;
    background: var(--fs-color-secondary);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    z-index: 0;
    transition: all 0.3s ease;
  }

  input[type="radio"] {
    opacity: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    right: 0px;
    height: 100%;
    margin: 0px;
  }

  .wpcf7-list-item-label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
  }

  /* icon default (stroke) */
  .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;

    /* SVG dạng viền */
    background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'>\<path d='M11.6146 9.66602L6.30798 12.5928L1.00037 9.66602L1.00037 0.999999L11.6146 1L11.6146 9.66602Z' stroke='%230C4DC4' stroke-width='2' fill='none'/>\</svg>");
  }

  /* checked -> fill */
  .wpcf7-list-item input:checked + .wpcf7-list-item-label::before {
    background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'>\<path d='M11.6146 9.66602L6.30798 12.5928L1.00037 9.66602L1.00037 0.999999L11.6146 1L11.6146 9.66602Z' fill='%230C4DC4' stroke='%230C4DC4' stroke-width='2'/>\</svg>");
  }
}
.col.post-item .box-text {
  padding: 15px;
}
.related-stories h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fs-color-base);
}

.related-stories ul {
  list-style: none;
  padding: 0;
}

.related-stories li {
  margin-bottom: 12px;
}

.related-stories a {
  line-height: 1.3;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#post-list {
  .image-cover {
    padding-top: 80% !important;
    transition: all 0.3s ease;
    border-radius: 8px;
  }
  .col.post-item .col-inner:hover .image-cover {
    transform: scale(1.1);
  }
}

#post-list .from_the_blog_excerpt {
  display: none;
}

.post-title a {
  color: var(--fs-color-base);
  font-size: 14px;
  &:hover {
    color: var(--fs-experimental-link-color-hover);
  }
}

.archive-page-header h1 {
  font-size: 28px;
  font-weight: 600;
}
h1.entry-title {
  font-size: 48px;
  line-height: normal;
  font-weight: 600;
}
.entry-content.single-page {
  h2,
  h3,
  h4 {
    font-weight: 600;
    line-height: normal;
  }
  h2 {
    font-size: 40px;
  }
  h3 {
    font-size: 28px;
  }
}
h3.link-entry-category {
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 26' fill='none'>\<path d='M2.67104 6.35097L11.2842 12.9481L2.67104 19.5467L2.67104 6.35097Z' fill='%230C4DC4'/>\<path d='M0.249914 0.506377L16.4951 12.9484L0.249913 25.392L0.249914 0.506377Z' stroke='%230C4DC4' stroke-width='0.5' stroke-miterlimit='10'/>\</svg>")
      no-repeat center / contain;
  }
}
.entry-content.single-page {
  padding-top: 0;
  color: var(--color-heading);
  /* font-weight: 300; */
  > p:first-child {
    color: var(--fs-color-base);
    font-weight: 600;
    font-size: 20px;
    line-height: normal;
  }
}
h6.entry-category {
  font-size: 0;
  margin-bottom: 10px;
  > a:first-child {
    font-size: 24px;
    color: var(--fs-color-primary);
    font-weight: 600;
    text-transform: none;
  }
}
.entry-header-text-top {
  padding-bottom: 0;
}

.post-item .post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#post-list .from_the_blog_excerpt {
  margin-top: 7px;
}
#post-list .row .post-item:first-child {
  max-width: 100%;
  flex-basis: 100%;

  .from_the_blog_excerpt {
    display: block;
  }
  .box-image {
    width: 100%;
    .image-cover {
      padding-top: 60% !important;
    }
  }
  .post-title a {
    font-size: 22px;
  }
  .box-text {
    padding-left: 15px;
    padding-top: 15px;
  }
  .box {
    display: flex;
    /* flex-direction: column;
    align-items: center; */
    /* width: 100%; */
  }
}
.nav > li > a {
  font-size: inherit;
}
.nav-vertical li li.menu-item-has-children > a {
  color: var(--fs-color-primary);
  font-size: inherit;
}
.nav-top-link i {
  transition: all 0.3s ease !important;
}
.nav-top-link:hover,
.nav-top-link[aria-expanded="true"] {
  .icon-angle-down {
    transform: rotate(180deg);
  }
}
.header-nav .header-language-dropdown,
.mobile-nav .header-language-dropdown {
  .nav-top-link {
    font-size: 0;
    margin-left: 20px;
  }
  .nav-dropdown {
    min-width: 190px;
  }
}
button#top-link {
  color: var(--fs-color-primary);
}
.header-nav .menu-our_solutions {
  .nav-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    > li.menu-item {
      width: 100%;
      margin-bottom: 20px;
    }
    .nav-column a {
      font-size: 14px;
      border-color: transparent;
      padding: 2px 0;
    }
  }
  .nav-dropdown > li > a {
    color: var(--fs-color-primary);
    font-weight: 400;
    font-size: inherit;
    border-color: transparent;
    padding-bottom: 5px;
  }
  ul.sub-menu.nav-dropdown {
    width: max-content;
  }
}
.ul-disc {
  li a:after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 6px;
    height: 6px;
    top: 6px;
    left: -15px;
    border-radius: 100%;
    background: var(--fs-color-primary);
    transition: all 0.3s ease;
  }
  li {
    list-style-type: none;
    /* margin-left: 0 !important; */
  }
  li a {
    position: relative;
    text-transform: none;
    color: var(--fs-color-base);
    &:hover {
      color: var(--fs-experimental-link-color-hover);
      &:after {
        background: var(--fs-experimental-link-color-hover);
      }
    }
  }
}
.ss-solutions .ux-logo-image,
.ss-about-logo .ux-logo-image,
.logo-home .ux-logo-image {
  object-fit: contain;
  display: table;
  margin: 0 auto;
  height: auto !important;
}
.ss-about-logo h3 {
  &&:after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 10px;
    height: 10px;
    top: 15px;
    left: -20px;
    border-radius: 100%;
    background: var(--fs-color-primary);
    transition: all 0.3s ease;
  }
}
.ss-solutions {
  .z-1 > .col-inner {
    background: linear-gradient(to bottom, var(--fs-color-primary), #06255e);
    overflow: hidden;
    &::before {
      content: "";
      position: absolute;
      background-repeat: no-repeat;
      background-size: contain;
      background-image: var(--bg-svg);
      bottom: -30px;
      right: 30px;
      width: 100%;
      height: 100%;
    }
  }
}
/* .related-stories a:hover {
  text-decoration: underline;
} */
@media screen and (min-width: 850px) {
  .wp-singular .row-divided > .col + .col:not(.large-12) {
    border-color: transparent;
  }
  .aligncenter {
    border-radius: 22px;
    width: 100%;
  }
  .blog-single .row.row-large {
    display: flex;
    justify-content: space-evenly;

    > .large-8 {
      padding-left: 100px;
      padding-right: 30px;
    }
  }
}
@media (min-width: 850px) and (max-width: 1600px) {
  .ss-banner .gradient-text {
    font-size: 2rem !important;
  }
  .ss-banner .banner-desktop {
    padding-top: 600px !important;
  }
}
@media (min-width: 850px) and (max-width: 1240px) {
  .ss-banner .banner-desktop {
    padding-top: 450px !important;
  }
  .ss-banner .gradient-text {
    font-size: 2rem !important;
  }
  .entry-content.single-page {
    h2 {
      font-size: 36px;
    }
  }
  h1.entry-title {
    font-size: 40px;
  }
}
@media (min-width: 550px) and (max-width: 980px) {
  .gradient-btn-outline,
  .gradient-btn {
    font-size: medium !important;
  }
}
@media (min-width: 850px) and (max-width: 980px) {
  .ss-banner .gradient-text {
    font-size: 1.6rem !important;
  }
}
@media screen and (max-width: 849px) {
  .home-counter {
    .counter-label {
      font-size: 16px;
    }
  }
  .br-none-tl {
    br {
      display: none;
    }
  }
  .order-first-tl {
    order: -1;
  }
  .counter-about {
    .flt-counter {
      font-size: 48px;
      margin-bottom: 20px;
    }
    .counter-label {
      font-size: 18px;
    }
  }
  h1.entry-title {
    font-size: 30px;
  }
  h3.link-entry-category {
    font-size: 20px;
    margin-left: 26px;
  }
  .entry-content.single-page {
    h2 {
      font-size: 26px;
    }
    h3 {
      font-size: 22px;
    }
  }
}
@media only screen and (max-width: 549px) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
  .mb-mb-0 {
    margin-bottom: 0 !important;
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-bottom: 0 !important;
    }
  }
  .footer-contact {
    padding-bottom: 0;
  }
  .footer-contact form {
    label {
      margin-top: 0;
    }
  }
  .sub-title p {
    margin-bottom: 10px;
  }
  .ss-banner .v-center {
    position: relative !important;
    bottom: 0;
    top: auto;
    transform: none;
  }
  .br-none-mb {
    br {
      display: none;
    }
  }
  .our-solution {
    .col {
      padding-bottom: 10px;
      padding-left: auto;
      padding-right: auto;
    }
    .col .col-inner::after {
      bottom: calc(var(--arrow-size) * -1);
      border-bottom: none;
      border-right: var(--arrow-size) solid transparent;
      border-left: var(--arrow-size) solid transparent;
      border-top: var(--arrow-size) solid var(--bg-color);
    }
    .col .col-inner::before {
      border-top: var(--arrow-size) solid white;
      top: 0 !important;
      border-right: var(--arrow-size) solid transparent;
      border-left: var(--arrow-size) solid transparent;
    }
    .col .col-inner::after,
    .col .col-inner::before {
      right: auto !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
    }
    .col .col-inner::after {
      top: auto !important;
    }
  }
  .ss-solutions .z-1 > .col-inner::before {
    right: -22px;
  }
  .heading-logo,
  .order-first-mb {
    order: -1;
  }
  .counter-about {
    .flt-counter {
      font-size: 40px;
    }
  }
  footer#footer {
    padding-bottom: 40px;
  }
  .aligncenter {
    border-radius: 16px;
  }
  h3.link-entry-category {
    font-size: 18px;
  }
  .related-stories a {
    font-size: 16px;
  }
  h3.link-entry-category {
    &::before {
      width: 24px;
      height: 24px;
    }
  }
  #post-list .row .post-item:first-child {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
    .from_the_blog_excerpt {
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .post-title a {
      font-size: 18px;
    }
    .box {
      flex-direction: column;
      align-items: center;
    }
    .box-text {
      padding-top: 15px;
      padding-left: 15px;
    }
  }
  .archive-page-header .large-12 {
    padding-bottom: 15px;
  }
  body:not(.ux-builder-iframe) {
    .our-solution {
      .col-inner:hover .icon-box:after {
        bottom: -22px;
        height: 2px;
      }
    }
  }
  .mobile-nav .header-language-dropdown {
    .nav-dropdown {
      min-width: 180px;
      left: -115px;
    }
    .nav-top-link {
      flex-wrap: nowrap;
    }
  }
}
