.sfr-cats {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f2f4f7 15%,
    #f2f4f7 85%,
    #ffffff 100%
  );
}

/* Subtle grid pattern overlay */
.sfr-cats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(22, 81, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 81, 160, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  /* Üstten ve alttan çizgileri soldur */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.6) 20%,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.6) 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.6) 20%,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.6) 80%,
    transparent 100%
  );
}

/* Radial accent overlay */
.sfr-cats::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(22, 81, 160, 0.05), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 70%, rgba(22, 81, 160, 0.03), transparent 60%);
  pointer-events: none;
}

.sfr-cats__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-align: left;
  margin-left: 20px;
}

.sfr-cats__title span {
  color: #1651a0;
}

.sfr-cats__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  text-align: left;
  margin-left: 20px;
}

.sfr-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.sfr-cats .container {
  position: relative;
  z-index: 1;
}

.sfr-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 220px;
  background: rgba(255, 255, 255, 0.85);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(22, 81, 160, 0.12);
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(22, 81, 160, 0.08);
  backdrop-filter: blur(8px);
}

.sfr-cat-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(240, 244, 248, 0.6);
  z-index: 1;
  transition: background 0.3s ease;
}

.sfr-cat-card:hover .sfr-cat-card__overlay {
  background: rgba(240, 244, 248, 0.75);
}

.sfr-cat-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sfr-cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 81, 160, 0.3);
  box-shadow: 0 12px 36px rgba(22, 81, 160, 0.15);
  text-decoration: none;
}

.sfr-cat-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 81, 160, 0.1), transparent 70%);
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 2;
}

.sfr-cat-card:hover::before {
  transform: scale(1.3);
}

.sfr-cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1651a0 0%, #2d6fc4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(22, 81, 160, 0.3);
  transition: transform 0.25s ease;
}

.sfr-cat-card:hover .sfr-cat-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.sfr-cat-card__icon i {
  font-size: 22px;
  color: #ffffff;
}

.sfr-cat-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sfr-cat-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease, transform 0.2s ease;
  text-shadow: none;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.sfr-cat-card:hover .sfr-cat-card__name {
  color: #1651a0;
  text-shadow: none;
  transform: translateY(-2px);
}

.sfr-cat-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(22, 81, 160, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(22, 81, 160, 0.2);
}

.sfr-cat-card:hover .sfr-cat-card__arrow {
  background: #1651a0;
  transform: translateX(4px);
  border-color: #1651a0;
}

.sfr-cat-card__arrow i {
  font-size: 13px;
  color: #1651a0;
  transition: color 0.2s ease;
}

.sfr-cat-card:hover .sfr-cat-card__arrow i {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .sfr-cats {
    padding: 60px 0;
  }

  .sfr-cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sfr-cat-card {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .sfr-cats {
    padding: 48px 0;
  }

  .sfr-cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sfr-cat-card {
    height: 190px;
    padding: 20px 16px;
  }

  .sfr-cat-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .sfr-cat-card__icon i {
    font-size: 18px;
  }

  .sfr-cat-card__name {
    font-size: 1.05rem;
  }
}
