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

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

    padding: 18px;

    border-radius: 28px;

    background: rgba(255, 255, 255, .55);

    backdrop-filter: blur(18px);

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

    border: 1px solid rgba(255, 255, 255, .25);

    box-shadow: 0 12px 22px rgba(0, 0, 0, .06),
    0 30px 60px rgba(0, 0, 0, .10);

    transform: translateY(0) scale(1);
}

.custom-card:hover {

    transform: translateY(-8px) scale(1.015);

    box-shadow: 0 18px 35px rgba(0, 0, 0, .08),
    0 30px 60px rgba(0, 0, 0, .12);

}

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

.image-box {

    position: relative;

    overflow: hidden;

}

.image-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .28),
        rgba(0, 0, 0, .06),
        transparent
    );

    opacity: 0;

    transition: .35s ease;

    pointer-events: none;

}

.custom-card:hover .image-overlay {

    opacity: 1;

}

.custom-card .image-box {

    aspect-ratio: 1.5/.9;

    border-radius: 22px;

    overflow: hidden;

    position: relative;

}

.custom-card .image-box img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .55s ease;

}

.custom-card:hover .image-box img {

    transform:
        scale(1.08)
        rotate(.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: .5px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);

}

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

.hashtag {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.hashtag span {

    background: rgba(255, 255, 255, .35);

    backdrop-filter: blur(12px);

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

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

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

    border-radius: 999px;

    padding: .55rem 1rem;

    font-size: .9rem;

    font-weight: 600;

    backdrop-filter: blur(10px);

    transition: .3s;

}

.hashtag span:hover {

    transform: translateY(-2px);

}

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

.course-title {

    margin-top: 1.25rem;

    min-height: 64px;

    line-height: 1.5;

}

.course-title a {

    font-size: 1.35rem;

    font-weight: 700;

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

    text-decoration: none;

    transition: .25s;

}

.course-title a:hover {

    letter-spacing: .2px;

}

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

.course-description {

    color: var(--second-color);

    font-size: 1rem;

    line-height: 1.9;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 88px;

    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: .9rem;

}

.course-price {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: .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, .06);

}

.muted-price {

    opacity: .65;

    text-decoration: line-through;

    font-size: .95rem;

}

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

.course-footer {

    margin-top: 18px;

    color: var(--fourth-color);

    font-size: .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, .35),
        transparent
    );

    transition: .7s;

    z-index: 0;

}

.status-btn:hover::before {

    left: 140%;

}

.status-btn .hint {

    position: relative;

    z-index: 2;

}

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

@media (max-width: 768px) {

    .custom-card {

        padding: 15px;

        border-radius: 22px;

    }

    .course-title a {

        font-size: 1.2rem;

    }

    .course-description {

        min-height: auto;

        -webkit-line-clamp: 4;

    }

}
