:root {
	--home-header-height: 76.22px;
	--home-mobile-search-height: 0px;
	--home-content-offset: calc(var(--home-header-height) + var(--home-mobile-search-height));
	--home-viewport-height: 100vh;
}

@supports (height: 100dvh) {
	:root {
		--home-viewport-height: 100dvh;
	}
}

html.home-page,
body.home-page {
	height: var(--home-viewport-height);
	overflow: hidden;
}

body.home-page {
	min-height: 0;
}

.home-mobile-search {
	padding: 1rem;
	position: static;
	background: transparent;
}

.listing-sidebar {
	max-height: calc(var(--home-viewport-height) - var(--home-header-height));
	z-index: 100;
}

.home-search-field {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 999px;
	padding: 0.5rem 0.75rem;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	flex: 1;
}

.home-search-field .home-search-icon {
	color: var(--color-primary);
	font-size: 0.95rem;
	padding-left: 0.25rem;
}

.home-search-input {
	border: none;
	background: transparent;
	flex: 1;
	font-size: 0.95rem;
	color: var(--color-text);
}

.home-search-input:focus {
	outline: none;
}

.home-search-action {
	border: none;
	background: rgba(14, 165, 233, 0.08);
	color: var(--color-primary);
	border-radius: 999px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-search-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.home-location-button {
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: #fff;
	color: var(--color-primary);
	border-radius: 999px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	flex-shrink: 0;
}

.home-filter-menu {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	padding: 0.75rem 0 0.25rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.home-filter-menu:empty {
	display: none;
}

.home-filter-menu::-webkit-scrollbar {
	display: none;
}

.home-filter-menu .btn-outline-secondary-nav {
	flex: 0 0 auto;
	width: auto;
	margin-bottom: 0;
	padding: 0.45rem 0.9rem;
	white-space: nowrap;
}

.scroll-indicator {
		display: none;
	}
	/* Text truncation for job titles and descriptions */
	.job-title,
	.service-description,
	.job-title-iv {
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		line-height: 1.5em;
		height: 3em;
		/* 2 lines of 1.5em line height */
	}

	.job-title,
	.service-description {
		-webkit-line-clamp: 2;
		/* limits the text to 2 lines */
	}

	.job-title-iv {
		-webkit-line-clamp: 2;
		font-weight: 700 !important;
		font-size: 14px;
	}

	/* Enhanced Card Styling - Modern Updates */
	.item {
		transition: all 0.3s ease;
		border: none;
		box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
		background-color: #fff;
		position: relative;
		overflow: hidden;
	}

	.item::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 4px;
		background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.5s ease;
		z-index: 2;
	}

	.item:hover::before {
		transform: scaleX(1);
	}

	.item:hover {
		box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
		transform: translateY(-5px);
	}

	.item img[data-format="img"] {
		transition: all 0.5s ease;
	}

	.item:hover img[data-format="img"] {
		filter: brightness(1.05);
	}

	/* Image container styling */
	.img-container {
		position: relative;
		overflow: hidden;
	}

	/* Price tag styling */
	.price-tag {
		font-weight: 700;
		color: #1a1a1a;
		font-size: 16px;
		margin: 0;
		display: flex;
		align-items: center;
	}

	.price-tag::before {
		content: '';
		display: inline-block;
		width: 6px;
		height: 6px;
		background-color: var(--color-primary);
		border-radius: 50%;
		margin-right: 6px;
	}

	/* Listing Count Badge */
	.listing-count-badge {
		background-color: rgba(14, 165, 233, 0.1);
		color: var(--color-primary);
		padding: 4px 8px;
		border-radius: 12px;
		font-size: 12px;
		font-weight: 600;
		display: inline-flex;
		align-items: center;
	}

	/* Crypto icons container */
	.crypto-icons {
		display: flex;
		gap: 6px;
		align-items: center;
	}

	.crypto-badge {
		width: 28px;
		height: 28px;
		border-radius: 50%;
		background: rgba(250, 250, 250, 0.9);
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.2s ease;
		box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
	}

	.btc-badge {
		box-shadow: rgba(247, 147, 26, 0.2) 0px 0px 0px 2px inset;
	}

	.arrr-badge {
		box-shadow: rgba(98, 126, 234, 0.2) 0px 0px 0px 2px inset;
	}

	.xmr-badge {
		box-shadow: rgba(255, 102, 0, 0.2) 0px 0px 0px 2px inset;
	}

	.crypto-badge:hover {
		transform: scale(1.15) rotate(5deg);
	}

	.crypto-badge img {
		width: 20px;
		height: 20px;
	}

	/* Card title styling */
	.card-title-wrapper {
		padding: 12px 16px 4px;
		border-radius: 0 0 4px 4px;
	}

	/* Card metadata styling */
	.card-meta {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 8px 16px;
		color: #6c757d;
		font-size: 13px;
	}

	/* Location badge styling */
	.location-badge {
		font-size: 12px;
		color: #6c757d;
		display: flex;
		align-items: center;
		gap: 4px;
		padding: 3px 0;
		transition: color 0.2s ease;
	}

	.item:hover .location-badge {
		color: var(--color-primary);
	}

	.location-badge svg {
		width: 12px;
		height: 12px;
		opacity: 0.7;
	}

	/* User profile in card */
	.user-profile {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 10px 16px;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}

	.user-profile-img {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		object-fit: cover;
		border: 2px solid #fff;
		box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
	}

	.user-name {
		font-size: 13px;
		font-weight: 600;
		color: #444;
		margin: 0;
	}

	/* Rating display */
	.rating-display {
		display: flex;
		align-items: center;
		gap: 5px;
		padding: 3px 8px;
		background-color: rgba(255, 193, 7, 0.1);
		border-radius: 12px;
		margin-left: auto;
	}

	.rating-star {
		color: #ffc107;
	}

	/* Global/Local tag styling */
	.visibility-tag {
		position: absolute;
		top: 10px;
		right: 10px;
		font-size: 11px;
		font-weight: 600;
		padding: 3px 8px;
		border-radius: 12px;
		z-index: 1;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	}

	.global-tag {
		background-color: rgba(25, 135, 84, 0.1);
		color: #198754;
	}

	.local-tag {
		background-color: rgba(13, 110, 253, 0.1);
		color: #0d6efd;
	}

	/* Crypto listing specific */
	.crypto-listing-card {
		background-color: #fff;
		text-align: center;
		width: 210px;
	}

	.crypto-listing-card img {
		padding: 10px;
		transition: all 0.3s ease;
		width: 170px;
		height: 170px;
	}

	.crypto-listing-card:hover img {
		transform: scale(1.05);
	}

	.crypto-listing-card .card-title-wrapper {
		padding: 10px 12px 6px;
	}

	.crypto-listing-card .listing-count-badge {
		font-size: 11px;
		padding: 3px 7px;
	}

	.crypto-name {
		font-size: 14px;
		font-weight: 700;
		color: #212529;
		margin: 6px 0 4px;
	}

	.crypto-data {
		font-size: 13px;
		color: #6c757d;
		margin-bottom: 5px;
	}

	.crypto-price {
		font-weight: 600;
		color: var(--color-primary);
		font-size: 13px;
	}

	/* Service Card */
	.service-card .service-details {
		padding: 0 16px 12px;
	}

	/* Price area */
	.price-area {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 16px;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}

	/* Rate info */
	.rate-info {
		font-weight: 600;
		color: #212529;
	}

	.hourly-tag {
		font-size: 12px;
		color: #6c757d;
		font-weight: 400;
	}

	/* Footer card styles */
	.card-footer {
		background-color: #f8f9fa;
		padding: 10px 16px;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
		font-size: 12px;
		color: #6c757d;
	}

	/* Hover shine effect */
	.shine-effect {
		position: relative;
		overflow: hidden;
	}

	.shine-effect::after {
		content: '';
		position: absolute;
		top: -50%;
		left: -60%;
		width: 20%;
		height: 200%;
		background: rgba(255, 255, 255, 0.2);
		transform: rotate(30deg);
		transition: all 0.6s ease;
		opacity: 0;
	}

	.item:hover .shine-effect::after {
		left: 130%;
		opacity: 1;
	}

	/* Keep all other styles from the previous update */
	/* ... existing styles ... */

	/* Left sidebar menu updates */
	.left-bar-nav {
		background-color: rgba(255, 255, 255, 0.88);
		border-right: 1px solid rgba(226, 232, 240, 0.8);
		backdrop-filter: blur(8px);
	}

	.btn-outline-secondary-nav {
		position: relative;
		transition: all 0.2s ease;
		border-radius: 6px;
		padding: 8px 12px;
		font-size: 14.5px;
		overflow: hidden;
	}

	.btn-outline-secondary-nav:hover {
		background-color: rgba(14, 165, 233, 0.08);
		color: var(--color-primary);
		padding-left: 15px;
	}

	.btn-outline-secondary-nav::after {
		content: "";
		position: absolute;
		width: 0;
		height: 2px;
		bottom: 0;
		left: 0;
		background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
		transition: width 0.3s ease;
	}

	.btn-outline-secondary-nav:hover::after {
		width: 30%;
	}

	.onClick_button {
		background-color: rgba(14, 165, 233, 0.16);
		color: var(--color-primary);
		font-weight: 500;
	}

	/* Section headers */
	#list_body h4 {
		position: relative;
		padding-bottom: 10px;
		font-weight: 600;
		margin-left: 15px;
	}

	#list_body h4::after {
		content: "";
		position: absolute;
		width: 50px;
		height: 3px;
		background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
		bottom: 0;
		left: 0;
	}

	/* Spacing */
	.job-title-iv-parent {
		margin: 12px 0 8px 0;
	}

	.service-description-parent {
		margin-bottom: 12px;
	}

	/* Autocomplete styling */
	.input-container {
		position: relative;
	}

	.autocomplete-items {
		position: absolute;
		border: 1px solid rgba(0, 0, 0, 0.1);
		box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.1);
		border-top: none;
		background-color: #fff;
		z-index: 99;
		top: calc(100% + 2px);
		left: 0;
		right: 0;
		border-radius: 6px;
	}

	.autocomplete-items div {
		padding: 10px;
		cursor: pointer;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.autocomplete-items div:hover,
	.autocomplete-items .autocomplete-active {
		background-color: rgba(14, 165, 233, 0.12);
	}

	/* Clear button */
	.clear-button {
		color: rgba(0, 0, 0, 0.4);
		cursor: pointer;
		position: absolute;
		right: 10px;
		top: 0;
		height: 100%;
		display: none;
		align-items: center;
	}

	.clear-button.visible {
		display: flex;
	}

	.clear-button:hover {
		color: rgba(0, 0, 0, 0.6);
	}

	/* Modal and item styling */
	.modal {
		--bs-modal-width: 600px !important;
	}

	/* Rating styling */
	.up-rating {
		display: inline-block;
		white-space: nowrap;
		line-height: 0;
	}

	.up-rating .up-rating-foreground {
		gap: 0px;
		position: absolute;
		overflow: hidden;
	}

	.vertical-align-text-bottom {
		vertical-align: text-bottom;
	}

	.up-popper-trigger {
		cursor: pointer;
	}

	/* Scrollbar styling */
	::-webkit-scrollbar {
		width: 8px;
	}

	::-webkit-scrollbar-track {
		background: #f8f9fa;
		border-radius: 8px;
	}

	::-webkit-scrollbar-thumb {
		background: #cccccc;
		border-radius: 8px;
		background-clip: padding-box;
	}

	::-webkit-scrollbar-thumb:hover {
		background: #aaaaaa;
	}

	/* Offcanvas and responsive layout */
	.offcanvas.offcanvas-start {
		--bs-offcanvas-width: 280px !important;
	}

	.offcanvas-body {
		padding-top: 0;
	}

	/* Category headers */
	.category-header {
		font-size: 16px;
		font-weight: 600;
		color: var(--color-text);
		margin-bottom: 15px;
		padding-bottom: 8px;
		border-bottom: 2px solid rgba(14, 165, 233, 0.2);
	}

	.left-bar-nav-container {
		padding-left: 15px;
		padding-right: 15px;
	}

	#list_body {
		min-height: calc(var(--home-viewport-height) - var(--home-content-offset));
		max-height: calc(var(--home-viewport-height) - var(--home-content-offset));
		box-sizing: border-box;
		overflow-y: auto;
	}

	@media (min-width: 576px) {
		#list_body {
			width: calc(100vw - 280px);
			padding: 0 15px;
		}
	}

	@media (max-width: 576px) {
		#list_body {
			padding: 0 10px;
		}
	}

	@media (max-width: 767.98px) {
		.left-bar-nav-container {
			padding-left: 0;
			padding-right: 0;
		}
		.left-bar-nav {
			position: absolute;
			background: white;
			padding: 0 !important;
			left: 10px;
			margin-top: 10px;
			border-radius: 8px;
			box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
		}

		#list_body {
			width: 100%;
			padding-top: 0;
		}

		/* Horizontal scrolling for mobile */
		.items-container {
			display: flex !important;
			flex-wrap: nowrap !important; 
			overflow-x: auto !important;
			overflow-y: hidden !important;
			-webkit-overflow-scrolling: touch;
			scroll-behavior: smooth;
			padding-bottom: 10px;
			margin-bottom: 5px;
			scrollbar-width: none; /* Firefox */
			justify-content: flex-start !important;
			padding-left: 15px;
		}
		
		.items-container::-webkit-scrollbar {
			display: none; /* Chrome, Safari, Edge */
		}
		
		.items-container .item {
			flex: 0 0 auto !important;
			width: 246px !important;
			margin-right: 10px !important;
			display: block !important;
		}
		
		.items-container .item:last-child {
			margin-right: 15px !important;
		}
		
		/* Section headers margin adjustment for mobile */
		#list_body h4 {
			margin-left: 15px;
			margin-bottom: 15px;
		}
		
		/* Add visible indicator that content scrolls */
		.scroll-indicator {
			position: absolute;
			right: 10px;
			top: 50%;
			transform: translateY(-50%);
			width: 30px;
			height: 30px;
			background: rgba(255,255,255,0.8);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0 2px 5px rgba(0,0,0,0.1);
			z-index: 5;
			animation: pulse 2s infinite;
			pointer-events: auto;
			cursor: pointer;
		}
		
		@keyframes pulse {
			0% { opacity: 0.8; transform: scale(1); }
			50% { opacity: 1; transform: scale(1.1); }
			100% { opacity: 0.8; transform: scale(1); }
		}
		
		.section-container {
			position: relative;
		}

		/* Fix broken flexbox in mobile */
		.d-flex.flex-wrap.justify-content-center.justify-content-sm-start {
			justify-content: flex-start !important;
		}
	}

	@media (max-width: 575.98px) {
		/* Keep the sidebar offcanvas above the Bootstrap backdrop on phones. */
		.listing-sidebar {
			z-index: 1100;
		}

		.left-bar-nav {
			backdrop-filter: none;
		}
	}

	.notification-item:hover {
		background-color: #f8f9fa;
	}

	/* Section margins */
	#popular_crypto_listings,
	#popular_services,
	#popular_items,
	#popular_vehicles {
		padding-bottom: 25px;
		margin-bottom: 10px;
	}

/* Message list styling */
	#message_box {
	  transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
	
	#message_box:hover {
	  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	}
	
	.conversation-item {
	  background-color: white;
	  transition: all 0.3s ease;
	}
	
	.conversation-item:hover {
	  background-color: rgba(14, 165, 233, 0.05);
	  transform: translateX(5px);
	}
	
	.conversation-item img {
	  transition: transform 0.3s ease;
	}
	
	.conversation-item:hover img {
	  transform: scale(1.05);
	}
	
	/* Empty state styling */
	.text-muted i {
	  opacity: 0.7;
	}
	
	/* Scrollbar styling */
	#unread_messages::-webkit-scrollbar {
	  width: 6px;
	}
	
	#unread_messages::-webkit-scrollbar-track {
	  background: #f1f1f1;
	  border-radius: 5px;
	}
	
	#unread_messages::-webkit-scrollbar-thumb {
	  background: rgba(14, 165, 233, 0.3);
	  border-radius: 5px;
	}
	
	#unread_messages::-webkit-scrollbar-thumb:hover {
	  background: rgba(14, 165, 233, 0.5);
	}
	
	/* Unread indicator */
	.unread-indicator {
	  width: 8px;
	  height: 8px;
	  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
	  border-radius: 50%;
	  display: inline-block;
	  margin-left: 5px;
	}
	
	/* Responsive adjustments */
	@media (max-width: 768px) {
	  #message_box {
		width: 100% !important;
		border-radius: 0;
	  }
	  
	  .conversation-item {
		padding: 10px 12px;
	  }
	}
	
	/* Add animation for message items */
	@keyframes fadeInRight {
	  from {
		opacity: 0;
		transform: translateX(-10px);
	  }
	  to {
		opacity: 1;
		transform: translateX(0);
	  }
	}
	
	.conversation-item {
	  animation: fadeInRight 0.3s ease forwards;
	  animation-delay: calc(var(--animation-order, 0) * 0.05s);
	}

.search-panel-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    z-index: 1200;
}

body.search-panel-open {
    overflow: hidden;
}

body.search-panel-open #list_body {
    overflow: hidden;
}

.search-panel-overlay.is-open {
    display: flex;
}

.search-panel {
    width: min(720px, 92vw);
    max-height: min(70vh, 680px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-panel-overlay.is-open .search-panel {
    opacity: 1;
    transform: translateY(0);
}

.search-header,
.search-body,
.search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-header {
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
}

.search-panel-icon {
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-panel-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
    padding: 0.35rem 0;
}

.search-panel-input::placeholder {
    color: var(--color-muted);
}

.search-panel-close {
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    color: var(--color-muted);
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-panel-close:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--color-primary);
    transform: rotate(6deg);
}

.search-body {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 0.5rem 0;
    position: relative;
}

.search-panel-status {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.9rem;
}

.search-panel-loading {
    display: none;
    padding: 1.5rem 0;
    align-items: center;
    justify-content: center;
}

.search-panel-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem 1rem;
}

.search-panel-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-panel-section-title {
    padding: 0.5rem 0.95rem 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--color-muted);
}

.search-panel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-panel-item:hover {
    background: rgba(14, 165, 233, 0.08);
    transform: translateX(2px);
}

.search-panel-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.search-panel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-panel-thumb--placeholder {
    background: rgba(14, 165, 233, 0.12);
    color: var(--color-primary);
}

.search-panel-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.search-panel-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-panel-item-meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0.1rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-footer {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
    gap: 0.75rem;
}

.search-panel-submit {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-panel-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(14, 165, 233, 0.22);
}

@media (max-width: 767.98px) {
    .search-panel-overlay {
        padding: 0;
        align-items: stretch;
    }

    .search-panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .search-header {
        padding: 1rem;
    }

    .search-panel-results {
        padding-bottom: 1.5rem;
    }

    .search-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .search-panel-submit {
        width: 100%;
    }
}

@keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes loading-pulse {
        0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(20, 184, 166, 0); }
        50% { transform: scale(1.5); box-shadow: 0 0 20px rgba(20, 184, 166, 0.5); }
    }

    @keyframes progress {
        0% { width: 0%; left: 0; }
        50% { width: 100%; left: 0; }
        50.01% { width: 100%; left: auto; right: 0; }
        100% { width: 0%; left: auto; right: 0; }
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

/* About Us Page Custom Styling */
.aboutus-container {
    background-color: var(--color-surface-muted);
    position: relative;
    overflow: hidden;
}

.aboutus-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmMGYwZjAiPjwvcmVjdD4KPC9zdmc+');
    opacity: 0.8;
    z-index: 0;
}

.aboutus {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.title-underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.about-intro {
    font-size: 1.2rem !important;
    line-height: 1.8;
    color: var(--color-muted);
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-image-slice: 1;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 20px !important;
    margin-bottom: 15px;
}

.section-title {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    font-size: 1.75rem !important;
}

.info-card p {
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem !important;
}

.join-us-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    background-image: linear-gradient(to right bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.95)), 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KPGRlZnM+CiAgPHBhdHRlcm4gaWQ9InBhdHRlcm4iIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+CiAgICA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMTAiIGhlaWdodD0iMTAiLz4KICAgIDxjaXJjbGUgZmlsbD0icmdiYSg3MCw2MCwxNTAsMC4xKSIgY3g9IjEiIGN5PSIxIiByPSIxIi8+CiAgPC9wYXR0ZXJuPgo8L2RlZnM+CjxyZWN0IGZpbGw9InVybCgjcGF0dGVybikiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIi8+Cjwvc3ZnPg==');
}

.thank-you {
    font-style: italic;
    color: var(--color-muted);
    font-size: 1.1rem !important;
}

.cta-buttons .btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(43, 88, 118, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem !important;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 88, 118, 0.4);
}

.cta-buttons .btn-outline-secondary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transition: all 0.3s ease;
    font-size: 1rem !important;
}

.cta-buttons .btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .aboutus {
        margin-top: 2rem !important;
    }

    .about-intro {
        font-size: 1.1rem !important;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .aboutus-container {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .aboutus-header {
        padding: 1.25rem !important;
    }

    .aboutus-title-area .display-4 {
        font-size: 2.2rem;
    }

    .title-underline {
        width: 60px;
    }

    .info-card {
        padding: 20px;
        border-radius: 14px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px !important;
    }

    .section-title {
        font-size: 1.4rem !important;
        margin-bottom: 12px;
    }

    .join-us-card {
        padding: 2rem 1.5rem !important;
    }

    .thank-you {
        font-size: 1rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Animation styles */
.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeIn {
    opacity: 1;
    transform: translateY(0);
}
