/**
 * Theme Name:     Hiroshi Lord
 * Author:         Hiroshi Lord
 * Template:       flatsome
 * Description:    Theme Build by Hiroshi Lord
 * Version:        2025
 */

/* 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;
  }
}

.entry-divider {
  display: none;
}

.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-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;
}

/* END */
.header-main {
  .hide-for-medium {
    .header-nav-main {
      justify-content: center;

      .title-header-menu {
        text-transform: uppercase;
        color: var(--primary-color);
        font-size: 24px;
        font-weight: 600;
      }
    }
  }
}

.sec-footer {
  .list-work {
    li {
      display: flex;
      justify-content: space-between;
      padding-left: 0;
      margin-left: 0;
    }
  }

  p {
    margin-bottom: 10px;
  }
}

.widget-area {
  .widget_block {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;

    .widget-title {
      background: unset !important;
      color: var(--primary-color) !important;
      font-size: 22px !important;
      text-align: center;
    }
  }
}

.ff-field_container {
  .ff-el-group {

    input,
    textarea {
      border-radius: 4px;
      border: 1px solid var(--primary-color);
      box-shadow: none;
    }
  }

  .ff-text-center {
    text-align: center;

    .ff-btn-submit {
      border-radius: 25px;
      margin-bottom: 0;
    }

    .wpcf7-spinner {
      display: none;
    }
  }
}

.post-sidebar {
  border-left: none !important;
}

.post-item {
  .col-inner {
    .badge {
      &.badge-outline {
        .badge-inner {
          border-radius: 50%;
          overflow: hidden;
        }
      }
    }

    .box-image {
      position: relative;
      border-radius: 8px;
      overflow: hidden;

      &::before {
        position: absolute;
        top: 0;
        left: -75%;
        z-index: 2;
        display: block;
        content: '';
        width: 50%;
        height: 100%;
        background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
        -webkit-transform: skewX(-25deg);
        transform: skewX(-25deg);
      }
    }
  }

  &:hover {
    .box-image::before {
      -webkit-animation: shine .75s;
      animation: shine .75s;
    }
  }
}

.img {
  .img-inner {
    position: relative;

    &::before {
      position: absolute;
      top: 0;
      left: -75%;
      z-index: 2;
      display: block;
      content: '';
      width: 50%;
      height: 100%;
      background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
      background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
      -webkit-transform: skewX(-25deg);
      transform: skewX(-25deg);
    }
  }

  &:hover {
    .img-inner {
      &::before {
        -webkit-animation: shine .75s;
        animation: shine .75s;
      }
    }
  }
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.h-100 {
  .col-inner {
    height: 100%;
  }
}

.custom-services {
  .flickity-slider {
    .row {
      /* transform: scale(0.85); */
      opacity: 1;

      .box {
        .box-image {
          position: relative;
          text-align: center;

          img {
            border-radius: 8px;
            overflow: hidden;
          }

          &::before {
            position: absolute;
            top: 0;
            left: -75%;
            z-index: 2;
            display: block;
            content: '';
            width: 50%;
            height: 100%;
            background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
            background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
            -webkit-transform: skewX(-25deg);
            transform: skewX(-25deg);
          }

          &::after {
            content: '\f0f1';
            font-style: normal;
            font-variant: normal;
            text-rendering: auto;
            -webkit-font-smoothing: antialiased;
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            width: 48px;
            height: 48px;
            background-color: var(--primary-color);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 21px;
            border-radius: 100%;
            -moz-border-radius: 100%;
            -webkit-border-radius: 100%;
            -o-border-radius: 100%;
            position: relative;
            top: -25px;
          }

          &:hover {
            &::before {
              -webkit-animation: shine .75s;
              animation: shine .75s;
            }
          }
        }

        .box-text {
          h3 {
            text-transform: uppercase;
            font-size: 24px;
          }
        }
      }

      &.is-selected {
        /* transform: scale(1.1); */
      }
    }
  }
}


.sec-doctor {

  .doctor-detail {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    display: flex;

    .img-doctor {
      flex: 1;
      text-align: center;
      padding: 35px;

      img {
        width: 100%;
      }
    }

    .info-doctor {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 30px;
    }

    .btn-detail {
      width: 30%;
      border-radius: 99px;
      overflow: hidden;
      text-transform: unset;
    }
  }

  .main-swiper .swiper-button-next,
  .main-swiper .swiper-button-prev {
    opacity: 0;
    transition: 0.3s;
  }

  .main-swiper:hover .swiper-button-next,
  .main-swiper:hover .swiper-button-prev {
    opacity: 1;
  }

  .thumb-swiper .swiper-slide {
    opacity: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
  }

  .thumb-swiper .swiper-slide-thumb-active {
    border-color: #1e90ff;
  }
}

.custom-blog-date {
  .post-meta {
    width: 50%;
    background: #f58220;
    position: absolute;
    top: -8px;
    left: 5%;
    margin: auto;
    opacity: 1;
    border-radius: 4px;
    overflow: hidden;
    color: #fff;

    &::before {
      content: '\f133';
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      -webkit-font-smoothing: antialiased;
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
      padding-right: 5px;
    }
  }

  .is-divider {
    display: none;
  }
}

.custom-box-img {
  border: 1px solid;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--primary-color);

  .box-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
  }

  .box-text {
    h4 {
      color: #fff;
    }
  }
}

.col-form-single-doctor {
  .col-inner {
    margin-top: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    /* padding: 15px; */
    background-color: var(--primary-color);

    .title-form {
      background-color: #0397D9;
      text-align: center;
      padding: 15px 0;

      p {
        margin-bottom: 0;
        color: #fff;
      }

      h3 {
        font-size: 24px;
        color: #fff;
        ;
      }

    }
  }

  .ff-field_container {
    padding: 15px;

    .wpcf7-submit {
      background-color: #1a7efb;
    }
  }
}

.blog-single {
  table {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-collapse: unset !important;

    tbody {
      tr {
        &:first-child {
          background-color: var(--primary-color);

          td {
            color: #fff;
            padding: 10px 5px;
            text-transform: uppercase;
            font-size: 18px;
            font-weight: 600;
            border-right: 2px solid #fff;

            &:last-child {
              border: none
            }
          }
        }

        td {
          color: #000;
          padding: 10px 5px;
          font-size: 16px;
          border: 1px solid var(--primary-color);

          &[colspan] {
            text-transform: uppercase;
            font-size: 18px;
          }
        }

        &:last-child {
          background-color: var(--primary-color);

          td {
            color: #fff;
            padding: 10px 5px;
            text-transform: uppercase;
            font-size: 18px;
            font-weight: 600;
            text-align: center;

            &:first-child {
              border-right: 2px solid #fff;
            }

          }
        }
      }
    }
  }
}


.doctor-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.doctor-card {
    border: 2px solid #bdbdbd;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.doctor-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.doctor-image img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    object-position: top;
}

.doctor-name {
    background: #0a97d9;
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 14px 10px;
    font-size: 18px;
}

/* Mobile */
@media (max-width: 768px) {
    .doctor-grid.columns-2,
    .doctor-grid.columns-3,
    .doctor-grid.columns-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}


.related-topic {
    margin-top: 40px;
}

.related-topic__title {
    font-size: 22px;
    font-weight: 700;
    color: #0a5bd3;
    position: relative;
    margin-bottom: 30px;
}

.related-topic__title span {
    display: block;
    width: 60px;
    height: 4px;
    background: #f5b400;
    margin-top: 8px;
}

.related-topic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.related-topic__item {
    display: flex;
    gap: 20px;
}

.related-topic__thumb img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.related-topic__content h3 {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.related-topic__content h3 a {
    color: #111;
    text-decoration: none;
}

.related-topic__content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.related-topic__content .read-more {
    color: #0a5bd3;
    font-weight: 600;
    text-decoration: none;
}
.custom-col-contact {
	.icon-box {
		align-items:center;
		margin-bottom:30px;
		p {
			margin-bottom:0;
		}
		&:last-child {
			margin-bottom:0;
		}
	}
}