/* Botanical Faculty Addon – base styles (all overridable from Elementor Style tab) */
.bfa-wrap { box-sizing: border-box; }
.bfa-wrap *, .bfa-wrap *::before, .bfa-wrap *::after { box-sizing: border-box; }

/* Header */
.bfa-header { text-align: center; margin: 0 auto 20px; }
.bfa-subtitle { font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .1em; color: #4d7c5f; margin: 0 0 8px; }
.bfa-title { font-size: 36px; font-weight: 700; color: #064e3b; margin: 0; line-height: 1.2; }
.bfa-divider { width: 64px; height: 4px; background: #d4af37; margin: 16px var(--bfa-mr, auto) 16px var(--bfa-ml, auto); border-radius: 999px; }
.bfa-desc { color: #4b5563; margin: 0; }

/* Filter tabs */
.bfa-filter-wrap { display: flex; justify-content: center; margin-bottom: 20px; text-align: center; }
.bfa-tabs { display: inline-flex; flex-wrap: wrap; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.bfa-tab { appearance: none; border: 0; cursor: pointer; padding: 8px 24px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; background: transparent; color: #4b5563; transition: all .25s ease; line-height: 1.4; }
.bfa-tab:hover { color: #064e3b; background: transparent; }
.bfa-tab.is-active, .bfa-tab.is-active:hover { background: #064e3b; color: #fff; }

/* Grid & card */
.bfa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bfa-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: flex; flex-direction: column; justify-content: space-between; transition: all .3s ease; }
.bfa-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.bfa-card.is-hidden { display: none; }
.bfa-card-head { display: inline-block; align-items: center; gap: 16px; margin-bottom: 0px; }
.bfa-card-id { min-width: 0; padding:10px 0;  }

/* Avatar */
.bfa-avatar { width: 100%; height:auto; flex: 0 0 auto; border-radius: 50%; background: #065f46; color: #facc15; display: none; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }
.bfa-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Badge & text */
.bfa-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; }
.bfa-badge.is-regular { background: #f3e9bf; color: #064e3b; }
.bfa-badge.is-guest { background: #f3f4f6; color: #4b5563; }
.bfa-card .bfa-name { font-size: 16px; font-weight: 700; color: #064e3b; margin:10px 0 0; line-height: 1.3; }
.bfa-card .bfa-role { font-size: 12px; color: #4d7c5f; font-weight: 500; margin: 0; }
.bfa-card .bfa-spec { font-size: 12px; color: #6b7280; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Button */
.bfa-btn { display: inline-block; text-align: center; text-decoration: none; box-sizing: border-box; width: 120px; cursor: pointer; padding: 8px 16px; background: #f7f5ee; color: #064e3b; font-size: 12px; font-weight: 700; border-radius: 12px; border: 1px solid #e5e7eb; transition: all .25s ease; }
.bfa-btn:hover { background: #064e3b; color: #fff; }


@media (max-width: 1024px) { .bfa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .bfa-grid { grid-template-columns: 1fr; } .bfa-tab { padding: 8px 14px; } .bfa-tabs {    width: 100%; justify-content: space-between; display:flex; }  }
