/*
    Body properties
*/
@font-face {
	font-family: "Monotype Corsiva";
	src: url("../font/mntcorsiv.TTF") format("truetype");
	font-weight: normal;
	font-style: normal;
}

body {
	position: relative; /* */
	/* font-size: 0.8rem; */
	font-size: calc(0.7em + 0.3vw);
	background-color: #fff;
}

.navbar-nav {
	display: flex;
	justify-content: center;
	align-items: center; /* ensures vertical centering */
	width: 100%;
}

.nav-link {
	background: none;
	border-radius: 5px;
	position: relative;
	overflow: hidden;
	transition: color 0.3s ease-in-out;
	display: flex;
	align-items: center; /* vertical centering */
	gap: 8px;
	padding: 0.5rem 1rem;
	color: #fff !important;
}

.nav-link.active {
	font-weight: bolder;
}

/* Gradient hover effect */
.nav-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, #fff, #fff);
	z-index: -1;
	transition: all 0.3s ease-in-out;
}

.nav-link:hover::before {
	left: 0;
}

.nav-link:hover {
	color: #000 !important;
}

.nav-link-bottom {
	color: #000 !important;
}

.nav-item {
	text-align: center;
}

.navbar-logo-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 10px;
}

.navbar-logo {
	max-height: 50px;
	width: auto;
	object-fit: contain;
}

/* Add this to your stylesheet */
[id] {
	scroll-margin-top: 80px; /* adjust this to your navbar height */
}

/* Initial state - no background color */
.dropdown-item {
	background: none;
	transition: all 0.4s ease-in-out; /* Smooth transition effect */
}

/* Define the animation for hover */
@keyframes backgroundSlide {
	from {
		background-position: 0% 50%;
	}
	to {
		background-position: 100% 50%;
	}
}

/* Apply the animation on hover */
.dropdown-item:hover {
	background: linear-gradient(
		to right,
		#2558a2,
		#699ff0
	); /* Replace with your desired gradient colors */
	background-size: 200% 200%;
	animation: backgroundSlide 0.5s ease-in-out forwards;
	color: #fff; /* Optional: Change text color for contrast */
}

/* 
    Landing page image header
*/

.header-img-wrapper {
	/* margin-top: 20px; */
	display: flex; /* Enable Flexbox for centering */
	justify-content: center; /* Center the image horizontally */
	align-items: center; /* Center the image vertically */
	height: 40vh; /* Wrapper height */
	overflow: hidden; /* Prevent overflow */
}

.header-img {
	opacity: 0; /* Start invisible */
	height: 0; /* Start with zero height */
	width: auto; /* Maintain aspect ratio */
	position: relative;
	z-index: 1; /* Ensure the inner image is above the background */
	animation: growFade 2s ease-out forwards; /* Trigger the combined animation */
}

/* Keyframes for grow and fade */
@keyframes growFade {
	0% {
		opacity: 0; /* Fully transparent */
		height: 0; /* No height */
	}

	100% {
		opacity: 1; /* Fully visible */
		height: 70%; /* Final height relative to wrapper */
	}
}

/* 
    Carousel properties 
*/

.carousel {
	position: relative; /* Make sure the pseudo-element is positioned within the carousel */
	overflow: hidden; /* Prevent vignette overflow */
	width: 100%; /* Ensure the carousel spans the full width */
}

.carousel::before {
	content: ""; /* Create a pseudo-element for the vignette effect */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%; /* Make the vignette span the full width */
	height: 100%; /* Match the height of the carousel */
	background: radial-gradient(
		circle,
		rgba(0, 0, 0, 0.1) 70%,
		rgba(0, 0, 0, 0.3) 100%
	);
	pointer-events: none; /* Allow interaction with carousel items */
	z-index: 2; /* Ensure the vignette appears above the images */
}

.carousel-item {
	height: 92vh; /* Set the height based on the viewport */
}

.carousel-item img {
	width: 100vw; /* full viewport width */
	height: 92vh; /* optional: full screen height */
	object-fit: cover;
}

#carouselContainer {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

@media (max-width: 768px) {
	/* Target screens 768px wide and smaller (mobile devices) */
	.carousel-item {
		height: 50vh;
	}
	.carousel-full .carousel-item {
		height: 22vh;
	}
	.carousel-full .carousel-item img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center 0%;
	}
}

@media (max-width: 768px) {
	.carousel-item img {
		height: 50vh; /* leave as-is — doesn't apply to your carousels */
	}
}

@media (min-width: 769px) {
	.carousel-item img {
		width: 100vw;
		height: 100vh;
		object-fit: cover;
	}
}

/* Restrict these styles ONLY to the 50%-width carousel */
.half-carousel {
	width: 100%;
	height: auto;
	position: relative;
}

.half-carousel .carousel-inner {
	height: 100%;
}

.half-carousel .carousel-item {
	height: 400px; /* auto; or any size you like */
}

.half-carousel img {
	width: 100%;
	height: 100%; /*auto;*/
	object-fit: contain;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}

/* Restore working controls */
.half-carousel .carousel-control-prev,
.half-carousel .carousel-control-next {
	width: 40px;
	height: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}

.half-carousel .carousel-control-prev {
	left: 10px;
}

.half-carousel .carousel-control-next {
	right: 10px;
}

.half-carousel .carousel-control-prev-icon,
.half-carousel .carousel-control-next-icon {
	filter: drop-shadow(0 0 3px black);
}

.custom-carousel {
	/* border-radius: 20px; */
	overflow: hidden; /* forces children to follow the rounded corners */
}

.custom-carousel img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.carousel-indicators button {
	width: 12px !important;
	height: 12px !important;
	border-radius: 50%;
	background-color: #fff;
	border: none;
	margin: 0 6px;
}

.carousel-indicators .active {
	background-color: #4e7bb6;
	opacity: 1;
}

.carousel-indicators button:not(.active) {
	opacity: 0.5;
}

/*
    Animation Properties
*/
.fade-in {
	opacity: 0; /* Start invisible */
	transform: translateY(20px); /* Optional: Add a slight vertical movement */
	transition:
		opacity 0.8s ease-out,
		transform 0.8s ease-out; /* Smooth transition */
}

.fade-in.visible {
	opacity: 1; /* Fully visible */
	transform: translateY(0); /* Reset vertical movement */
}

/*
    Text properties
*/

.header {
	color: #194d91;
	font-weight: bold;
	/* padding: 20px 0 0 0; */
}
.sub-header {
	font-weight: bold;
	/* padding: 20px 0 0 0; */
}

/*custom bg*/

/*
    Image classes
*/

.section-img {
	height: 100%; /* Ensures the image fills the height of the parent div */
	min-height: 40vh;
	width: 100%; /* Ensures the image fills the width of the parent div */
	object-fit: cover; /* Fills the div without distorting the image, but may crop parts */
	display: block; /* Removes any gaps caused by inline elements */
}

.section-img-30 {
	height: 30vh; /* Ensures the image fills the height of the parent div */
	width: 100%; /* Ensures the image fills the width of the parent div */
	object-fit: cover; /* Fills the div without distorting the image, but may crop parts */
	display: block; /* Removes any gaps caused by inline elements */
}

/* 
    Locator Images
*/

.card-img-top {
	width: 100%;
	height: 20vh;
	object-fit: cover;
	transition: transform 0.3s ease; /* Adds a smooth transition effect */
}

.card-img-top:hover {
	transform: scale(1.1); /* Slightly zooms in the image */
}

/* .section-img {
	border-radius: 10px;
} */

/*
    Card Properties
*/

.update-card {
	height: 20vh; /* Sets a fixed height for all cards */
	display: flex;
	flex-direction: column; /* Stacks header and body content */
	justify-content: space-between; /* Keeps content spaced properly */
	overflow: hidden; /* Hides overflow beyond the card's height */
}

.update-card .card-body {
	overflow: hidden; /* Hides overflowing content */
	display: -webkit-box; /* Enables line clamping */
	-webkit-line-clamp: 4; /* Limits text to 4 lines (adjust as needed) */
	-webkit-box-orient: vertical; /* Keeps text vertical */
	line-height: 1.5; /* Adjusts line spacing for readability */
	max-height: calc(30vh - 50px); /* Ensures text fits within card height */
}

.card-custom-true {
	background-color: #fff;
	/* padding: 20px; */
	/* border-radius: 50px 0 50px 0; */
	color: #194d91;
	font-family: "Monotype Corsiva", "Comic Sans MS", cursive, serif;
	text-align: center;
}
.card-custom-true-alternate {
	background-color: #194d91;
	font-family: "Monotype Corsiva", "Comic Sans MS", cursive, serif;
	/* padding: 20px; */
	/* border-radius: 50px 0 50px 0; */
	text-align: center;
	color: #000;
}
.card-custom-false {
	/* background-color: #9dc3e6; */
	background-color: #fff;
	text-align: center;
	/* padding: 20px; */
	/* border-radius: 50px 0 50px 0; */
	color: #000;
}

.inner-card-custom-true {
	/* background-color: #9dc3e6; */
	background-color: #fff;
	padding: 20px;
	border-radius: 0 50px 0 50px;
	color: #000;
}

.inner-card-custom-false {
	/* background-color: #deebf7; */
	background-color: #fff;
	padding: 20px;
	border-radius: 50px 0 50px 0;
	color: #000;
}

/* ============================================================
   Innovations & Engagements cards — mobile
   Keeps the desktop image-beside-text layout, just scaled down,
   one card per row.
   ============================================================ */
@media (max-width: 768px) {
	/* one card per row */
	#updateCards_cardContainer > [class*="col-"] {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}

	/* keep image and text side by side; never wrap the text column out
	   of the card (.card has overflow:hidden, which would clip it) */
	#updateCards_cardContainer .card .row.g-0 {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	/* image column fills the card height without dictating it */
	#updateCards_cardContainer .card .row.g-0 > .col-md-4 {
		position: relative !important;
		width: 38% !important;
		max-width: 38% !important;
		flex: 0 0 38% !important;
		min-height: 130px;
		overflow: hidden;
	}

	#updateCards_cardContainer .card .row.g-0 > .col-md-4 img {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}

	#updateCards_cardContainer .card .row.g-0 > .col-md-8 {
		width: 62% !important;
		max-width: 62% !important;
		flex: 0 0 62% !important;
	}

	#updateCards_cardContainer .card-body {
		padding: 0.6rem !important;
	}

	#updateCards_cardContainer .card-title {
		font-size: 0.8rem !important;
		margin-bottom: 0.3rem !important;
	}

	#updateCards_cardContainer .card-text {
		font-size: 0.7rem !important;
		line-height: 1.3 !important;
	}

	#updateCards_cardContainer .see-more-btn {
		font-size: 0.7rem !important;
	}

	#updateCards_cardContainer .text-body-secondary {
		font-size: 0.65rem !important;
	}
}

@media (max-width: 480px) {
	#updateCards_cardContainer .card .row.g-0 > .col-md-4 {
		min-height: 115px;
	}

	#updateCards_cardContainer .card-title {
		font-size: 0.72rem !important;
	}

	#updateCards_cardContainer .card-text {
		font-size: 0.64rem !important;
	}
}

/* ============================================================
   Mobile Responsive — copied from responsive.css (navbar rules excluded)
   ============================================================ */
@media (max-width: 768px) {
	.section-img {
		min-height: unset !important;
		object-fit: cover !important;
	}

	.carousel::before {
		display: none !important;
	}

	.carousel-caption {
		position: relative !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		background: rgba(0, 0, 0, 0.7);
		padding: 10px !important;
		font-size: 0.8rem;
	}

	.carousel-caption h5 {
		font-size: 0.9rem;
	}

	.card-img-scroller {
		height: 120px !important;
		padding: 5px !important;
	}

	.skeleton-two-col {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.card-img-scroller {
		height: 80px !important;
	}
}



