/* ABCL TECH — course & topic cards with an image, a short description and an Enroll button.
   Used by index.html (cards built by its inline script from js/course-cards.js and js/posts.js)
   and course.html (static markup). Images: image/course-card/<slug>.webp, blog photos for topics. */
.xc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.3rem; }
.xc-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e5e9ef; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .18); transition: transform .2s, box-shadow .2s, border-color .2s; }
.xc-card:hover { transform: translateY(-4px); border-color: #4ade80; box-shadow: 0 18px 38px -16px rgba(15, 23, 42, .32); }
.xc-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; }
.xc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.xc-card:hover .xc-media img { transform: scale(1.05); }
.xc-media:after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .55)); pointer-events: none; }
.xc-code { position: absolute; top: .7rem; left: .7rem; z-index: 1; padding: 2px 8px; border-radius: 6px; font: 800 .68rem 'Anek Bangla', sans-serif; letter-spacing: 1px; color: #0f172a; background: #4ade80; }
.xc-meta { position: absolute; left: .7rem; bottom: .65rem; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px;
  font: 600 .76rem 'Anek Bangla', sans-serif; color: #fff; background: rgba(2, 6, 23, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.xc-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.xc-eyebrow { font: 700 .66rem 'Anek Bangla', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #2d8c3a; }
.xc-title { margin: 0; font-size: 1.02rem; line-height: 1.38; font-weight: 800; }
.xc-title a { color: #0f172a; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xc-title a:hover { color: #2d8c3a; }
.xc-desc { margin: 0; font-size: .86rem; line-height: 1.6; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xc-heads { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.xc-heads li { display: flex; gap: .45rem; font-size: .84rem; line-height: 1.45; color: #334155; }
.xc-heads li:before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: #39b549; }
.xc-heads a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xc-heads a:hover { color: #2d8c3a; text-decoration: underline; }
.xc-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.xc-enroll { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 10px; font: 700 .9rem 'Anek Bangla', sans-serif; text-decoration: none;
  color: #fff !important; background: linear-gradient(180deg, #43c454, #39b549 55%, #2d8c3a); box-shadow: 0 6px 16px rgba(45, 140, 58, .3); transition: transform .15s, box-shadow .15s; }
.xc-enroll:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(45, 140, 58, .42); }
.xc-more { margin-left: auto; padding: .5rem .8rem; border-radius: 10px; font: 600 .86rem 'Anek Bangla', sans-serif; color: #0f172a !important; text-decoration: none; border: 1px solid #d6dce4; }
.xc-more:hover { border-color: #39b549; color: #2d8c3a !important; }
.xc-enroll:focus-visible, .xc-more:focus-visible, .xc-title a:focus-visible { outline: 3px solid #4ade80; outline-offset: 2px; }
.xc-count { display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem 'Anek Bangla', sans-serif; color: #64748b; }
@media (max-width: 600px) { .xc-grid { grid-template-columns: 1fr; gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .xc-card, .xc-media img { transition: none; } .xc-card:hover { transform: none; } }
