.custom-icon-btn {
  position: relative;
  overflow: hidden;
  background: var(--secondary-lime);
  color: var(--dark-blue-gray);
  border: none;
  border-radius: 50px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 12px 24px rgba(12, 37, 27, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  &::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.02) 42%,
      rgba(255, 255, 255, 0) 70%
    );
    opacity: 0.8;
    pointer-events: none;
  }

  &:hover {
    background: var(--primary-green);
    color: var(--brand-white);
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(12, 37, 27, 0.18);

    .icon-box {
      background: rgba(20, 37, 44, 0.92);
      transform: translateX(2px) scale(1.04);
      box-shadow: 0 10px 22px rgba(6, 28, 19, 0.24);
    }

    .icon-box .bi {
      color: var(--brand-white);
      transform: translateX(1px);
    }

    .icon-box .bi-arrow-down-right {
      transform: rotate(-45deg) translateX(1px);
    }
  }

  &:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(12, 37, 27, 0.14);
  }

  .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    flex-shrink: 0;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    .bi {
      color: var(--secondary-lime);
      transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 51, 34, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 249, 246, 0.98)
  );
  box-shadow: 0 14px 34px rgba(12, 37, 27, 0.08);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.42s cubic-bezier(0.22, 1, 0.36, 1);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(
        circle at top right,
        rgba(66, 140, 102, 0.24),
        rgba(66, 140, 102, 0) 34%
      ),
      radial-gradient(
        circle at bottom left,
        rgba(17, 95, 63, 0.18),
        rgba(17, 95, 63, 0) 42%
      ),
      linear-gradient(
        160deg,
        rgba(8, 43, 29, 0.96) 0%,
        rgba(14, 76, 51, 0.92) 62%,
        rgba(20, 95, 64, 0.9) 100%
      );
    transform: scale(1.03);
    transform-origin: center;
    border-radius: inherit;
    opacity: 0;
    transition:
      opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  &:hover {
    border-color: rgba(12, 70, 46, 0.2);
    background: linear-gradient(
      180deg,
      rgba(10, 46, 32, 0.96),
      rgba(13, 67, 46, 0.94)
    );
    box-shadow: 0 22px 48px rgba(9, 29, 21, 0.2);

    &::before {
      opacity: 1;
      transform: scale(1);
    }

    &::after {
      opacity: 1;
    }

    .service-card__title {
      color: #f4fbf6;
    }

    .service-card__text {
      color: rgba(228, 241, 233, 0.8);
    }

    .service-card__link {
      gap: 10px;
      padding: 8px 14px;
      border-radius: 999px;
      border-color: rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.12);
      color: var(--brand-white);
      box-shadow: 0 10px 18px rgba(6, 28, 19, 0.18);
    }

    .service-card__image {
      transform: scale(1.02);
    }
  }

  .service-card__body {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
  }

  .service-card__title {
    margin: 0 0 14px;
    color: var(--darkest-blue-gray);
    font-family: "Satoshi", "Poppins", sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    transition: color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .service-card__text {
    margin: 0 0 20px;
    color: var(--medium-gray);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
    transition: color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    transition:
      gap 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .service-card__media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 18px;
  }

  .service-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.content-grid-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(15, 51, 34, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 16px 36px rgba(12, 37, 27, 0.08);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(12, 70, 46, 0.04) 100%
    );
    opacity: 0;
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  &:hover {
    border-color: rgba(15, 87, 57, 0.16);
    box-shadow: 0 20px 42px rgba(12, 37, 27, 0.11);

    &::before {
      opacity: 1;
    }

    .content-grid-card__image {
      transform: scale(1.04);
    }

    .content-grid-card__title {
      color: var(--primary-green);
    }
  }

  .content-grid-card__media {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
  }

  .content-grid-card__image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .content-grid-card__body {
    position: relative;
    z-index: 1;
    padding: 24px 22px 22px;
  }

  .content-grid-card__title {
    margin: 0 0 8px;
    color: var(--darkest-blue-gray);
    font-family: "Satoshi", "Poppins", sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.25;
    transition: color 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .content-grid-card__text {
    margin: 0;
    color: var(--medium-gray);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
  }
}

@media (max-width: 767px) {
  .content-grid-card {
    border-radius: 20px;

    .content-grid-card__media {
      border-radius: 20px 20px 0 0;
    }

    .content-grid-card__image {
      height: 190px;
    }

    .content-grid-card__body {
      padding: 20px 18px 18px;
    }
    .custom-icon-btn {
      width: 100%;
      justify-content: center;
    }
  }
}

@media (max-width: 991px) {
  .custom-icon-btn {
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .custom-icon-btn {
    padding: 8px 20px;
  }
  .icon-box {
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 567px) {
  .custom-icon-btn {
    .icon-box {
      width: 23px;
      height: 23px;
      .bi {
        font-size: 12px;
      }
    }
  }
}
