/* ================= Upadhyay's Procto Surgical Hospital — custom overrides ================= */

/* -- Preloader -- */
#loading-area {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity .5s ease;
}
#loading-area.loaded { opacity: 0; pointer-events: none; }
.up-preloader { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.up-preloader-logo {
	height: 68px;
	width: auto;
	animation: upPreloaderPulse 1.4s ease-in-out infinite;
}
.up-preloader-spinner {
	width: 42px;
	height: 42px;
	border: 4px solid rgba(176,16,48,.15);
	border-top-color: #B01030;
	border-radius: 50%;
	animation: upPreloaderSpin .8s linear infinite;
}
@keyframes upPreloaderSpin { to { transform: rotate(360deg); } }
@keyframes upPreloaderPulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.07); opacity: .82; }
}

/* -- Sitewide paragraph text: justified for a cleaner, even edge -- */
p { text-align: justify; }
/* Exceptions: short/centered copy that looks worse justified */
.hero-slide-content p,
.section-head p,
.testimonial-text p,
.testimonial-detail p,
.blog-card-excerpt,
.counter-text,
p.m-b0 a,
.dez-info span,
.doctor-teaser-content span {
	text-align: left;
}

/* -- Top contact bar -- */
.top-bar .dez-topbar-left .top-info,
.top-bar .dez-topbar-right ul {
	margin: 0;
	padding: 12px 0;
}
.top-bar .dez-topbar-left .top-info li,
.top-bar .dez-topbar-right ul li {
	display: inline-block;
	font-size: 13px;
	margin-right: 25px;
}
.top-bar .dez-topbar-right ul li:last-child { margin-right: 0; }
.top-bar .fa {
	color: #B01030;
	margin-right: 6px;
}
.top-bar .dez-topbar-right ul li a { color: inherit; }

/* -- Logo -- */
.logo-header img {
	height: 68px;
	width: auto;
	max-width: none;
}
.logo-white-badge {
	background: #fff;
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.footer-logo img { height: 60px; width: auto; }

/* -- Inner page banner -- */
.dez-bnr-inr {
	background-size: cover;
	background-position: center;
	min-height: 260px;
}
.inner-page-banner {
	position: relative;
	overflow: hidden;
}
.inner-page-banner:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(77,5,22,.76) 0%, rgba(176,16,48,.48) 42%, rgba(16,26,34,.12) 100%);
}
.inner-page-banner .dez-bnr-inr-entry {
	position: relative;
	z-index: 2;
}
.inner-page-banner h1 {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0 0 13px;
	font-weight: 800;
	text-shadow: 0 3px 14px rgba(0,0,0,.35);
}
.inner-page-banner h1:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 58px;
	height: 4px;
	background: #fff;
	border-radius: 4px;
}
@media only screen and (max-width: 767px) {
	.dez-bnr-inr { min-height: 220px; }
	.inner-page-banner:before {
		background: linear-gradient(90deg, rgba(77,5,22,.78), rgba(176,16,48,.38));
	}
}

/* -- Footer opening hours -- */
.opening-hours-list { margin: 0; padding: 0; list-style: none; }
.opening-hours-list li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255,255,255,0.15);
	font-size: 14px;
}
.opening-hours-list li:last-child { border-bottom: none; }

/* -- Doctor section -- */
.doctor-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	overflow: hidden;
}
.doctor-card .doctor-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.doctor-credentials {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.doctor-credentials li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
}
.doctor-credentials li i {
	position: absolute;
	left: 0;
	top: 3px;
	color: #B01030;
}

/* -- Map -- */
.map-embed-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); }
.map-embed-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* -- Gallery -- */
.dez-gallery-box img { width: 100%; }

/* -- Hero slider (owl-fade-one) -- */
.hero-slide {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 585px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero-slide:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12,20,28,.20), rgba(12,20,28,.43));
}
.hero-slide-content {
	position: relative;
	z-index: 2;
	width: min(900px, calc(100% - 120px));
	max-width: none;
	margin: 0 auto;
	padding: 0;
	text-align: center;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	padding: 8px 16px 8px 9px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	background: rgba(176,16,48,.88);
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 30px;
	box-shadow: 0 8px 24px rgba(91,5,24,.25);
}
.hero-eyebrow i {
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	color: #B01030;
	background: #fff;
	border-radius: 50%;
}
.hero-slide-content h1 {
	font-weight: 800;
	text-transform: none;
	letter-spacing: -.7px;
	color: #fff;
	font-size: 49px;
	line-height: 1.15;
	margin: 0 auto 18px;
	text-shadow: 0 3px 18px rgba(0,0,0,.55);
}
.hero-slide-content h1 span {
	color: #fff;
}
.hero-slide-content p {
	max-width: 720px;
	margin: 0 auto 29px;
	font-size: 17px;
	line-height: 1.7;
	color: #fff;
	font-weight: 500;
	text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.hero-actions .site-button {
	padding: 14px 23px;
	border: 2px solid #B01030;
	border-radius: 5px;
	font-weight: 700;
	letter-spacing: .2px;
	box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.hero-actions .site-button i {
	margin-right: 7px;
}
.hero-btn-primary {
	color: #fff !important;
	background: #B01030 !important;
}
.hero-btn-primary:hover {
	border-color: #8a0c26;
	background: #8a0c26 !important;
}
.hero-btn-outline {
	color: #172330 !important;
	border-color: #fff !important;
	background: #fff !important;
}
.hero-btn-outline:hover {
	color: #fff !important;
	border-color: #B01030 !important;
	background: #B01030 !important;
}
.owl-fade-one .owl-item .hero-eyebrow,
.owl-fade-one .owl-item .hero-slide-content h1,
.owl-fade-one .owl-item .hero-slide-content p,
.owl-fade-one .owl-item .hero-actions {
	opacity: 0;
	transform: translateY(26px);
}
.owl-fade-one .owl-item.active .hero-eyebrow {
	animation: upHeroReveal .65s .12s ease forwards;
}
.owl-fade-one .owl-item.active .hero-slide-content h1 {
	animation: upHeroReveal .7s .25s ease forwards;
}
.owl-fade-one .owl-item.active .hero-slide-content p {
	animation: upHeroReveal .7s .38s ease forwards;
}
.owl-fade-one .owl-item.active .hero-actions {
	animation: upHeroReveal .7s .51s ease forwards;
}
@keyframes upHeroReveal {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: translateY(0); }
}
.owl-fade-one .owl-nav .owl-prev,
.owl-fade-one .owl-nav .owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 0;
	outline: 0;
	box-sizing: border-box;
	background: #B01030;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 7px 18px rgba(176,16,48,.28);
	transition: background .2s ease, transform .2s ease;
}
.owl-fade-one .owl-nav .owl-prev i,
.owl-fade-one .owl-nav .owl-next i {
	line-height: 1;
	pointer-events: none;
}
.owl-fade-one .owl-nav .owl-prev:hover,
.owl-fade-one .owl-nav .owl-next:hover {
	background: #8a0c26;
	transform: translateY(-50%) scale(1.08);
}
.owl-fade-one .owl-nav .owl-prev:focus,
.owl-fade-one .owl-nav .owl-next:focus { outline: 0; }
.owl-fade-one .owl-nav .owl-prev { left: 25px; }
.owl-fade-one .owl-nav .owl-next { right: 25px; }
@media only screen and (max-width: 1199px) {
	.hero-slide-content { width: min(820px, calc(100% - 120px)); }
	.hero-slide-content h1 { font-size: 43px; }
}
@media only screen and (max-width: 767px) {
	.hero-slide { min-height: 520px; background-position: 62% center; }
	.hero-slide-content {
		width: calc(100% - 58px);
		max-width: none;
		margin: 0 auto;
		padding: 0;
	}
	.hero-eyebrow { margin-bottom: 15px; padding: 6px 12px 6px 7px; font-size: 10px; letter-spacing: .7px; }
	.hero-eyebrow i { width: 28px; height: 28px; line-height: 28px; }
	.hero-slide-content h1 { font-size: 31px; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
	.hero-slide-content p { font-size: 15px; line-height: 1.6; margin-bottom: 21px; }
	.hero-actions { gap: 9px; }
	.hero-actions .site-button { padding: 11px 14px; font-size: 12px; }
	.owl-fade-one .owl-nav .owl-prev,
	.owl-fade-one .owl-nav .owl-next { width: 36px; height: 36px; line-height: 36px; font-size: 14px; }
	.owl-fade-one .owl-nav .owl-prev { left: 7px; }
	.owl-fade-one .owl-nav .owl-next { right: 7px; }
}

/* -- Blog cards -- */
.blog-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.blog-card-thumb {
	height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #B01030, #5c1120);
	color: #fff;
	font-size: 54px;
}
.blog-card-body {
	padding: 22px 22px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.blog-card-meta {
	color: #B01030;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	margin-bottom: 10px;
}
.blog-card-title {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #222;
}
.blog-card-title a { color: inherit; }
.blog-card-excerpt {
	color: #777;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 18px;
	flex: 1;
}
.blog-card-link {
	color: #B01030;
	font-weight: 700;
	font-size: 14px;
}
.blog-card-link i { margin-left: 6px; }

/* -- Timing table -- */
.timing-table { width: 100%; }
.timing-table td { padding: 10px 15px; border-bottom: 1px solid #eee; }
.timing-table tr:last-child td { border-bottom: none; }
.timing-table td:last-child { text-align: right; font-weight: 600; }

.up-card{background:#fff;border:1px solid #eee;border-radius:10px;overflow:hidden;box-shadow:0 8px 25px rgba(0,0,0,.08);transition:.25s}
.up-card:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(0,0,0,.14)}
.up-card-image{display:block;height:230px;overflow:hidden}.up-card-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.up-card:hover img{transform:scale(1.04)}
.up-detail-image{width:100%;max-height:480px;object-fit:cover}.up-rich-copy p{color:#444;font-size:16px;line-height:1.85;margin-bottom:20px}
.up-care-note{padding:16px 18px;background:#f8edf1;color:#651027;border-left:4px solid #b01030;border-radius:4px}
.up-side-link{display:flex;gap:10px;color:#333;padding:10px 0;border-bottom:1px solid #ddd;line-height:1.35}.up-side-link i,.up-side-link.active{color:#b01030}
.up-meta{color:#b01030;font-size:13px;font-weight:600;margin-bottom:10px;text-transform:uppercase}.up-article{max-width:900px}
.up-blog-thumb{display:block;height:220px}.up-blog-thumb img{width:100%;height:100%;object-fit:cover}
.testimonial-bg.bg-gray .testimonial-text p,.testimonial-bg.bg-gray .testimonial-name,.testimonial-bg.bg-gray .testimonial-position,.bg-white .dez-info p,.bg-gray .dez-info p{color:#383838!important;opacity:1!important}
.testimonial-bg.bg-gray .testimonial-name{font-weight:700}

/* ================= Redesign additions ================= */

/* -- Show background images through banners/overlays instead of a flat colour wash -- */
.overlay-primary-dark:after { opacity: 0.55; }

/* -- Equal height cards row-wide (services, icon boxes, etc.) -- */
.row.row-eq-height { display: flex; flex-wrap: wrap; }
.up-card.h-100 { display: flex; flex-direction: column; }
.up-card.h-100 .p-a25 { display: flex; flex-direction: column; flex: 1 1 auto; }
.up-card.h-100 .p-a25 p { flex: 1 1 auto; }
.up-card.h-100 .p-a25 .site-button,
.up-card.h-100 .p-a25 .site-button-link { align-self: flex-start; }

/* -- Home "What Patients Say" testimonial cards: full quote text always visible.
      Owl carousel doesn't stretch items, so a generous min-height keeps cards
      looking consistent while still growing for longer quotes. -- */
.testimonial-three1 .item { height: 100%; }
.testimonial-three1 .testimonial-2 {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	padding: 30px;
	min-height: 260px;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.testimonial-three1 .testimonial-text p { margin-bottom: 0; }
.testimonial-three1 .testimonial-detail {
	margin-top: auto;
	padding-top: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.testimonial-three1 .testimonial-pic { flex-shrink: 0; }
.testimonial-three1 .testimonial-name { margin: 0; }

/* -- Gallery: equal height thumbnails -- */
.dez-gallery-box .dez-thum { height: 260px; overflow: hidden; }
.dez-gallery-box .dez-thum img { width: 100%; height: 100%; object-fit: cover; }

/* -- Lightbox close button: a floating white circle just outside the image's
      top-right corner (overrides more-specific vendor .mfp-image-holder
      .mfp-close rule, which is why !important is used here) -- */
.mfp-close,
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close,
.mfp-img-mobile .mfp-close {
	width: 40px !important;
	height: 40px !important;
	line-height: 38px !important;
	right: -16px !important;
	left: auto !important;
	top: -16px !important;
	background: #fff !important;
	color: #222 !important;
	border-radius: 50% !important;
	font-size: 20px !important;
	font-family: Arial, sans-serif !important;
	text-align: center !important;
	opacity: 1 !important;
	padding: 0 !important;
	position: absolute !important;
	z-index: 1046 !important;
	box-shadow: 0 4px 16px rgba(0,0,0,.35) !important;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mfp-close:hover,
.mfp-image-holder .mfp-close:hover,
.mfp-iframe-holder .mfp-close:hover {
	background: #B01030 !important;
	color: #fff !important;
	transform: scale(1.08);
}
@media only screen and (max-width: 575px) {
	.mfp-close,
	.mfp-image-holder .mfp-close,
	.mfp-iframe-holder .mfp-close,
	.mfp-img-mobile .mfp-close {
		width: 32px !important;
		height: 32px !important;
		line-height: 30px !important;
		font-size: 16px !important;
		right: 0 !important;
		top: 0 !important;
	}
}

/* -- Doctor teaser: image left, content right (index / about) -- */
.doctor-teaser-row { align-items: stretch; }
.doctor-teaser-photo {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	overflow: hidden;
	height: 100%;
	min-height: 300px;
}
.doctor-teaser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-teaser-content {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	padding: 40px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.doctor-teaser-list {
	margin: 20px 0 25px;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
}
.doctor-teaser-list li {
	position: relative;
	padding-left: 26px;
	font-size: 14px;
	color: #444;
}
.doctor-teaser-list li i { position: absolute; left: 0; top: 3px; color: #B01030; }
.doctor-teaser-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doctor-teaser-highlight {
	display: flex;
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid #eee;
}
.doctor-teaser-highlight > div {
	flex: 1;
	text-align: center;
	padding: 0 10px;
	border-left: 1px solid #eee;
}
.doctor-teaser-highlight > div:first-child { border-left: 0; padding-left: 0; }
.doctor-teaser-highlight strong {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: #B01030;
	line-height: 1.2;
}
.doctor-teaser-highlight span {
	display: block;
	font-size: 13px;
	color: #777;
	margin-top: 4px;
}
@media only screen and (max-width: 991px) {
	.doctor-teaser-photo { min-height: 280px; margin-bottom: 25px; }
	.doctor-teaser-list { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 575px) {
	.doctor-teaser-highlight { flex-direction: column; gap: 15px; }
	.doctor-teaser-highlight > div { border-left: 0; text-align: left; padding: 0; }
}

/* -- Stats / counter sections with background image -- */
.stats-bg-section {
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
}

/* -- Footer social icons -- */
.footer-social-icons { margin: 0; padding: 0; }
.footer-social-icons li { display: inline-block; margin-right: 10px; }
.footer-social-icons li a {
	width: 38px;
	height: 38px;
	line-height: 38px;
	display: inline-block;
	text-align: center;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	color: #fff;
	transition: background .2s ease, color .2s ease;
}
.footer-social-icons li a:hover { background: #B01030; color: #fff; }

/* -- Service dropdown (bootstrap-select) to match other form fields -- */
.up-form-card .bootstrap-select > .dropdown-toggle {
	height: 40px;
	border: 1px solid #e1e6eb !important;
	border-radius: 4px;
	font-size: 13px;
	display: flex;
	align-items: center;
	box-shadow: none !important;
}
.up-form-card .bootstrap-select > .dropdown-toggle:focus { outline: 0 !important; }
.up-form-card .bootstrap-select .dropdown-menu { font-size: 13px; }
.up-form-card .bootstrap-select .dropdown-menu li.selected a,
.up-form-card .bootstrap-select .dropdown-menu li a:hover {
	background: #B01030;
	color: #fff;
}
.up-form-card .bs-searchbox .form-control { height: 34px; margin-bottom: 0; }

/* -- Contact / appointment forms -- */
.up-form-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	padding: 35px;
}
.up-form-card .form-control { margin-bottom: 20px; }
.up-form-card textarea.form-control { margin-bottom: 0; }

/* -- Short opening-hours block used in Contact page -- */
.hours-short-table { width: 100%; }
.hours-short-table td { padding: 10px 15px; border-bottom: 1px solid #eee; }
.hours-short-table tr:last-child td { border-bottom: none; }
.hours-short-table td:last-child { text-align: right; font-weight: 600; }

/* -- Contact page info cards: round icons, card polish -- */
.contact-style-1 .icon-bx-wraper {
	background: #fff;
	border: 0 !important;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.08);
	transition: transform .2s ease, box-shadow .2s ease;
}
.contact-style-1 .icon-bx-wraper:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.contact-style-1 .icon-bx-xs {
	width: 60px;
	height: 60px;
	line-height: 60px;
	border-radius: 50%;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.contact-style-1 .icon-bx-xs .icon-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}
.contact-style-1 .icon-bx-xs i { font-size: 22px; line-height: 1; }
.contact-style-1 .icon-content p,
.contact-style-1 .icon-content a {
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* -- Mobile polish sweep -- */
@media only screen and (max-width: 767px) {
	.up-form-card { padding: 22px; }
	.dez-gallery-box .dez-thum { height: 220px; }
	.doctor-teaser-content { padding: 25px; }
	.up-card-image { height: 200px; }
	.hours-short-table td,
	.timing-table td { padding: 8px 10px; font-size: 14px; }
}
@media only screen and (max-width: 575px) {
	.testimonial-three1 .testimonial-2 { padding: 22px; }
	.doctor-teaser-highlight { padding-top: 20px; margin-top: 20px; }
	.footer-social-icons li a { width: 34px; height: 34px; line-height: 34px; }
}
