/* .course-carousel-wrap {
  position: relative;
}

.course-prev,
.course-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  transition: all 0.25s ease;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
}

.course-prev:hover,
.course-next:hover {
  background: #ed3521;
  box-shadow: 0 10px 26px rgba(237,53,33,.35);
}

.course-prev {
  left: -60px;   
}

.course-next {
  right: -60px;
}

.course-prev::after,
.course-next::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transition: all 0.25s ease;
}

.course-prev:hover::after,
.course-next:hover::after {
  border-color: #fff;
}

.course-prev::after {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.course-next::after {
  transform: translate(-60%, -50%) rotate(45deg);
}


.course-swiper {
    position: relative;
    padding-bottom: 50px; /* chừa chỗ cho pagination */
/* } */

.course-swiper .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.course-pagination .swiper-pagination-bullet {
    margin: 0 8px !important;
}

.course-pagination .swiper-pagination-bullet-active {
    background: #ed3521;
    padding: 4px;
}

.course-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.course-card {
    width: 100%;
    border-radius: 25px;
    background-color: #f5f5f5;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-content-course{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;

     flex-shrink: 0;
}

.image-content-course {
    position: relative;
    row-gap: 5px;
}

.overlay-course {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background-color: #ed3521; */
    left: 0;
    top: 0;
    border-radius: 15px;
}


.card-image-course .card-img-course {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: solid 3px #ed3521;
}

.card-image-course .card-img-course { 
    padding: 3px;
}

 .course-info {
    padding: 20px;

    display: flex;
    flex-direction: column;
    flex: 1;
 }

.course-info .course-name a {
    font-size: 20px;
    font-weight: 700;
    color: #00044a;
}

.course-info .course-desc {
    padding: 10px 0;
    text-align: left;
    font-weight: 500;

}

.btn-kp {
    background-color: #00044a;
    font-size: 16px;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    cursor: pointer;
transition: background-color 0.3s ease, transform 0.25s ease;
     margin-top: auto;
}

.btn-kp:hover {
    background-color: #ed3521;
      transform: translateY(-2px);
}

.btn-kp a {
    color: #fff;
      display: block;
} */


/* ===============================
   HOVER EFFECT – COURSE CARD
================================ */

/* Card nổi lên */
.course-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-swiper .swiper-slide:hover .course-card {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Khung ảnh */
.card-image-course {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

/* Ảnh zoom */
.card-img-course {
    transition: transform 0.45s ease;
}

.course-swiper .swiper-slide:hover .card-img-course {
    transform: scale(1.08);
}

/* Overlay phủ màu */
.overlay-course {
    background: rgba(237, 53, 33, 0.15);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.course-swiper .swiper-slide:hover .overlay-course {
    opacity: 1;
}

/* Viền ảnh đổi màu */
.course-swiper .swiper-slide:hover .card-img-course {
    border-color: #00044a;
}

/* Button hover mượt hơn */
.btn-kp {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* .course-swiper .swiper-slide:hover .btn-kp {
    background-color: #ed3521;
    transform: translateY(-2px);
} */

/* Text link hover */
.course-info .course-name a {
    transition: color 0.3s ease;
}

.course-swiper .swiper-slide:hover .course-name a {
    color: #ed3521;
}

.course-swiper .swiper-slide {
    padding-top: 14px; /* chừa không gian cho card bay lên */
}



/* FLEX CONTAINER */
.course-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ⭐ TỰ CĂN GIỮA HÀNG CUỐI */
    gap: 24px;
}

/* ITEM */
.course-item {
    flex: 0 0 calc(25% - 24px); /* 4 item / hàng */
    display: flex;
}

/* CARD */
.course-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
}

/* IMAGE */
.card-image-course {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
}

.card-image-course img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO */
.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* BUTTON LUÔN Ở ĐÁY */
.btn-kp {
    margin-top: auto;
}


/* ===============================
   CARD HOVER EFFECT
================================ */

.course-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* NÂNG CARD */
.course-item:hover .course-card {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* ===============================
   IMAGE ZOOM
================================ */

.card-image-course img {
    transition: transform 0.45s ease;
}

.course-item:hover .card-image-course img {
    transform: scale(1.08);
}

/* ===============================
   OVERLAY NHẸ TRÊN ẢNH
================================ */

.card-image-course {
    position: relative;
}

.card-image-course::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.course-item:hover .card-image-course::after {
    opacity: 1;
}

/* ===============================
   BUTTON HOVER
================================ */

.btn-kp {
    display: inline-block;
    padding: 12px 20px;
    background: #1b0f63;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.course-item:hover .btn-kp {
    background: #ff3d3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 61, 61, 0.35);
}

/* ===============================
   TITLE COLOR
================================ */

.course-info h3 {
    transition: color 0.3s ease;
}

.course-item:hover .course-info h3 {
    color: #ff3d3d;
}



@media (max-width: 1024px) {
    .course-item {
        flex: 0 0 calc(50% - 24px);
    }
}

@media (max-width: 480px) {
    .course-item {
        flex: 0 0 100%;
    }
}
