@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap");

@property --bsklab-svc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.secondary-services.extra-services {
  box-sizing: border-box;
  width: 100%;
  max-width: 1170px;
  margin: -38px auto 0;
  padding: 0 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f1f5f9;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
}

.secondary-services.extra-services *,
.secondary-services.extra-services *::before,
.secondary-services.extra-services *::after {
  box-sizing: border-box;
}

.secondary-services.extra-services .extra-services__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .3em;
  color: #64748b;
  text-transform: uppercase;
}

.secondary-services.extra-services .svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-width: 0;
  padding: 26px 32px;
  border: 1px solid rgba(74, 222, 128, .35);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(74, 222, 128, .16) 0%, transparent 55%),
    linear-gradient(90deg, rgba(34, 197, 94, .12) 0%, rgba(34, 197, 94, .05) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(74, 222, 128, .1);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.secondary-services.extra-services .svc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--bsklab-svc-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(74, 222, 128, .25) 300deg,
    #86efac 345deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bsklab-svc-perimeter 4s linear infinite;
  pointer-events: none;
}

.secondary-services.extra-services .svc + .svc::before {
  animation-delay: -2s;
}

@keyframes bsklab-svc-perimeter {
  to { --bsklab-svc-angle: 360deg; }
}

.secondary-services.extra-services .svc:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 222, 128, .8);
  box-shadow: 0 0 16px rgba(74, 222, 128, .25);
}

.secondary-services.extra-services .svc__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.secondary-services.extra-services .svc__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, .4);
  border-radius: 12px;
  background: rgba(74, 222, 128, .16);
}

.secondary-services.extra-services .svc__icon svg {
  width: 24px;
  height: 24px;
}

.secondary-services.extra-services .svc__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.secondary-services.extra-services .svc__title {
  margin: 0;
  color: #f1f5f9;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.secondary-services.extra-services .svc__badge {
  flex: none;
  padding: 3px 10px;
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, .45);
  border-radius: 999px;
  background: rgba(74, 222, 128, .18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.secondary-services.extra-services .svc__desc {
  margin: 0;
  color: #a7c4b5;
  font-size: 13.5px;
  line-height: 1.55;
}

.secondary-services.extra-services .svc__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  color: #f1f5f9;
  border: 1px solid rgba(74, 222, 128, .5);
  border-radius: 999px;
  background: rgba(74, 222, 128, .14);
  box-shadow: none;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s;
}

.secondary-services.extra-services .svc__cta span {
  transition: transform .2s;
}

.secondary-services.extra-services .svc__cta:hover {
  color: #04120a;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(74, 222, 128, .35);
}

.secondary-services.extra-services .svc__cta:hover span {
  transform: translateX(4px);
}

.secondary-services.extra-services .svc__cta:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .secondary-services.extra-services .svc {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .secondary-services.extra-services .svc__cta {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .secondary-services.extra-services {
    margin-top: -30px;
    padding: 0 14px 44px;
    gap: 14px;
  }

  .secondary-services.extra-services .svc {
    gap: 18px;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .secondary-services.extra-services .svc__head {
    gap: 12px;
  }

  .secondary-services.extra-services .svc__icon {
    width: 42px;
    height: 42px;
  }

  .secondary-services.extra-services .svc__title {
    font-size: 18px;
  }

  .secondary-services.extra-services .svc__desc {
    font-size: 13px;
  }

  .secondary-services.extra-services .svc__cta {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .secondary-services.extra-services {
    padding-right: 10px;
    padding-left: 10px;
  }

  .secondary-services.extra-services .svc {
    padding: 17px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-services.extra-services .svc::before {
    animation: none;
  }

  .secondary-services.extra-services .svc,
  .secondary-services.extra-services .svc__cta,
  .secondary-services.extra-services .svc__cta span {
    transition: none;
  }
}
