* { box-sizing: border-box; font-family: Arial, sans-serif; margin: 0; padding: 0; }

body { background: #f5f7fa; color: #333; }

.hero {
 /*   background: url('../images/hero.jpg') center/cover no-repeat; */
    height: 100vh;
    position: relative;
}
.hero-m {
display:none;
}

.hero-overlay {
    position:absolute;
    top:90%;
    left:20%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width:60%;
    height: auto;

    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-buttons { margin-top: 20px; }
.btn {
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
}
.btn-black {
    padding: 12px 18px;
    border-style:solid;
    border-radius: 6px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    border-color:rgba(46,46,60);
    color:rgba(46,46,60);
}
.primary { background: #1f6feb; color: #fff; }
.secondary { background: #28a745; color: #fff; }
.small { font-size: 0.85em; }

.black{color:black;}

.search-box, section { margin-top:2rem;position:relative;padding: 30px 20px; text-align: center;background: rgba(200,200,200,0.6); }

.search-box form {
    display: flex;
    width:100%;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items:center;
}
select, button {
    padding: 10px;
    width: 100%;
    max-width: 200px;
}

.featured .card-grid {
    display: grid;
    grid-template-columns: repeat(auto, minmax(350px,1fr));
    gap: 20px;
}
.card {
    background: lime; 
    padding: 20px;
    border-radius: 10px;
    position: relative;

}


.card img { width: 80px; margin-bottom: 10px; }
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: gold;
    padding: 3px 6px;
    font-size: 0.7em;
}

.steps {
    display: grid;
    gap: 15px;
}
.step {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.video video {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
}

.for-lenders{
    padding-top:1rem;

}

.lenders-div{
/*        background-image: url('../images/main-mob.jpg'); */
        background-size: 100% auto; 
    background-repeat: no-repeat;
    background-position: top center;
    width:100%;
}

.for-lenders ul {
    list-style: none;
    margin: 20px 0;
}
.for-lenders li { margin: 8px 0; }

.cta {
    display: grid;
    gap: 20px;
    background: #1f6feb;
    color: #fff;
}
.cta div { padding: 20px; }

footer {
    background: #111;
    color: #ccc;
    padding: 20px;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

.slideshow {
    position: relative;
    height: 80vh;
    overflow: hidden;
    color: #fff;
    
}

.slides {
    position: absolute;
    height:100vh;
    inset: 0;
    z-index: 1;
}
.clients-div {
    position: absolute;
    height:auto;
    inset: 0;
    z-index: 100;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 20s infinite;
}

.clients-main {
    width:100%;
    height:auto;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    background-image: url('../images/client-main.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
}

.lenders-main {
    width:100%;
    height:auto;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    background-image: url('../images/lender-main.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
}

.slide1c {
    width:100%;
    height:auto;
    position: absolute;

    background-size: cover;
    background-position: center;
    opacity: 1;
    background-image: url('../images/hero1.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */

}

.slide1 {
    width:100%;
    height:100vh;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    background-image: url('../images/hero1.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
    animation: fade01 20s infinite;
}

.slide2 {
    width:100%;
    height:100vh;    
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    background-image: url('../images/hero2.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
    animation: fade02 20s infinite;
}

.slide3 {
    width:100%;
    height:100vh;    
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    background-image: url('../images/hero3.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
    animation: fade03 20s infinite;
}

.slide4 {
    width:100%;
    height:100vh;    
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    background-image: url('../images/hero4.jpg');
        background-size: 100% auto; /* Full width, auto height */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: top center; /* Align top horizontally centered */
    animation: fade04 20s infinite;
}



@keyframes fade01 {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    20%  { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}



@keyframes fade02 {
    0%   { opacity: 0; }
    20%   { opacity: 0; }
    25%  { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}



@keyframes fade03 {
    0%   { opacity: 0; }
    45% { opacity: 0; }
    50% { opacity: 1; }
    70%   { opacity: 1; }
    75%  { opacity: 0; }
    100% { opacity: 0; }
}



@keyframes fade04 {
    0%   { opacity: 0; }
    70%   { opacity: 0; }
    75%  { opacity: 1; }
    98% { opacity: 1; }
    100% { opacity: 0; }
}







.search-content {
    position: relative; 
    z-index: 2;
    padding: 40px 20px;
    border-radius: 12px;
    width: 100%;
    margin: 0;
    left:0%;
/*    transform: translateY(-50%);*/
    text-align: center;
}

.search-content form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-content select,
.search-content button {
    padding: 12px;
    border-radius: 6px;
    border: none;
    width: 100%;
    max-width: 220px;
}

.section-pc{
    display:flex;
}

.section-mob{
    display:none;
}


/* DESKTOP */
@media(min-width:768px){
    .cta { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
    .slideshow {
        height: 93vh;
    }


.slides {
    position: absolute;
    height:auto;
    inset: 0;
    z-index: 1;
}

    .search-box, section { margin:1rem 0 1rem 0;position:relative;padding: 0.5rem; text-align: center;background: rgba(200,200,200,0.6); }

    .search-content {
        padding: 0.5rem;
    }



    .heroover_lay {
    z-index:999;
    position:absolute;
    top:90%;
    left:5%;
    background: rgba(0,0,0,1);
    color: #fff;

    width:90%;
    height: 40vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius:10px;
}

.section-mob{
    display:flex;
}

.section-pc{
    display:none;
}

}
