/* ============================================================
   Partner Reviews Grid — Figma layout
   ============================================================ */

:root {
    --prg-red:          #FF000D;
    --prg-blue:         #1789FC;
    --prg-border-dark:  #002650;
    --prg-text:         #000000;
    --prg-note:         #868686;
    --prg-divider:      #d8d8d8;
    --prg-bg:           #ffffff;
    --prg-shadow:       0 2px 12px rgba(0, 0, 0, 0.08);
    --prg-gap:          24px;
    --prg-font:         "Myriad Variable Concept", "Myriad Pro", Myriad, "Segoe UI", sans-serif;
    --prg-max-width:    1400px;
    --prg-transition:   0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Grid ── */
.prg-grid {
    display: grid;
    gap: var(--prg-gap);
    font-family: var(--prg-font);
    margin: 0 0 40px;
}

.prg-grid.prg-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.prg-grid > .prg-card {
    height: 100%;
}

/* ── Carousel ── */
.prg-carousel {
    font-family: var(--prg-font);
    margin: 0 0 40px;
    position: relative;
}

.prg-carousel__nav-wrap {
    width: 100%;
    max-width: var(--prg-max-width);
    margin: 0 auto 1.25rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.prg-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.prg-carousel__arrows {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.prg-carousel .prg-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 2px solid #6b6b6b;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--prg-transition), background var(--prg-transition);
    box-shadow: none;
}

.prg-carousel .prg-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--prg-red);
    border-right: 2px solid var(--prg-red);
}

.prg-carousel .prg-arrow--prev span {
    transform: rotate(-135deg) translate(1px, -1px);
}

.prg-carousel .prg-arrow--next span {
    transform: rotate(45deg) translate(-1px, 1px);
}

.prg-carousel .prg-arrow:hover:not(:disabled) {
    border-color: var(--prg-red);
    background: rgba(255, 0, 13, 0.06);
}

.prg-carousel .prg-arrow--disabled,
.prg-carousel .prg-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.prg-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.prg-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--prg-gap);
    will-change: transform;
}

.prg-carousel .prg-card {
    flex-shrink: 0;
    min-width: 0;
    height: auto;
    align-self: stretch;
}

/* ── Card shell ── */
.prg-card {
    background: var(--prg-bg);
    border-radius: 0;
    box-shadow: var(--prg-shadow);
    border-bottom: 2px solid var(--prg-border-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* ── Main block (grows so blue bar aligns across row) ── */
.prg-card__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ── Padded sections ── */
.prg-card__header,
.prg-card__meta,
.prg-card__content {
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Header ── */
.prg-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 12px;
}

.prg-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--prg-red);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prg-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.prg-card__icon--placeholder svg {
    width: 30px;
    height: 30px;
}

.prg-card__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--prg-text);
    margin: 0;
    line-height: 1.25;
}

/* ── Client / Partner ── */
.prg-card__meta {
    padding-bottom: 12px;
}

.prg-card__meta-line {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 400;
    color: var(--prg-text);
    line-height: 1.35;
}

.prg-card__meta-line strong {
    font-weight: 700;
}

/* ── Divider ── */
.prg-card__divider {
    border: none;
    border-top: 1px solid var(--prg-divider);
    margin: 0 24px 0;
}

/* ── Body ── */
.prg-card__content {
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--prg-text);
    line-height: 1.55;
    padding-top: 22px;
    padding-bottom: 20px;
}

.prg-card__content p {
    margin: 0 0 14px;
}

.prg-card__content p:last-child {
    margin-bottom: 0;
}

/* ── Bottom stack: blue bar + grey note (pinned as one unit) ── */
.prg-card__bottom {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

/* ── Blue bar ── */
.prg-card__profit-bar {
    background: var(--prg-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.prg-card__profit-label {
    flex: 1 1 auto;
    min-width: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.prg-card__profit-amount {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}

/* ── Footer (grey note; height synced in JS across cards in a row) ── */
.prg-card__footer {
    flex-shrink: 0;
    padding: 14px 24px 18px;
    border-top: none;
    min-height: 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.prg-card__footer:empty {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
}

.prg-card__grey-note {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--prg-note);
    line-height: 1.45;
}

/* ── Empty state ── */
.prg-empty {
    font-family: var(--prg-font);
    color: var(--prg-note);
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .prg-grid.prg-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .prg-grid.prg-cols-3 {
        grid-template-columns: 1fr;
    }

    .prg-card__title,
    .prg-card__meta-line {
        font-size: 18px;
    }

    .prg-card__content {
        font-size: 16px;
    }

    .prg-card__profit-label {
        font-size: 15px;
    }

    .prg-card__profit-amount {
        font-size: 26px;
    }

    .prg-card__profit-bar {
        padding: 12px 16px;
    }
}
