/* Board Members Showcase Pro — Frontend Styles */

.bms-wrapper {
	--bms-primary: #2b4c7e;
	--bms-secondary: #6c757d;
	--bms-radius: 10px;
	--bms-gap: 24px;
	--bms-img-size: 250px;
	box-sizing: border-box;
}

.bms-wrapper *,
.bms-wrapper *::before,
.bms-wrapper *::after {
	box-sizing: border-box;
}

/* Controls (search + filters) */
.bms-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	align-items: center;
	justify-content: space-between;
}

.bms-search-form {
	display: flex;
	gap: 8px;
}

.bms-search-input {
	padding: 10px 14px;
	border: 1px solid #d5d9df;
	border-radius: 6px;
	min-width: 220px;
	font-size: 14px;
}

.bms-search-btn {
	padding: 10px 18px;
	background: var(--bms-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.bms-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bms-filters select {
	padding: 9px 12px;
	border: 1px solid #d5d9df;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

/* Grid */
.bms-grid {
	display: grid;
	gap: var(--bms-gap);
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
}

.bms-grid.bms-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.bms-grid.bms-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.bms-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: var(--bms-secondary);
	font-size: 15px;
}

/* Card */
.bms-card {
	position: relative;
	background: #f0f1f3;
	border-radius: var(--bms-radius);
	overflow: hidden;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
	padding: 22px;
	height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}

.bms-hover-lift .bms-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.bms-hover-zoom .bms-card:hover .bms-photo-img {
	transform: scale(1.06);
}

.bms-hover-glow .bms-card:hover {
	box-shadow: 0 0 0 3px var(--bms-primary), 0 10px 20px rgba(0,0,0,0.08);
}

.bms-card-photo {
	flex: 0 0 auto;
	width: 140px;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
	background: #e2e4e8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bms-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.bms-photo-placeholder {
	font-size: 38px;
	font-weight: 700;
	color: var(--bms-primary);
	text-transform: uppercase;
}

.bms-card-body {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
	text-align: left;
}

.bms-card-name {
	margin: 2px 0 2px;
	font-size: 19px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.bms-card-designation {
	margin: 0 0 12px;
	font-size: 14.5px;
	font-weight: 600;
	color: #7a7f87;
}

.bms-card-meta {
	text-align: left;
	margin-top: 2px;
}

.bms-meta-row {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #444;
	display: block;
}

.bms-meta-row:last-child {
	margin-bottom: 0;
}

.bms-meta-label {
	font-weight: 600;
	color: #555;
	margin-right: 4px;
}

.bms-meta-value {
	color: #2a2a2a;
}

.bms-meta-value a {
	color: var(--bms-primary);
	text-decoration: none;
	word-break: break-word;
}

.bms-meta-value a:hover {
	text-decoration: underline;
}

/* Social icons */
.bms-card-social {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 14px;
}

.bms-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--bms-primary);
	transition: background .2s ease, color .2s ease;
}

.bms-social-link:hover {
	background: var(--bms-primary);
	color: #fff;
}

/* Featured badge */
.bms-featured-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #e5a50a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 2;
}

.bms-featured {
	outline: 2px solid #e5a50a33;
}

/* View more button */
.bms-view-more {
	margin-top: 14px;
	padding: 8px 16px;
	background: transparent;
	border: 1.5px solid var(--bms-primary);
	color: var(--bms-primary);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
	align-self: flex-start;
}

.bms-view-more:hover,
.bms-view-more:focus-visible {
	background: var(--bms-primary);
	color: #fff;
}

/* Optional section heading, e.g. [board_members title="Advisory Board"] */
.bms-section-title {
	position: relative;
	font-size: 26px;
	font-weight: 800;
	color: var(--bms-primary);
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0 0 24px;
	padding: 2px 0 16px 18px;
	border-bottom: 1px solid #e4e4e4;
}

.bms-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 18px;
	width: 4px;
	background: var(--bms-primary);
	border-radius: 2px;
}

/* Popup / modal */
.bms-popup[hidden] {
	display: none;
}

.bms-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bms-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}

.bms-popup-content {
	position: relative;
	background: #fff;
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 12px;
	padding: 32px;
	z-index: 1;
}

.bms-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #f1f3f6;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.bms-popup-header {
	display: flex;
	gap: 18px;
	align-items: center;
	margin-bottom: 20px;
}

.bms-popup-photo {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bms-popup-header h2 {
	margin: 0 0 4px;
	font-size: 20px;
}

.bms-popup-designation {
	margin: 0;
	font-weight: 600;
	color: var(--bms-primary);
	font-size: 14px;
}

.bms-popup-department {
	margin: 2px 0 0;
	color: var(--bms-secondary);
	font-size: 13px;
}

.bms-popup-bio {
	font-size: 14px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 20px;
}

.bms-popup-details p {
	font-size: 13.5px;
	margin: 0 0 8px;
	color: #444;
}

.bms-popup-details a {
	color: var(--bms-primary);
}

/* Typography variants */
.bms-typography-serif .bms-card-name,
.bms-typography-serif .bms-popup-header h2 {
	font-family: Georgia, 'Times New Roman', serif;
}

.bms-typography-modern .bms-card-name,
.bms-typography-modern .bms-popup-header h2 {
	font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
	letter-spacing: -0.01em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
