/* =========================
        Course Card
========================= */

                            .Box .custom-card {
                                height: 100%;
                                display: flex;
                                flex-direction: column;
                            }

                            .Box .custom-card .card-body {
                                flex-grow: 1;
                                /* لو عندك card-body */
                            }
                 
.course-card {
    background: white;
    padding: 20px;
   
}
.course-status{
    font-size: .8rem;
}
.custom-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    border-radius: 28px;

    transform: translateY(0) scale(1);

    transition: all 0.5s;
}

.custom-card .card-content {
    transition: all 0.5s;
}

.custom-card .card-content:hover {
    transform: translateY(-8px) scale(1.015);
}

/* =========================
            Image
========================= */

.image-box {
    position: relative;

    overflow: hidden;
}

.image-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.28),
        rgba(0, 0, 0, 0.06),
        transparent
    );

    opacity: 0;

    transition: 0.35s ease;

    pointer-events: none;
}

.custom-card:hover .image-overlay {
    opacity: 1;
}

.custom-card .image-box {
    aspect-ratio: 1.5/0.9;

    /* border-radius: 22px; */

    overflow: hidden;

    position: relative;
}

.custom-card .image-box img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.55s ease;
}

.custom-card:hover .image-box img {
    transform: scale(1.08) rotate(0.8deg);
}

/* =========================
            Offer
========================= */

.offer {
    position: absolute;

    top: 18px;

    left: -32px;

    width: 130px;

    text-align: center;

    padding: 6px 0;

    font-size: 12px;

    color: #fff;

    background: var(--third-color-heavy);

    transform: rotate(-45deg);

    letter-spacing: 0.5px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
            Tags
========================= */

.hashtag {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.hashtag span {
    background: rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);

    border: 1px solid var(--third-color-heavy);

    border-radius: 999px;


    font-size: 0.7rem;

    font-weight: 600;

    backdrop-filter: blur(10px);

    transition: 0.3s;
}

.hashtag span:hover {
    transform: translateY(-2px);
}

/* =========================
          Course Title
========================= */

.course-title a {
    font-size: 1rem;

    font-weight: 700;

    color: var(--second-color) !important;

    text-decoration: none;

    transition: 0.25s;
}

.course-title a:hover {
    letter-spacing: 0.2px;
}

/* =========================
        Description
========================= */

.course-description {
    color: var(--second-color);

    font-size: 1rem;

    line-height: 1.7;

    display: -webkit-box;

    -webkit-line-clamp: 1;

    -webkit-box-orient: vertical;

    overflow: hidden;

    margin-bottom: 1.2rem;
}

/* =========================
            Price
========================= */

.course-info {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin-top: auto;

    color: var(--fourth-color);

    font-size: 0.9rem;
}

.course-price {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 0.7rem 1.2rem;

    border-radius: 999px;

    background: #fff;

    color: var(--third-color-light);

    font-size: 1rem;

    font-weight: 700;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.muted-price {
    opacity: 0.65;

    text-decoration: line-through;

    font-size: 0.95rem;
}

/* =========================
            Footer
========================= */

.course-footer {
    margin-top: 18px;

    color: var(--fourth-color);

    font-size: 0.85rem;
}

/* =========================
          Card Text
========================= */

.card-text {
    flex: 1;

    display: flex;

    flex-direction: column;
}

/* =========================
          button
========================= */

.status-btn {
    position: relative;

    overflow: hidden;

    isolation: isolate;
}

.status-btn::before {
    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 70%;

    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );

    transition: 0.7s;

    z-index: 0;
}

.status-btn:hover::before {
    left: 140%;
}

.status-btn .hint {
    position: relative;

    z-index: 2;
}

/* =========================
         Responsive
========================= */

@media (max-width: 768px) {
 

    .course-title a {
        font-size: 1.2rem;
    }

    .course-description {
        min-height: auto;

        -webkit-line-clamp: 3;
    }
}
