/* ═══════════════════════════════════════════════════════════════════
 *  Course Exercises Gallery — /course-exercises/
 *  Single masonry-style grid of all course gallery photos with a
 *  course-name badge overlay and filter pills at the top.
 * ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb (sits below hero, site convention) ─────────────── */
.ptst-course-exercises > .container {
    padding-top: 18px;
    padding-bottom: 4px;
}
.ptst-course-exercises .ptst-crumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink-3, #5A6B86);
    padding: 0;
}
.ptst-course-exercises .ptst-crumb a { color: var(--ink-3, #5A6B86); text-decoration: none; }
.ptst-course-exercises .ptst-crumb a:hover { color: var(--brand-blue, #0E4A9C); text-decoration: underline; text-underline-offset: 3px; }
.ptst-course-exercises .ptst-crumb__sep { color: var(--ink-4, #93A1B8); }
.ptst-course-exercises .ptst-crumb__current { color: var(--ink, #0B1B33); }

/* ── Course filter pills ───────────────────────────────────────── */
.ptst-course-exercises__filter-section { padding: 20px 0 0; }
.ptst-course-exercises .ptst-topic-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ptst-course-exercises .ptst-topic-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2, #2A3D5C);
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.ptst-course-exercises .ptst-topic-pill:hover {
    border-color: var(--brand-blue, #0E4A9C);
    color: var(--brand-blue, #0E4A9C);
}
.ptst-course-exercises .ptst-topic-pill.is-active {
    background: var(--brand-blue, #0E4A9C);
    border-color: var(--brand-blue, #0E4A9C);
    color: #fff;
}
.ptst-course-exercises .ptst-topic-pill.is-active:hover { color: #fff; }
.ptst-course-exercises .ptst-topic-pill__count {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(11, 27, 51, 0.06);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3, #5A6B86);
    line-height: 1.4;
}
.ptst-course-exercises .ptst-topic-pill.is-active .ptst-topic-pill__count {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ── Photo grid ────────────────────────────────────────────────── */
.ptst-course-exercises__grid-section { padding: 28px 0 80px; }
.ptst-course-exercises__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.ptst-course-exercises__photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-soft, #F4F7FB);
    border: 1px solid var(--line, #E2E8F2);
    cursor: zoom-in;
    transition: transform 140ms ease, border-color 140ms ease;
}
.ptst-course-exercises__photo:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue, #0E4A9C);
}
.ptst-course-exercises__photo img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
}
.ptst-course-exercises__photo:hover img { transform: scale(1.04); }

/* Course badge — bottom-left, fades on hover so the photo can breathe. */
.ptst-course-exercises__photo-badge {
    position: absolute;
    left: 8px; bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 10px;
    background: rgba(11, 27, 51, 0.85);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 6px;
    line-height: 1.35;
    backdrop-filter: blur(4px);
    transition: opacity 140ms ease, transform 140ms ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ptst-course-exercises__photo:hover .ptst-course-exercises__photo-badge {
    opacity: 0.85;
}

/* Empty state */
.ptst-course-exercises .ptst-empty-state {
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    color: var(--ink-3, #5A6B86);
}
