/*
    Body properties
*/
@font-face {
	font-family: "Monotype Corsiva";
	src: url("/assets/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 {
	/*height: 100%;  Let the image fill the parent carousel item */
	/*width: auto;  Maintain the aspect ratio */
	/*margin: auto;  Ensure the image is centered horizontally */
	/*object-fit: contain;  Prevent cropping */
	/*display: block;  Avoid inline-block issues */

	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; /* Adjust height for mobile */
	}
}

@media (max-width: 768px) {
	.carousel-item img {
		height: 50vh; /* Reduce height for smaller screens */
	}
}

@media (min-width: 769px) {
	.carousel-item img {
		height: 100vh; /* Larger height for larger screens */
	}
}

/* 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;
}
