@import url('/css/global.css');

body {
    background-color: var(--dw-bg-body);
}

/* ── Entry Animations ── */
@keyframes dw-fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .a {
        animation: dw-fadeUp .5s cubic-bezier(.22,1,.36,1) both;
    }

    .a1 {
        animation-delay: .05s;
    }

    .a2 {
        animation-delay: .12s;
    }

    .a3 {
        animation-delay: .18s;
    }

    .a4 {
        animation-delay: .25s;
    }

    .a5 {
        animation-delay: .32s;
    }

    .a6 {
        animation-delay: .38s;
    }

    .a7 {
        animation-delay: .44s;
    }

    .a8 {
        animation-delay: .50s;
    }
}

/* ── Page Wrapper ── */
.tg-page {
    margin: 0 auto;
    padding: 32px 64px 48px;
}

/* ── Hero ── */
.tgx-hero {
    margin-bottom: 40px;
}

    .tgx-hero h1 {
        font-size: 4rem;
        font-weight: 700;
        color: var(--dw-ink);
        letter-spacing: -1.28px;
        line-height: 4.4rem;
        margin-bottom: 9px;
    }

    .tgx-hero p {
        font-size: 1.125rem;
        color: var(--dw-muted);
        line-height: 1.8rem;
        max-width: 30.3125rem;
    }

/* ── Status Alert ── */
.tg-courses-alert {
    background: #FEF3C7;
    color: #92400E;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.tg-courses-alert--info {
    background: var(--dw-teal-10);
    color: var(--dw-teal-bold);
}


/* ── Courses Grid ── */
.tg-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 55px;
}

@media (max-width: 900px) {
    .tg-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .tg-courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Status Alert ── */
.tg-courses-alert {
    background: #FEF3C7;
    color: #92400E;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.tg-courses-alert--info {
    background: var(--dw-teal-10);
    color: var(--dw-teal-bold);
}

/*badge*/
.tg-course-image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dw-white-90);
    color: var(--dw-teal);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0px 8px 2px 0px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Course Card ── */
.tg-course-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--dw-white-40);
    border: 1px solid var(--dw-brd-100);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
}

    .tg-course-card:hover {
        box-shadow: var(--dw-shadow-lg);
        transform: translateY(-2px);
    }

.tgx-card-img {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: var(--dw-surf);
}

    .tgx-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s;
    }

.tg-course-card:hover .tgx-card-img img {
    transform: scale(1.04);
}

/* ── Card Body ── */
.tg-card-body {
    padding: 24px;
}

.tg-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dw-ink);
    line-height: 1.95rem;
    margin-bottom: 7px;
    margin-top: 0;
}

.tg-card-desc {
    font-size: 1rem;
    color: var(--dw-muted);
    line-height: 1.6rem;
    margin-top: 0;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dw-muted);
}


@media (max-width: 768px) {
    .tg-page {
        padding: 20px;
    }

    .tgx-hero h1 {
        font-size: 2.25rem;
        margin: 0;
    }
}
