/**
 * Traveljabs — Clinic single post.
 * Scoped under .tjb-cs to avoid collisions with theme styles.
 */

.archive-clinic-single{
	background: #f0fafd;

	.tjb-container{
		--container-padding: 30px;
		margin-inline: auto;
		padding-inline: 20px;
		padding-block: var(--container-padding);
		max-width: 1300px;
	}

	.feature-section{
		--feature-height: 300px;
		--h1-text-size: 1.5rem;
		position: relative;
		z-index: 1;
		overflow: hidden;
		background: linear-gradient(90deg, #3871C1 50%, #7ECB2B 100%);
		height: var(--feature-height);
		min-height: var(--feature-height);
		.feature-overlay{
			position: absolute;
			inset: 0;
			z-index: 2;
			background-color: rgba(0, 0, 0,0.2);
		}
		.feature-archive-single-image{
			height: 100%;
			width: 100%;
			object-fit: cover;
		}
		.title-content{
			position: absolute;
			inset: 0;
			z-index: 3;
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 25px;
			height: 100%;
			h1{
				font-size: var(--h1-text-size, 1.5rem);
				color: white;
			}
		}
	}

	.grid-item{
		--content-width: 100%;
		--sidebar-width: 100%;
		--space-x: 20px;
		display: flex;
		flex-direction: column;
		gap: var(--space-x);

		.archive-content{
			width: var(--content-width);
		}
		.archive-sidebar{
			width: var(--sidebar-width);
			background-color: white;
			padding: 15px;
			border: 1px solid #dee2e6;
		}
	}
	 
	@media(min-width: 768px){
		.grid-item{
			--content-width: calc(100% - 300px);
			--sidebar-width: 300px;
			--space-x: 20px;
			flex-direction: row;
		}
		
		.tjb-container{
			--container-padding: 45px;
		}
		.feature-section{
			--feature-height: 400px;
			--h1-text-size: 2rem;
		}
	}
	@media(min-width: 1200px){
		.grid-item{
			--content-width: calc(100% - 350px);
			--sidebar-width: 350px;
			--space-x: 30px;
			flex-direction: row;
		}
		.tjb-container{
			--container-padding: 70px;
		}
		.feature-section{
			--feature-height: 500px;
			--h1-text-size: 3rem;
		}
	}

}
/* ── Hero ─────────────────────────────────────────── */


.tjb-cs__featured-image {
	margin-bottom: 1.5rem;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
}

.tjb-cs__image {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.tjb-cs__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.2;
}

/* ── Two-column layout ────────────────────────────── */

.tjb-cs__layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 1024px) {
	.tjb-cs__layout {
		grid-template-columns: 1fr 280px;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.tjb-cs__layout {
		grid-template-columns: 1fr;
	}
}

/* ── Main content ─────────────────────────────────── */

.tjb-cs__main {
	min-width: 0;
}

.tjb-cs__entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #1f2937;
}

.tjb-cs__entry-content > *:first-child {
	margin-top: 0;
}

.tjb-cs__entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.tjb-cs__entry-content h2,
.tjb-cs__entry-content h3,
.tjb-cs__entry-content h4 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.tjb-cs__entry-content p {
	margin-bottom: 1.25rem;
}

.tjb-cs__entry-content ul,
.tjb-cs__entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.tjb-cs__entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid #1d4ed8;
	background: #f9fafb;
	border-radius: 0 8px 8px 0;
	color: #374151;
	font-style: italic;
}

.tjb-cs__entry-content a {
	color: #1d4ed8;
	text-decoration: underline;
}

.tjb-cs__entry-content a:hover,
.tjb-cs__entry-content a:focus-visible {
	text-decoration: none;
}

/* ── Sidebar ──────────────────────────────────────── */

.tjb-cs__sidebar {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.5rem;
}

.tjb-cs__sidebar-title {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.tjb-cs__details {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.tjb-cs__contact-list {
	margin: 0;
}

.tjb-cs__contact-row {
	padding: 0.65rem 0;
	border-bottom: 1px solid #e5e7eb;
}

.tjb-cs__contact-row:first-child {
	padding-top: 0;
}

.tjb-cs__contact-row:last-child {
	border-bottom: none;
}

.tjb-cs__contact-row dt {
	margin-bottom: 0.2rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.tjb-cs__contact-row dd {
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
}

.tjb-cs__contact-row a {
	color: #1d4ed8;
	text-decoration: none;
}

.tjb-cs__contact-row a:hover,
.tjb-cs__contact-row a:focus-visible {
	text-decoration: underline;
}

.tjb-cs__hours {
	margin-top: 1.25rem;
}

.tjb-cs__subheading {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	line-height: 1.3;
}

.tjb-cs__hours-list {
	margin: 0;
}

.tjb-cs__hours-row {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 0.88rem;
}

.tjb-cs__hours-row:last-child {
	border-bottom: none;
}

.tjb-cs__hours-row dt {
	font-weight: 600;
	color: #374151;
}

.tjb-cs__hours-row dd {
	margin: 0;
	text-align: right;
	color: #4b5563;
}

.tjb-cs__map {
	margin-top: 1rem;
	overflow: hidden;
	border-radius: 6px;
	line-height: 0;
}

.tjb-cs__map iframe {
	width: 100%;
	height: 220px;
	border: 0;
}

/* ── Recent items ─────────────────────────────────── */

.tjb-cs__recent-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e5e7eb;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.tjb-cs__recent-item:last-child {
	border-bottom: none;
}

.tjb-cs__recent-item:hover,
.tjb-cs__recent-item:focus-visible {
	background: #eff6ff;
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
	border-radius: 6px;
}

.tjb-cs__recent-image,
.tjb-cs__recent-fallback {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #e5e7eb;
}

.tjb-cs__recent-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	display: block;
}

.tjb-cs__recent-fallback {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 60%),
		linear-gradient(135deg, #dbeafe, #e0e7ff 50%, #ede9fe);
}

.tjb-cs__recent-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tjb-cs__recent-title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tjb-cs__recent-link {
	font-size: 0.78rem;
	color: #1d4ed8;
	font-weight: 500;
}

.tjb-cs__recent-item:hover .tjb-cs__recent-link,
.tjb-cs__recent-item:focus-visible .tjb-cs__recent-link {
	text-decoration: underline;
}

.tjb-cs__sidebar-empty {
	margin: 0;
	color: #6b7280;
	font-size: 0.92rem;
	font-style: italic;
}

/* ── Accessibility ────────────────────────────────── */

.tjb-cs a:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}
