.ofs-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ofs-services,
.ofs-services * {
  box-sizing: border-box;
}

.ofs-services {
  --ofs-accent: #f59e0b;
  --ofs-accent-hover: #ffb733;
  --ofs-border: rgba(255, 255, 255, 0.15);
  --ofs-dark-image-saturation: 65%;
  --ofs-dark-image-brightness: 55%;
  --ofs-light-image-saturation: 72%;
  --ofs-light-image-brightness: 98%;
  --ofs-hover-image-saturation: 85%;
  --ofs-hover-image-brightness: 68%;
  --ofs-hover-image-scale: 1.04;
  --ofs-overlay-angle: 90deg;
  --ofs-dark-overlay-start: rgba(7, 9, 10, .98);
  --ofs-dark-overlay-middle: rgba(7, 9, 10, .9);
  --ofs-dark-overlay-end: rgba(7, 9, 10, .35);
  --ofs-light-overlay-start: rgba(247, 247, 245, .99);
  --ofs-light-overlay-middle: rgba(247, 247, 245, .94);
  --ofs-light-overlay-end: rgba(247, 247, 245, .15);
  width: 100%;
  margin-inline: 0;
  padding-top: 13px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.ofs-services a {
  color: inherit;
  text-decoration: none;
}

.ofs-services svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ofs-services .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ofs-services .service-card {
  position: relative;
  isolation: isolate;
  height: 148px;
  overflow: hidden;
  padding: 12px 16px;
  border: 1px solid var(--ofs-border);
  border-radius: 5px;
  color: #fff;
  background: #101315;
  transition: transform var(--ofs-transition-duration, .3s) ease, border-color var(--ofs-transition-duration, .3s) ease, box-shadow var(--ofs-transition-duration, .3s) ease;
}

.ofs-services .service-card::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-color: #101315;
  background-image: var(--card-image);
  background-position: var(--ofs-widget-image-position, var(--card-position, center));
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(var(--ofs-dark-image-saturation)) brightness(var(--ofs-dark-image-brightness));
  transition: transform .5s ease, filter .5s ease;
}

.ofs-services .service-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(var(--ofs-overlay-angle), var(--ofs-dark-overlay-start) 0%, var(--ofs-dark-overlay-middle) 48%, var(--ofs-dark-overlay-end) 100%);
}

.ofs-services .service-card:hover {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 14px rgba(245, 158, 11, .08);
  transform: translateY(var(--ofs-card-hover-lift, -3px));
}

.ofs-services .service-card:hover::before {
  filter: saturate(var(--ofs-hover-image-saturation)) brightness(var(--ofs-hover-image-brightness));
  transform: scale(var(--ofs-hover-image-scale));
}

.ofs-services .service-icon {
  width: 27px;
  height: 27px;
  color: var(--ofs-icon-color, var(--ofs-accent));
}

.ofs-services .service-card h3 {
  margin: 4px 0 5px;
  color: inherit;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ofs-services .service-card p {
  margin: 0;
  color: #e4e4e4;
  font-size: 10.5px;
  line-height: 1.45;
}

.ofs-services .service-card > a {
  position: absolute;
  bottom: 10px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ofs-accent);
  font-size: 10.5px;
  line-height: 1;
  transition: color .3s ease;
}

.ofs-services .service-card > a:hover,
.ofs-services .service-card > a:focus-visible {
  color: var(--ofs-accent-hover);
}

.ofs-services .service-card > a svg {
  width: 13px;
  height: 13px;
}

.ofs-services .light-card {
  color: #101010;
  border-color: rgba(255, 255, 255, .35);
  background: #eee;
}

.ofs-services .light-card::before {
  left: 40%;
  background-color: #eee;
  filter: saturate(var(--ofs-light-image-saturation)) brightness(var(--ofs-light-image-brightness));
}

.ofs-services .light-card::after {
  background: linear-gradient(var(--ofs-overlay-angle), var(--ofs-light-overlay-start) 0%, var(--ofs-light-overlay-middle) 49%, var(--ofs-light-overlay-end) 80%);
}

.ofs-services .light-card p {
  color: #111;
}

.ofs-services .available {
  display: block;
  width: max-content;
  margin: -1px 0 5px;
  padding: 1px 5px;
  border-radius: 2px;
  color: #fff;
  background: #167537;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.3;
}

.ofs-services .compact-card {
  height: 117px;
}

.ofs-services .compact-card .service-icon {
  float: left;
  width: 29px;
  margin: 0 9px 0 0;
}

.ofs-services .compact-card h3 {
  margin-top: 6px;
  margin-bottom: 14px;
}

.ofs-services .compact-card p {
  clear: both;
}

.ofs-services .compact-card > a {
  bottom: 9px;
}

.ofs-services .view-services {
  grid-column: 3 / 5;
  height: 117px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ofs-services .button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease;
}

.ofs-services .button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.ofs-services .button-ghost {
  min-width: 195px;
  min-height: 44px;
  color: var(--ofs-accent);
  border-color: rgba(245, 158, 11, .38);
  border-color: color-mix(in srgb, var(--ofs-accent) 38%, transparent);
  background: transparent;
  font-size: 11px;
}

.ofs-services .button-ghost:hover,
.ofs-services .button-ghost:focus-visible {
  color: var(--ofs-accent-hover);
  border-color: var(--ofs-accent);
  background: rgba(245, 158, 11, .06);
  background: color-mix(in srgb, var(--ofs-accent) 6%, transparent);
  transform: translateY(-2px);
}

.ofs-services a:focus-visible {
  outline: 2px solid var(--ofs-accent-hover);
  outline-offset: 3px;
}

.ofs-admin-message {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 4px solid #d63638;
  background: #fff;
  color: #1d2327;
}

@media (max-width: 900px) {
  .ofs-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ofs-services .view-services {
    grid-column: 1 / -1;
  }

  .ofs-services .compact-card,
  .ofs-services .view-services {
    height: 148px;
  }
}

@media (max-width: 640px) {
  .ofs-services .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ofs-services .service-card,
  .ofs-services .compact-card,
  .ofs-services .view-services {
    height: 148px;
  }

  .ofs-services .view-services {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ofs-services .service-card,
  .ofs-services .service-card::before,
  .ofs-services .button {
    transition: none;
  }
}
