.ck-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
}

.ck-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ck-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
}

.ck-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay phủ toàn bộ card */
.ck-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(82, 123, 241, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: 0.35s ease;
  z-index: 2;
}

.ck-card__overlay-inner {
  transform: translateY(18px);
  transition: 0.35s ease;
  padding: 20px;
}

.ck-card__hover-title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.ck-card__arrow {
  display: block;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1;
  color: #fff;
}

.ck-card__bottom {
  position: relative;
  z-index: 3;
  background: #fff;
  padding: 16px 12px;
  text-align: center;
  transition: 0.35s ease;
}

.ck-card__title {
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.ck-card:hover .ck-card__overlay {
  opacity: 1;
}

.ck-card:hover .ck-card__overlay-inner {
  transform: translateY(0);
}

.ck-card:hover .ck-card__bottom {
  background: transparent;
}

.ck-card:hover .ck-card__title {
  color: #2d5fe3;
}

@media (max-width: 1200px) {
  .ck-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ck-card__hover-title {
    font-size: 18px;
  }

  .ck-card__title {
    font-size: 16px;
  }
}