/* orthodontic-Services */
.orthodontic-Services {
	padding: 50px 0 18px;
	text-align: center;
}

.text {
	display: flex;
	justify-content: center;
	padding-bottom: 30px;
	font-size: 30px;
	font-weight: 800;
	font-style: italic;
	/* color: #62c4e2; */
	background: linear-gradient(180deg, #bfddf2 0%, #031c2d 100%);

	-webkit-background-clip: text;
	color: transparent;
}

.orthodontic-Services p {
	max-width: 820px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.6;
}
.ortho-variant-2 {
	padding: 28px 0;
}
.ortho h2 {
	margin-bottom: 30px;
	font-size: 30px;
	font-weight: 800;
	font-style: italic;
	/* color: #62c4e2; */
	background: linear-gradient(180deg, #bfddf2 0%, #031c2d 100%);
	padding-top: 30px;
	-webkit-background-clip: text;
	color: transparent;
	/* font-size: 28px; */
	/* font-weight: 700; */
	padding-bottom: 14px;
	position: relative;
}

.ortho h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 8%;
	transform: translateX(-50%);
	width: 130px;
	height: 4px;
	background: linear-gradient(90deg, #85ffe0, #6bafff);
	border-radius: 4px;
}
.ortho-variant-2 .ov2-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.ortho-variant-2 .ov2-list li {
	display: flex;
	/* flex-direction: column; */
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #f7fdff);
	border: 1px solid rgba(26, 77, 126, 0.05);
}
.ortho-variant-2 .ov2-badge {
	min-width: 34px;
	height: 34px;
	border-radius: 8px;
	display: inline-grid;
	place-items: center;
	background: linear-gradient(180deg, var(--primary-color), #d7eef3);
	color: var(--secondary-color);
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(11, 17, 32, 0.04);
}

:root {
	--primary-color: #bbdce6;
	--secondary-color: #1a4d7e;
	--muted: #64748b;
}

/* base item (keeps your existing look but ready for hover) */
.ortho-variant-2 .ov2-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fbfeff);
	border: 1px solid rgba(26, 77, 126, 0.05);
	transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1),
		box-shadow 260ms cubic-bezier(0.2, 0.9, 0.3, 1), background 260ms ease,
		border-color 220ms ease;
	cursor: default;
	outline: none; /* focus styles provided separately */
}

/* badge base */
.ortho-variant-2 .ov2-badge {
	min-width: 34px;
	height: 34px;
	border-radius: 8px;
	display: inline-grid;
	place-items: center;
	background: linear-gradient(180deg, var(--primary-color), #d7eef3);
	color: var(--secondary-color);
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(11, 17, 32, 0.04);
	transition: transform 220ms ease, background 220ms ease, color 220ms ease;
	flex-shrink: 0;
}

/* text */
.ortho-variant-2 .ov2-list li {
	color: #083048;
	font-weight: 600;
}

/* HOVER + KEYBOARD FOCUS (use :focus-visible for good accessibility) */
.ortho-variant-2 .ov2-list li:hover,
.ortho-variant-2 .ov2-list li:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 22px 46px rgba(11, 17, 32, 0.1);
	border-color: rgba(26, 77, 126, 0.18);
	background: linear-gradient(
		90deg,
		rgba(187, 220, 230, 0.75),
		rgba(217, 243, 253, 0.9)
	);
}

/* badge becomes colored and slightly larger on hover/focus */
.ortho-variant-2 .ov2-list li:hover .ov2-badge,
.ortho-variant-2 .ov2-list li:focus-visible .ov2-badge {
	background: linear-gradient(
		180deg,
		var(--secondary-color),
		color-mix(in srgb, var(--secondary-color) 70%, #1a4d7e)
	);
	color: #ffffff;
	transform: scale(1.05) translateY(-2px);
	box-shadow: 0 18px 40px rgba(26, 77, 126, 0.18);
}

/* text color accent on hover */
.ortho-variant-2 .ov2-list li:hover,
.ortho-variant-2 .ov2-list li:focus-visible {
	color: var(--secondary-color);
}

/* ensure keyboard-visible outline for accessibility */
.ortho-variant-2 .ov2-list li:focus-visible {
	box-shadow: 0 0 0 4px rgba(26, 77, 126, 0.1),
		0 22px 46px rgba(11, 17, 32, 0.08);
	border-color: rgba(26, 77, 126, 0.22);
}

/* ---- orthodontic css ---- */

:root {
	--brand: #1a4d7e;
	--muted: #6b7280;
	--card-bg: #ffffff;
	--radius: 10px;
	--gap: 28px;
}

/* container minor reset */
.ortho {
	margin-bottom: 18px;
}
.ortho h2 {
	color: var(--brand);
	margin: 0 0 10px;
	font-size: 28px;
}

/* grid */
.ov2-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: var(--gap);
}

/* card */
.ov2-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 18px;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 8px 24px rgba(12, 24, 40, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 380px; /* keeps cards visually even */
}

/* image */
.ov2-media {
	width: 100%;
	padding-bottom: 100%; /* 1:1 aspect ratio */
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}
.ov2-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

/* title + small divider */
.ov2-title {
	margin: 0;
	font-size: 18px;
	color: var(--brand);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 700;
	padding: 8px 6px 6px;
}
.ov2-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	margin: 8px auto 0;
	background: linear-gradient(90deg, var(--brand), rgba(26, 77, 126, 0.6));
	border-radius: 2px;
	opacity: 0.9;
}

/* description */
.ov2-desc {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.75;
	flex: 1; /* keep footer spacing consistent */
	padding-top: 6px;
}

/* hover effect */
.ov2-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 22px 48px rgba(12, 24, 40, 0.12);
}
.ov2-card:hover .ov2-media img {
	transform: scale(1.06);
}

/* responsive tweaks */
@media (max-width: 480px) {
	.ov2-card {
		min-height: auto;
		padding: 14px;
	}
	.ov2-title {
		font-size: 16px;
	}
	.ov2-desc {
		font-size: 15px;
	}
}

:root {
	--brand: #1a4d7e;
	--muted: #6b7280;
	--card-bg: #fff;
}

/* simple grid wrapper */
.ov2-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 28px;
}

/* card */
.ov2-card {
	background: var(--card-bg);
	border-radius: 10px;
	padding: 18px;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 8px 20px rgba(12, 24, 40, 0.06);
	overflow: hidden;
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.ov2-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(12, 24, 40, 0.12);
}
.ov2-media {
	width: 100%;
	padding-bottom: 100%;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}
.ov2-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.26, 1), filter 0.45s ease,
		opacity 0.4s ease;
	will-change: transform, filter;
}

/* subtle zoom on hover */
.ov2-card:hover .ov2-media img {
	transform: scale(1.06);
}

/* ----------------------
	 OPTION A: GRAYSCALE ON HOVER
	 (default: color → hover: grayscale)
	 Apply class: .hover-grayscale on the .ov2-card
	 ---------------------- */
.ov2-card.hover-grayscale .ov2-media img {
	filter: grayscale(100%) contrast(0.95) brightness(0.98);
}
.ov2-card.hover-grayscale:hover .ov2-media img {
	filter: none;
}

/* ----------------------
	 OPTION B: GREYSCALE BY DEFAULT → COLOR ON HOVER
	 (use when you want muted images that become colorful)
	 Apply class: .hover-color on the .ov2-card
	 ---------------------- */
.ov2-card.hover-color .ov2-media img {
	filter: grayscale(100%) contrast(0.95) brightness(0.98);
	opacity: 0.98;
}
.ov2-card.hover-color:hover .ov2-media img {
	filter: none;
	opacity: 1;
}

/* title/desc styling (visual parity with previous examples) */
.ov2-title {
	margin: 16px 0 8px;
	color: var(--brand);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}
.ov2-desc {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
	font-size: 14px;
}

/* accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.ov2-media img {
		transition: none;
		transform: none;
	}
	.ov2-card {
		transition: none;
	}
}

/* responsive tweak */
@media (max-width: 480px) {
	.ov2-media {
		padding-bottom: 72%;
	} /* taller mobile images */
	.ov2-title {
		font-size: 15px;
	}
	.ov2-desc {
		font-size: 14px;
	}
}

/* ---- Neurosurgery ---- */

#neuro-section {
	margin: 50px 0;
}

.section-padding {
	background-color: #f2f2f1;
}

.about-us-intro {
	margin: 30px 0;
}

.lead-neuro {
	font-size: 18px;
	margin: 30px 20px;
	font-style: italic;
}

.name-neuro {
	font-size: 22px;
	font-weight: 600;
	color: var(--secondary-color);
}

.dr-neuro {
	width: 500px;
}

#Conditions-section {
	padding: 60px 0;
	background: #f6f9fb;
}

.card-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
	margin-top: 30px;
}

.card {
	background: #ffffff;
	padding: 25px;
	border-radius: 12px;
	border: 1px solid #e3e8ee;
	transition: all 0.35s ease;
	position: relative;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	border-color: var(--secondary-color);
}

/* Card Title with Tick */
.card-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--secondary-color);
	transition: 0.3s;
}

/* List style */
.card ul {
	padding-left: 18px;
	margin: 0;
}

.card ul li {
	margin-bottom: 8px;
	color: #555;
	transition: 0.3s;
}

/* Optional: Change list color on hover */
.card:hover ul li {
	color: #222;
}

/* Optional: Add subtle left accent line */
.card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 0%;
	width: 4px;
	background: var(--secondary-color);
	transition: 0.35s ease;
}

.card:hover::before {
	height: 100%;
}

.neuro-gallery {
	padding: 50px 20px;
	background: #f8fafc;
}

.neuro-gallery h2 {
	text-align: center;
	margin-bottom: 30px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.item {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
}

.item img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.item h4 {
	padding: 12px;
	font-size: 16px;
}

/* Gallery Section */
.neuro-gallery {
	padding: 50px 20px;
	background: #f8fafc;
}

.neuro-gallery h2 {
	text-align: center;
	margin-bottom: 30px;
}

/* Grid */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Card */
.item {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid #e5e7eb;
}

/* Hover Effect */
.item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
	border-color: var(--secondary-color);
}

/* Image */
.item img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* Image Zoom */
.item:hover img {
	transform: scale(1.08);
}

/* Title */
.item h4 {
	padding: 12px;
	font-size: 16px;
	transition: color 0.3s ease;
}

/* Title Color Change */
.item:hover h4 {
	color: #329abd;
	padding-top: 18px;
}

/* Responsive */
@media (max-width: 992px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.gallery {
		grid-template-columns: 1fr;
	}
}

/* Responsive */
@media (max-width: 992px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.gallery {
		grid-template-columns: 1fr;
	}
}
