/* Medlabs Blood Hub — public SEO pages (added in v3.0.0) */
.bdp-hub {
	max-width: 1000px;
	margin: 0 auto;
	padding: 18px 14px 40px;
	box-sizing: border-box;
	color: #1d2b36;
	font-size: 16px;
	line-height: 1.55;
}
.bdp-hub *, .bdp-hub *::before, .bdp-hub *::after { box-sizing: border-box; }
.bdp-hub-page .entry-title:empty,
.bdp-hub-page .page-title:empty,
.bdp-hub-page .wp-block-post-title:empty { display: none; }

.bdp-hub h2 { font-size: 22px; margin: 28px 0 12px; color: #14405f; line-height: 1.3; }
.bdp-hub-h2 { font-size: 19px !important; margin: 18px 0 10px !important; }

/* Hero */
.bdp-hub-hero {
	background: linear-gradient(135deg, #eaf5fc 0%, #ffffff 100%);
	border: 1px solid #d6e8f5;
	border-radius: 16px;
	padding: 26px 22px 24px;
	text-align: center;
	margin-bottom: 20px;
}
.bdp-hub-h1 { margin: 0 0 8px !important; font-size: 32px !important; line-height: 1.2 !important; color: #14405f !important; font-weight: 800 !important; }
.bdp-hub-lead { margin: 0 auto 8px; max-width: 720px; color: #3d5568; }
.bdp-hub-lead-ur, .bdp-quote-ur {
	font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
	font-size: 20px; line-height: 1.9; color: #14405f; margin: 4px 0 12px;
}
.bdp-hub-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 16px; }
.bdp-hub-stats div { background: #fff; border: 1px solid #d6e8f5; border-radius: 12px; padding: 10px 18px; min-width: 110px; }
.bdp-hub-stats b { display: block; font-size: 26px; color: #268ed0; line-height: 1.1; }
.bdp-hub-stats span { font-size: 13px; color: #55697a; }
.bdp-hub-need { margin: 8px 0; }
.bdp-chip-need { display: inline-block; background: #fdeaea; color: #a3222f; border: 1px solid #f3bcbf; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; margin: 2px 2px; }

/* Buttons (always the site blue, even if the theme restyles buttons) */
.bdp-hub-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.bdp-hub a.bdp-hub-btn, .bdp-hub .bdp-hub-btn {
	display: inline-block; width: auto; text-decoration: none !important; text-align: center;
	padding: 12px 22px !important; font-size: 16px !important; font-weight: 700 !important;
}
.bdp-hub a.bdp-hub-btn-alt { background: var(--bdp-primary-deep, #145b8a) !important; border-color: var(--bdp-primary-deep, #145b8a) !important; }
.bdp-hub a.bdp-hub-btn-alt:hover { background: #0f4a72 !important; }
.bdp-hub a.bdp-hub-btn-ghost { background: #fff !important; color: var(--bdp-primary, #268ed0) !important; border: 1.5px solid var(--bdp-primary, #268ed0) !important; }
.bdp-hub a.bdp-hub-btn-ghost:hover { background: var(--bdp-primary, #268ed0) !important; color: #fff !important; }
.bdp-hub-link { color: #268ed0; font-weight: 700; text-decoration: none; }
.bdp-hub-link:hover { text-decoration: underline; }
.bdp-hub-view { color: #268ed0; font-weight: 700; text-decoration: none; margin-right: 10px; font-size: 14px; }

/* Filters (fields never clip text) */
.bdp-hub-filter {
	display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
	background: #f4f9fd; border: 1px solid #d6e8f5; border-radius: 12px; padding: 14px; margin: 0 0 18px;
}
.bdp-donate-form strong { flex: 1 1 100%; color: #14405f; }
.bdp-hub-filter select {
	flex: 1 1 170px; min-width: 0; height: auto !important; min-height: 46px; line-height: 1.4 !important;
	padding: 10px 38px 10px 12px !important; font-size: 16px !important; color: #222 !important;
	border: 1px solid #cfd8de !important; border-radius: 8px !important; background-color: #fff;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; margin: 0 !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.bdp-hub-filter .bdp-btn { flex: 0 0 auto; width: auto; padding: 11px 22px; }
.bdp-hub-clear { color: #55697a; font-size: 14px; }

/* Tabs */
.bdp-hub-tabs { display: flex; gap: 8px; margin: 6px 0 4px; }
.bdp-hub-tab {
	flex: 1; cursor: pointer; padding: 12px 10px !important; font-size: 16px !important; font-weight: 700 !important;
	background: #fff !important; color: #14405f !important; border: 1.5px solid #cfe0ee !important; border-radius: 10px !important;
	box-shadow: none !important; text-transform: none !important; min-height: 46px; line-height: 1.3 !important;
}
.bdp-hub-tab span { display: inline-block; background: #e4f1fa; color: #268ed0; border-radius: 999px; padding: 0 9px; margin-left: 6px; font-size: 14px; }
.bdp-hub-tab.is-active { background: #268ed0 !important; color: #fff !important; border-color: #268ed0 !important; }
.bdp-hub-tab.is-active span { background: rgba(255,255,255,.25); color: #fff; }
.bdp-js .bdp-hub-pane { display: none; }
.bdp-js .bdp-hub-pane.is-active { display: block; }
.bdp-hub-tabs + .bdp-hub-pane, .bdp-hub-pane + .bdp-hub-pane { margin-top: 4px; }
.bdp-hub .bdp-feed-title a { color: inherit; text-decoration: none; }
.bdp-hub .bdp-feed-title a:hover { color: #268ed0; }
.bdp-hub .bdp-feed-actions { white-space: nowrap; }

/* Chips */
.bdp-hub-chips { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.bdp-hub-chips li { margin: 0 !important; }
.bdp-hub-chips a {
	display: inline-block; padding: 8px 14px; background: #fff; border: 1.5px solid #cfe0ee; border-radius: 999px;
	color: #14405f; font-weight: 700; text-decoration: none; font-size: 15px;
}
.bdp-hub-chips a:hover, .bdp-hub-chips .is-active a { background: #268ed0; border-color: #268ed0; color: #fff; }
.bdp-hub-chips small { font-weight: 400; opacity: .8; margin-left: 4px; }
.bdp-hub-crumbs { font-size: 14px; color: #55697a; margin-bottom: 10px; }
.bdp-hub-crumbs a { color: #268ed0; text-decoration: none; }

/* Single request */
.bdp-hub-reqcard { background: #fff; border: 1px solid #d6e8f5; border-top: 6px solid #268ed0; border-radius: 14px; padding: 20px; box-shadow: 0 6px 22px rgba(20,64,95,.08); }
.bdp-hub-reqcard.bdp-urgency-urgent { border-top-color: #e08a1e; }
.bdp-hub-reqcard.bdp-urgency-emergency { border-top-color: #c62828; }
.bdp-hub-reqtop { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.bdp-hub-reqtop .bdp-hub-h1 { font-size: 26px !important; }
.bdp-hub-drop {
	flex: 0 0 auto; width: 84px; height: 84px; background: linear-gradient(180deg, #ef4444, #a31f1f); color: #fff;
	font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center;
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; box-shadow: 0 8px 18px rgba(163,31,31,.3);
}
.bdp-hub .bdp-detail-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.bdp-hub .bdp-detail-table th, .bdp-hub .bdp-detail-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e6eef4; vertical-align: top; font-size: 15px; }
.bdp-hub .bdp-detail-table th { width: 38%; color: #14405f; background: #f7fbfe; }
.bdp-hub-actions { margin: 12px 0; }
.bdp-hub-actions .bdp-btn { width: auto; padding: 12px 24px; }
.bdp-hub-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.bdp-hub-share > span { font-weight: 700; color: #14405f; }
.bdp-hub-sharebtn {
	display: inline-block; cursor: pointer; padding: 8px 14px !important; font-size: 14px !important; font-weight: 700 !important;
	background: #fff !important; color: #268ed0 !important; border: 1.5px solid #268ed0 !important; border-radius: 8px !important;
	text-decoration: none !important; box-shadow: none !important; text-transform: none !important; line-height: 1.3 !important;
}
.bdp-hub-sharebtn:hover { background: #268ed0 !important; color: #fff !important; }
.bdp-hub-wa { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.bdp-hub-wa:hover { background: #1ebd58 !important; border-color: #1ebd58 !important; }
.bdp-hub-note { background: #fff7e6; border: 1px solid #f3dca4; color: #6b4e08; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.bdp-hub-note-ok { background: #e6f6ea; border-color: #b7e3c4; color: #1c7a37; }
.bdp-hub-owner { background: #eaf5fc; border: 1px dashed #268ed0; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.bdp-hub-owner .bdp-btn { width: auto; padding: 12px 22px; }
.bdp-hub-help { margin-top: 8px; }

/* Donate page */
.bdp-donate-hero { padding-bottom: 14px; }
.bdp-quotes { position: relative; margin: 6px 0 4px; }
.bdp-quote { display: none; margin: 0; padding: 4px 8px 0; border: 0; }
.bdp-quote.is-active { display: block; }
.bdp-quote p { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #14405f; }
.bdp-quote .bdp-quote-ur { font-size: 24px; }
.bdp-donate-need, .bdp-donate-result { background: #fff; border: 1px solid #d6e8f5; border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.bdp-donate-need h2 { margin-top: 0; }
.bdp-donate-result { display: flex; gap: 20px; align-items: center; background: linear-gradient(135deg, #fff5f5, #fff); border-color: #f3bcbf; }
.bdp-donate-result h2 { margin: 0 0 6px; }
.bdp-donate-result .bdp-hub-drop { margin: 10px; }
.bdp-hub-badgeform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.bdp-hub-badgeform input[type="text"], .bdp-hub-badgeform input[type="date"] {
	flex: 1 1 200px; min-height: 46px; padding: 10px 12px !important; font-size: 16px !important; line-height: 1.4 !important; height: auto !important;
	border: 1px solid #cfd8de !important; border-radius: 8px !important; background: #fff; -webkit-appearance: none; appearance: none;
}
.bdp-hub-badgeform label { flex: 1 1 100%; font-weight: 700; color: #14405f; }
.bdp-hub-badgeform .bdp-btn { width: auto; padding: 11px 22px; }
#bdp-badge-out { text-align: center; margin-top: 12px; }
.bdp-hub-tablewrap { overflow-x: auto; }
.bdp-hub-compat tr.is-me th, .bdp-hub-compat tr.is-me td { background: #fdeaea; font-weight: 700; }
.bdp-hub-check { list-style: none; margin: 0 0 10px !important; padding: 0 !important; }
.bdp-hub-check li { padding: 6px 0 6px 30px; position: relative; margin: 0 !important; }
.bdp-hub-check li::before { content: "\2713"; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #268ed0; color: #fff; text-align: center; font-size: 14px; line-height: 22px; }
.bdp-hub-next { background: #eaf5fc; border-radius: 10px; padding: 12px 16px; font-weight: 700; color: #14405f; }

/* FAQ + lab */
.bdp-hub-faq details { background: #fff; border: 1px solid #d6e8f5; border-radius: 10px; margin: 8px 0; padding: 0; }
.bdp-hub-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: #14405f; }
.bdp-hub-faq details p { margin: 0; padding: 0 16px 14px; color: #3d5568; }
.bdp-hub-lab { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; margin-top: 30px; padding: 18px; background: #145b8a; color: #fff; border-radius: 14px; }
.bdp-hub-lab a { color: #fff; font-weight: 700; }

/* Phones */
@media (max-width: 640px) {
	.bdp-hub { padding: 12px 10px 30px; }
	.bdp-hub-h1 { font-size: 25px !important; }
	.bdp-hub-reqtop .bdp-hub-h1 { font-size: 21px !important; }
	.bdp-hub-hero { padding: 20px 14px; }
	.bdp-hub-stats div { min-width: 92px; padding: 8px 12px; }
	.bdp-hub-cta .bdp-hub-btn { flex: 1 1 100%; }
	.bdp-hub-filter select, .bdp-hub-filter .bdp-btn { flex: 1 1 100%; }
	.bdp-hub-tab { font-size: 15px !important; padding: 10px 6px !important; }
	.bdp-hub .bdp-feed-actions { white-space: normal; }
	.bdp-donate-result { flex-direction: column; text-align: center; }
	.bdp-quote p { font-size: 18px; } .bdp-quote .bdp-quote-ur { font-size: 21px; }
	.bdp-hub .bdp-detail-table th { width: 42%; }
}
