/* ===== Jain University LRC - Modern Bootstrap UI ===== */

:root {
	--jain-navy: #16305a;
	--jain-navy-dark: #0f2244;
	--jain-navy-light: #1c3a6b;
	--jain-gold: #fbc11a;
	--jain-gold-dark: #e0a800;
	--jain-text: #2b2b2b;
	--jain-muted: #6c757d;
	--jain-bg: #f7f8fb;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	color: var(--jain-text);
	background: #ffffff;
	font-weight: 400;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	color: var(--jain-navy);
}

a {
	text-decoration: none;
}

.text-navy {
	color: var(--jain-navy) !important;
}

/* ===== Top utility bar ===== */
.top-bar {
	background: #ffffff;
	padding: 8px 0;
	font-size: 13.5px;
	color: #555;
	border-bottom: 1px solid #f1f1f1;
}

.top-bar a {
	color: #555;
	transition: color .2s ease;
}

.top-bar a:hover {
	color: var(--jain-navy);
}

.instructions-btn {
	background: var(--jain-gold);
	color: var(--jain-navy);
	font-weight: 700;
	padding: 8px 18px;
	border: none;
	border-radius: 0;
	font-size: 13px;
	letter-spacing: .5px;
	cursor: pointer;
	transition: background .25s ease, transform .2s ease;
}

.instructions-btn:hover {
	background: var(--jain-gold-dark);
	color: var(--jain-navy);
	transform: translateY(-1px);
}

/* ===== Navbar ===== */
.main-nav {
	background: #ffffff;
	padding: 14px 0;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 0;
	z-index: 1020;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-logo .jgi-mark {
	background: var(--jain-navy);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 8px 10px;
	border-radius: 4px;
	letter-spacing: 1px;
}

.brand-logo .jain-text {
	font-size: 26px;
	font-weight: 800;
	color: var(--jain-navy);
	letter-spacing: 2px;
	line-height: 1;
}

.brand-logo .lrc-text {
	font-size: 9.5px;
	font-weight: 700;
	color: #444;
	letter-spacing: 1.2px;
	line-height: 1.2;
	margin-top: 3px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: #444;
	font-weight: 600;
	font-size: 13.5px;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--jain-gold-dark);
	border-bottom-color: var(--jain-gold);
}

.mobile-toggle {
	display: none;
	background: var(--jain-navy);
	color: #fff;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
}

@media (max-width: 991px) {
	.nav-links {
		display: none;
	}

	.mobile-toggle {
		display: inline-flex;
	}

	.nav-links.open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: #fff;
		padding: 18px 24px;
		gap: 14px;
		box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
		align-items: flex-start;
	}
}

/* ===== Hero / Carousel ===== */
.hero-carousel {
	position: relative;
}

.hero-slide {
	position: relative;
	height: 560px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	transition: background-image .6s ease;
}

.hero-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 34, 68, .55) 0%, rgba(15, 34, 68, .20) 60%, rgba(15, 34, 68, .05) 100%);
}

.hero-quote-card {
	position: relative;
	z-index: 2;
	background: rgba(225, 227, 232, 0.92);
	border-radius: 28px;
	padding: 50px 44px;
	max-width: 420px;
	margin-left: 4%;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
	animation: slideInLeft .9s ease both;
}

.hero-quote-card .quote-mark {
	font-family: 'Playfair Display', serif;
	font-size: 80px;
	line-height: .4;
	color: var(--jain-navy);
	opacity: .85;
	display: block;
}

.hero-quote-card .quote-mark.bottom {
	text-align: right;
	margin-top: 18px;
}

.hero-quote-card p {
	font-size: 22px;
	font-weight: 700;
	color: var(--jain-navy);
	text-align: center;
	margin: 14px 0 0;
	text-transform: uppercase;
	letter-spacing: .5px;
	line-height: 1.45;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .4);
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .25s ease, transform .25s ease;
}

.carousel-arrow:hover {
	background: rgba(255, 255, 255, .35);
	transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
	left: 22px;
}

.carousel-arrow.next {
	right: 22px;
}

.carousel-dots {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}

.carousel-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .25s ease, width .25s ease;
}

.carousel-dots span.active {
	background: var(--jain-gold);
	width: 28px;
	border-radius: 6px;
}

/* ===== Search bar ===== */
.search-strip {
	background: var(--jain-navy);
	padding: 22px 0;
	margin-top: -40px;
	position: relative;
	z-index: 5;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(15, 34, 68, .25);
}

.search-strip .search-label {
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.search-strip .search-label i {
	font-size: 22px;
	color: var(--jain-gold);
}

.search-strip input.form-control {
	height: 50px;
	border: none;
	border-radius: 4px;
	font-size: 15px;
}

.search-strip input.form-control:focus {
	box-shadow: 0 0 0 3px rgba(251, 193, 26, .35);
}

.search-strip .btn-search {
	background: var(--jain-gold);
	color: var(--jain-navy);
	height: 50px;
	padding: 0 34px;
	border: none;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background .25s ease, transform .2s ease;
}

.search-strip .btn-search:hover {
	background: var(--jain-gold-dark);
	transform: translateY(-1px);
}

/* ===== Section base ===== */
section {
	padding: 70px 0;
}

.section-title {
	font-size: 34px;
	font-weight: 700;
	color: var(--jain-navy);
	margin-bottom: 36px;
}

.section-title.center {
	text-align: center;
}

.section-title.center::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	background: var(--jain-gold);
	border-radius: 4px;
	margin: 14px auto 0;
}

/* ===== About ===== */
.about-section .about-text p {
	color: #555;
	font-size: 15.5px;
	line-height: 1.85;
	margin-bottom: 18px;
}

.opac-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--jain-navy);
	color: #fff;
	padding: 14px 28px;
	font-weight: 600;
	letter-spacing: .6px;
	border-radius: 4px;
	transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
	border: none;
}

.opac-btn:hover {
	background: var(--jain-navy-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(15, 34, 68, .25);
}

.about-img-wrap {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.about-img-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 4px solid var(--jain-gold);
	border-radius: 8px;
	transform: translate(14px, 14px);
	z-index: -1;
}

.about-img-wrap img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	transition: transform .6s ease;
	display: block;
}

.about-img-wrap:hover img {
	transform: scale(1.04);
}

/* ===== Services ===== */
.services-section {
	background: var(--jain-bg);
}

.service-card {
	background: #fff;
	border-radius: 10px;
	padding: 32px 22px;
	text-align: center;
	height: 100%;
	box-shadow: 0 6px 18px rgba(15, 34, 68, .06);
	border: 1px solid #eef0f5;
	transition: transform .35s ease, box-shadow .35s ease, border-color .25s ease;
	position: relative;
	overflow: hidden;
}

.service-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--jain-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s ease;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(15, 34, 68, .14);
	border-color: #e5e8f0;
}

.service-card:hover::after {
	transform: scaleX(1);
}

.service-icon {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(22, 48, 90, .08);
	color: var(--jain-navy);
	border-radius: 50%;
	font-size: 28px;
	margin-bottom: 18px;
	transition: background .25s ease, color .25s ease, transform .35s ease;
}

.service-card:hover .service-icon {
	background: var(--jain-navy);
	color: var(--jain-gold);
	transform: rotate(-8deg) scale(1.08);
}

.service-card h3 {
	font-size: 18px;
	margin-bottom: 10px;
	color: var(--jain-navy);
}

.service-card p {
	font-size: 14px;
	color: #6a7280;
	margin: 0;
	line-height: 1.6;
}

/* ===== Best Library Users ===== */
.best-users-section {
	background: var(--jain-gold);
	padding: 80px 0;
}

.best-users-card {
	background: var(--jain-navy);
	color: #fff;
	border-radius: 8px;
	padding: 50px 40px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.best-users-card h2 {
	color: #fff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
}

.best-users-card h2 span {
	color: var(--jain-gold);
}

.join-btn {
	background: var(--jain-gold);
	color: var(--jain-navy);
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-top: 20px;
	width: fit-content;
	cursor: pointer;
	transition: transform .2s ease, background .25s ease;
}

.join-btn:hover {
	background: #fff;
	transform: translateY(-2px);
}

.users-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 6px;
	background: #fff;
	padding: 6px;
	border-radius: 6px;
}

.user-thumb {
	aspect-ratio: 1/1;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	transition: transform .25s ease, box-shadow .25s ease;
	cursor: pointer;
	box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .08);
}

.user-thumb:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
	z-index: 2;
}

@media (max-width: 768px) {
	.users-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ===== Media + Notice ===== */
.media-notice-section {
	background: #fff;
}

.media-card {
	background: var(--jain-bg);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
	height: 100%;
}

.media-card img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	filter: grayscale(.2);
	transition: transform .5s ease;
	display: block;
}

.media-card:hover img {
	transform: scale(1.05);
}

.media-card .media-body {
	padding: 22px;
}

.media-card h4 {
	font-size: 18px;
	margin-bottom: 8px;
}

.media-card p {
	color: #6a7280;
	font-size: 14px;
	margin: 0;
}

.notice-item {
	display: flex;
	gap: 18px;
	padding: 18px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #eef0f5;
	margin-bottom: 14px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.notice-item:hover {
	transform: translateX(4px);
	box-shadow: 0 10px 22px rgba(15, 34, 68, .08);
	border-color: #dadfe9;
}

.notice-date {
	flex-shrink: 0;
	width: 70px;
	background: var(--jain-navy);
	color: #fff;
	border-radius: 6px;
	text-align: center;
	padding: 10px 6px;
	height: fit-content;
}

.notice-date .day {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	display: block;
}

.notice-date .month {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 2px;
	display: block;
}

.notice-date .year {
	font-size: 11px;
	opacity: .85;
	display: block;
}

.notice-content h5 {
	font-size: 15.5px;
	margin-bottom: 6px;
	line-height: 1.4;
	color: var(--jain-navy);
}

.notice-content p {
	font-size: 13.5px;
	color: #6a7280;
	margin: 0;
	line-height: 1.6;
}

.view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--jain-navy);
	font-weight: 600;
	margin-top: 10px;
	transition: gap .25s ease, color .25s ease;
}

.view-all-link:hover {
	color: var(--jain-gold-dark);
	gap: 12px;
}

/* ===== New Arrival ===== */
.arrival-section {
	background: var(--jain-bg);
}

.book-card {
	background: #fff;
	border-radius: 10px;
	padding: 22px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
	transition: transform .35s ease, box-shadow .35s ease;
	height: 100%;
}

.book-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
}

.book-cover {
	width: 100%;
	height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
	padding: 14px;
	color: #fff;
	text-align: center;
}

.book-cover .spine-text {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, .4);
}

.book-cover .author-text {
	position: absolute;
	bottom: 14px;
	left: 14px;
	right: 14px;
	font-size: 12px;
	opacity: .92;
	font-weight: 600;
	letter-spacing: .5px;
}

.book-card h4 {
	font-size: 16px;
	margin: 4px 0 10px;
	color: var(--jain-navy);
}

.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--jain-navy);
	font-weight: 600;
	font-size: 13px;
	transition: gap .2s ease, color .2s ease;
}

.read-more-link:hover {
	color: var(--jain-gold-dark);
	gap: 10px;
}

.arrival-track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 14px;
	scrollbar-width: thin;
}

.arrival-track::-webkit-scrollbar {
	height: 6px;
}

.arrival-track::-webkit-scrollbar-thumb {
	background: var(--jain-navy);
	border-radius: 4px;
}

.arrival-track>.book-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
}

/* ===== Footer ===== */
.site-footer {
	background: var(--jain-navy-dark);
	color: #cdd3df;
	padding: 60px 0 0;
}

.site-footer h5 {
	color: #fff;
	font-size: 17px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.site-footer h5::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	background: var(--jain-gold);
	border-radius: 2px;
}

.site-footer a {
	color: #cdd3df;
	font-size: 14px;
	display: block;
	padding: 5px 0;
	transition: color .2s ease, padding-left .25s ease;
}

.site-footer a:hover {
	color: var(--jain-gold);
	padding-left: 6px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	margin-top: 40px;
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: #9aa3b4;
}

.social-icons {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.social-icons a {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, .08);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background .25s ease, transform .25s ease;
}

.social-icons a:hover {
	background: var(--jain-gold);
	color: var(--jain-navy);
	transform: translateY(-3px);
}

/* ===== Back to top ===== */
.back-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--jain-gold);
	color: var(--jain-navy);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
	transition: opacity .3s ease, transform .25s ease;
}

.back-top.visible {
	opacity: 1;
	pointer-events: auto;
}

.back-top:hover {
	transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.hero-slide {
		height: 460px;
	}

	.hero-quote-card {
		padding: 36px 28px;
		max-width: 92%;
		margin: 0 auto;
	}

	.hero-quote-card p {
		font-size: 17px;
	}

	.section-title {
		font-size: 26px;
	}

	.best-users-card h2 {
		font-size: 28px;
	}

	.top-bar .top-right {
		justify-content: center !important;
	}

	section {
		padding: 50px 0;
	}
}