/* Program catalogue index (ProgramController::index — /{lang}/programs and the
   "პროგრამების კატალოგი" menu nodes 462/360). The old view was a bare Bootstrap
   row with inline styles: raw full-width illustrations, no heading, no cards.
   Scoped .pix-* so nothing collides with the legacy cascade. */

:root { --pix-brand: #E32D44; --pix-ink: #2c2c38; --pix-muted: #5A5A67; }

.pix-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    padding-bottom: 90px;
}

.pix-intro {
    /* also carries .art-prose for typography; that caps width at 820px */
    max-width: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 22, 40, .07);
    padding: 30px 34px;
    margin-bottom: 26px;
}
.pix-intro h2 { margin: 0; font-size: 20px; line-height: 1.4; }

/* ---------- school cards ---------- */
.pix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
}

.pix-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 22px rgba(30, 22, 40, .06);
    transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease;
}
.pix-card:hover,
.pix-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(30, 22, 40, .13);
    border-color: rgba(227, 45, 68, .3);
    text-decoration: none !important;
}
.pix-card:focus-visible { outline: 2px solid var(--pix-brand); outline-offset: 3px; }

.pix-card__media {
    display: block;
    position: relative;
    height: 210px;
    background: #f3f3f7;
    overflow: hidden;
}
.pix-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}
.pix-card:hover .pix-card__media img { transform: scale(1.05); }
.pix-card__media--blank {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7a1224 0%, var(--pix-brand) 100%);
}

.pix-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 26px 26px;
    flex: 1 1 auto;
}
.pix-card__badge {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(227, 45, 68, .09);
    color: var(--pix-brand);
    font-size: 12.5px;
    letter-spacing: .2px;
}
.pix-card__title {
    display: block;
    font-size: 19px;
    line-height: 1.35;
    color: var(--pix-ink);
    transition: color .2s ease;
}
.pix-card:hover .pix-card__title { color: var(--pix-brand); }
.pix-card__text {
    display: block;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--pix-muted);
}
.pix-card__cta {
    margin-top: auto;
    padding-top: 6px;
    color: var(--pix-brand);
    font-size: 14px;
}
.pix-card__cta span {
    display: inline-block;
    transition: transform .22s ease;
}
.pix-card:hover .pix-card__cta span { transform: translateX(4px); }

@media (max-width: 767px) {
    .pix-wrap { margin-top: -30px; padding-bottom: 56px; }
    .pix-intro { padding: 22px 20px; border-radius: 12px; }
    .pix-grid { grid-template-columns: 1fr; gap: 16px; }
    .pix-card__media { height: 170px; }
    .pix-card__body { padding: 20px 20px 22px; }
    .pix-card__title { font-size: 17px; }
}
