/* ============================= */
/* GLOBAL */
/* ============================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#ffffff;
color:#1a2b33;
overflow-x:hidden;
line-height:1.6;
}












/* ============================= */
/* VILLAGES */
/* ============================= */

.villages{
padding:90px 8%;
background:#f7fbfd;
}

.village-card{
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:40px;
margin-bottom:80px;
background:white;
padding:40px;
border-radius:24px;
cursor:pointer;
transition:.4s;
box-shadow:0 15px 35px rgba(0,0,0,.05);
position:relative;
overflow:hidden;
}

.village-card:hover{
transform:translateY(-8px) scale(1.01);
box-shadow:0 25px 50px rgba(0,0,0,.12);
}

.village-card.reverse{
grid-template-columns:1fr 1fr;
}

.village-card.reverse .village-image{
order:2;
}

.village-card.reverse .village-content{
order:1;
}

/* IMAGE */

.village-image img{
width:100%;
height:320px;
object-fit:cover;
border-radius:20px;
transition:.4s;
}

.village-card:hover .village-image img{
transform:scale(1.05);
}

/* CONTENT */

.village-content h2{
font-size:32px;
margin-bottom:15px;
color:#1a2b33;
}

.village-content p{
color:#6b7c86;
line-height:1.6;
margin-bottom:20px;
}

/* BUTTON */

.village-btn{
display:inline-block;
background:linear-gradient(45deg,#2bb3c0,#1a8f6d);
color:white;
padding:10px 22px;
border-radius:30px;
font-size:14px;
transition:.3s;
}

.village-card:hover .village-btn{
transform:translateX(5px);
}

/* COLOR OVERLAY */

.village-card::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(120deg,
rgba(43,179,192,.05),
rgba(26,143,109,.05)
);
opacity:0;
transition:.4s;
}

.village-card:hover::before{
opacity:1;
}


/* MOBILE */

@media(max-width:900px){

.village-card{
display:flex;
flex-direction:column;
padding:25px;
gap:20px;
}

/* RESET IMAGE COMPLETELY */

.village-image{
width:100%;
}

.village-image img{
width:100%;
height:auto !important;
max-height:none !important;
object-fit:unset;
border-radius:18px;
}

/* reset reverse */

.village-card.reverse .village-image{
order:1;
}

.village-card.reverse .village-content{
order:2;
}

}

/* FIX IMAGE */

.village-image img{
height:auto;
max-height:none;
object-fit:contain;
border-radius:18px;
}

}


@media(max-width:900px){

.village-card{
grid-template-columns:1fr;
padding:25px;
gap:25px;
}

/* FORCE IMAGE FULL WIDTH */

.village-image{
width:100%;
}

.village-image img{
width:100%;
height:auto;
display:block;
object-fit:cover;
border-radius:18px;
}

/* reset reverse layout */

.village-card.reverse .village-image{
order:1;
}

.village-card.reverse .village-content{
order:2;
}

}

@media(max-width:900px){

.village-card{
grid-template-columns:1fr;
padding:25px;
gap:25px;
}

/* FORCE IMAGE FULL WIDTH */

.village-image{
width:100%;
}

.village-image img{
width:100%;
height:auto;
display:block;
object-fit:cover;
border-radius:18px;
}

/* reset reverse layout */

.village-card.reverse .village-image{
order:1;
}

.village-card.reverse .village-content{
order:2;
}

}