/**
 * Theme Name:     Hiroshi Lord
 * Author:         Hiroshi Lord
 * Template:       flatsome
 * Description:    Theme Build by Hiroshi Lord
 * Version:        2025
 */
:root {
  --fs-color-gray: #808080;
}

/* DEFAULT NO BORDER AND LINE-THROUGH */
.section-title-center b {
  opacity: 0;
}

.section-title-normal {
  border-bottom: none;
}

.section-title-normal span {
  border-bottom: none;
}

.text-cap {
  span {
    text-transform: capitalize;
  }
}

.border-radius {
  border-radius: 8px;
  overflow: hidden;

  img {
    border-radius: 8px;
  }
}

.sec-footer {
  .custom-menu-white .ux-menu-link__text {
    color: #ffff !important;
    text-align: left !important;
  }

  .text {
    p {
      margin-bottom: 0;
    }

    a {
      color: #fff;
    }
  }
}

.absolute-footer {
  display: none;
}

.text-overflow {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Giới hạn tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Hiện dấu ... nếu vượt quá */
  white-space: normal;
  /* Cho phép xuống dòng */

  a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Hiện dấu ... nếu vượt quá */
    white-space: normal;
    /* Cho phép xuống dòng */
  }
}

.d-none {
  display: none !important;
}

#header {
  .header-main {
    .header-nav-main {
      justify-content: center;
    }
  }
}

#wrapper,
#content,
#main {
  background-color: #f8f8f8;
}

/* END */

.sec-services {
  .services-accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    .item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      padding: 20px 0;
      cursor: pointer;

      .head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.25rem;
        line-height: 1.75rem;
        color: #fff;

        .num {
          margin-right: 10px;
          font-weight: 600;
          opacity: 0.6;
        }

        .title {
          flex: 1;

        }

        .icon {
          transition: .3s;
        }
      }

      .content {
        display: none;
        margin-top: 15px;
        color: #ccc;
        transition: all ease-in .3s;

      }

      &.active {
        .content {
          display: block;
          text-align: center;

          .whitespace-pre-line {
            font-size: 13px;
            text-align: left;
          }

          .mt-4 {
            margin-top: 15px;
            font-size: 13px;
            text-align: left;
          }
        }

        .icon {
          i {
            transform: rotate(180deg);
          }
        }

        .btn {
          display: inline-block;
          margin-top: 15px;
          padding: 6px 20px;
          background: #ddd;
          color: #000;
          text-decoration: none;
          font-size: 14px;
        }
      }

    }

    /* Mobile */
    @media screen and (max-width:768px) {

      grid-template-columns: 1fr;

    }
  }

}

.sec-effective {
  .ba-slider {
    border-radius: 8px;
    overflow: hidden;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: var(--fs-color-primary);
    border-radius: 99px;
    background: #fff;
    height: 40px;
    width: 40px;

    &::after {
      font-size: 15px;
      font-weight: 600;
    }
  }
}

.sec-cat-service {
  padding: 50px 0;

  /* HEADER */
  .cat-header {
    margin-bottom: 40px;

    .cat-title {
      font-size: 36px;
      font-weight: 600;
    }

    .cat-desc {
      margin-top: 10px;
      color: #555;
    }
  }

  .list-service {
    .item-service {
      display: flex;
      gap: 20px;
      border: 1px solid var(--fs-color-gray);
      border-radius: 16px;
      padding: 32px;
      height: 100%;
      overflow: hidden;

      .thumb {
        .top-content {
          display: none;
        }

        img {
          width: 200px;
          height: 100%;
          object-fit: cover;
          border-radius: 10px;
        }
      }

      .content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;

        .top {
          display: flex;
          justify-content: space-between;
          align-items: center;

          .title {
            font-size: 22px;
            margin-bottom: 0;


            a {
              font-weight: 300;
              color: #000 !important;
            }
          }

          .number {
            font-size: 28px;
            color:#000;
          }
        }

        .excerpt {
          margin: 10px 0 20px;
          color: var(--fs-color-gray);
          line-height: 1.6;
        }

        .btn-detail {
          display: inline-block;
          background: #000;
          color: #fff;
          border: 1px solid #000;
          padding: 6px 24px;
          text-decoration: none;
          width: fit-content;

          &:hover {
            background-color: #f8f8f8;
            color: #000;
            border: 1px solid #000;

          }
        }
      }

      @media screen and (max-width:768px) {
        flex-direction: column;
        padding: 16px;

        .thumb {
          .top-content {
            display: flex;

            .title {
              font-size: 22px;
              font-weight: 500;

            }

            .number {
              font-size: 28px;
              color: var(--fs-color-gray);
            }
          }

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            overflow: hidden;
          }
        }

        .content {
          padding-top: 35px;

          .top {
            display: none;
          }

        }
      }
    }
  }


}


.sec-single-service {
  padding: 80px 0;
  background: #f8f8f8;
  text-align: center;

  .service-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #000;
  }

  .wrap-btn {
    margin-bottom: 40px;
  }

  .btn-contact {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .service-desc {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
  }
}

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

/* ===== SECTION STEP ===== */
.sec-step {
  padding: 80px 0;
  background: #f8f8f8;

  .step-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-weight: 400;
  }

  /* ITEM */
  .step-item {
    border-top: 1px solid #ddd;
    padding: 25px 0;

    &:last-child {
      border-bottom: 1px solid #ddd;
    }

    .step-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;

      .step-name {
        font-size: 30px;
        font-weight: 400;
      }
    }

    /* CONTENT */
    .step-content {
      margin-top: 15px;
      color: #666;
      max-width: 800px;
      line-height: 1.7;
    }
  }


}

/* ===== SECTION IMG & CONTENT ===== */
.sec-content-img {
  padding: 80px 0;
  background: #f8f8f8;


  /* ===== GRID ===== */
  .grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;

    .item {
      display: flex;
      flex-direction: column;
      align-items: center;

      &.item-right {
/*         margin-top: 120px; */

        @media screen and (max-width:768px) {
          margin-top: unset;
        }
      }

      .box-img {
        width: 100%;

        img {
          width: 100%;
          height: 400px;
          display: block;
          object-fit: cover;
          object-position: center center;
        }
      }

      .box-content {
        margin-top: 15px;
        text-align: center;
        font-size: 14px;
        color: #666;
        line-height: 1.6;

        h3 {
          font-size: 18px;
          margin-bottom: 5px;
          color: #000;
        }
      }

      &:nth-child(3) {
/*         margin-top: -120px; */

        @media screen and (max-width:768px) {
          margin-top: unset;
        }
      }

    }

    @media screen and (max-width:768px) {
      grid-template-columns: 1fr;
    }
  }
}

/* SECTION IMG RESULT */
.sec-result {
  background: #f8f8f8;

  /* GRID */
  .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* ITEM */
  .result-item {
    position: relative;
    overflow: hidden;
  }

  /* IMAGE */
  .result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* LABEL */
  .label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
  }
}


.sec-video {
  padding: 80px 0;
  background: #f8f8f8;

  .video-wrap {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;

    iframe,
    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
}