.bpd-directory,
.bpd-single {
	--bpd-primary: #17345c;
	--bpd-secondary: #167c80;
	--bpd-accent: #ff6b57;
	--bpd-card-bg: #ffffff;
	--bpd-text: #1c2734;
	--bpd-muted: #5f6b78;
	--bpd-border: #dfe5eb;
	font-family: "Noto Sans Bengali", "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--bpd-text);
	line-height: 1.6;
}

.bpd-directory *,
.bpd-directory *::before,
.bpd-directory *::after,
.bpd-single *,
.bpd-single *::before,
.bpd-single *::after {
	box-sizing: border-box;
}

.bpd-directory {
	background: #fbfcfd;
	padding: clamp(42px, 6vw, 82px) 20px;
}

.bpd-directory__inner {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.bpd-directory__header {
	max-width: 820px;
	margin: 0 auto clamp(34px, 4.5vw, 54px);
	text-align: center;
}

.bpd-directory__title {
	margin: 0;
	color: var(--bpd-primary);
	font-size: clamp(34px, 4.2vw, 52px);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

.bpd-directory__subtitle {
	margin: 15px 0 0;
	color: var(--bpd-muted);
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.55;
}

.bpd-grid {
	display: grid;
	gap: 28px;
	align-items: stretch;
}

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

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

.bpd-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bpd-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--bpd-card-bg);
	border: 1px solid var(--bpd-border);
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(23, 52, 92, 0.035);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bpd-card:hover,
.bpd-card:focus-within {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--bpd-accent) 78%, white);
	box-shadow: 0 16px 38px rgba(23, 52, 92, 0.12);
}

@supports not (color: color-mix(in srgb, red, white)) {
	.bpd-card:hover,
	.bpd-card:focus-within {
		border-color: var(--bpd-accent);
	}
}

.bpd-card__image-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f3;
}

.bpd-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center 28%;
	transition: transform 300ms ease;
}

.bpd-card:hover .bpd-card__image,
.bpd-card:focus-within .bpd-card__image {
	transform: scale(1.025);
}

.bpd-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, var(--bpd-primary), var(--bpd-secondary));
	color: #fff;
	font-size: clamp(58px, 8vw, 92px);
	font-weight: 800;
}

.bpd-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 22px 20px;
}

.bpd-card__name {
	margin: 0;
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 750;
	line-height: 1.3;
}

.bpd-card__name a {
	color: var(--bpd-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 150ms ease, text-decoration-color 150ms ease;
}

.bpd-card__name a:hover,
.bpd-card__name a:focus-visible {
	color: var(--bpd-accent);
	text-decoration-color: var(--bpd-accent);
}

.bpd-card__designation {
	margin: 7px 0 0;
	color: var(--bpd-secondary);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.bpd-card__bio {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 13px 0 0;
	color: var(--bpd-text);
	font-size: 15px;
	line-height: 1.55;
}

.bpd-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 18px;
}

.bpd-socials__link {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bpd-primary);
	color: #fff;
	text-decoration: none;
	transition: transform 150ms ease, background-color 150ms ease;
}

.bpd-socials__link--linkedin {
	background: #1477a8;
}

.bpd-socials__link--website {
	background: var(--bpd-secondary);
}

.bpd-socials__link:hover,
.bpd-socials__link:focus-visible {
	transform: translateY(-2px);
	background: var(--bpd-accent);
	color: #fff;
}

.bpd-socials__link:focus-visible,
.bpd-card__name a:focus-visible,
.bpd-card__more:focus-visible,
.bpd-single__back:focus-visible {
	outline: 3px solid var(--bpd-accent);
	outline: 3px solid color-mix(in srgb, var(--bpd-accent) 55%, white);
	outline-offset: 3px;
}

.bpd-socials__link svg {
	width: 18px;
	height: 18px;
}

.bpd-card__more {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--bpd-accent);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.bpd-card__more:hover,
.bpd-card__more:focus-visible {
	color: var(--bpd-primary);
}

.bpd-card__arrow {
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	transition: transform 160ms ease;
}

.bpd-card__more:hover .bpd-card__arrow {
	transform: translateX(4px);
}

.bpd-directory__empty {
	margin: 0;
	padding: 30px;
	border: 1px dashed var(--bpd-border);
	border-radius: 12px;
	background: #fff;
	color: var(--bpd-muted);
	text-align: center;
}

/* Individual profile page. */
.bpd-single {
	background: #fbfcfd;
	padding: clamp(35px, 5vw, 70px) 20px clamp(55px, 7vw, 90px);
}

.bpd-single__article {
	width: min(1040px, 100%);
	margin: 0 auto;
}

.bpd-single__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	color: var(--bpd-primary);
	font-weight: 700;
	text-decoration: none;
}

.bpd-single__back:hover {
	color: var(--bpd-accent);
}

.bpd-single__hero {
	display: grid;
	grid-template-columns: minmax(260px, 360px) 1fr;
	gap: clamp(30px, 5vw, 64px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	background: var(--bpd-card-bg);
	border: 1px solid var(--bpd-border);
	border-radius: 20px;
	box-shadow: 0 16px 45px rgba(23, 52, 92, 0.08);
}

.bpd-single__photo-wrap {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 16px;
	background: #eaf0f3;
}

.bpd-single__photo {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center 25%;
}

.bpd-single__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, var(--bpd-primary), var(--bpd-secondary));
	color: #fff;
	font-size: 110px;
	font-weight: 800;
}

.bpd-single__name {
	margin: 0;
	color: var(--bpd-primary);
	font-size: clamp(36px, 5vw, 58px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.bpd-single__designation {
	margin: 12px 0 0;
	color: var(--bpd-secondary);
	font-size: clamp(18px, 2.3vw, 24px);
	font-weight: 750;
}

.bpd-single__summary {
	margin: 19px 0 0;
	color: var(--bpd-muted);
	font-size: 17px;
	line-height: 1.75;
}

.bpd-single__intro .bpd-socials {
	margin-top: 24px;
}

.bpd-single__intro .bpd-socials__link {
	width: 39px;
	height: 39px;
}

.bpd-single__content {
	margin-top: 34px;
	padding: clamp(25px, 4vw, 48px);
	background: #fff;
	border: 1px solid var(--bpd-border);
	border-radius: 18px;
}

.bpd-single__content h2:first-child {
	margin-top: 0;
	color: var(--bpd-primary);
	font-size: clamp(28px, 3vw, 36px);
}

.bpd-single__content > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.bpd-grid--3,
	.bpd-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.bpd-grid,
	.bpd-grid--2,
	.bpd-grid--3,
	.bpd-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.bpd-card__body {
		padding: 20px;
	}

	.bpd-single__hero {
		grid-template-columns: 1fr;
	}

	.bpd-single__photo-wrap {
		width: min(100%, 420px);
		margin: 0 auto;
	}

	.bpd-single__intro {
		text-align: center;
	}

	.bpd-single__intro .bpd-socials {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpd-card,
	.bpd-card__image,
	.bpd-socials__link,
	.bpd-card__arrow {
		transition: none;
	}
}
