/* ✅ GRID */
.tutor-course-grid .grid-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ✅ CARD */
.course-wrapper {
  position: relative;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
border:1px solid #e9eaf2;
	padding:13px;
  transition: transform .2s;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card .thumb img {
  width: 100%;
  display: block;
	height:170px;
	object-fit: cover;
	border-radius:10px;
}
.course-info {
  padding: 15px;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.price {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 16px;
}

/* ✅ Popover */
.course-popover {
  position: absolute;
  top: 0;
  left: 100%;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all .25s ease;
  z-index: 10;
}

.course-wrapper:hover .course-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: #3b82f6;
}

.btn.enrolled {
  background: #10b981;
}

.course-wrapper:hover {
  z-index: 50;
}

/* ✅ Carousel container */
.tutor-courses-carousel {
  position: relative;
  padding: 20px 0;
}

.tutor-courses-carousel .swiper-wrapper {
  display: flex;
}
/* ---------- 📱 Responsive Breakpoints ---------- */

/* ✅ Tablet ngang (max-width: 1024px) */
@media (max-width: 1024px) {
  .tutor-course-grid .grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .course-popover {
    width: 280px;
  }
  .course-title {
    font-size: 17px;
  }
}

/* ✅ Tablet dọc & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .tutor-course-grid .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .course-popover {
    display: none; /* ẩn popover trên mobile */
  }
  .course-info {
    padding: 12px;
  }
  .course-title {
    font-size: 16px;
  }
  .price {
    font-size: 15px;
  }
}


