
/** Custom modern styles for Mehta College of Pharmacy **/

:root {
	--brand-primary: #0D5B9B;
	--brand-accent: #4A90E2;
	--brand-deep: #003D82;
	--text-main: #1d2731;
	--text-soft: #5a6773;
	--surface: #f0f8ff;
	--white: #ffffff;
	--shadow-soft: 0 16px 40px rgba(13, 91, 155, 0.14);
	--radius-lg: 20px;
	--radius-md: 14px;
	--sky-light: #87CEEB;
	--sky-medium: #6BB6D6;
}

/* Animation Keyframes */
@keyframes fadeInSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInSlideDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulseGlow {
	0% {
		box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
	}
	50% {
		box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
	}
	100% {
		box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
	}
}

@keyframes floatUp {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

@keyframes glow {
	0%, 100% {
		text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
	}
	50% {
		text-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
	}
}

body.politics_version {
	font-family: "Manrope", sans-serif;
	color: var(--text-main);
	background: linear-gradient(135deg, #e0f6ff 0%, #f0f8ff 25%, #e6f3ff 50%, #f5fbff 75%, #e0f6ff 100%);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Fraunces", serif;
	letter-spacing: 0.2px;
}

#mainNav {
	backdrop-filter: blur(10px);
	background: linear-gradient(90deg, rgba(13, 91, 155, 0.95), rgba(74, 144, 226, 0.92));
	transition: all 0.3s ease;
	box-shadow: 0 10px 25px rgba(13, 91, 155, 0.25);
	animation: slideInDown 0.6s ease-out;
}

#mainNav .nav-link {
	font-weight: 700;
	letter-spacing: 0.3px;
	color: rgba(255, 255, 255, 0.94) !important;
	position: relative;
	transition: all 0.3s ease;
}

#mainNav .nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #87CEEB, #4A90E2);
	transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
	width: 100%;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
	color: #87CEEB !important;
	text-shadow: 0 0 10px rgba(135, 206, 235, 0.4);
}

#mainNav.navbar-shrink {
	background: linear-gradient(90deg, rgba(13, 91, 155, 0.98), rgba(74, 144, 226, 0.95)) !important;
	box-shadow: 0 12px 28px rgba(13, 91, 155, 0.3);
}

.nav-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
	transition: all 0.3s ease;
}

.nav-toggle-btn:hover {
	background: rgba(135, 206, 235, 0.15);
	border-color: rgba(135, 206, 235, 0.6) !important;
	transform: scale(1.05);
}

.hamburger-lines {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 20px;
}

.hamburger-lines span {
	display: block;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
	box-shadow: 0 0 5px rgba(135, 206, 235, 0.3);
}

.menu-text {
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.nav-open .hamburger-lines span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .hamburger-lines span:nth-child(2) {
	opacity: 0;
}

.nav-open .hamburger-lines span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.main-banner .slider-content h2 {
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	line-height: 1.2;
	text-shadow: 0 4px 12px rgba(13, 91, 155, 0.3);
	animation: fadeInSlideUp 1s ease-out;
}

.main-banner .slider-content p {
	font-size: clamp(0.85rem, 1.1vw, 1rem);
	max-width: 680px;
	margin: 8px auto 14px;
	animation: fadeInSlideUp 1.2s ease-out;
}

.btn-slider,
.sim-btn {
	border-radius: 999px;
	border: none;
	background: linear-gradient(120deg, var(--brand-accent), var(--brand-primary));
	color: var(--white) !important;
	box-shadow: 0 12px 30px rgba(74, 144, 226, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: fadeInSlideUp 0.7s ease-out;
	position: relative;
	overflow: hidden;
}

.btn-slider::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.btn-slider:hover::before {
	left: 100%;
}

.in-box .btn-slider {
	background: linear-gradient(120deg, var(--brand-accent), var(--brand-primary)) !important;
	color: #ffffff !important;
	padding: 8px 18px;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	position: relative;
	z-index: 1;
}

.in-box .btn-slider::before {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	transform-origin: center;
}

.in-box .btn-slider:hover,
.in-box .btn-slider:focus {
	color: #ffffff !important;
}

.btn-slider:hover,
.sim-btn:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 16px 36px rgba(74, 144, 226, 0.6);
}

.section-title h3 {
	color: var(--brand-deep);
	font-size: clamp(1.4rem, 2.2vw, 2rem);
	animation: fadeInSlideUp 0.8s ease-out;
}

.section-title p {
	color: var(--text-soft);
	font-size: 0.9rem;
	animation: fadeInSlideUp 0.9s ease-out;
}

#about .message-box,
#services .services-inner-box,
#contact .contact_form {
	border-radius: var(--radius-lg);
	animation: fadeInSlideUp 1s ease-out;
}

#about .message-box {
	background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
	padding: 16px;
	box-shadow: 0 6px 20px rgba(74, 144, 226, 0.1);
	border: 1px solid rgba(135, 206, 235, 0.2);
}

.cont-box {
	background: linear-gradient(120deg, rgba(13, 91, 155, 0.95), rgba(74, 144, 226, 0.9));
	animation: fadeInSlideUp 1s ease-out;
}

.cont-box .inner-cont-box {
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	transition: all 0.3s ease;
}

.cont-box .inner-cont-box:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-3px);
}

#services .services-inner-box {
	height: 100%;
	background: var(--white);
	border: 1px solid #c5e0ff;
	box-shadow: 0 14px 30px rgba(74, 144, 226, 0.08);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
	animation: fadeInSlideUp calc(0.8s + var(--item-delay, 0s)) ease-out;
}

#services .services-inner-box:hover {
	transform: translateY(-12px);
	box-shadow: 0 18px 48px rgba(74, 144, 226, 0.2);
	border-color: #4A90E2;
}

#services .ser-icon {
	background: linear-gradient(130deg, #d4e8ff, #e8f4ff);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	line-height: normal;
	min-height: 160px;
	padding: 6px;
	margin: 0 0 12px;
	transition: all 0.3s ease;
}

#services .ser-icon:hover {
	background: linear-gradient(130deg, #c0e0ff, #d7e8ff);
	box-shadow: inset 0 0 20px rgba(74, 144, 226, 0.1);
}

#services .ser-icon img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: 140px;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.4s ease;
}

#services .services-inner-box:hover .ser-icon img {
	transform: scale(1.08);
}

#gallery {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #f5fbff 0%, #e8f4ff 100%);
}

#gallery::before {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	top: -120px;
	right: -60px;
	background: radial-gradient(circle, rgba(74, 144, 226, 0.22), rgba(74, 144, 226, 0));
	pointer-events: none;
	animation: floatUp 6s ease-in-out infinite;
}

.gallery-sub {
	font-size: 0.9rem;
	color: var(--text-soft);
	max-width: 680px;
	margin: 6px auto 16px;
	animation: fadeInSlideUp 0.8s ease-out;
}

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

.gallery-card {
	border: none;
	padding: 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(74, 144, 226, 0.12);
	transform: translateY(18px);
	opacity: 0;
	transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.4s ease;
}

.gallery-card.reveal {
	transform: translateY(0);
	opacity: 1;
}

.gallery-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.gallery-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 91, 155, 0.72), rgba(13, 91, 155, 0.06));
	transition: background 0.3s ease;
}

.gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(74, 144, 226, 0.18);
}

.gallery-card:hover::after {
	background: linear-gradient(to top, rgba(13, 91, 155, 0.85), rgba(13, 91, 155, 0.15));
}

.gallery-card:hover img {
	transform: scale(1.08);
}

.gallery-card-label {
	position: absolute;
	left: 16px;
	bottom: 14px;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	z-index: 2;
}

.gallery-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	justify-content: center;
	align-items: center;
	background: rgba(13, 91, 155, 0.92);
	z-index: 9999;
	padding: 24px;
	animation: fadeInSlideUp 0.3s ease-out;
}

.gallery-lightbox.active {
	display: flex;
	animation: fadeInSlideUp 0.3s ease-out;
}

#lightboxImage {
	width: min(92vw, 980px);
	max-height: 80vh;
	object-fit: contain;
	border-radius: 16px;
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4);
	animation: scaleUp 0.4s ease-out;
}

@keyframes scaleUp {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

#lightboxCaption {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	color: #ecfffd;
	font-size: 1rem;
	font-weight: 600;
	background: rgba(13, 91, 155, 0.72);
	padding: 8px 14px;
	border-radius: 999px;
	animation: popIn 0.3s ease-out 0.1s backwards;
}

@keyframes popIn {
	from {
		opacity: 0;
		transform: translateX(-50%) scale(0.8);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) scale(1);
	}
}

.lightbox-close,
.lightbox-nav {
	position: absolute;
	background: rgba(135, 206, 235, 0.2);
	border: none;
	color: #ffffff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
	background: rgba(135, 206, 235, 0.45);
	transform: scale(1.12);
}

.lightbox-close {
	top: 18px;
	right: 18px;
	font-size: 2rem;
	line-height: 1;
}

.lightbox-prev {
	left: 24px;
}

.lightbox-next {
	right: 24px;
}

#contact {
	background: linear-gradient(180deg, #0D5B9B 0%, #003D82 100%);
	position: relative;
	overflow: hidden;
}

#contact::before {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	top: 50%;
	right: -100px;
	background: radial-gradient(circle, rgba(135, 206, 235, 0.15), transparent);
	pointer-events: none;
}

#contact .section-title h3,
#contact .section-title p {
	color: #ecfffd;
	animation: fadeInSlideUp 0.8s ease-out;
}

#contact .contact_form {
	background: #ffffff;
	padding: 14px;
	box-shadow: 0 12px 32px rgba(13, 91, 155, 0.12);
	animation: fadeInSlideUp 0.9s ease-out;
}

.contact-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: #1d2731;
	margin-bottom: 4px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

#contact .form-control {
	border-radius: 8px;
	border: 1px solid #b8d4f1;
	min-height: 36px;
	padding: 6px 10px;
	background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 100%);
	transition: all 0.3s ease;
	font-size: 0.85rem;
}

#contact .form-control:focus {
	border-color: #4A90E2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
	background: #ffffff;
}

#contact textarea.form-control {
	min-height: 100px;
}

.location-section {
	background: linear-gradient(180deg, #e8f4ff 0%, #d7ecff 100%);
}

.location-card {
	max-width: 980px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #c5dff8;
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 28px rgba(74, 144, 226, 0.08);
	padding: 12px;
	text-align: center;
	animation: fadeInSlideUp 0.9s ease-out;
	transition: all 0.3s ease;
}

.location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px rgba(74, 144, 226, 0.18);
}

#currentLocationMap {
	width: 100%;
	height: 380px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #b8d4f1;
	background: #d7ecff;
	margin-bottom: 12px;
}

#currentLocationMap iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 12px;
}

.location-status {
	font-weight: 700;
	color: #0D5B9B;
	margin-bottom: 6px;
}

.location-coords {
	color: #4A90E2;
	margin-bottom: 18px;
	word-break: break-word;
}

#refreshLocationBtn {
	min-width: 200px;
}

.copyrights {
	background: #003D82;
}

.footer-company-name {
	color: #d7eef0 !important;
}

.footer-company-name a {
	color: #87CEEB !important;
	font-weight: 700;
	transition: color 0.3s ease;
}

.footer-company-name a:hover {
	color: #ffffff !important;
	text-shadow: 0 0 8px rgba(135, 206, 235, 0.5);
}

@media (max-width: 991px) {
	#mainNav {
		padding: 8px 14px;
	}

	#mainNav .navbar-brand {
		max-width: 230px;
	}

	#mainNav .navbar-brand img {
		width: 100%;
		height: auto;
	}

	#navbarResponsive {
		margin-top: 10px;
		padding: 12px;
		border-radius: 14px;
		background: linear-gradient(180deg, rgba(13, 91, 155, 0.98), rgba(74, 144, 226, 0.95));
		box-shadow: 0 16px 30px rgba(13, 91, 155, 0.24);
	}

	#mainNav .navbar-nav {
		gap: 4px;
	}

	#mainNav .navbar-nav .nav-link {
		padding: 10px 12px;
		border-radius: 10px;
	}

	#mainNav .navbar-nav .nav-link:hover,
	#mainNav .navbar-nav .nav-link.active {
		background: rgba(255, 255, 255, 0.13);
		color: #d8fff8 !important;
	}

	.main-banner .slider-content h2 {
		font-size: clamp(1.6rem, 7.5vw, 2.5rem);
	}

	.main-banner .slider-content p {
		font-size: 0.98rem;
		padding: 0 10px;
	}

	.in-box {
		padding: 24px 18px;
	}

	.section {
		padding: 56px 16px;
	}

	.gallery-grid-modern {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lightbox-nav {
		display: none;
	}
}

@media (max-width: 575px) {
	#mainNav {
		padding-left: 10px;
		padding-right: 10px;
	}

	#mainNav .navbar-brand {
		max-width: 190px;
	}

	.menu-text {
		display: none;
	}

	.main-banner .slider-content h2 {
		font-size: 1.8rem;
	}

	.in-box .btn-slider {
		padding: 10px 22px;
		font-size: 0.92rem;
	}

	.gallery-grid-modern {
		grid-template-columns: 1fr;
	}

	#about .message-box,
	#contact .contact_form {
		padding: 22px;
	}

	#currentLocationMap {
		height: 320px;
	}

	.location-card {
		padding: 16px;
	}
}