html {
	scroll-padding-top: 200px;
	overflow-x: hidden;
}

html,
body {
	max-width: 100vw;
	overflow-x: hidden;
}

@media (max-width: 991px) {
	html {
		scroll-padding-top: 120px;
	}
}

@media (max-width: 767px) {
	html {
		scroll-padding-top: 100px;
	}
}

body {
	background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 50%, #e3f2fd 100%) !important;
	position: relative;
	min-height: 100vh;
}

body::before {
	content: '';
	position: fixed;
	top: -50px;
	right: -50px;
	width: 400px;
	height: 400px;
	background: rgba(85, 157, 120, 0.15);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

body::after {
	content: '';
	position: fixed;
	bottom: -100px;
	left: -100px;
	width: 500px;
	height: 500px;
	background: rgba(85, 157, 120, 0.12);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

main::before {
	content: '';
	position: fixed;
	top: 40%;
	right: -80px;
	width: 350px;
	height: 350px;
	background: rgba(85, 157, 120, 0.08);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

main::after {
	content: '';
	position: fixed;
	bottom: 20%;
	left: -60px;
	width: 300px;
	height: 300px;
	background: rgba(85, 157, 120, 0.1);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

section,
.container {
	position: relative;
	z-index: 1;
}

#home {
	background: transparent !important;
}

#home::before,
#home::after {
	display: none !important;
}

footer {
	background: transparent !important;
	padding-top: 60px !important;
	padding-bottom: 40px !important;
	position: relative;
	z-index: 2;
}

footer .container {
	max-width: 1400px;
	padding: 0 15px;
}

footer .footer-cards-row {
	display: flex;
	justify-content: center;
	gap: 25px;
	flex-wrap: nowrap;
	margin-bottom: 40px;
}

footer .footer-card-wrapper {
	flex: 0 1 auto;
	width: 240px;
}

footer .footer-info {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	padding: 30px 25px;
	border-radius: 12px;
	border: 1px solid rgba(85, 157, 120, 0.3);
	margin-bottom: 0;
	min-height: 200px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	width: 100%;
	height: 100%;
}

footer h2 {
	color: #2c3e50 !important;
	font-size: 1.2em;
	font-weight: 500;
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(85, 157, 120, 0.4);
}

footer .footer-link {
	list-style: none;
	padding: 0;
	margin: 0;
}

footer .footer-link li {
	margin-bottom: 12px;
}

footer .footer-link p {
	color: #555 !important;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
	white-space: nowrap !important;
}

footer .footerText {
	color: #555 !important;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
	white-space: nowrap !important;
}

footer .footer-link a {
	color: #559d78 !important;
	font-size: 13px;
	line-height: 1.5;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	position: relative;
	font-weight: 500;
	white-space: nowrap !important;
}

footer .footer-link a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: #559d78;
	transition: width 0.3s ease;
}

footer .footer-link a:hover {
	color: #2c3e50 !important;
	transform: translateX(3px);
}

footer .footer-link a:hover::after {
	width: 100%;
}

footer .footer-bottom {
	text-align: center;
	padding-top: 40px;
	margin-top: 40px;
	border-top: 1px solid rgba(85, 157, 120, 0.3);
}

footer .copyright-text p {
	color: #555;
	font-size: 14px;
	margin: 0;
}

@media (max-width: 1300px) {
	footer .footer-cards-row {
		flex-wrap: wrap;
		justify-content: center;
	}

	footer .footer-card-wrapper {
		width: 240px;
	}
}

@media (max-width: 991px) {
	footer .footer-info {
		min-height: auto;
		margin-bottom: 0;
	}

	footer h2 {
		font-size: 1.2em;
	}

	footer .footer-cards-row {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	footer .footer-card-wrapper {
		width: 100%;
		max-width: 500px;
	}
}

@media (max-width: 767px) {
	footer {
		padding-top: 40px !important;
		padding-bottom: 30px !important;
	}

	footer .footer-info {
		padding: 20px 15px;
		text-align: center;
	}

	footer h2 {
		font-size: 1.1em;
	}

	footer .footer-link p,
	footer .footerText,
	footer .footer-link a {
		white-space: normal !important;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}

@media (max-width: 991px) {
	html,
	body {
		overflow-x: hidden !important;
		max-width: 100vw !important;
	}

	.container,
	.container-fluid {
		overflow-x: hidden !important;
		max-width: 100% !important;
	}
}

@media (max-width: 767px) {
	.section-title,
	.section-title h1,
	.section-title h2,
	.section-title h3,
	#contact .section-title,
	#contact .section-title h2 {
		overflow: visible !important;
		line-height: 1.5 !important;
		padding-top: 15px !important;
		padding-bottom: 15px !important;
	}
}

/* Navbar alignment fix */
.custom-navbar .container.row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	max-width: 1400px !important;
	padding: 0 15px;
}

.custom-navbar .navbar-header {
	flex: 0 0 33.333%;
	width: 33.333%;
}

.custom-navbar .navbar-collapse {
	flex: 0 0 66.667%;
	width: 66.667%;
	display: flex !important;
	justify-content: center;
}

.custom-navbar .navbar-collapse.collapse {
	display: flex !important;
}

.custom-navbar .navbar-nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.custom-navbar .nav li a {
	padding: 10px 12px !important;
	margin: 0 3px !important;
	font-size: 13px !important;
	white-space: nowrap;
}

.custom-navbar .navbar-nav.navbar-nav-first {
	margin-left: 0 !important;
}

@media (min-width: 992px) and (max-width: 1200px) {
	.custom-navbar .nav li a {
		padding: 10px 10px !important;
		margin: 0 2px !important;
		font-size: 12px !important;
	}
}

@media (max-width: 991px) {
	.custom-navbar .navbar-nav {
		flex-wrap: wrap;
	}

	.custom-navbar .nav li a {
		padding: 10px 20px !important;
		margin: 5px 0 !important;
		font-size: 14px !important;
	}
}

@media (max-width: 767px) {
	.custom-navbar .container.row {
		flex-wrap: nowrap;
		padding: 0 !important;
	}

	.custom-navbar .navbar-header {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 0 15px !important;
		text-align: left !important;
	}

	.custom-navbar .navbar-toggle {
		order: 2 !important;
		margin-right: 0 !important;
		margin-left: auto !important;
		z-index: 1001 !important;
		position: relative;
	}

	.custom-navbar .navbar-header > a {
		order: 1 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		display: block !important;
		text-align: left !important;
	}

	.custom-navbar .navbar-header > a .logo {
		margin-left: 40px !important;
		margin-right: auto !important;
		display: block !important;
	}

	.custom-navbar .navbar-collapse {
		position: fixed !important;
		top: 0 !important;
		right: -100% !important;
		width: 80% !important;
		max-width: 300px !important;
		height: 100vh !important;
		background: rgba(255, 255, 255, 0.98) !important;
		backdrop-filter: blur(20px) !important;
		box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3) !important;
		overflow-y: auto !important;
		transition: right 0.3s ease-in-out !important;
		z-index: 1000 !important;
		padding-top: 80px !important;
		display: block !important;
	}

	.custom-navbar .navbar-collapse.in {
		right: 0 !important;
	}

	.custom-navbar .navbar-collapse .navbar-nav {
		flex-direction: column !important;
		width: 100% !important;
		align-items: stretch !important;
		display: flex !important;
	}

	.custom-navbar .navbar-collapse .navbar-nav > li {
		width: 100% !important;
		display: block !important;
		border-bottom: 1px solid rgba(85, 157, 120, 0.1);
	}

	.custom-navbar .navbar-collapse .navbar-nav > li > a {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
		padding: 18px 25px !important;
		margin: 0 !important;
		font-size: 16px !important;
		color: #2c3e50 !important;
		background: transparent !important;
		border-radius: 0 !important;
		transition: all 0.2s ease !important;
	}

	.custom-navbar .navbar-collapse .navbar-nav > li > a:hover,
	.custom-navbar .navbar-collapse .navbar-nav > li > a:focus {
		background: rgba(85, 157, 120, 0.1) !important;
		padding-left: 35px !important;
		color: #559d78 !important;
	}

	.custom-navbar .navbar-collapse:not(.in) {
		display: block !important;
	}

	/* Overlay backdrop */
	.custom-navbar .navbar-collapse.in::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}
}

.logo {
	margin-top: -25px;
}

.content-card {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	padding: 40px;
	border-radius: 15px;
	border: 1px solid rgba(85, 157, 120, 0.2);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
}

.section-title h2,
.page-title h1,
.page-title h2 {
	color: #2c3e50 !important;
	font-size: 2em;
	font-weight: 400;
}

#contact {
	padding-top: 180px !important;
	background: transparent !important;
}

.form-control,
input.form-control,
textarea.form-control,
select.form-control {
	background: rgba(255, 255, 255, 0.4) !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	border: 1px solid rgba(85, 157, 120, 0.3) !important;
	color: #2c3e50 !important;
}

.form-control:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
	background: rgba(255, 255, 255, 0.5) !important;
	border: 1px solid rgba(85, 157, 120, 0.5) !important;
	box-shadow: 0 0 0 3px rgba(85, 157, 120, 0.1) !important;
	outline: none !important;
}

.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
	color: rgba(85, 85, 85, 0.6) !important;
}

input[type="submit"],
button[type="submit"],
.btn-primary {
	background: #559d78 !important;
	border: none !important;
	color: white !important;
	font-weight: 500;
	transition: all 0.3s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.btn-primary:hover {
	background: #3d7d58 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(85, 157, 120, 0.3);
}

#blog-header {
	background: transparent !important;
	background-image: none !important;
	height: auto !important;
	padding-top: 10em !important;
	padding-bottom: 2em !important;
	margin-bottom: 0 !important;
}

#blog-header .overlay {
	display: none !important;
}

#blog-header h1,
#blog-header h3 {
	color: #2c3e50 !important;
}

#blog-header h3 {
	margin-bottom: 0 !important;
}

#blog-detail {
	background: transparent !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

#blog-detail .panel-heading {
	background: rgba(255, 255, 255, 0.4) !important;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(85, 157, 120, 0.3) !important;
}

#blog-detail .panel-body {
	background: rgba(255, 255, 255, 0.3) !important;
	backdrop-filter: blur(10px);
}

#blog-detail h2,
#blog-detail th,
#blog-detail td {
	color: #2c3e50 !important;
}

#contact .google-map {
	height: 340px;
	margin-top: 80px;
	display: flex;
	align-items: stretch;
}

#contact .google-map iframe {
	width: 100%;
	height: 340px;
	border-radius: 12px;
	border: 1px solid rgba(85, 157, 120, 0.3);
}

/* Navbar centering for all screen sizes */
.navbar .container {
	max-width: 90% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (min-width: 1200px) {
	.navbar .container {
		max-width: 85% !important;
	}
}

@media (min-width: 1600px) {
	.navbar .container {
		max-width: 80% !important;
	}
}

@media (min-width: 1920px) {
	.navbar .container {
		max-width: 75% !important;
	}
}

@media (min-width: 2560px) {
	.navbar .container {
		max-width: 70% !important;
	}
}
