/* Theme Custom Styles */

/* Global Bootstrap Theme Color Overrides */
:root {
	--bs-primary: #4ab2a9;
	--bs-primary-rgb: 74, 178, 169;
}

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.border-primary { border-color: var(--bs-primary) !important; }

.btn-primary, .wp-block-button__link {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
	color: #fff;
	border-radius: 50px;
	padding: 10px 25px;
	transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .wp-block-button__link:hover {
	background-color: #39958e; /* Slightly darker shade */
	border-color: #39958e;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(74, 178, 169, 0.3);
}

.btn-outline-primary {
	color: var(--bs-primary);
	border-color: var(--bs-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
	color: #fff;
}

/* Header and Navigation */
.site-header {
	/* Remove default shadow since navbar has it now */
}

/* Ensure the WP custom logo fits perfectly in the new navbar */
.custom-logo-link img.custom-logo {
	max-height: 65px;
	width: auto;
	object-fit: contain;
}

/* Improve Navbar Link Typography */
.navbar-light .navbar-nav .nav-link {
	color: #333;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 1rem;
	transition: color 0.2s ease;
}
.navbar-light .navbar-nav .nav-link:hover {
	color: #4ab2a9; /* Brand teal color on hover */
}

/* Enable Dropdown on Hover for Desktop */
@media (min-width: 992px) {
	.navbar .dropdown:hover .dropdown-menu {
		display: block;
		margin-top: 0;
		animation: fadeInDropdown 0.2s ease-in;
	}
}

/* Premium Mobile Offcanvas Menu Styling */
@media (max-width: 991.98px) {
	.offcanvas-body .navbar-nav .nav-link {
		padding: 1rem 1.5rem;
		border-bottom: 1px solid #f1f5f4;
		font-size: 1.1rem;
	}
	.offcanvas-body .navbar-nav .nav-item:last-child .nav-link {
		border-bottom: none;
	}
	.offcanvas-body .navbar-nav .nav-link:hover {
		background-color: #f8fbfa;
		color: #4ab2a9;
		padding-left: 2rem;
	}
}

@keyframes fadeInDropdown {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
	min-height: 60vh;
	display: flex;
	align-items: center;
}

/* Swiper Thumbnail adjustments */
.news-thumb {
	height: 200px;
	width: 100%;
	object-fit: cover;
}

/* UI Card Styling (Screenshot Match) */
.ui-card {
	border-radius: 20px !important;
	border: 1px solid #f8f9fa;
	box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ui-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Adjust Swiper navigation buttons */
.newsSwiper {
	padding-bottom: 70px !important;
	position: relative;
}
.newsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev {
	background-color: white;
	color: #4ab2a9;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	margin-top: -25px;
	top: 45%;
}
.newsSwiper .swiper-button-next:after,
.newsSwiper .swiper-button-prev:after {
	font-size: 1.2rem;
	font-weight: bold;
}
/* Position arrows slightly outside the container on large screens */
@media (min-width: 992px) {
	.newsSwiper .swiper-button-prev { left: 0px; }
	.newsSwiper .swiper-button-next { right: 0px; }
}

/* Custom Swiper Pagination */
.newsSwiper .swiper-pagination-bullet {
	background-color: #d1d5db;
	opacity: 1;
	width: 10px;
	height: 10px;
	margin: 0 6px !important;
}
.newsSwiper .swiper-pagination-bullet-active {
	background-color: #4ab2a9;
	transform: scale(1.2);
}

/* Custom Lightbox */
.custom-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.custom-lightbox.active {
	opacity: 1;
	visibility: visible;
}
.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90%;
	max-height: 90vh;
}
.lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 2;
	transition: background 0.3s ease;
}
.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.4);
}
.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 2;
	transition: background 0.3s ease;
}
.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.4);
}
.lightbox-prev {
	left: 30px;
}
.lightbox-next {
	right: 30px;
}
@media (max-width: 768px) {
	.lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 18px; }
	.lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 18px; }
	.lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 18px; }
}

/* WordPress Native Gallery Fixes */
.gallery {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 1.5rem;
	margin: 2rem 0;
	clear: both;
}
.gallery .gallery-item {
	margin: 0 !important;
	flex: 1 1 calc(33.333% - 1.5rem);
	min-width: 250px;
}
.gallery .gallery-item img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 1rem;
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 2rem 0;
}
.wp-block-gallery .wp-block-image {
	margin: 0 !important;
	min-width: 250px;
	flex: 1 1 calc(33.333% - 1.5rem);
}
