.course-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.course-loader .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #ddd;
    border-top-color: #027aff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.original-price {
  text-decoration: line-through;
  opacity: 0.6;
}
.cart-btn.added {
    background-color: #d1f7d6 !important;
    border: 1px solid #4caf50 !important;
    color: #256b2f !important;
}

.trainer-compact {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
}

.trainer-name {
    font-weight: 600;
    display: block;
}

.trainer-signature {
    font-size: 12px;
    color: #666;
}

.course-meta {
    margin-top: 6px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555;
}


.course_item-img-wrap {
    position: relative;
    aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
}

.flip-card {
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-inner,
.flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

}

.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-back {
      background: #428dff;
  padding: 14px;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-back::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
}


.flip-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}



/*  */

.flip-back-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flip-list {
    flex: 1;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.4;
    padding-right: 4px;

    /* Hide scrollbar – Firefox */
    scrollbar-width: none;

    /* Hide scrollbar – IE / Edge */
    -ms-overflow-style: none;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

/* Hide scrollbar – Chrome / Safari */
.flip-list::-webkit-scrollbar {
    display: none;
}

.flip-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0px !important;
}

.flip-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  animation: blink 1.4s infinite both;
  font-weight: bold;
  margin-left: 2px;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}



.load-more-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #027aff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #005edb;
}

.load-more-wrap {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2,122,255,0.3);
}
/* ===== Load More Button Loading State ===== */
.load-more-btn {
    position: relative;
    min-width: 220px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.load-more-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== Skeleton Loader ===== */
.skeleton-card {
    background: #f2f4f8;
    border-radius: 16px;
    padding: 16px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
    width: 100%;
    height: 180px;
    background: #e0e3e8;
    border-radius: 12px;
    margin-bottom: 14px;
}

.skeleton-line {
    height: 14px;
    background: #e0e3e8;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* REMOVE CART – RED BUTTON */
.cart-btn.added {
    background-color: #fde2e2 !important;   /* light red */
    border: 1px solid #e53935 !important;
    color: #b71c1c !important;
}

/* icon spacing */
.cart-btn .cart-icon {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

/* hover effect */
.cart-btn.added:hover {
    background-color: #f8caca !important;
}