/* ==========================================================================
   Beyond Medicine - Ethereal Poster Showcase Stylesheet
   ========================================================================== */

/* Page Scope Reset & Background */
.beyond-medicine-page {
	position: relative;
	background: #dbeef7 linear-gradient(180deg, #d3e8f4 0%, #e2eff7 12%, #f2f7fb 28%, #ffffff 48%, #f3f8fc 65%, #e1eff6 84%, #d2e7f3 100%) !important;
	color: #243a4e !important;
	overflow: hidden;
	padding: 34px 0 74px !important;
}

/* Celestial sparkle & ice crystal background texture */
.beyond-medicine-page::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.95) 1.5px, transparent 3px),
		radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.9) 2px, transparent 3px),
		radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.9) 1.5px, transparent 2.5px),
		radial-gradient(circle at 80% 48%, rgba(255, 255, 255, 0.85) 2px, transparent 3.5px),
		radial-gradient(circle at 35% 72%, rgba(255, 255, 255, 0.9) 1.5px, transparent 2.5px),
		radial-gradient(circle at 85% 82%, rgba(255, 255, 255, 0.85) 2px, transparent 3.5px),
		radial-gradient(ellipse at 50% 15%, rgba(195, 224, 245, 0.55) 0%, transparent 65%),
		radial-gradient(ellipse at 50% 75%, rgba(200, 227, 247, 0.5) 0%, transparent 65%);
	pointer-events: none;
	z-index: 0;
}

.bm-poster-wrap {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
}

/* Force elements inside to be fully visible and opaque */
.beyond-medicine-page,
.beyond-medicine-page * {
	visibility: visible !important;
	opacity: 1 !important;
}

/* Top Branding Header */
.bm-top-brand {
	text-align: center;
	margin-bottom: 18px;
}

.bm-brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-decoration: none;
}

.bm-brand-icon {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(28, 55, 80, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.bm-brand-text {
	text-align: left;
}

.bm-brand-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #172838 !important;
	margin: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.bm-brand-sub {
	font-family: 'Onest', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #51697e !important;
	text-transform: uppercase;
	margin-top: 2px;
}

/* Primary Intro Block */
.bm-hero-block {
	text-align: center;
	max-width: 840px;
	margin: 0 auto 24px;
	padding: 0 15px;
}

/* Flanked Serif Italic Heading */
.bm-main-heading-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 6px;
}

.bm-heading-rule {
	flex: 1;
	max-width: 150px;
	height: 1.5px;
	background: linear-gradient(90deg, transparent, rgba(39, 68, 93, 0.45));
}

.bm-heading-rule.right {
	background: linear-gradient(90deg, rgba(39, 68, 93, 0.45), transparent);
}

.bm-main-title {
	font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
	font-style: italic !important;
	font-weight: 600 !important;
	font-size: clamp(38px, 4.6vw, 54px) !important;
	color: #162738 !important;
	line-height: 1.15 !important;
	margin: 0 !important;
	letter-spacing: -0.01em !important;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.bm-sub-title {
	font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(19px, 2.3vw, 24px);
	font-weight: 600;
	color: #283e52 !important;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
}

.bm-hero-text {
	font-family: 'Onest', sans-serif;
	font-size: 16.5px;
	color: #354a5d !important;
	line-height: 1.8;
	margin-bottom: 10px;
}

.bm-hero-subtext {
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #1d3144 !important;
	margin: 0;
}

/* Silk Wave Divider with Star Accent */
.bm-wave-divider {
	position: relative;
	width: 100%;
	max-width: 920px;
	margin: 22px auto 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bm-wave-svg {
	width: 100%;
	height: 38px;
	display: block;
	overflow: visible;
}

.bm-star-cluster {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #b78a48;
	font-size: 11px;
}

.bm-star-cluster i.big {
	font-size: 18px;
	color: #c99c56;
}

/* Showcase Section */
.bm-showcase-section {
	text-align: center;
	padding: 0 15px;
	width: 100%;
	display: block;
	clear: both;
}

.bm-showcase-header {
	margin-bottom: 26px;
}

.bm-showcase-title {
	font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
	font-style: italic !important;
	font-weight: 600 !important;
	font-size: clamp(34px, 4.2vw, 48px) !important;
	color: #162738 !important;
	line-height: 1.15 !important;
	margin-bottom: 6px !important;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.bm-showcase-sub {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(18px, 2.2vw, 23px);
	font-weight: 600;
	color: #283e52 !important;
	letter-spacing: 0.04em;
	margin: 0;
}

.bm-showcase-sub::before,
.bm-showcase-sub::after {
	content: '';
	display: inline-block;
	width: 44px;
	height: 1.5px;
	background: linear-gradient(90deg, transparent, rgba(39, 68, 93, 0.5));
}

.bm-showcase-sub::after {
	background: linear-gradient(90deg, rgba(39, 68, 93, 0.5), transparent);
}

/* 4 Column Unified Grid (Image + Caption Together) */
.bm-cards-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1080px;
	margin: 0 auto 36px;
	width: 100%;
}

.bm-card-col {
	display: flex;
	flex-direction: column;
	position: relative;
	cursor: pointer;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: center;
	border-radius: 18px;
}

.bm-explore-hint {
	margin: 14px 0 0;
	font-family: 'Onest', sans-serif;
	font-size: 14px;
	color: #354a5d;
}

.bm-card-col:focus-visible {
	outline: 3px solid #283e52;
	outline-offset: 6px;
}

.bm-card-action {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 10px;
	margin-top: 10px;
	padding: 7px 16px;
	border: 1px solid #7c6035;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: #283e52;
	font-family: 'Onest', sans-serif;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.bm-card-col:hover .bm-card-action,
.bm-card-col:focus-visible .bm-card-action {
	background: #283e52;
	color: #fff;
}

.bm-card-figure {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4.15;
	border-radius: 18px;
	overflow: hidden;
	background: #d8e5ee;
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow: 
		0 16px 36px -6px rgba(20, 44, 68, 0.22),
		0 4px 12px rgba(20, 44, 68, 0.08);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
	margin: 0 0 14px;
}

.bm-card-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.bm-card-col:hover .bm-card-figure,
.bm-card-col:focus-visible .bm-card-figure {
	transform: translateY(-8px);
	box-shadow: 
		0 24px 48px -8px rgba(20, 44, 68, 0.32),
		0 0 0 2px rgba(201, 156, 86, 0.6);
}

.bm-card-col:hover .bm-card-figure img {
	transform: scale(1.05);
}

/* Label & Separator under each card */
.bm-card-label-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.bm-card-label {
	font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
	font-style: italic !important;
	font-size: clamp(20px, 2.2vw, 24px) !important;
	font-weight: 600 !important;
	color: #1e3144 !important;
	margin: 0;
	letter-spacing: 0.01em;
	transition: color 0.3s ease;
}

.bm-card-col:hover .bm-card-label,
.bm-card-col:focus-visible .bm-card-label {
	color: #b78a48 !important;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.bm-label-sep {
	position: absolute;
	right: -12px;
	color: #b78a48 !important;
	font-size: 18px;
	font-weight: 600;
	pointer-events: none;
}

/* Bottom Callout & Golden Button */
.bm-bottom-action {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
	width: 100%;
	clear: both;
}

.bm-bottom-lead {
	font-family: 'Onest', sans-serif;
	font-size: 17.5px;
	font-weight: 600;
	color: #243a4e !important;
	line-height: 1.65;
	margin-bottom: 6px;
}

.bm-bottom-sub {
	font-family: 'Onest', sans-serif;
	font-size: 16.5px;
	color: #384f63 !important;
	line-height: 1.65;
	margin-bottom: 24px;
}

.bm-gold-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	padding: 14px 44px !important;
	background: linear-gradient(180deg, #ecc57e 0%, #d4a34b 45%, #b38029 100%) !important;
	color: #2b1a03 !important;
	font-family: 'Onest', sans-serif !important;
	font-size: 17px !important;
	font-weight: 750 !important;
	letter-spacing: 0.01em !important;
	border-radius: 50px !important;
	border: 1px solid rgba(255, 243, 217, 0.7) !important;
	box-shadow: 
		0 10px 26px rgba(179, 128, 41, 0.42),
		0 1px 2px rgba(255, 255, 255, 0.7) inset !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: all 0.35s ease !important;
}

.bm-gold-btn:hover {
	background: linear-gradient(180deg, #f6d28f 0%, #dcad53 45%, #c08c32 100%) !important;
	color: #1a0f00 !important;
	transform: translateY(-2px);
	box-shadow: 
		0 14px 32px rgba(179, 128, 41, 0.52),
		0 1px 2px rgba(255, 255, 255, 0.9) inset !important;
}

/* Modal Popup Styling */
.bm-modal .btn-default::before {
	content: none;
	display: none;
}

.bm-modal .btn-default {
	margin-right: 0;
}

.bm-modal .modal-content {
	border-radius: 24px;
	border: 1.5px solid rgba(183, 138, 72, 0.35);
	background: #ffffff;
	box-shadow: 0 25px 60px rgba(20, 36, 50, 0.25);
	overflow: hidden;
}

.bm-modal-body {
	padding: 34px;
}

.bm-modal-img {
	border-radius: 16px;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	box-shadow: 0 12px 30px rgba(32, 57, 78, 0.15);
}

.bm-modal-tag {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 30px;
	background: rgba(183, 138, 72, 0.14);
	color: #8c6427;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 10px;
}

.bm-modal-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	color: #162738 !important;
	margin-bottom: 6px;
}

.bm-modal-sub {
	font-size: 15px;
	font-weight: 600;
	color: #b78a48 !important;
	margin-bottom: 14px;
}

.bm-modal-desc {
	font-size: 15px;
	line-height: 1.75;
	color: #384f63 !important;
	margin-bottom: 18px;
}

.bm-modal-list {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
}

.bm-modal-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #243a4e !important;
	margin-bottom: 8px;
}

.bm-modal-list li i {
	color: #b78a48;
	font-size: 13px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
	.bm-cards-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
		max-width: 620px;
		margin-bottom: 32px;
	}
	.bm-label-sep {
		display: none;
	}
	.bm-main-title {
		font-size: 40px !important;
	}
	.bm-showcase-title {
		font-size: 36px !important;
	}
	.bm-heading-rule {
		max-width: 80px;
	}
}

@media (max-width: 600px) {
	.beyond-medicine-page {
		padding: 24px 0 50px !important;
	}
	.bm-main-heading-wrap {
		gap: 10px;
	}
	.bm-heading-rule {
		max-width: 34px;
	}
	.bm-main-title {
		font-size: 30px !important;
	}
	.bm-sub-title {
		font-size: 18px;
	}
	.bm-hero-text {
		font-size: 15px;
	}
	.bm-showcase-title {
		font-size: 28px !important;
	}
	.bm-showcase-sub {
		font-size: 17px;
		gap: 10px;
	}
	.bm-showcase-sub::before,
	.bm-showcase-sub::after {
		width: 20px;
	}
	.bm-cards-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
		margin-bottom: 24px;
	}
	.bm-card-label {
		font-size: 18px !important;
	}
	.bm-bottom-lead,
	.bm-bottom-sub {
		font-size: 15px;
	}
	.bm-gold-btn {
		width: 100% !important;
		padding: 14px 20px !important;
	}
}
