/*==============================================================
  13. Iconbox
================================================================*/
@use "../default/breakpoints" as bp;

.cs_iconbox_style_1 {
  display: flex;
  gap: 24px;

  .cs_iconbox_icon {
    width: 56px;
    height: 56px;
    margin-top: 6px;
    flex: none;
  }

  @include bp.down(lg) {
    gap: 15px;

    .cs_iconbox_icon {
      width: 50px;
      height: 50px;
      margin-top: 0;
    }
  }
}

.cs_iconbox_style_2,
.cs_iconbox_style_3 {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 24px;
  border: 1px solid var(--gray-color3);

  .cs_iconbox_icon {
    background-color: var(--accent-color);
    display: inline-block;
    padding: 16px;

    img {
      filter: brightness(0) saturate(100%) invert(8%) sepia(20%) saturate(17%) hue-rotate(30deg) brightness(96%) contrast(88%);
    }
  }

  .cs_iconbox_title {
    letter-spacing: -0.24px;

    a {
      background-repeat: no-repeat;
      background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
      transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
      background-position: var(--cs-edge-end) calc(100% - 0px);
      background-size: 0 1px;

      &:hover {
        background-size: 100% 1px;
        background-position: var(--cs-edge-start) calc(100% - 0px);
      }
    }
  }

  &::before,
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
  }

  &::before {
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  &::after {
    border-inline: 1px solid var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease 0.2s;
  }

  &:hover {
    &::before {
      transform: scaleX(1);
    }

    &::after {
      transform: scaleY(1);
    }
  }

  @include bp.down(sm) {
    padding: 20px 15px;

    .cs_iconbox_icon {
      padding: 9px;
    }
  }
}

.cs_iconbox_style_3 {
  .cs_iconbox_icon {
    width: 32px;
    height: 32px;
    background: none;
    padding: 0;
  }
}

.cs_iconbox_style_4 {
  width: 100%;
  height: 100%;
  padding: 15px;
  border: 1px solid var(--gray-color3);

  .cs_iconbox_title {
    letter-spacing: -0.24px;
  }

  .cs_contact_list {
    display: flex;
    gap: 8px;
    flex-direction: column;
  }

  .cs_icon_with_details {
    display: flex;
    align-items: center;
    gap: 8px;

    .cs_iconbox_icon,
    i {
      width: 20px;
      height: 20px;
      flex: none;
      font-size: 20px;
      color: var(--primary-color);
    }

    a:hover {
      color: var(--primary-color);
    }
  }

  @include bp.down(xl) {
    .cs_iconbox_title {
      font-size: 18px;
    }
  }
}

/*===================================================
 Iconbox Wrappers
=====================================================*/
.cs_icon_wrapper_style_1 {
  display: flex;
  flex-direction: column;
  gap: 48px;

  @include bp.down(lg) {
    gap: 24px;
  }
}