/* ==========================================================================
   Smart Services list — section after "Choose the Best".
   Layout, sizes and hover behaviour ported from the Tekmino template's
   "Smart Services for Smart Businesses" block; colours and fonts use the
   Bexon theme variables so it matches the rest of the page.
   ========================================================================== */

@font-face {
  font-family: "tekmino-icon";
  src:
    url("../fonts/tekmino-icon.woff") format("woff"),
    url("../fonts/tekmino-icon.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* Own "tki-" prefix so these icons never clash with Bexon's "tji-" icon font. */
[class^="tki-"],
[class*=" tki-"] {
  font-family: "tekmino-icon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.tki-cloud:before { content: "\e935"; }
.tki-consulting:before { content: "\e933"; }
.tki-computer:before { content: "\e930"; }
.tki-development:before { content: "\e931"; }
.tki-arrow-bold-right:before { content: "\e971"; }

/* The section above already ends with its own bottom spacing. */
.tj-smart-service-section {
  padding-top: 0;
}

/* Same heading width as "Choose the Best" (and the original), so the title wraps onto two lines. */
.tj-smart-service-section .sec-heading {
  max-width: 550px;
}

.smart-service-item:not(:last-child) {
  margin-bottom: 30px;
}

.smart-service-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
  min-height: 183px;
  padding: 50px 30px;
  overflow: hidden;
  background-color: var(--tj-color-common-white);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.smart-service-content {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: max-content;
}

.smart-service-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  font-size: 44px;
  line-height: 1;
  color: var(--tj-color-heading-primary);
  background-color: var(--tj-color-grey-1);
  border: 1px solid var(--tj-color-theme-bg);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

/* Circle that grows behind the icon on hover. */
.smart-service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--tj-color-theme-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.3s ease-in-out;
}

.smart-service-item:hover .smart-service-icon {
  color: var(--tj-color-common-white);
}

.smart-service-item:hover .smart-service-icon::before {
  transform: scale(1);
}

.smart-service-title {
  max-width: 170px;
  margin: -7px 0 0;
  font-family: var(--tj-ff-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.333;
  letter-spacing: -0.03em;
  color: var(--tj-color-heading-primary);
}

.smart-service-title a {
  color: inherit;
}

.smart-service-title a:hover {
  color: var(--tj-color-theme-primary);
}

.smart-service-desc-wrap {
  width: 100%;
  max-width: 380px;
}

.smart-service-desc {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--tj-color-text-body);
}

.smart-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.smart-service-tags a {
  display: flex;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--tj-color-text-body);
  background-color: var(--tj-color-grey-1);
  border: 1px solid var(--tj-color-theme-bg);
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.smart-service-tags a:hover {
  color: var(--tj-color-common-white);
  background-color: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
}

.smart-service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 66px;
  line-height: 1;
  color: var(--tj-color-heading-primary);
  transition: all 0.3s ease-in-out;
}

.smart-service-arrow i {
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
}

.smart-service-item:hover .smart-service-arrow {
  color: var(--tj-color-theme-primary);
}

.smart-service-more {
  margin-top: 40px;
}

/* Responsive — same breakpoints as the original. */
@media only screen and (min-width: 992px) and (max-width: 1199px), (max-width: 575px) {
  .smart-service-inner {
    padding: 30px 20px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .smart-service-inner {
    padding-bottom: 40px;
  }
  .smart-service-title {
    font-size: 24px;
  }
  .smart-service-desc-wrap {
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .smart-service-inner {
    gap: 20px;
    padding: 35px 30px 25px;
  }
  .smart-service-title {
    max-width: max-content;
    margin-top: -5px;
    font-size: 20px;
  }
  .smart-service-desc-wrap {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .smart-service-arrow {
    width: 44px;
    height: 44px;
    margin-top: 18px;
    font-size: 44px;
  }
}
