@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

@property --fk-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes fk-rotate {
  to { --fk-angle: 360deg; }
}

.fk-wrap,
.fk-wrap * {
  box-sizing: border-box;
}

.fk-wrap {
  width: 100%;
  background: ;
  padding: 20px 0 5px;
  margin: -30px 0 0;
  display: block;
}

.fk-inner {
  position: relative;
  max-width: 100%;
  padding: 0 10px;
}

.fk-overflow {
  overflow: hidden;
}

.fk-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
  padding: 6px 2px 10px;
  align-items: flex-start;
  will-change: transform;
}

.fk-card {
  flex: 0 0 calc((100% - 36px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.fk-bwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
}

.fk-bwrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: conic-gradient(
    from var(--fk-angle),
    transparent 0deg,
    #00aaee 45deg,
    #0077cc 90deg,
    #00ccff 140deg,
    transparent 200deg,
    #00aaee 280deg,
    transparent 360deg
  );
  animation: fk-rotate 3.5s linear infinite;
  z-index: 0;
}

.fk-bwrap::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: #fff;
  z-index: 1;
}

.fk-bwrap img {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  object-fit: cover;
  border-radius: 14px;
  z-index: 2;
  display: block;
  transition: transform 0.3s ease;
}

.fk-card:hover .fk-bwrap img {
  transform: scale(1.04);
}

.fk-card:hover .fk-bwrap::before {
  animation-duration: 1.5s;
}

.fk-label {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  color: #333 !important;
  text-align: center !important;
  line-height: 1.3 !important;
  width: 100%;
  letter-spacing: 0.1px;
}

.fk-btn {
  display: none;
}

.fk-prev {
  left: 2px;
}

.fk-next {
  right: 2px;
}

@media (max-width: 600px) {
  .fk-inner {
    padding: 0 10px;
  }

  .fk-track {
    gap: 10px;
  }

  .fk-card {
    flex: 0 0 calc((100% - 20px) / 2.5);
  }

  .fk-label {
    font-size: 12px !important;
  }
}

@media (min-width: 601px) {
  .fk-card {
    flex: 0 0 calc((100% - 70px) / 6);
  }

  .fk-label {
    font-size: 12px !important;
  }
}

@media (min-width: 901px) {
  .fk-card {
    flex: 0 0 calc((100% - 112px) / 9);
  }
}
