.specialty-hero-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: var(--color-foreground);
	color: white;
	border-radius: 1rem;
	margin: 0 1rem 1rem 1rem;
}

.specialty-content-section {
	padding: 2rem 0;
}

/* Specialty Header Styles */
.specialty-header {
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.specialty-header h1 {
	font-size: 3.75rem;
	max-width: 672px;
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin-bottom: 8rem;
}

@media (max-width: 768px) {
	.specialty-header h1 {
		font-size: 2.25rem;
		margin-bottom: 2rem;
	}
}

.section-badge {
	margin-left: 0;
}

.specialty-header > div {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.specialty-header > div:first-child {
	flex: 2;
}

@media (max-width: 768px) {
	.specialty-header {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.specialty-header > div:nth-child(2) {
		display: none;
	}

	.specialty-tags {
		margin-inline: auto;
		justify-content: center !important;
	}

	.section-badge {
		margin-inline: auto;
	}
}

.specialty-excerpt {
	margin-bottom: 2rem;
	line-height: 1.625;
	max-width: 672px;
	font-weight: 300;
	letter-spacing: -0.025em;
	opacity: 0.9;
	font-size: 1.125rem;
	text-wrap: balance;
}

/* Specialty Tags Styles */
.specialty-tags {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: start;
	gap: 1rem;

	@media (max-width: 768px) {
		gap: 0.5rem;
	}
}

.specialty-tag {
	font-size: 0.875rem;
	border-radius: 2rem;
	background-color: white;
	color: var(--color-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Instrument Serif', serif;
	font-style: italic;
	height: 32px;
	padding: 0 1rem;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
	letter-spacing: 0.025em;

	@media (max-width: 768px) {
		font-size: 0.75rem;
		height: 28px;
		padding: 0 0.75rem;
	}
}

.specialty-image {
	flex: 1;
	aspect-ratio: 1/1;
	margin: 0 auto;
	overflow: hidden;
	border-radius: .25rem;
}

.specialty-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.specialty-image-mobile {
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1/1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
	border-radius: .25rem;
}

.specialty-image-mobile img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (min-width: 769px) {
	.specialty-image-mobile {
		display: none;

	}
}



.specialty-content ul {
	list-style: inside;
}

.specialty-content .stack .content-section:nth-of-type(odd) {
	background-color: var(--color-foreground);
	color: white;
	border-radius: 1rem;
}

.specialty-content .stack .content-section:nth-of-type(odd) h2 {
	color: white !important;
}

.specialty-content .stack .content-section:nth-of-type(odd) p {
	color: var(--color-muted);
}

.specialty-content .stack .content-section:nth-of-type(odd) li {
	color: var(--color-muted);
}

.specialty-content .content-section {
	padding: 4rem 0;
}

.specialty-content p {
	margin-bottom: 1.5rem;
	color: var(--color-muted-foreground);
	letter-spacing: -0.025em;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.625;
	text-wrap: pretty;

	@media (max-width: 768px) {
		text-align: left;
	}
}

.specialty-content .dark p {
	color: var(--color-muted);
}

.specialty-content p:last-child {
	margin-bottom: 0;
}

.specialty-content h1,
.specialty-content h2,
.specialty-content h3,
.specialty-content h4,
.specialty-content h5,
.specialty-content h6 {
	margin-bottom: 1rem;
	margin-top: 2rem;
	color: var(--color-foreground);
	letter-spacing: -0.025em;
}

.specialty-content .dark h1,
.specialty-content .dark h2,
.specialty-content .dark h3,
.specialty-content .dark h4,
.specialty-content .dark h5,
.specialty-content .dark h6 {
	color: white;
}

.specialty-content h1:first-child,
.specialty-content h2:first-child,
.specialty-content h3:first-child,
.specialty-content h4:first-child,
.specialty-content h5:first-child,
.specialty-content h6:first-child {
	margin-top: 0;
}

.specialty-content h2 {
	font-size: 1.5rem;
	font-weight: 500;
}

.specialty-content h3 {
	font-size: 1.25rem;
	font-weight: 500;
}

.specialty-content h4 {
	font-size: 1.125rem;
	font-weight: 500;
}

.specialty-content ul,
.specialty-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.specialty-content ul li,
.specialty-content ol li {
	margin-bottom: 0.5rem;
	color: var(--color-muted-foreground);
	letter-spacing: -0.025em;
	font-weight: 300;
	line-height: 1.625;
	text-wrap: pretty;
}

.specialty-content strong {
	font-weight: 500;
}

.specialty-content .dark strong {
	color: white;
}

.specialty-content em {
	font-style: italic;
	font-family: 'Instrument Serif', serif;
}

.specialty-content a {
	color: var(--color-accent);
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.specialty-content a:hover {
	opacity: 0.8;
}

.specialty-content img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.wp-block-columns {
	gap: 0 !important;
}

.wp-block-image {
	padding: 2rem;
}

.card {
	padding: 3rem;
	border-radius: 3rem;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
	background-color: var(--color-muted);
}

.dark {
	background-color: var(--color-foreground);
	color: white;
}
