h3 {
	font-size: 28px;
}


@media (max-height:1000px) {
    .home-header-box {
        margin-top:60px!important;
    }
}

.flexit {
    display:flex;
}

.label-text {
    font-family:'Barlow Condensed';
    font-size:18px;
    color: #626262;
    font-weight: 400;
}

.section-header {
    font-size:46px;
    font-family:"Barlow Condensed", sans-serif;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.secondary-header {
    font-size:32px;
    font-weight: 500;
    font-family:"Barlow Condensed", sans-serif;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-subheader {
    font-family:'Barlow Condensed'; 
    color:#6C6C6C; font-size:28px; 
    margin-bottom:10px; 
    text-transform:uppercase; 
    letter-spacing:1px;
}

.product-highlights-txt {
    font-size:20px; 
    letter-spacing: 1px; color:#545454; 
    font-weight:500; 
    margin-left:30px;
    font-family:"Barlow Condensed";
    text-transform: uppercase;
}

.bg-standard {
    background-repeat:no-repeat;
    background-size:cover;
}

.number-margin {
    margin-top:0px;
}

.number-box {
    text-align:center; 
    padding:40px 0;
    border-right:2px solid #D2D2D2; 
    font-family:"Barlow Condensed"
}

.contact-bar {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/media/euenxpn4/atmos-mural.png'); 
    background-repeat:no-repeat; 
    background-size:cover; 
    background-position:14% 34%; 
    padding:100px 0px;
}

.hero-home-number {
    background-color: #FA9855;
    border-radius: 400px;
    color: #FFFF;
    padding: 4px 23px;
    margin: 10px 20px 10px 0px;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
}

.hero-home-number2 {
    background-color: #FA9855;
    border-radius: 400px;
    color: #FFFF;
    padding: 4px 19px;
    margin: 10px 20px 10px 0px;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
}

.formfield {
    border:1px solid #cccccc; border-radius:4px
}

.socal-blue {
 	color: #0C5D96;
 	letter-spacing: 1px;
 }
 
 .socal-orange {
 	color: #FA9855;
 	letter-spacing: 1px;
 }
 
 .why-p {
     text-transform:uppercase; 
     color:#FFF; 
     font-family:'Barlow Condensed'; 
     font-size:36px; 
     text-align:center; 
     letter-spacing:2px; 
     margin:auto; 
     padding:20px;
 }
 
 .why-h3 {
     text-transform:uppercase; 
     letter-spacing:1px; 
     color:#FFFFFF; 
     font-weight:400; 
     margin: 16px 0px 0px 0px;
 }
 
 .contact-p {
    color:#FFFFFF; 
    margin-top:15px; 
    font-weight:500; 
    font-size:18px;
}

.contact-box {
    position:unset;
    top:0px;
    margin-top:50px;
}

.contact-form-box {
    background-color:#FFF; 
    border-radius:5px;
    margin-bottom:20px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); 
    border:1px solid #EFEFEF; 
    min-height:430px; 
    padding-left:0px; 
    padding-right:0px;
}

.contact-inner-box {
    font-size:28px; 
    padding:43px 25px 0px 25px; 
    background-color:#FFF; 
    letter-spacing:0px;
    text-align: left;
}
 
 /* blog css */
 .blog-header {
     font-family:"Barlow Condensed";
     font-size: 24px;
     letter-spacing:1px;
     color: #0C5D96;
     text-transform: uppercase;
     margin-top: 10px;
     line-height: 34px;
 }
 
 .blog-header a:hover{
     color:#FA9855;
 }
 
 .blog-description-preview {
     max-height: 200px;
     margin-top: 15px;
     overflow: hidden;
     text-overflow: ellipsis;
     display: -webkit-box;
     min-height:144px;
     -webkit-line-clamp: 6;
     -webkit-box-orient: vertical;
     -moz-box-orient: vertical;
 }
 
 .blog-date {
     font-family:"Barlow";
     font-size:16px;
     color: #707070;
 }
 
 .blog-main-img {
     width:100%;
     border-radius:5px;
     object-fit:cover;
     height:400px;
 }
 
 .blog-tags {
     color: #0C5D96;
     font-style: italic;
     margin-top:50px;
     font-size:14px;
 }
 
 .blog-r-header {
     font-family: "Barlow Condensed";
     font-size:20px;
     text-transform: uppercase;
     margin-bottom:4px;
     font-weight:400;
 }
 
 .blog-r-link {
     font-size:15px;
     margin-bottom:20px;
 }
 
 .blog-r-list {
     margin-bottom:40px;
 }
 
 .blog-box {
     border:1px solid #DEDEDE;
     margin-bottom:40px;
     border-radius: 5px;
     padding-bottom:20px;
 }
 
 .blog-link {
     color: #0C5D96;
     text-transform: uppercase;
     font-family: "Barlow Condensed";
     letter-spacing: 0.5px;
     font-weight:500;
     
 }
 /* end of blog css */
 
 .value-box {
     min-height:410px;
 }
 
 /* advisory and services css start*/
 
 .core-serv-box {
     background-color:#FFF;
     border-radius: 5px;
     padding:20px;
     border:1px solid #ececec;
     margin-bottom:30px;
     box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1)
 }
 
 .core-serv-header {
     color:#006A97;
     font-size:22px;
     font-family:"Barlow Condensed";
     font-weight:500;
 }
 
 .core-serv-img {
     float:right;
     width: 45px;
     padding-top:6px;
 }
 
 #advisory-bg {
     background-size:cover!important;
     height: 32vh;
     margin-top:-140px;
     background-position: 0% 60%!important;
 }
 
 .advisory-box {
     padding:20px;
     border:1px solid #d1d1d1;
     border-radius: 5px;
     margin-bottom:30px;
     height:250px;
 }
 
 .advisory-title-box {
     margin:auto;
     padding:20px;
 }
 
 .advisory-header-left {
     text-transform:uppercase;
     font-size:54px;
     font-family:"Barlow Condensed";
     line-height:54px;
 }
 
 .advisory-desc-left {
     font-size:18px;
     padding-top:20px;
 }
 
 .advisory-header {
     font-size:24px;
     text-transform:uppercase;
     font-family:"Barlow Condensed";
     color: #0C5D96;
     margin-bottom:10px;
     line-height: 25px;
     font-weight:400;
 }
 
 .advisory-desc {
     font-size:16px;
     line-height:16px;
 }
 
/* advisory and services css end */

.linkedin-icon {
    width:23px;
    padding-bottom:3px;
    margin-left:3px;
}

.active-link {
	color: #0C5D96!important;
	font-weight: 600!important;
}

.login-link {
	margin-left: 220px;
}

.img-full {
	width:100%;
}

#map {
    width: 100%;
    height: 350px;
}

.grid-highlights{
  display:grid;
  gap:20px;
  min-height:60vh;
  grid-template-areas:'one one two three four four''one one six six seven seven''five five six six ten ten''eight eight nine nine ten ten';
  grid-template-rows: 1fr 1fr 1fr 1fr;
  grid-template-columns: repeat(6, 1fr);
}

.child{
  background:rgba(250, 250, 250, 0.4);
  width:100%;
  height:100%;
  display:grid;
  text-align:center;
  border-radius: 5px;
  border: 1px solid #0C5D96;
  padding:20px;
}

#one {
  grid-area:one;
  font-weight:500;
  line-height: 45px;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("/media/v5ghgpuu/deed-bg.jpg");
  background-size:cover;
  color:#FFF;
}

#two {
  grid-area:two;
  font-size: 35px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
}

#three {
  grid-area:three;
  font-size: 38px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
}

#four {
  grid-area:four;
  font-size: 35px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
}

#five {
  grid-area:five;
  font-size: 45px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
  font-weight:500;
}

#six {
  grid-area:six;
}

#seven {
  grid-area:seven;
  font-size: 45px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
}

#eight {
  grid-area:eight;
  font-weight:500;
  line-height: 45px;
}

#nine {
  grid-area:nine;
  font-size: 40px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:35px;
}

#ten {
  grid-area:ten;
  font-size: 46px;
  text-transform: uppercase;
  text-align: left;
  font-family: "Barlow Condensed";
  color: #0C5D96;
  line-height:46px;
  background-size:cover!important;
  background-position:61%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7)), url("/media/kl1mfvt1/flag.jpg");
}

.box-shadow{
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0), 0 2px 5px 0 rgba(0, 0, 0, 0.19);
}

.center-text{
	padding-left: 15%; 
	padding-right: 15%
}

.stacked-btn {
    margin-left:80px;
    margin-top:1px;
}

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
    font-size: 18px;
    padding-left: 20px; 
}

.accordion:hover {
    background-color: #275D91; 
    color:white;
}

.box3{
	width: 100%;
	height: 45px;
	background-color: #eee;
	color: black;
}

.panel {
    padding: 0;
    display: none;
    background-color: white;
    overflow: hidden;
}

.panel2 {
    padding: 0px 20px;
    display: none;
    background-color: white;
    overflow: hidden;
    font-size:15px;

}

.program-txt {
	color: #5a5a5a!important;
	margin-top: 40px;
	padding-left: 62px!important;
	font-family:"Barlow Condensed";
	font-size:20px;
	height:65px;
}

.back-current {
	font-size: 14px;
	font-style: italic;
	color: #5B8CAE;
	border-bottom: 1px solid transparent;
}

.back-current:hover {
	border-bottom: 1px solid #0C5D96;
	color: #0C5D96;
}

.investment-item:hover {
	background-color: #F7F8FF;
}

.investment-link {
	border-bottom:1px solid transparent;
}

.investment-link:hover {
	color: #0C5D96;
	border-bottom: 1px solid #0C5D96;
}

.account-adj-head {
    margin-left: -30px;
}

.sign-adj-head {
    margin-right: -80px;
}

select {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 1.45rem) center !important;
    -moz-appearance:none !important;
    -webkit-appearance: none !important; 
    appearance: none !important;
    color: #919191; 
}

select option[value=""] {
    color:#919191;
}

select option {
    color:#000;
}

select:valid {
    color: #0c5d96;
}

input[type=text],input[type=password],input[type=tel],select[id=topic-list] {
    width: 100%;
    padding: 8px 15px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    border-radius: 5px;
}

input[type=text]:focus {
    border: 1px solid #555;
}

input[type=tel]:focus {
    border: 1px solid #555;
}

input[type=submit] {
    color:#FFF;
    background-color:#0C5D96;
    border-radius:5px;
    font-family:'Barlow Condensed';
    font-size:18px;
    font-weight:500;
    padding:10px 30px;
    border: none;
}

input[type=submit]:hover {
    background-color:#668FAC;
    
}

.halfinput{
	width: 100%;
	padding: 0 20px;
	margin-bottom: 20px;
	height: 50px;
}

.fullinput{
	width: 100%;
	height: 50px;
	padding: 0 20px;
	margin-bottom: 20px;
}

.biginput{
	color: #757575;
	padding: 20px;
	width: 100%;
	height: 410px;
	margin-bottom: 20px;
	background-color: white;
}

textarea {
    resize: none;
    border: 1px solid #ccc;
    padding: 8px 15px;
    margin: 8px 0;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    border-radius: 5px;
    width:100%;
}

.box {
	width: 100%;
	height: 60px;
	background-color: #275D91;
	color: white;
}

.box2 {
	width: 100%;
	height: 45px;
	background-color: #275D91;
	color: white;
}

.box-text-adj {
	font-size: 16px;
	padding-top:10px;
}

.logoScroll{
	transform: scale(0.6);
	transition: transform .5s;
}

.logoUnscroll{
	transform: scale(1);
	transition: transform .5s;
}

.imagess{
	max-width: 1100px;
	font-size: 20px;
	margin-left: 100px;
}

.pad-lr-0 {
	padding-left: 0px!important;
	padding-right: 0px!important;
}

.pad-lr-15 {
	padding-left: 15px!important;
	padding-right: 15px!important;
}

.pad-lr-20 {
	padding-left: 20px!important;
	padding-right: 20px!important;
}

.pad-lr-30 {
    padding-left:30px!important;
    padding-right:30px!important;
}

.pad-lr-40 {
	padding-left: 40px!important;
	padding-right: 40px!important;
}

.pad-lr-50 {
	padding-left: 50px!important;
	padding-right: 50px!important;
}

.pad-lr-60 {
	padding-left: 60px!important;
	padding-right: 60px!important;
}

.pad-lr-80 {
 	padding-left: 80px!important;
 	padding-right: 80px!important;
}

.mar-lr-0 {
	margin-left:0px!important;
	margin-right: 0px!important;
}

.basic-img {
	width: 100%;
	height: auto;	
}

.p-thick-sm {
 	font-size: 16px;
    letter-spacing: 1px;
    font-weight:500;
}
 

.sub-header-name {
	color: #0C5D96;
	width: 100%;
	font-size: 20px;
	text-align: center;
	vertical-align: middle;
	letter-spacing: 1px;
}


.height-auto {
 	height:auto!important;
  }

.p-thick {
	font-size: 18px;
    letter-spacing: 1px;
    font-weight:500;
}

.circle-down {
	height:70px;
	width: 70px;
	background-color: #EBEBEB;
	border-radius: 50%;
	border: 1px solid #DEDEDE;
	margin: 0 auto;
	position:relative;
	top:-30px;
	text-align:center;
	color: #0C5D96;
	padding-top:20px;
}

.desc-label {
	font-size: 18px;
	margin-bottom: 10px;
}

.investors-item {
	background-image: url('/css/img/investors.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

.borrowers-item {
	background-image: url('/css/img/borrowers.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

.commitment-item {
    	background-image: url(/css/img/about_city_wide.png);
  	background-repeat: no-repeat;
    	background-size: cover;
	background-position: center;
}
	
.delay-1 {
	animation-delay: .5s;
}

.delay-2 {
	animation-delay: .75s;
}

.delay-3 {
	animation-delay: 1s;
}

.light-gray {
	color: #5f5f5f;
}

.footer-logo {
	font-family: 'Barlow Condensed';
	font-size: 32px;
	color: #FFFFFF;
	margin-bottom: 10px;
}


.line {
	display: inline-block;
	width: 56%;
	background-color: blue;
	border: .5px solid #E3E3E3;
	vertical-align: center;
	margin-top: 24px;
	}

.line2 {
	display: inline-block;
	width: 60%;
	background-color: blue;
	border: .5px solid #E3E3E3;
	vertical-align: center;
	margin-top: 24px;
	}
	
.nav-menu-left a:focus {
    font-weight: 700;
    border:1px solid #FFFFFF;
    padding-top:2px;
}

@media  (min-width: 768px){
	.site-logo{
		/*position: absolute;*/
		margin: 0;
	    /*top: 50%;
	    left: 50%;
	    margin-right: -50%;
	    transform: translate(-50%, -50%);*/
	    font-size: 25px;
	    background-color: transparent;
	    -webkit-transition: height 4s; /* For Safari 3.1 to 6.0 */
    	transition: height 4s;
	}

	.menu-left {
	  	margin-left: -180px;
	  	float: left;
	 }

	.menu-right{
		margin-right: -160px;
		float: right;
	}
	.nav-menu-left-first{
		padding-left: 180px; 
	}

	.nav-menu-left{
		padding-left: 30px;
	}
	
	.nav-menu-left a:hover {
	    color: #FFF!important;
	    font-weight: 700;
	}
	
	.dropdown li a:hover {
	    color: #FFFFFF!important;
	}
	
	.nav-menu-left, .login-link:hover {
	    color: #F28D48!important;
	}

	.nav-menu-right{
		padding-right: 60px;
	}

	.nav-menu-right-last{
		padding-right: 180px;
	}

	.addPaddingLeft{
		padding-left: 10%;
	}

	.halfinput{
	width: 48%;
	padding: 0 20px;
	margin-bottom: 20px;
	height: 50px;
	}
	
}

/* Search functionality styles */
#search {
    border: 1px solid #bebebe;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    font-size: 16px;
    padding: 0 15px;
    position: relative;
}

#search:focus {
    outline: none;
    border-color: #0C5D96;
    box-shadow: 0 0 5px rgba(12, 93, 150, 0.3);
}

/* Search input with spinner */
#search.search-input-loading {
    border-color: #0C5D96 !important;
    background-color: #f8f9fa;
    padding-right: 50px; /* Make room for spinner */
}

#search.search-input-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0C5D96;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
    pointer-events: none;
}

.search-input-loading::placeholder {
    color: #0C5D96;
    font-style: italic;
}

#load-more-btn {
    background-color: #0C5D96;
    border-color: #0C5D96;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background-color: #FA9855;
    border-color: #FA9855;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#load-more-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#no-results {
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

#no-results h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

#no-results p {
    color: #6c757d;
    font-size: 16px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Funding items container animations */
#funding-items-container {
    position: relative;
    transition: opacity 0.3s ease;
}

.search-results {
    font-size:15px;
    color: #474747;
    margin-bottom:15px;
}

.funding-items-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.funding-items-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Individual funding item animations */
.funding-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

.funding-item:nth-child(1) { animation-delay: 0.1s; }
.funding-item:nth-child(2) { animation-delay: 0.2s; }
.funding-item:nth-child(3) { animation-delay: 0.3s; }
.funding-item:nth-child(4) { animation-delay: 0.4s; }
.funding-item:nth-child(5) { animation-delay: 0.5s; }
.funding-item:nth-child(6) { animation-delay: 0.6s; }
.funding-item:nth-child(7) { animation-delay: 0.7s; }
.funding-item:nth-child(8) { animation-delay: 0.8s; }
.funding-item:nth-child(9) { animation-delay: 0.9s; }
.funding-item:nth-child(10) { animation-delay: 1.0s; }
.funding-item:nth-child(11) { animation-delay: 1.1s; }
.funding-item:nth-child(12) { animation-delay: 1.2s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Enhanced load more button */
#load-more-btn {
    background-color: #0C5D96;
    border-color: #0C5D96;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#load-more-btn:hover {
    background-color: #FA9855;
    border-color: #FA9855;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#load-more-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#load-more-btn.loading {
    color: transparent;
}

#load-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



/* Smooth transitions for all interactive elements */
.blog-box {
    transition: all 0.3s ease;
}

.blog-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Search results animation */
.funding-item-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.funding-item-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Funding History Filter Bar & Search Bar Styles --- */
.funding-filterbar-container {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.funding-searchbar {
  width: 100%;
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.funding-search-input {
  width: 100%;
  height: 56px;
  border-radius: 32px;
  border: 1.5px solid #E0E0E0;
  background: #fff;
  font-size: 1.35rem;
  color: #222;
  padding: 0 56px 0 28px;
  outline: none;
  box-shadow: none;
  transition: border 0.2s;
}
.funding-search-input:focus {
  border: 1.5px solid #0C5D96;
}
.funding-search-input::placeholder {
  color: #A0A0A0;
  font-weight: 400;
  opacity: 1;
}
.funding-search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.funding-filterbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px 32px;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.funding-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funding-filter-label {
  font-size: 1.5rem;
  color: #888;
  font-weight: 500;
  margin-right: 4px;
  white-space: nowrap;
}

.funding-filter-select {
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  background: #fff;
  font-size: 15px;
  color: #444;
  padding: 4px 20px;
  min-width: 80px;
  height: 44px;
  outline: none;
  box-shadow: none;
  transition: border 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.funding-filter-select:focus {
  border: 1.5px solid #0C5D96;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .funding-filterbar-container {
    padding: 24px 8px 18px 8px;
  }
  .funding-searchbar {
    max-width: 100%;
  }
  .funding-filterbar {
    gap: 14px 12px;
  }
  .funding-filter-select {
    min-width: 120px;
    font-size: 1.4rem;
    padding: 8px 16px;
  }
}

@media (max-width: 600px) {
  .funding-filterbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px 0;
  }
  .funding-filter-group {
    justify-content: flex-start;
  }
  .funding-searchbar {
    margin-bottom: 18px;
  }
}

/* --- Funding Blog Details Modal Styles --- */

/* Modal overlay and backdrop */
.funding-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.funding-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal container */
.funding-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.funding-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header with close button */
.funding-modal-header {
    position: absolute;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    right: 0;
}

.funding-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: none;
    background: white;
    border: none;
    outline: none;
}

.funding-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.funding-modal-close::before,
.funding-modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #333;
    transform: rotate(45deg);
}

.funding-modal-close::after {
    transform: rotate(-45deg);
}

/* Modal body */
.funding-modal-body {
    padding: 49px;
    max-height: calc(95vh - 60px - 80px);
    overflow-y: auto;
}

/* First row - Image and Details */
.funding-modal-row-1 {
    display: flex;
    min-height: 400px;
    align-items: flex-start;
    gap: 64px;
}

/* Property Image Column */
.funding-modal-image-col {
    min-width: 30%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.funding-modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Details Column */
.funding-modal-details-col {
    width: 70%;
    display: flex;
    flex-direction: column;
}

/* Title */
.funding-modal-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    color: #0C5D96;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Caption */
.funding-modal-caption {
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    color: #707070;
    margin: 0 0 25px 0;
    font-style: italic;
}

/* Property Info Box */
.funding-property-info {
    background: #E8F4FD;
    border-radius: 8px;
    padding: 4px 20px;
    margin-bottom: 16px;
}

.funding-property-info table {
    width: 100%;
    border-collapse: collapse;
}

.funding-property-info td {
    padding: 4px 0;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
}

.funding-property-info td:first-child {
    color: #666;
    width: 40%;
}

.funding-property-info td:last-child {
    font-weight: 500;
    text-align: right;
    color: #0C5D96;
    font-weight: 600;
}

/* Loan Details Section */
.funding-loan-details-section {
    margin-bottom: 30px;
}

.funding-loan-details-heading {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    color: #0C5D96;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
}

.funding-loan-details-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #D9D6D6;
    margin-left: 15px;
}

.funding-loan-details-table {
    width: 100%;
    border-collapse: collapse;
}

.funding-loan-details-table td {
    padding: 6px 0;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
}

.funding-loan-details-table td:first-child {
    color: #666;
    width: 40%;
    font-weight: 500;
    padding-left: 12px;
}

.funding-loan-details-table td:last-child {
    color: #333;
    font-weight: 500;
    text-align: right;
    color: #0C5D96;
}

/* Second Row - Description */
.funding-modal-row-2 {margin-top: 28px;}

.funding-description-heading {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    color: #0C5D96;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0 0;
}

.funding-description-content {
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 30px 0;
}

.funding-tags {
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    color: #0C5D96;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Modal footer with actions */
.funding-modal-footer {
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.funding-modal-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.funding-modal-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.funding-modal-btn-secondary:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.funding-modal-btn-primary {
    background: #0C5D96;
    color: white;
}

.funding-modal-btn-primary:hover {
    background: #FA9855;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 152, 85, 0.3);
}

/* Loading state */
.funding-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-family: "Barlow", sans-serif;
}

.funding-modal-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0C5D96;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

/* Image gallery */
.funding-image-gallery {
    position: relative;
    height: 100%;
    width: 100%;
}

.funding-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.funding-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.funding-gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.funding-gallery-nav.prev {
    left: 20px;
}

.funding-gallery-nav.next {
    right: 20px;
}

.funding-gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .funding-modal {
        width: 95vw;
        max-height: 95vh;
        margin: 20px;
    }
    
    .funding-modal-row-1 {
        flex-direction: column;
        min-height: auto;
    }
    
    .funding-modal-image-col {
        width: 100%;
        height: 200px;
    }
    
    .funding-modal-details-col {
        width: 100%;
        padding: 20px;
    }
    
    .funding-modal-title {
        font-size: 32px;
    }
    
    .funding-modal-footer {
        padding: 15px 20px 20px 20px;
        flex-direction: column;
    }
    
    .funding-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .funding-modal {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .funding-modal-header {
        height: 60px;
    }
    
    .funding-modal-body {
        max-height: calc(100vh - 60px - 80px);
    }
    
    .funding-modal-image-col {
        height: 150px;
    }
    
    .funding-modal-details-col {
        padding: 15px;
    }
    
    .funding-modal-title {
        font-size: 24px;
    }
    
    .funding-modal-row-2 {
        padding: 15px;
    }
}

/* Animation keyframes */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

/* Enhanced focus management for accessibility */
.funding-modal:focus {
    outline: none;
}

.funding-modal *:focus {
    outline: 2px solid #0C5D96;
    outline-offset: 2px;
}

/* Ensure modal is completely non-interactive when inactive */
.funding-modal:not(.active),
.funding-modal-overlay:not(.active) {
    pointer-events: none !important;
    user-select: none;
}

/* Print styles */
@media print {
    .funding-modal-overlay {
        position: static;
        background: none;
    }
    
    .funding-modal {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* --- Newsletter Modal Styles --- */

/* Modal overlay and backdrop */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal container */
.newsletter-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
    transform: scale(0.7);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

/* Modal header with close button */
.newsletter-modal-header {
    position: absolute;
    height: 40px;
    align-items: center;
    justify-content: flex-end;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.newsletter-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #000;
    outline: none;
    background: transparent;
    padding-bottom:5px;
}

.newsletter-modal-close:hover {
    background: #e9ecef;
    color: #333;
    transform: scale(1.1);
}

/* Modal body */
.newsletter-modal-body {
    padding: 0;
}

.newsletter-modal-content {
    display: flex;
    min-height: 400px;
}

/* Left Column - Content */
.newsletter-modal-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-modal-logo {
    margin-bottom: 30px;
}

.newsletter-modal-logo img {
    max-width: 200px;
    height: auto;
}

.newsletter-modal-left h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    color: #0C5D96;
    font-weight: 400;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.newsletter-modal-caption {
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Right Column - Image */
.newsletter-modal-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-top:-1px;
}

.newsletter-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 50% 100%;
    vertical-align:none;
}

/* Newsletter Form */
.newsletter-modal-form {
    margin-top: 0;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: #0C5D96;
}

.newsletter-email-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    background: transparent;
}

.newsletter-email-input::placeholder {
    color: #999;
}

.newsletter-submit-btn {
    padding: 15px 25px;
    background: #0C5D96;
    color: white;
    border: none;
    cursor: pointer;
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    min-width: 100px;
}

.newsletter-submit-btn:hover:not(:disabled) {
    background: #FA9855;
}

.newsletter-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success and Error Messages */
.newsletter-success-message {
    text-align: center;
    padding: 20px 0;
}

.newsletter-success-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.newsletter-success-message p {
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.newsletter-success-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: normal !important;
}

.newsletter-error-message {
    color: #dc3545;
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .newsletter-modal {
        width: 95vw;
        max-height: 90vh;
    }
    
    .newsletter-modal-content {
        flex-direction: column;
        min-height: auto;
        height:500px;
    }
    
    .newsletter-modal-image {
        object-position: 50% 50%;
    }
    
    .newsletter-modal-left {
        padding: 30px 20px;
    }
    
    .newsletter-modal-right {
        min-height: 200px;
    }
    
    .newsletter-modal-left h2 {
        font-size: 24px;
    }
    
    .newsletter-modal-caption {
        font-size: 14px;
    }
    
    .newsletter-modal-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .newsletter-modal {
        width: 100vw;
        height: 39vh;
        max-height: 100vh;
        border-radius: 10px;
    }
    
    .newsletter-modal-left {
        padding: 20px;
    }
    
    .newsletter-modal-right {
        min-height: 150px;
    }
    
    .newsletter-modal-left h2 {
        font-size: 20px;
    }
    
    .newsletter-modal-caption {
        font-size: 13px;
    }
    
    .newsletter-modal-logo {
        margin-bottom: 20px;
    }
    
    .newsletter-modal-logo img {
        max-width: 120px;
    }
    
    .newsletter-email-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .newsletter-submit-btn {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .newsletter-modal-image {
        object-position: 50% 100%;
    }
}

/* Animation keyframes for newsletter modal */
@keyframes newsletterModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes newsletterModalSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Enhanced focus management for accessibility */
.newsletter-modal:focus {
    outline: none;
}

/* Ensure modal is completely non-interactive when inactive */
.newsletter-modal:not(.active),
.newsletter-modal-overlay:not(.active) {
    pointer-events: none !important;
    user-select: none;
}

/* Print styles */
@media print {
    .newsletter-modal-overlay {
        display: none;
    }
    
    .newsletter-modal {
        display: none;
    }
}


/* ======= Contact Form Styles ======= */
.contact-form .text-danger {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.contact-form .is-invalid {
    border-color: #dc3545;
}

.contact-form .valid {
    border-color: #28a745;
}

.contact-form .alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.contact-form .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.contact-form .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}
/* ======= End of Contact Form Styles ======= */

