/* ── Infopace Facilitator Grid — Frontend Styles ─────────────── */

/* Grid */
.ifg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Equal height */
.ifg-grid.ifg-equal { align-items: stretch; }
.ifg-grid.ifg-equal .ifg-card { height: 100%; display: flex; flex-direction: column; }
.ifg-grid.ifg-equal .ifg-card.ifg-style-landscape .ifg-landscape-inner { flex: 1; }
.ifg-grid.ifg-equal .ifg-body { flex: 1; display: flex; flex-direction: column; }
.ifg-grid.ifg-equal .ifg-footer { margin-top: auto; }

/* ── CARD ── */
.ifg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ifg-card:hover {
    border-color: #c9962a;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13,27,62,.09);
}

/* ════════════════════════════════════
   PORTRAIT STYLE
════════════════════════════════════ */
.ifg-style-portrait .ifg-photo-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f3f4f6;
}
.ifg-style-portrait .ifg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ifg-style-portrait .ifg-card:hover .ifg-photo { transform: scale(1.04); }
.ifg-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1b3e 0%, #1e3a6e 100%);
}
.ifg-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,62,.45);
    opacity: 0;
    transition: opacity .3s ease;
}
.ifg-card:hover .ifg-photo-overlay { opacity: 1; }

/* ════════════════════════════════════
   LANDSCAPE STYLE
════════════════════════════════════ */
.ifg-style-landscape .ifg-landscape-inner {
    display: flex;
    align-items: stretch;
}
.ifg-style-landscape .ifg-landscape-photo {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
}
.ifg-style-landscape .ifg-landscape-photo .ifg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ifg-style-landscape .ifg-card:hover .ifg-photo { transform: scale(1.04); }
.ifg-style-landscape .ifg-landscape-content {
    flex: 1;
    min-width: 0;
}
.ifg-style-landscape .ifg-body { padding: 16px 18px; }

/* ════════════════════════════════════
   MINIMAL STYLE (avatar circle)
════════════════════════════════════ */
.ifg-style-minimal .ifg-minimal-top {
    padding: 24px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ifg-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #0d1b3e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ifg-avatar-wrap .ifg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.ifg-initials {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c9962a;
    line-height: 1;
}
.ifg-style-minimal .ifg-body { text-align: center; }
.ifg-style-minimal .ifg-tags { justify-content: center; }
.ifg-style-minimal .ifg-footer { justify-content: center; }

/* ── BADGE ── */
.ifg-badge {
    display: inline-block;
    background: #c9962a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
}
.ifg-style-portrait .ifg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.ifg-style-landscape .ifg-badge { margin-bottom: 6px; }

/* ── BODY ── */
.ifg-body { padding: 20px; }

/* ── NAME ── */
.ifg-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 4px;
}
.ifg-name a { color: inherit; text-decoration: none; transition: color .2s; }
.ifg-name a:hover { color: #c9962a; }

/* ── DESIGNATION ── */
.ifg-designation {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c9962a;
    line-height: 1.35;
    margin: 0 0 3px;
}

/* ── ORG ── */
.ifg-org {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.35;
    margin: 0 0 10px;
}

/* ── EXPERIENCE PILL ── */
.ifg-experience {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(201,150,42,.1);
    color: #c9962a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.ifg-experience i { font-size: 11px; }

/* ── BIO ── */
.ifg-bio {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 12px;
}

/* ── EXPERTISE TAGS ── */
.ifg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.ifg-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

/* ── FOOTER ── */
.ifg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── SOCIAL ICONS ── */
.ifg-socials {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ifg-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    flex-shrink: 0;
}
.ifg-social-link:hover { background: #c9962a; color: #ffffff; }
.ifg-social-link i { font-size: 13px; }

/* ── PROFILE BUTTON ── */
.ifg-btn {
    display: inline-block;
    background: #c9962a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.ifg-btn:hover { background: #e8b94a; color: #ffffff; }

/* ── RESPONSIVE FALLBACKS ── */
@media (max-width: 1024px) {
    .ifg-grid:not([style*="grid-template-columns"]) { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 767px) {
    .ifg-grid:not([style*="grid-template-columns"]) { grid-template-columns: 1fr; }
    .ifg-style-landscape .ifg-landscape-inner { flex-direction: column; }
    .ifg-style-landscape .ifg-landscape-photo { width: 100%; height: 200px; }
    .ifg-footer { flex-direction: column; align-items: flex-start; }
    .ifg-btn { width: 100%; text-align: center; }
}
