/* ==========================================================
   MANAFLOW — Resource teaser (locked sample cards)
   Used on index.php and register.php to preview the members'
   resource library without exposing downloads.
   Mirrors the dashboard .resource-card look; namespaced .rt-.
   ========================================================== */

.rt-grid { }

.rt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}
.rt-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.rt-card-head { padding: 1.25rem 1.25rem .75rem; flex: 1; }

.rt-badge {
    display: inline-block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 3px;
    background: #f0f0f0;
    color: #555;
    margin-bottom: .75rem;
}

.rt-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: .4rem;
    line-height: 1.3;
}

.rt-desc {
    font-size: .875rem;
    color: #696969;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Locked footer — replaces the download/view controls */
.rt-lock {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    color: #8a8a8a;
    font-size: .8rem;
    font-weight: 600;
    margin-top: auto;
}
.rt-lock svg { flex-shrink: 0; opacity: .8; }

/* Optional "Sample" ribbon in the corner */
.rt-card::after {
    content: 'Sample';
    position: absolute;
    top: .75rem;
    right: -1.75rem;
    transform: rotate(45deg);
    background: var(--color-primary, #AE152D);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .15rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}