/**
 * BD Directory — front-end styles.
 * Scoped under .bd-* so nothing leaks into the theme.
 */

.bd-directory {
	--bd-border: #e3e6ea;
	--bd-muted: #5b6672;
	--bd-accent: #0b6b3a;
	--bd-accent-soft: #e8f3ec;
	--bd-radius: 10px;
}

/* Section nav ---------------------------------------------------------- */

.bd-section-nav {
	margin: 0 0 18px;
	/*
	 * The directory page sits in a narrower content column than the
	 * full-width archives, so the breakpoint has to follow the space the
	 * nav actually has, not the size of the screen.
	 */
	container-type: inline-size;
	container-name: bdnav;
}

.bd-section-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 2px solid var(--bd-accent, #0b6b3a);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.bd-section-nav li {
	margin: 0;
	display: flex;
	/* Never let a segment shrink under its label — that is what made the
	   items overlap each other. */
	flex: 0 0 auto;
	min-width: max-content;
	border-right: 1px solid var(--bd-accent, #0b6b3a);
}

.bd-section-nav li:last-child {
	border-right: 0;
}

.bd-section-nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95em;
	line-height: 1.2;
	color: var(--bd-accent, #0b6b3a);
	white-space: nowrap;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bd-section-nav a:hover,
.bd-section-nav a:focus {
	background: var(--bd-accent-soft, #e8f3ec);
}

/* The section you are in: green fading to gold, as in the design. */
.bd-section-nav li.is-current a,
.bd-section-nav li.is-current a:hover,
.bd-section-nav li.is-current a:focus {
	background: linear-gradient(90deg, #0b6b3a 0%, #0b6b3a 45%, #a98b22 100%);
	color: #fff;
}

.bd-nav-icon {
	font-size: 1.05em;
	line-height: 1;
}

@media (max-width: 1100px) {
	.bd-section-nav a {
		padding: 10px 13px;
		font-size: 0.86em;
		gap: 6px;
	}
}

/*
 * When the nav has less room than its six labels need, the joined bar
 * breaks into separate pills that wrap. This keys off the width of the
 * nav's own container, so the narrower directory page and the
 * full-width archives each get the right treatment.
 */
@container bdnav (max-width: 1050px) {
	.bd-section-nav ul {
		border: 0;
		border-radius: 0;
		overflow: visible;
		background: none;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px;
	}

	.bd-section-nav li {
		border-right: 0;
	}

	.bd-section-nav li a {
		border: 2px solid var(--bd-accent, #0b6b3a);
		border-radius: 999px;
		background: #fff;
		padding: 10px 18px;
		font-size: 0.92em;
	}

	.bd-section-nav li.is-current a {
		border-color: transparent;
	}
}

/* Fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
	@media (max-width: 1050px) {
		.bd-section-nav ul {
			border: 0;
			border-radius: 0;
			overflow: visible;
			background: none;
			justify-content: center;
			flex-wrap: wrap;
			gap: 10px;
		}

		.bd-section-nav li {
			border-right: 0;
		}

		.bd-section-nav li a {
			border: 2px solid var(--bd-accent, #0b6b3a);
			border-radius: 999px;
			background: #fff;
			padding: 10px 18px;
			font-size: 0.92em;
		}

		.bd-section-nav li.is-current a {
			border-color: transparent;
		}
	}
}

/* Breadcrumb ----------------------------------------------------------- */

.bd-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 0.86em;
	color: var(--bd-muted, #5b6672);
}

.bd-breadcrumb li + li::before {
	content: "›";
	margin-right: 6px;
	opacity: 0.6;
}

/* Page header (shared by every directory page) ------------------------- */

.bd-page-header {
	margin: 0 0 26px;
}

.bd-page-title {
	margin: 4px 0 8px;
	font-size: clamp( 1.5em, 4.2vw, 2.1em );
	line-height: 1.2;
}

.bd-page-description {
	margin: 0 0 16px;
	color: var(--bd-muted, #5b6672);
	font-size: 1em;
	line-height: 1.6;
	max-width: 72ch;
}

/* Sub-navigation ------------------------------------------------------- */

.bd-subnav {
	margin: 0 0 14px;
}

.bd-subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-subnav a {
	display: inline-block;
	padding: 3px 0;
	font-size: 0.84em;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--bd-muted, #5b6672);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.bd-subnav a:hover,
.bd-subnav a:focus {
	color: var(--bd-accent, #0b6b3a);
}

.bd-subnav li.is-current a {
	color: var(--bd-accent, #0b6b3a);
	border-bottom-color: var(--bd-accent, #0b6b3a);
}

/* Search --------------------------------------------------------------- */

.bd-search-form {
	margin: 0 0 24px;
}

.bd-search-form .bd-field {
	margin: 0;
	min-width: 0;
}

.bd-search-form input[type="search"],
.bd-search-form select {
	width: 100%;
	max-width: 100%;
	border: 0;
	background: transparent;
	padding: 15px 20px;
	font-size: 0.98em;
	color: inherit;
	border-radius: 999px;
}

.bd-search-form input[type="search"]::placeholder {
	color: #8d959d;
}

.bd-search-form input[type="search"]:focus,
.bd-search-form select:focus {
	outline: none;
}

.bd-search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 15px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--bd-accent, #0b6b3a);
	color: #fff;
	font-weight: 700;
	font-size: 0.82em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

.bd-search-form button:hover {
	background: #095c31;
}

.bd-search-icon {
	flex: 0 0 auto;
}

/* Single pill: input and button fused inside one rounded outline. */
.bd-search-form.is-pill {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--bd-accent, #0b6b3a);
	border-radius: 999px;
	background: #fff;
	padding: 3px;
	gap: 0;
}

.bd-search-form.is-pill .bd-field-search {
	flex: 1 1 auto;
	display: flex;
	min-width: 0;
}

.bd-search-form.is-pill .bd-field-submit {
	flex: 0 0 auto;
	display: flex;
}

/* Segmented pill: search plus filters, divided by hairlines. */
.bd-search-form.is-multi {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	border: 2px solid var(--bd-accent, #0b6b3a);
	border-radius: 999px;
	background: #fff;
	padding: 3px;
}

.bd-search-form.is-multi .bd-field-search {
	flex: 2 1 240px;
	display: flex;
	min-width: 0;
}

.bd-search-form.is-multi .bd-field-select {
	flex: 1 1 165px;
	display: flex;
	min-width: 0;
	border-left: 1px solid var(--bd-border, #e3e6ea);
}

.bd-search-form.is-multi .bd-field-select select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient( 45deg, transparent 50%, #5b6672 50% ), linear-gradient( 135deg, #5b6672 50%, transparent 50% );
	background-position: calc( 100% - 19px ) 55%, calc( 100% - 13px ) 55%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
	cursor: pointer;
}

.bd-search-form.is-multi .bd-field-submit {
	flex: 0 0 auto;
	display: flex;
}

/* The doctors bar carries four controls, so its segments are narrower
   and its text a touch smaller to keep everything on one line. */
.bd-search-form.bd-doctor-search .bd-field-search {
	flex: 2 1 200px;
}

.bd-search-form.bd-doctor-search .bd-field-select {
	flex: 1 1 130px;
}

.bd-search-form.bd-doctor-search input[type="search"],
.bd-search-form.bd-doctor-search select {
	padding: 14px 15px;
	font-size: 0.92em;
}

.bd-search-form.bd-doctor-search .bd-field-select select {
	padding-right: 30px;
	background-position: calc( 100% - 15px ) 55%, calc( 100% - 9px ) 55%;
}

.bd-search-form.bd-doctor-search button {
	padding: 14px 22px;
}

/* Term grids ----------------------------------------------------------- */

.bd-section-title {
	margin: 32px 0 14px;
	font-size: 1.25em;
}

.bd-term-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-term-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	text-decoration: none;
}

.bd-term-list a:hover {
	border-color: var(--bd-accent, #0b6b3a);
	background: var(--bd-accent-soft, #e8f3ec);
}

.bd-term-count {
	font-size: 0.8em;
	color: var(--bd-muted, #5b6672);
	background: #f2f4f6;
	border-radius: 999px;
	padding: 1px 8px;
}

/* Listing cards -------------------------------------------------------- */

.bd-business-list {
	display: grid;
	gap: 18px;
	margin: 0 0 24px;
}

.bd-business-list.bd-cols-1 { grid-template-columns: 1fr; }
.bd-business-list.bd-cols-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bd-business-list.bd-cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bd-business-list.bd-cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.bd-business-card {
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.bd-business-card.is-featured {
	border-color: var(--bd-accent, #0b6b3a);
	box-shadow: 0 0 0 1px var(--bd-accent, #0b6b3a) inset;
}

.bd-card-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.bd-card-body {
	padding: 14px 16px 16px;
}

.bd-card-title {
	margin: 0 0 8px;
	font-size: 1.05em;
	line-height: 1.35;
}

.bd-card-title a {
	text-decoration: none;
}

.bd-card-badges {
	margin: 0 0 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bd-badge {
	font-size: 0.72em;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 999px;
	background: #f2f4f6;
	color: var(--bd-muted, #5b6672);
	text-decoration: none;
	line-height: 1.8;
}

.bd-badge-verified {
	background: #e6f4ea;
	color: #1e7e34;
}

.bd-badge-featured {
	background: #fff4d6;
	color: #8a6100;
}

.bd-card-meta,
.bd-card-rating {
	margin: 0 0 6px;
	font-size: 0.88em;
	color: var(--bd-muted, #5b6672);
}

.bd-stars {
	color: #e8a000;
	letter-spacing: 1px;
}

.bd-card-excerpt {
	font-size: 0.9em;
	margin: 8px 0;
}

.bd-card-more a {
	font-size: 0.88em;
	font-weight: 600;
	text-decoration: none;
}

/* Single listing ------------------------------------------------------- */

.bd-listing-summary {
	font-size: 1.03em;
	line-height: 1.65;
	padding: 14px 16px;
	background: #f7f9fa;
	border-left: 4px solid var(--bd-accent, #0b6b3a);
	border-radius: 6px;
	margin: 0 0 18px;
}

.bd-listing-facts {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 6px 16px;
	margin: 0 0 20px;
	font-size: 0.95em;
}

.bd-listing-facts dt {
	font-weight: 600;
	color: var(--bd-muted, #5b6672);
}

.bd-listing-facts dd {
	margin: 0;
}

.bd-verified-note {
	font-size: 0.85em;
	color: #1e7e34;
	margin: 0 0 20px;
}

.bd-listing-details h2 {
	margin: 30px 0 12px;
	font-size: 1.2em;
}

.bd-service-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bd-service-list li {
	background: #f2f4f6;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.87em;
}

.bd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.bd-gallery-grid figure {
	margin: 0;
}

.bd-gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.bd-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px 18px;
}

.bd-related-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--bd-border, #e3e6ea);
}

.bd-related-area {
	display: block;
	font-size: 0.8em;
	color: var(--bd-muted, #5b6672);
}

/* Reviews and forms ---------------------------------------------------- */

.bd-review-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.bd-review {
	border-bottom: 1px solid var(--bd-border, #e3e6ea);
	padding: 12px 0;
}

.bd-review-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	margin: 0 0 4px;
	font-size: 0.88em;
	color: var(--bd-muted, #5b6672);
}

.bd-review-body {
	margin: 0;
}

.bd-review-form,
.bd-claim-form,
.bd-add-business-form {
	max-width: 560px;
	margin: 18px 0 0;
}

.bd-review-form .bd-field,
.bd-claim-form .bd-field,
.bd-add-business-form .bd-field {
	margin: 0 0 14px;
}

.bd-review-form label,
.bd-claim-form label,
.bd-add-business-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 4px;
}

.bd-review-form input,
.bd-review-form textarea,
.bd-review-form select,
.bd-claim-form input,
.bd-claim-form textarea,
.bd-add-business-form input,
.bd-add-business-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	background: #fff;
}

/* Honeypot — hidden from people, present for bots. */
.bd-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bd-form-response {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f2f4f6;
	font-size: 0.92em;
}

.bd-form-response.is-error {
	background: #fdecea;
	color: #a4232b;
}

.bd-form-response.is-success {
	background: #e6f4ea;
	color: #1e7e34;
}

.bd-notice {
	padding: 10px 14px;
	border-radius: 8px;
	margin: 0 0 16px;
}

.bd-notice-success { background: #e6f4ea; color: #1e7e34; }
.bd-notice-warning { background: #fff4d6; color: #8a6100; }
.bd-notice-error   { background: #fdecea; color: #a4232b; }

/* Pagination ----------------------------------------------------------- */

.bd-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 22px 0;
	padding: 0;
	justify-content: center;
}

.bd-pagination a,
.bd-pagination .bd-page-current,
.bd-pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	text-align: center;
	padding: 7px 10px;
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: 8px;
	text-decoration: none;
}

.bd-pagination .bd-page-current,
.bd-pagination .page-numbers.current {
	background: var(--bd-accent, #0b6b3a);
	border-color: var(--bd-accent, #0b6b3a);
	color: #fff;
	font-weight: 600;
}

.bd-pagination .bd-page-gap {
	padding: 7px 4px;
	border: 0;
}

.bd-empty {
	padding: 18px;
	background: #f7f9fa;
	border-radius: var(--bd-radius, 10px);
	color: var(--bd-muted, #5b6672);
}

.bd-archive-title {
	margin: 0 0 10px;
}

.bd-archive-description {
	color: var(--bd-muted, #5b6672);
	margin: 0 0 18px;
}

@media (max-width: 600px) {
	.bd-listing-facts {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.bd-listing-facts dd {
		margin-bottom: 10px;
	}
}

/* Directory home: hero + section cards ---------------------------------- */

.bd-section-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	margin: 0 0 32px;
}

.bd-section-card {
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	padding: 16px 18px 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.bd-section-card-title {
	margin: 0 0 8px;
	font-size: 1.08em;
	line-height: 1.3;
}

.bd-section-card-title a {
	text-decoration: none;
}

.bd-section-card.is-external .bd-section-card-title a::after {
	content: " ↗";
	font-size: 0.8em;
	opacity: 0.6;
}

.bd-section-card-desc {
	margin: 0 0 10px;
	font-size: 0.88em;
	color: var(--bd-muted, #5b6672);
}

.bd-section-children {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	flex: 1 1 auto;
}

.bd-section-children li {
	border-top: 1px solid #f0f2f4;
}

.bd-section-children li:first-child {
	border-top: 0;
}

.bd-section-children a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	text-decoration: none;
	font-size: 0.92em;
}

.bd-section-children a:hover .bd-child-name {
	text-decoration: underline;
}

.bd-section-card-more {
	margin: 0;
	font-size: 0.86em;
	font-weight: 600;
}

.bd-section-card-more a {
	text-decoration: none;
}

@media (max-width: 600px) {
	.bd-home .bd-hero {
		padding: 18px 14px 20px;
	}

	.bd-section-grid {
		grid-template-columns: 1fr;
	}
}

/* Page titles, intro, FAQ, doctors ------------------------------------- */

.bd-page-title {
	margin: 0 0 12px;
	font-size: 1.7em;
	line-height: 1.25;
}

.bd-intro {
	max-width: 820px;
	margin: 0 0 28px;
	color: #3d464f;
}

.bd-intro p {
	margin: 0 0 10px;
	line-height: 1.7;
}

.bd-faq {
	margin: 34px 0 10px;
}

.bd-faq-item {
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	padding: 12px 16px;
	margin: 0 0 10px;
	background: #fff;
}

.bd-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.bd-faq-item summary::-webkit-details-marker {
	display: none;
}

.bd-faq-item summary::before {
	content: "+";
	display: inline-block;
	width: 18px;
	font-weight: 700;
	color: var(--bd-accent, #0b6b3a);
}

.bd-faq-item[open] summary::before {
	content: "–";
}

.bd-faq-item p {
	margin: 10px 0 0 18px;
	line-height: 1.65;
}

/* Doctors -------------------------------------------------------------- */

.bd-doctor-search {
	max-width: 900px;
	margin: 0 auto;
}

.bd-bangla-intro {
	background: #f7f9fa;
	border-left: 4px solid var(--bd-accent, #0b6b3a);
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0 0 28px;
}

.bd-bangla-intro h2 {
	margin: 0 0 8px;
	font-size: 1.15em;
}

.bd-bangla-intro p {
	margin: 0 0 8px;
	line-height: 1.8;
}

.bd-bangla-terms {
	font-size: 0.9em;
	color: var(--bd-muted, #5b6672);
}

.bd-doctor-degrees {
	font-weight: 600;
	color: #3d464f;
}

.bd-chamber-time {
	display: block;
	font-size: 0.9em;
}

.bd-chamber {
	border: 1px solid var(--bd-border, #e3e6ea);
	border-radius: var(--bd-radius, 10px);
	padding: 14px 18px;
	margin: 0 0 14px;
}

.bd-chamber h3 {
	margin: 0 0 10px;
	font-size: 1.05em;
}

.bd-chamber .bd-listing-facts {
	margin: 0;
}

.bd-chamber-note {
	font-size: 0.88em;
	color: var(--bd-muted, #5b6672);
}

.bd-back-link {
	margin: 26px 0 0;
	font-weight: 600;
}

.bd-chamber-row {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 6px 14px 10px;
	margin: 0 0 12px;
}

.bd-chamber-row legend {
	font-weight: 600;
	padding: 0 6px;
}

/* Responsive ----------------------------------------------------------- */

.bd-directory {
	max-width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.bd-directory img {
	max-width: 100%;
	height: auto;
}

.bd-directory table {
	max-width: 100%;
}

@media (max-width: 782px) {
	.bd-section-grid,
	.bd-business-list.bd-cols-2,
	.bd-business-list.bd-cols-3,
	.bd-business-list.bd-cols-4 {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	}

	.bd-term-list {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.bd-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.bd-related-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	/*
	 * A fused pill cannot hold a placeholder, two dropdowns and a button
	 * on a phone. Below this width the controls unfuse and stack, each
	 * with its own outline, which also gives every one a proper tap
	 * target.
	 */
	.bd-search-form.is-pill,
	.bd-search-form.is-multi {
		display: flex;
		flex-direction: column;
		border: 0;
		border-radius: 0;
		padding: 0;
		gap: 10px;
		background: none;
	}

	.bd-search-form.is-pill .bd-field,
	.bd-search-form.is-multi .bd-field {
		flex: 1 1 auto;
		width: 100%;
		border-left: 0;
	}

	.bd-search-form.is-pill input[type="search"],
	.bd-search-form.is-multi input[type="search"],
	.bd-search-form.is-multi select {
		border: 2px solid var(--bd-accent, #0b6b3a);
		background: #fff;
	}

	.bd-search-form.is-multi .bd-field-select select {
		background-position: calc( 100% - 19px ) 55%, calc( 100% - 13px ) 55%;
	}

	.bd-search-form button {
		width: 100%;
	}

	.bd-section-grid,
	.bd-business-list.bd-cols-2,
	.bd-business-list.bd-cols-3,
	.bd-business-list.bd-cols-4 {
		grid-template-columns: 1fr;
	}

	.bd-term-list {
		grid-template-columns: 1fr 1fr;
	}

	.bd-subnav ul {
		gap: 2px 14px;
	}

	.bd-subnav a {
		font-size: 0.8em;
	}

	.bd-pagination a,
	.bd-pagination .bd-page-current,
	.bd-pagination .page-numbers {
		min-width: 34px;
		padding: 6px 8px;
		font-size: 0.9em;
	}

	.bd-review-head {
		gap: 4px 10px;
	}

	.bd-chamber,
	.bd-faq-item {
		padding: 12px 14px;
	}

	.bd-listing-summary {
		padding: 12px 14px;
	}
}

@media (max-width: 400px) {
	.bd-term-list {
		grid-template-columns: 1fr;
	}
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	.bd-section-nav a,
	.bd-progress-bar span {
		transition: none;
	}
}

/* Keyboard focus needs to stay visible on the gradient segment too. */
.bd-directory a:focus-visible,
.bd-directory button:focus-visible,
.bd-directory input:focus-visible,
.bd-directory select:focus-visible,
.bd-directory summary:focus-visible {
	outline: 2px solid var(--bd-accent, #0b6b3a);
	outline-offset: 2px;
}

.bd-section-nav li.is-current a:focus-visible {
	outline-color: #fff;
	outline-offset: -4px;
}

/* Directory page: suppress the theme's duplicate page title ------------ */

body.bd-hide-page-title .entry-header .entry-title,
body.bd-hide-page-title .page-header .entry-title,
body.bd-hide-page-title .page-header .page-title,
body.bd-hide-page-title header.entry-header > h1.entry-title {
	display: none;
}

/* Bangla name beside an English term ------------------------------------ */

.bd-term-bn {
	display: block;
	font-size: 0.85em;
	font-weight: 400;
	color: var(--bd-muted, #5b6672);
	line-height: 1.4;
}

.bd-term-list a .bd-term-name {
	display: block;
	min-width: 0;
}

/* Listing questions and answers ----------------------------------------- */

.bd-listing-faq {
	margin: 32px 0;
}

.bd-faq-list {
	border-top: 1px solid var(--bd-border, #e3e6ea);
}

.bd-faq-item {
	border-bottom: 1px solid var(--bd-border, #e3e6ea);
}

.bd-faq-item summary {
	cursor: pointer;
	padding: 15px 4px;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	align-items: flex-start;
}

.bd-faq-item summary::-webkit-details-marker {
	display: none;
}

.bd-faq-item summary::after {
	content: "+";
	flex: 0 0 auto;
	font-weight: 400;
	font-size: 1.3em;
	line-height: 1;
	color: var(--bd-accent, #0b6b3a);
}

.bd-faq-item[open] summary::after {
	content: "\2013";
}

.bd-faq-answer {
	padding: 0 4px 16px;
	color: var(--bd-muted, #5b6672);
}

.bd-faq-answer p {
	margin: 0 0 10px;
}

/* ======================================================================
   Wide layout, masthead and sidebar
   ====================================================================== */

/*
 * Themes constrain the content column to a comfortable reading width,
 * which is right for an article and wrong for a directory: on a desktop
 * it leaves two thirds of the window empty while the listing is squeezed
 * into the middle. On this plugin's pages only, the container is widened
 * and the freed space is given to a sidebar.
 *
 * The selectors below cover the containers the common themes use. Each
 * is scoped to body.bd-wide, so nothing outside the directory moves.
 */
body.bd-wide .site-content,
body.bd-wide .content-area,
body.bd-wide .inside-article,
body.bd-wide .entry-content,
body.bd-wide .wp-block-post-content,
body.bd-wide main .alignfull,
body.bd-wide .grid-container,
body.bd-wide .container {
	max-width: 100%;
	width: 100%;
}

body.bd-wide .bd-directory,
body.bd-wide .bd-brandbar-inner {
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
}

/* GeneratePress puts the sidebar widget area beside the content; with a
   directory sidebar of our own it would be a third column. */
body.bd-wide.bd-hide-page-title .widget-area.sidebar {
	display: none;
}

/* Masthead ------------------------------------------------------------- */

.bd-brandbar {
	margin: 0 0 18px;
}

.bd-brandbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 24px;
	text-decoration: none;
	padding: 20px 26px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient( 120deg, #6d28d9 0%, #a21caf 55%, #db2777 100% );
	box-shadow: 0 8px 22px rgba( 109, 40, 217, 0.18 );
}

.bd-brandbar-id {
	display: block;
	flex: 1 1 260px;
	min-width: 0;
	color: #fff;
	text-decoration: none;
}

.bd-brandbar-id:hover,
.bd-brandbar-id:focus {
	color: #fff;
	text-decoration: none;
}

/* Masthead search ------------------------------------------------------ */

.bd-brand-search {
	flex: 1 1 420px;
	display: flex;
	align-items: stretch;
	min-width: 0;
	background: #fff;
	border-radius: 999px;
	padding: 4px;
	box-shadow: 0 4px 14px rgba( 17, 24, 39, 0.16 );
}

.bd-brand-select {
	flex: 0 0 auto;
	max-width: 190px;
	border: 0;
	background: transparent;
	padding: 10px 28px 10px 16px;
	font-size: 0.9em;
	color: #4b5563;
	border-right: 1px solid var( --bd-border, #e3e6ea );
	border-radius: 999px 0 0 999px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image:
		linear-gradient( 45deg, transparent 50%, #6b7280 50% ),
		linear-gradient( 135deg, #6b7280 50%, transparent 50% );
	background-position: calc( 100% - 16px ) 55%, calc( 100% - 10px ) 55%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
}

.bd-brand-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 16px;
	font-size: 0.94em;
	color: #1f2933;
}

.bd-brand-input::placeholder {
	color: #9aa2ab;
}

.bd-brand-select:focus,
.bd-brand-input:focus {
	outline: none;
}

.bd-brand-search:focus-within {
	box-shadow: 0 0 0 3px rgba( 255, 255, 255, 0.55 ), 0 4px 14px rgba( 17, 24, 39, 0.16 );
}

.bd-brand-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	background: linear-gradient( 120deg, #6d28d9, #db2777 );
	color: #fff;
	font-weight: 700;
	font-size: 0.8em;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

.bd-brand-submit:hover {
	background: linear-gradient( 120deg, #5b21b6, #be185d );
}

.bd-brandbar-title {
	display: block;
	font-size: clamp( 1.5rem, 1.1rem + 1.6vw, 2.3rem );
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.bd-brandbar-sub {
	display: block;
	margin-top: 5px;
	font-size: clamp( 0.9rem, 0.84rem + 0.3vw, 1.05rem );
	font-weight: 400;
	opacity: 0.92;
}

/* Two-column grid ------------------------------------------------------ */

.bd-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 320px;
	gap: 26px;
	align-items: start;
}

.bd-layout-single {
	grid-template-columns: minmax( 0, 1fr );
}

.bd-main {
	min-width: 0;
}

/*
 * The listing itself: a white card with the purple-to-pink edge. The
 * border is a gradient, which a plain border cannot do, so it is drawn
 * as a background layer with the white panel sitting inside it.
 */
.bd-main {
	background:
		linear-gradient( #fff, #fff ) padding-box,
		linear-gradient( 130deg, #7c3aed 0%, #c026d3 50%, #ec4899 100% ) border-box;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 26px 28px 30px;
	box-shadow: 0 2px 14px rgba( 17, 24, 39, 0.06 );
}

/* Sidebar -------------------------------------------------------------- */

.bd-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	position: sticky;
	top: 20px;
}

.bd-side-card {
	background: #fff;
	border: 1px solid var( --bd-border, #e3e6ea );
	border-top: 3px solid transparent;
	border-image: linear-gradient( 90deg, #7c3aed, #ec4899 ) 1;
	border-radius: 0;
	padding: 16px 18px 18px;
}

/* border-image cancels the radius, so the softer look is restored for
   browsers that support the modern syntax. */
@supports (border-image-slice: 1) {
	.bd-side-card {
		border-image: none;
		border: 1px solid var( --bd-border, #e3e6ea );
		border-top: 3px solid #a21caf;
		border-radius: 14px;
	}
}

.bd-side-title {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.bd-side-list,
.bd-side-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bd-side-list li + li,
.bd-side-links li + li {
	border-top: 1px solid var( --bd-border, #e3e6ea );
}

.bd-side-list a,
.bd-side-links a {
	display: flex;
	gap: 9px;
	align-items: center;
	padding: 9px 0;
	font-size: 0.94em;
	line-height: 1.4;
	text-decoration: none;
	color: inherit;
	overflow-wrap: anywhere;
}

.bd-side-list a:hover,
.bd-side-links a:hover,
.bd-side-list a:focus-visible,
.bd-side-links a:focus-visible {
	color: var( --bd-accent, #0b6b3a );
	text-decoration: underline;
}

.bd-side-icon {
	flex: 0 0 auto;
	font-size: 1.05em;
}

.bd-side-more {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
	color: var( --bd-accent, #0b6b3a );
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 1100px) {
	.bd-layout {
		grid-template-columns: minmax( 0, 1fr );
	}

	.bd-sidebar {
		position: static;
	}
}

/* The dropdown, the field and the button cannot share one pill on a
   phone, so the search unfuses and stacks under the title. */
@media (max-width: 780px) {
	.bd-brandbar-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.bd-brand-search {
		flex-direction: column;
		background: none;
		box-shadow: none;
		padding: 0;
		gap: 9px;
	}

	.bd-brand-select,
	.bd-brand-input {
		width: 100%;
		max-width: 100%;
		border: 0;
		border-radius: 999px;
		background-color: #fff;
		padding: 12px 18px;
	}

	.bd-brand-select {
		padding-right: 34px;
	}

	.bd-brand-submit {
		width: 100%;
		justify-content: center;
		padding: 12px 22px;
		background: #fff;
		color: #6d28d9;
	}

	.bd-brand-submit:hover {
		background: #f5f3ff;
	}

	.bd-brand-search:focus-within {
		box-shadow: none;
	}
}

@media (max-width: 680px) {
	.bd-main {
		padding: 18px 16px 22px;
		border-radius: 12px;
	}

	.bd-brandbar-inner {
		padding: 16px 18px;
		border-radius: 12px;
	}

	.bd-side-card {
		padding: 14px 15px 16px;
	}
}

/* Breadcrumb at the top of the page ------------------------------------ */

/*
 * The trail now sits above the masthead, which is where a reader looks
 * to work out where they are. It gets a little less weight than the
 * heading below it and a tighter gap, so it reads as orientation rather
 * than as content.
 */
.bd-breadcrumb {
	margin-bottom: 12px;
}

.bd-breadcrumb ol {
	margin-bottom: 0;
	row-gap: 2px;
}

/* The separator belongs with the item it precedes, so a wrapped trail
   never starts a line with a stray "›". */
.bd-breadcrumb li {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.bd-breadcrumb li:last-child {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (max-width: 680px) {
	.bd-breadcrumb ol {
		font-size: 0.8em;
	}
}

/* Headline directly under the breadcrumb -------------------------------- */

.bd-page-title-top {
	margin: 0 0 16px;
	line-height: 1.18;
}

/* The CSS fallback that hides a theme title must not hide our own. */
body.bd-hide-page-title .bd-directory .bd-page-title,
body.bd-hide-page-title .bd-directory .bd-page-title-top {
	display: block;
}
