/* EduCMS theme overrides */
body.tg-home .tg-wrapper {
	max-width: 1230px;
	box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.20);
}

.educms-home-page > .container {
	width: 100%;
}

.educms-home-page .tg-homeslider {
	margin-bottom: 0;
}

.educms-home-page .tg-tickerbox {
	margin-bottom: 0;
}

img[data-educms-setting-src="institute_logo"] {
	max-height: 96px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tg-widgetcompanyinfo img[data-educms-setting-src="institute_logo"] {
	max-height: 72px;
}

@media (max-width: 767px) {
	img[data-educms-setting-src="institute_logo"] {
		max-height: 72px;
	}
}

.tg-noticeboard .tg-textbox a {
	color: inherit;
	text-decoration: none;
}

.tg-noticeboard figure img {
	max-height: 72px;
	width: auto;
	object-fit: contain;
}

/* Slider: dark overlay only when a title is shown */
.tg-homeslidervthree .item.tg-slider-no-title {
	background: transparent;
}

.tg-homeslidervthree .item.tg-slider-no-title img {
	opacity: 1;
}

.educms-nav-fluid {
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

.educms-nav-fluid .tg-navigationarea {
	width: 100%;
	overflow: visible;
}

.educms-nav-fluid .tg-navigationarea::after {
	content: '';
	display: table;
	clear: both;
}

.educms-nav-fluid .tg-nav {
	float: left;
	width: auto;
	max-width: calc(100% - 45px);
	font: 400 13px/40px 'Open Sans', Arial, Helvetica, sans-serif;
	overflow: visible;
}

.educms-nav-fluid .tg-navigation {
	width: auto;
	float: left;
	overflow: visible;
	position: relative;
}

.educms-nav-fluid .tg-navigation > ul {
	width: auto;
	float: left;
}

.educms-nav-fluid .tg-navigation > ul > li {
	position: relative;
}

.educms-nav-fluid .tg-navigation .sub-menu {
	z-index: 999;
}

.educms-nav-fluid .tg-navigation > ul > li > a {
	line-height: 40px;
	padding-top: 0;
	padding-bottom: 0;
}

.educms-nav-fluid .tg-searchbox {
	float: right;
}

@media (min-width: 768px) {
	.educms-nav-fluid .navbar-header {
		display: none;
	}

	.educms-nav-fluid .navbar-collapse.collapse {
		display: block !important;
		height: auto !important;
		padding-bottom: 0;
		overflow: visible !important;
	}

	.educms-nav-fluid .menu-item-has-children:hover > .sub-menu,
	.educms-nav-fluid .menu-item-has-children .menu-item-has-children:hover > .sub-menu {
		top: 100%;
		opacity: 1;
		visibility: visible;
	}

	.educms-nav-fluid .menu-item-has-children .menu-item-has-children:hover > .sub-menu {
		top: 0;
	}
}

.educms-topbar-social .tg-socialicons {
	float: right;
	margin: 0;
	padding: 0;
}

.educms-topbar-social .tg-socialicons li {
	float: left;
}

.educms-topbar-social .tg-socialicons li a {
	display: block;
	padding: 0 8px;
	color: #fff;
	line-height: 40px;
}

.educms-social-icons li.tg-instagram a:hover {
	color: #fff;
}

.educms-map-iframe iframe {
	width: 100%;
	min-height: 220px;
	border: 0;
	display: block;
}

.tg-contactus .educms-contact-map iframe,
.tg-contactus .educms-contact-map.educms-map-iframe {
	min-height: 420px;
	height: 420px;
}

.educms-map-placeholder {
	margin: 0;
	padding: 24px 12px;
	text-align: center;
	font-size: 13px;
	color: #888;
	background: #f5f5f5;
	border-radius: 4px;
}

.tg-widgetmap .tg-widgetcontent.educms-map-iframe {
	padding: 0;
	overflow: hidden;
}

.tg-widgetmap .educms-map-iframe iframe {
	height: 160px;
	min-height: 160px;
}

.educms-footer-address address {
	display: inline-block;
	margin: 0;
	font-style: normal;
	max-width: 200px;
	vertical-align: top;
}

.educms-mission-vision-box .tg-signuptextbox {
	float: none;
	width: 100%;
}

.educms-mission-vision-box .tg-description,
.educms-mission-vision-box .tg-description p {
	color: #fff;
	font-size: 14px;
	line-height: 1.6;
}

.educms-mission-vision-box .tg-description p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.educms-mission-vision-box .educms-vision-box {
		margin-top: 24px;
	}
}

.tg-welcomeandgreeting figure img.educms-principal-photo {
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: cover;
}

.educms-glance-heading + .educms-bento-grid {
	margin-top: 0;
}

.tg-glanceatuoeandk .tg-btnsbox {
	margin-top: 20px;
}

.educms-gallery-empty {
	padding: 30px 0;
	text-align: center;
	color: #666;
}

/* Bento gallery grid */
.educms-bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 140px;
	grid-auto-flow: dense;
	gap: 10px;
	width: 100%;
}

.educms-bento-grid--home {
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 78px;
	gap: 8px;
}

.educms-bento-item {
	margin: 0;
	position: relative;
	overflow: hidden;
	background: #222;
	border-radius: 10px;
	min-height: 0;
}

.educms-bento-item .tg-gallery-link {
	height: 100%;
	float: none;
	display: block;
}

.educms-bento-item .tg-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.educms-bento-item .educms-bento-zoom {
	top: 50%;
	left: 50%;
	z-index: 2;
	opacity: 0;
	visibility: hidden;
}

.educms-bento-item:hover .tg-gallery-link img {
	transform: scale(1.05);
	opacity: 0.72;
}

.educms-bento-item:hover .educms-bento-zoom {
	opacity: 1;
	visibility: visible;
}

/* Gallery page: repeating 6-tile bento pattern */
.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 6) {
	grid-column: span 4;
}

/* Home glance: compact 6-tile bento */
.educms-bento-grid--home .educms-bento-item:nth-child(6n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.educms-bento-grid--home .educms-bento-item:nth-child(6n + 6) {
	grid-column: span 3;
}

.educms-gallery-glance .tg-btnsbox {
	margin-top: 16px;
}

.educms-gallery-page {
	padding-top: 10px;
}

@media (max-width: 991px) {
	.educms-bento-grid--gallery {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 120px;
	}

	.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 1) {
		grid-column: span 2;
		grid-row: span 2;
	}

	.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 6) {
		grid-column: span 3;
	}
}

@media (max-width: 767px) {
	.educms-bento-grid--gallery,
	.educms-bento-grid--home {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 110px;
	}

	.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 1),
	.educms-bento-grid--home .educms-bento-item:nth-child(6n + 1) {
		grid-column: span 2;
		grid-row: span 2;
	}

	.educms-bento-grid--gallery .educms-bento-item:nth-child(6n + 6),
	.educms-bento-grid--home .educms-bento-item:nth-child(6n + 6) {
		grid-column: span 2;
	}
}

/* lightGallery integration */
.tg-gallery-link {
	display: block;
	position: relative;
	width: 100%;
	float: left;
	color: inherit;
	text-decoration: none;
}

.tg-gallery li figure .tg-gallery-link img,
.tg-masonrygrid figure .tg-gallery-link img {
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	position: relative;
}

.tg-gallery li figure:hover .tg-gallery-link img {
	opacity: 0.30;
}

.tg-masonrygrid figure:hover .tg-gallery-link img {
	opacity: 0.50;
}

.tg-gallery li figure .tg-gallery-link .tg-btnview {
	top: 50%;
	left: 50%;
}

.tg-gallery li figure:hover .tg-gallery-link .tg-btnview,
.tg-masonrygrid figure:hover .tg-gallery-link .tg-btnviewimg {
	opacity: 1;
	visibility: visible;
}

.lg-backdrop {
	z-index: 10040;
}

.lg-outer {
	z-index: 10050;
}

.educms-search-summary {
	margin: 0 0 20px;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

.educms-search-filters {
	margin-bottom: 25px;
}

.educms-search-filters span {
	font-size: 12px;
}

.educms-search-item .tg-featuredimg {
	max-width: 280px;
}

.educms-search-empty {
	padding: 40px 0;
	text-align: center;
	color: #666;
}

.educms-search-sidebar-types a.educms-active {
	font-weight: 700;
	color: #333;
}

/* Home info widgets (Announcements / Examination Notices) */
.educms-home-widget {
	width: 100%;
	float: left;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.educms-home-widget .educms-widget-head {
	margin: 0;
	padding: 14px 18px;
	background: #f7f7f7;
	border-bottom: 1px solid #e6e6e6;
	border-left: 3px solid #3575d3;
}

.educms-home-widget .educms-widget-head h3 {
	margin: 0;
	font-size: 16px;
	line-height: 18px;
	color: #333;
	font-weight: 600;
}

.educms-home-widget .educms-widget-head h3 i {
	margin-right: 8px;
	color: #3575d3;
}

.educms-widget-accent .educms-widget-head {
	background: #3575d3;
	border-left-color: #245bb0;
}

.educms-widget-accent .educms-widget-head h3,
.educms-widget-accent .educms-widget-head h3 i {
	color: #fff;
}

.educms-home-widget .tg-widgetcontent {
	padding: 6px 18px 10px;
}

.educms-notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.educms-notice-list li {
	padding: 12px 0;
	border-bottom: 1px dashed #e3e3e3;
}

.educms-notice-list li:last-child {
	border-bottom: 0;
}

.educms-notice-list li a {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.2s ease;
}

.educms-notice-list li a:hover {
	color: #3575d3;
}

.educms-notice-date {
	display: inline-block;
	margin-top: 5px;
	font-size: 12px;
	color: #999;
}

.educms-notice-date i {
	margin-right: 5px;
	color: #3575d3;
}

/* Video gallery */
.educms-video-gallery {
	margin: 0 -8px;
}

.educms-video-item {
	margin-bottom: 16px;
	padding: 0 8px;
}

.educms-video-frame {
	margin: 0;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.educms-video-player {
	width: 100%;
	height: auto;
	display: block;
	background: #000;
}

.educms-video-title {
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #1f2a5a;
}

/* Testimonials */
.educms-testimonials-section {
	position: relative;
	padding-bottom: 10px;
}

.educms-testimonials-heading {
	margin-bottom: 24px;
	padding-bottom: 16px;
}

.educms-testimonials-subtitle {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #777;
	font-weight: 400;
}

.educms-testimonials-widget {
	position: relative;
	width: 100%;
}

.educms-testimonials-viewport {
	overflow: hidden;
	width: 100%;
}

.educms-testimonials-track {
	display: flex;
	width: 100%;
	transition: transform 0.55s ease;
	will-change: transform;
}

.educms-testimonial-slide {
	flex: 0 0 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

.educms-testimonials-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

.educms-testimonials-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #dbe2ef;
	border-radius: 50%;
	background: #fff;
	color: #1f2a5a;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.educms-testimonials-btn:hover {
	background: #1f2a5a;
	border-color: #1f2a5a;
	color: #fff;
}

.educms-testimonials-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 16px;
}

.educms-testimonials-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.educms-testimonials-dot.is-active {
	background: #1f2a5a;
	transform: scale(1.15);
}

.educms-testimonial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	background: #fff;
	border: 1px solid #e8ecf4;
	border-radius: 14px;
	padding: 28px 24px 22px;
	height: 100%;
	box-shadow: 0 8px 24px rgba(31, 42, 90, 0.08);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.educms-testimonial-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1f2a5a, #3d5afe);
}

.educms-testimonial-badge {
	position: absolute;
	top: 18px;
	left: 20px;
	z-index: 2;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

.educms-testimonial-badge-student {
	background: #e8f5e9;
	color: #2e7d32;
}

.educms-testimonial-badge-alumni {
	background: #e3f2fd;
	color: #1565c0;
}

.educms-testimonial-quote {
	position: absolute;
	top: 8px;
	right: 16px;
	font-size: 72px;
	line-height: 1;
	color: #1f2a5a;
	opacity: 0.07;
	font-family: Georgia, "Times New Roman", serif;
	pointer-events: none;
	user-select: none;
}

.educms-testimonial-rating {
	margin: 28px 0 14px;
}

.educms-star {
	color: #f59e0b;
	font-size: 16px;
	letter-spacing: 2px;
}

.educms-star-empty {
	color: #ddd;
}

.educms-testimonial-message {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.75;
	color: #444;
	font-style: italic;
	margin: 0 0 20px;
}

.educms-testimonial-message p {
	margin: 0;
}

.educms-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #eef1f6;
}

.educms-testimonial-author figure {
	margin: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 52px;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.educms-testimonial-author figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.educms-testimonial-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1f2a5a, #3d5afe);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.educms-testimonial-meta h4 {
	margin: 0 0 3px;
	font-size: 16px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.educms-testimonial-detail {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #888;
}

@media (max-width: 767px) {
	.educms-testimonials-section {
		padding-bottom: 0;
	}

	.educms-testimonial-slide {
		padding: 0 4px;
	}

	.educms-testimonial-card {
		min-height: 260px;
		padding: 24px 20px 20px;
	}

	.educms-testimonial-quote {
		font-size: 56px;
		top: 6px;
		right: 12px;
	}

	.educms-testimonial-message {
		font-size: 14px;
		line-height: 1.65;
	}
}

/* Institute stats (students, faculty, visits) */
.educms-institute-stats {
	padding-top: 10px;
}

.educms-institute-stats-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.educms-stat-box {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 150px;
	padding: 28px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #1f2a5a 0%, #2d3f8f 100%);
	color: #fff;
	box-shadow: 0 10px 28px rgba(31, 42, 90, 0.18);
}

.educms-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	font-size: 22px;
}

.educms-stat-value {
	display: block;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.educms-stat-label {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.9;
}

@media (max-width: 767px) {
	.educms-institute-stats-inner {
		flex-direction: column;
	}

	.educms-stat-box {
		flex: 1 1 auto;
		width: 100%;
		min-height: 130px;
		padding: 24px 16px;
	}

	.educms-stat-value {
		font-size: 28px;
	}
}

/* Newspaper gallery (bento + lightGallery) */
.educms-newspaper-section {
	padding-top: 10px;
	width: 100%;
	clear: both;
}

.educms-bento-grid--newspaper {
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 160px;
	gap: 12px;
}

.educms-bento-grid--newspaper .educms-bento-item {
	background: #f8fafc;
	border: 1px solid #e8ecf4;
	box-shadow: 0 4px 16px rgba(31, 42, 90, 0.06);
}

.educms-bento-grid--newspaper .educms-bento-item .tg-gallery-link {
	background: #f8fafc;
}

.educms-bento-grid--newspaper .educms-bento-item .tg-gallery-link img {
	object-fit: contain;
	padding: 10px;
	box-sizing: border-box;
	background: #fff;
}

.educms-bento-grid--newspaper .educms-bento-item:nth-child(6n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.educms-bento-grid--newspaper .educms-bento-item:nth-child(6n + 6) {
	grid-column: span 4;
}

@media (max-width: 991px) {
	.educms-bento-grid--newspaper {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 140px;
	}

	.educms-bento-grid--newspaper .educms-bento-item:nth-child(6n + 6) {
		grid-column: span 3;
	}
}

@media (max-width: 767px) {
	.educms-bento-grid--newspaper {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 130px;
	}

	.educms-bento-grid--newspaper .educms-bento-item:nth-child(6n + 1) {
		grid-column: span 2;
		grid-row: span 2;
	}

	.educms-bento-grid--newspaper .educms-bento-item:nth-child(6n + 6) {
		grid-column: span 2;
	}
}

/* Leadership row */
.educms-leadership-row {
	margin: 0 -10px;
}

.educms-leadership-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 24px 18px;
	text-align: center;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.educms-leadership-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(53, 117, 211, 0.12);
}

.educms-leadership-card figure {
	margin: 0 auto 16px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #3575d3;
}

.educms-leadership-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.educms-leadership-meta h3 {
	margin: 10px 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.educms-leadership-meta p {
	margin: 0;
	font-size: 13px;
	color: #666;
}

.educms-role-badge {
	display: inline-block;
	background: #3575d3;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 20px;
}

/* Member grid cards */
.educms-member-grid .tg-faculty {
	margin-bottom: 24px;
	text-align: center;
}

.educms-member-grid .tg-faculty figure {
	margin: 0 0 12px;
	overflow: hidden;
	border-radius: 8px;
	background: #f7f7f7;
}

.educms-member-grid .tg-faculty figure img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.educms-member-grid .tg-faculty:hover figure img {
	transform: scale(1.04);
	opacity: 0.9;
}

.educms-member-grid .tg-facultyname h3 {
	margin: 0;
	font-size: 15px;
}

.educms-member-grid .tg-facultyname h3 a {
	color: #333;
	text-decoration: none;
}

.educms-member-grid .tg-facultyname h3 a:hover {
	color: #3575d3;
}

.educms-member-grid .tg-facultydesignation {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #888;
}

.educms-member-grid .tg-btnsbox {
	margin-top: 10px;
}

/* Faculty detail page */
.educms-faculty-detail .tg-facultydetail figure img {
	max-width: 280px;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.educms-faculty-detail .educms-faculty-message {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.educms-faculty-detail .educms-faculty-message h4 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.educms-faculty-detail .educms-faculty-message-body {
	font-size: 14px;
	line-height: 1.75;
	color: #555;
}

.educms-faculty-detail .educms-qualification {
	margin-top: 12px;
}
