/* Course cards (moved from index.php 2026-10-23) — used by the home page Trending Courses slider and courses.php.
   Markup comes from inc_courses.php (sknau_course_card). Cards must sit inside .trending-courses-section. */
.trending-courses-section .course-card.tc-card { justify-content: flex-start; border: 1px solid #e6ecf3; text-align: left; }
.trending-courses-section .course-card.tc-card::before { display: none; }
.trending-courses-section .tc-top { position: relative; min-height: 0; padding: 26px 20px 22px; justify-content: flex-start; align-items: flex-end; gap: 14px;
    background: var(--tc);   /* fallback where color-mix() is not supported */
    background: radial-gradient(160px 110px at 100% 0, rgba(255,255,255,.22), transparent 70%), linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 72%, #000 0%)); }
.trending-courses-section .tc-top::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
.trending-courses-section .tc-icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.18); flex: none; }
.trending-courses-section .tc-icon .course-icon { font-size: 1.8rem; color: var(--tc) !important; }
.trending-courses-section .tc-level { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); }
.trending-courses-section .tc-body { padding: 18px 20px 6px; display: flex; flex-direction: column; flex: 1; }
.trending-courses-section .course-title { padding: 0; margin: 0 0 8px; font-size: 1.12rem; line-height: 1.35; color: #14213d; flex-grow: 0; text-wrap: balance; }
.trending-courses-section .tc-desc { margin: 0 0 14px; font-size: .9rem; line-height: 1.55; color: #5b6676; flex: 1; }
.trending-courses-section .tc-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trending-courses-section .tc-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; }
.trending-courses-section .tc-meta i { color: var(--tc); }
.trending-courses-section .tc-more { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 14px 20px; font-weight: 700; font-size: .92rem;
    color: var(--tc); text-decoration: none; border-top: 1px solid #edf1f6; transition: background .2s ease, color .2s ease; }
.trending-courses-section .tc-more i { transition: transform .2s ease; }
.trending-courses-section .tc-card:hover .tc-more, .trending-courses-section .tc-more:focus-visible { background: var(--tc); color: #fff; outline: none; }
.trending-courses-section .tc-card:hover .tc-more i, .trending-courses-section .tc-more:focus-visible i { transform: translateX(4px); }
.trending-courses-section .tc-card:hover .tc-icon { animation: tcBob 1.6s ease-in-out infinite; }
@keyframes tcBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.trending-courses-section .tc-all { text-align: center; margin-top: 6px; }
.trending-courses-section .tc-all-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem;
    color: var(--primary-color); border: 1.5px solid var(--primary-color); text-decoration: none; transition: background .2s, color .2s; }
.trending-courses-section .tc-all-btn:hover, .trending-courses-section .tc-all-btn:focus-visible { background: var(--primary-color); color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) { .trending-courses-section .tc-card:hover .tc-icon { animation: none; } }
