/* =========================
GLOBAL
========================= */

body{
font-family:Arial, Helvetica, sans-serif;
margin:0;
background:#f4f6f9;
}


/* =========================
HEADER
========================= */

.header{
background:#2c7be5;
color:white;
padding:20px;
text-align:center;
}

.header h1{
margin:0;
}


/* =========================
MENU
========================= */

.menu{
background:#333;
}

.menu-container{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 15px;
max-width:1200px;
margin:auto;
}

/* LOGO */

.logo a{
color:white;
text-decoration:none;
font-size:18px;
font-weight:bold;
}

/* MENU LINKS */

.menu-links{
display:flex;
gap:20px;
list-style:none;
margin:0;
padding:0;
}

.menu-links li a{
color:white;
text-decoration:none;
font-size:16px;
padding:6px 10px;
display:block;
}

.menu-links li a:hover{
background:#444;
border-radius:4px;
}

/* HAMBURGER */

.hamburger{
display:none;
flex-direction:column;
gap:5px;
cursor:pointer;
}

.hamburger span{
width:25px;
height:3px;
background:white;
display:block;
}


/* =========================
CONTAINER
========================= */

.container{
max-width:1200px;
margin:auto;
padding:15px;
}


/* =========================
SLIDER + NEWS
========================= */

.top-section{
display:flex;
flex-wrap:wrap;
gap:20px;
}

/* SLIDER */

.slider{
flex:3;
min-width:300px;
height:320px;
overflow:hidden;
border-radius:6px;
position:relative;
background:#ddd;
}

.slider-container{
width:100%;
height:100%;
position:relative;
}

.slide{
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
opacity:0;
transition:opacity 1s ease-in-out;
}

.slide.active{
opacity:1;
z-index:1;
}

.slide img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* NEWS */

.news{
flex:1;
min-width:250px;
height:300px;
background:white;
border:1px solid #ddd;
padding:10px;
overflow:hidden;
border-radius:6px;
}


/* =========================
SECTION TITLE
========================= */

.section-title{
margin-top:40px;
margin-bottom:15px;
font-size:24px;
color:#2c3e50;
}


/* =========================
STATISTICS
========================= */

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:15px;
}

.stat-box{
background:white;
padding:20px;
text-align:center;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
border-radius:6px;
}

.stat-box h3{
margin:0;
font-size:28px;
color:#2c7be5;
}

.stat-box p{
margin-top:8px;
color:#555;
}


/* =========================
ABOUT VILLAGE
========================= */

.about-box{
display:flex;
gap:25px;
background:white;
padding:20px;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.about-image{
width:300px;
}

.about-image img{
width:100%;
border-radius:6px;
object-fit:cover;
}

.about-text{
flex:1;
line-height:1.7;
}


/* =========================
SARPANCH SECTION
========================= */

.sarpanch-box{
display:flex;
gap:25px;
background:white;
padding:20px;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.sarpanch-image{
width:200px;
}

.sarpanch-image img{
width:100%;
border-radius:6px;
}

.sarpanch-text{
flex:1;
line-height:1.7;
}


/* =========================
SARPANCH GRID
========================= */

.sarpanch-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.sarpanch-card{
background:white;
padding:15px;
text-align:center;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.sarpanch-card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
}


/* =========================
MEMBERS GRID
========================= */

.members-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.member-card{
background:white;
padding:15px;
text-align:center;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.member-card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
}

.member-card p{
font-size:14px;
color:#666;
}


/* =========================
SCHEMES LIST PAGE
========================= */

.scheme-list{
display:flex;
flex-direction:column;
gap:25px;
margin-top:20px;
}

.scheme-card{
display:flex;
gap:20px;
background:white;
padding:15px;
border-radius:8px;
box-shadow:0 3px 10px rgba(0,0,0,0.1);
align-items:center;
}

.scheme-image{
width:250px;
flex-shrink:0;
}

.scheme-image img{
width:100%;
height:150px;
object-fit:cover;
border-radius:6px;
}

.scheme-details{
flex:1;
}

.scheme-details h3{
margin-bottom:10px;
color:#2c3e50;
}

.scheme-details p{
color:#555;
line-height:1.6;
margin-bottom:10px;
}

.scheme-read{
color:#2c7be5;
font-weight:bold;
text-decoration:none;
}


/* =========================
SCHEME DETAIL PAGE
========================= */

.scheme-detail-box{
display:flex;
gap:30px;
background:white;
padding:25px;
border-radius:8px;
box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.scheme-detail-image{
flex:1;
}

.scheme-detail-image img{
width:100%;
max-width:350px;
border-radius:6px;
}

.scheme-detail-content{
flex:2;
}

.scheme-detail-content h3{
margin-top:0;
font-size:24px;
color:#2c3e50;
}

.scheme-detail-content p{
line-height:1.6;
}


/* =========================
FOOTER
========================= */

.footer{
background:#333;
color:white;
text-align:center;
padding:15px;
margin-top:40px;
font-size:14px;
}


/* =========================
MOBILE
========================= */

@media (max-width:768px){

.header h1{
font-size:22px;
}

.hamburger{
display:flex;
}

.menu-links{
display:none;
flex-direction:column;
background:#333;
position:absolute;
top:60px;
left:0;
width:100%;
}

.menu-links.active{
display:flex;
}

.menu-links li{
border-top:1px solid #444;
text-align:center;
}

.menu-links li a{
padding:12px;
}

.slider{
height:200px;
}

.news{
height:200px;
}

.about-box,
.sarpanch-box,
.scheme-card,
.scheme-detail-box{
flex-direction:column;
}

.about-image,
.sarpanch-image,
.scheme-image{
width:100%;
}

.scheme-image img{
height:auto;
}

}
.gallery-categories{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.gallery-box img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
}

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
}

.gallery-item img{
width:100%;
border-radius:6px;
}
/* DROPDOWN MENU */

.dropdown{
position:relative;
}

.dropdown > a::after{
content:" ▾";
font-size:12px;
margin-left:4px;
}

/* SUBMENU */

.submenu{
display:none;
position:absolute;
top:100%;
left:0;
background:#ffffff;
border-radius:6px;
min-width:200px;
box-shadow:0 6px 18px rgba(0,0,0,0.15);
padding:6px 0;
z-index:999;
transition:all 0.3s ease;
}

/* MENU ITEMS */

.submenu li{
list-style:none;
}

.submenu li a{
display:block;
padding:12px 16px;
font-size:15px;
color:#333;
text-decoration:none;
transition:0.2s;
}

/* HOVER EFFECT */

.submenu li a:hover{
background:#2c7be5;
color:#fff;
}

/* SHOW MENU */

.dropdown:hover .submenu{
display:block;
}