/* Profile Listings for Elementor — Frontend CSS — FBC Digital
   Layout only. Colors/typography controlled via Settings or Elementor. */

.pl-grid {
    display: grid;
    grid-template-columns: repeat( var(--pl-cols, 4), 1fr );
    gap: 24px;
}

@media ( max-width: 1024px ) {
    .pl-grid { grid-template-columns: repeat( var(--pl-cols-t, 2), 1fr ); }
}
@media ( max-width: 600px ) {
    .pl-grid { grid-template-columns: repeat( var(--pl-cols-m, 1), 1fr ); }
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.pl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pl-card:hover  { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.pl-card--zoom .pl-card__image img { transition: transform 0.4s ease; }
.pl-card--zoom:hover .pl-card__image img { transform: scale(1.06); }

/* ── Image ────────────────────────────────────────────────────────────── */
.pl-card__image {
    height: 220px;
    overflow: hidden;
    background: #e8e8e8;
}
.pl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.pl-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pl-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}
.pl-card__title {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px;
}
.pl-card__company,
.pl-card__company a {
    font-size: 13px;
    color: #444;
    margin: 0 0 8px;
    text-decoration: none;
}
.pl-card__company a:hover { text-decoration: underline; }

/* ── Social Icons ─────────────────────────────────────────────────────── */
.pl-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}
.pl-social {
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1;
}
.pl-social:hover { color: #0073aa; }
.pl-social svg { display: block; }

/* ── Group Name ───────────────────────────────────────────────────────── */
.pl-group-name {
    margin: 0 0 24px;
    font-size: 22px;
    color: #111;
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.pl-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.8);
}
.pl-modal-box {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 820px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pl-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #000;
    z-index: 2;
}
.pl-modal-close:hover { opacity: .7; }
.pl-modal-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 32px;
}
@media ( max-width: 600px ) {
    .pl-modal-body { grid-template-columns: 1fr; }
}
.pl-modal-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.pl-modal-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}
.pl-modal-title  { font-size: 15px; color: #666; margin: 0 0 4px; }
.pl-modal-company{ font-size: 13px; color: #444; margin: 0 0 16px; }
.pl-modal-company a { color: inherit; text-decoration: underline; }
.pl-modal-desc { font-size: 14px; line-height: 1.7; color: #333; }
.pl-modal-socials { margin-top: 16px; }

body.pl-modal-open { overflow: hidden; }
