/* ========================= RESET ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #F5F0E8;
    color: #222;
}

/* ========================= HEADER ========================= */

header {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    border: 3px solid wheat;
    border-radius: 15px;
    box-shadow: 0 0 10px gray;

    /* position: sticky;
    top: 10px;
    z-index: 1000; */
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
}

#logoName {
    color: #20b31d;
    font-family: Georgia;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

nav a.active{
    color:#0b7a2d;
    border-bottom: 3px solid #0b7a2d
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ef;
    padding: 10px 18px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.flag {
    width: 18px;
    height: 12px;
    background: #d95f02;
}

/* ========================= HERO SECTION ========================= */

.welcome_temp {
    position: relative;
    min-height: 250px;
    padding: 120px 70px;
    color: white;
    margin-top: -40px;
}

.bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    z-index: -1; 
}

#welcome {
    font-size: 45px;
    padding-bottom: 20px;
    color: #FFF8E1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    font-weight: 700; 
}

#line {
    width: 760px;
    max-width: 80%;
    margin-top: -10px;
}

#welcome_text {
    font-size: 32px;
    line-height: 70px;
    color: #FFD54F;
    text-shadow: 2PX 2PX 6PX #000;
    font-weight: bold;
}

#welcome_p {
    font-size: 24px;
    line-height: 60px;
    color: #C8E6C9;
    text-shadow: 2px 2px 5px #000;
    font-weight: 600;

}

button {
    padding: 15px 25px;
    border: none;
    background: #006b4f;
    color: white;
    cursor: pointer;
    border-radius: 5px;

}

.wel_btn {
    margin-top: 40px;
    margin-left: 10px;
    width: 300px;
}

.wel_btn{
    display:inline-block;
    padding:15px 30px;
    background:#0B4D1C;
    color:white;
    text-decoration:none;
    border-radius:5px;
    font-size:18px;
    font-weight:500;
    margin-right:15px;
}

.services_btn{
    background:cornflowerblue;
}

.updates_btn{
    background:coral;
}


/* ========================= CARDS ========================= */

.cards {
    position: relative;
    bottom: 80px;  
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 20px; 
    width: 90%;     
}

.cards div {

    min-height: 250px;
    padding: 25px;
    background: white;
    box-shadow: 0 0 10px gray;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.heading{

    line-height: 70px;
}

#d1 {

    background-image: url("../IMAGES/aboutV.jpeg");
}


#d2 {

    background-image: url("../IMAGES/govscheme.jpeg");
}


#d3 {
    background-image: url("../IMAGES/gallary.jpeg");
}

.learn_about_button{
    transform: translateY(30px);
}

.learn_btn{
    transform: translateY(30px);
}

pre {
    font-family: Arial;
    font-size: 18px;
    line-height: 25px;
}

/* ************************** News & Announcement ************************ */ 

.quick-news-section {
    display: flex;
    /* grid-template-columns: 2fr 1fr;  */
    /* gap: 30px; */
    /* padding: 40px 35px;  */
    padding: 30px 0px;
}

/* News Box */
.news-container {
    width: 100%;
    background: #ecdbc3; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 25px;
    padding-left: 80px;
    margin-top: -80px;
    z-index: 1;
    /* margin-left: -30px; */
}

.news-container h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #c9bcbc;
    padding-bottom: 10px;
    width: 850px;
}

.news-item {
    max-width: 850px;
    max-height: 90PX;
    background: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    border-bottom: 3PX solid gray;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-content h3 {
    font-size: 18px;
    margin: 0;
}

.news-content p {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.news-item a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

#news-btn {
    background: none;
    color: rgb(69, 69, 241);
    font-size: 22px;
    padding: 0px;
    margin-left: 380px;
    padding-top: 10px;
    text-decoration: underline;
}

/* Quick Links */
.quick-box {
    width: 450px;
    background: #F4E5CC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    overflow: hidden;
    margin-top: -80px;
    margin-left: -520px;
    position: relative;
    z-index: 100;
}

.title {
    background: #004d1a;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

.links {
    max-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    background: white;
    padding: 12px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.link-item i {
    font-size: 18px;
    color: #004d1a;
}

.link-item:hover {
    background: #f8f8f8;
    transform: translateX(5px);
}

.link-item a{
    text-decoration: none;
    color: black;
}

/* ========================= TEMPLE IMAGE ========================= */

.temple-section img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 0 10px gray;
    margin-bottom: -250px;
}

/* ========================= EVENTS BOX ========================= */

.events-box {
    width: 450px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position:relative;

    bottom: 230px; 
    left:999px;
}

.events-title {
    background: #e85d00;
    color: white;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
}

.event-list {
    padding: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 5px;
    border-bottom: 1px solid #ddd;
}

.event-item:last-child {
    border-bottom: none;
}

.arrow {
    color: #e85d00;
    font-size: 20px;
}

.event-item p {
    font-size: 20px;
    margin: 0;
}

/* ========================= FOOTER ========================= */

.footer{

    /* margin-top:50px; */

    width:100%;

}

/* Banner */

.footer_banner{

    height:95px;

    background:linear-gradient(rgba(7,70,28,.90),rgba(7,70,28,.90));

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

} 

.quote{

    display:flex;
    align-items:center;
    gap:18px;

    color:white;

}

.quote i{

    font-size:42px;

    color:#ffb300;

}

.quote h2{

    font-size:36px;

    font-family:Georgia, serif;

    font-style:italic;

}

/* Bottom */

.footer_bottom{

    background:#f8f7f3;

    text-align:center;

    padding:25px 20px;

    

}

.footer_bottom p{

    margin:8px 0;

    color:#333;

    font-size:22px;

    line-height: 1.5;

}

/* .footer_copyright{
    line-height: 5;
} */

.slogan{
    padding-top: 7px;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 300;
}


/* ============================= */
/* Government Schemes Popup */
/* ============================= */

.gov-popup {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0, 0, 0, 0.65);

    z-index: 99999 !important;

    justify-content: center;
    align-items: center;

    overflow: hidden;
}


/* Popup Box */

.gov-popup-content {
    position: relative;

    width: 70%;
    max-width: 900px;

    max-height: 80vh;

    padding: 30px;

    background: #fffdf5;

    border-radius: 12px;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);

    overflow-y: auto;
}


/* Heading */

.gov-popup-content h2 {
    text-align: center;

    color: #087f3e;

    margin-top: 0;
    margin-bottom: 5px;

    font-size: 30px;
}


/* Description */

.gov-popup-intro {
    text-align: center;

    font-size: 17px;

    margin-top: 0;
    margin-bottom: 25px;
}


/* Close Button */

.gov-popup-close {
    position: absolute;

    right: 15px;
    top: 10px;

    border: none;
    background: transparent;

    font-size: 32px;

    cursor: pointer;

    color: #333;
}

.gov-popup-close:hover {
    color: red;
}


/* Scheme Cards */

.scheme-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.scheme-item {
    padding: 20px;

    background: #f7f1df;

    border-left: 5px solid #087f3e;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.scheme-item h3 {
    margin-top: 0;

    color: #087f3e;
}


.scheme-item p {
    font-size: 16px;

    line-height: 1.6;

    margin-bottom: 0;
}

/* =========================================
   COMPLAINT POPUP
   ========================================= */

.complaint-popup {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


/* Popup Box */

.complaint-popup-content {
    position: relative;

    width: 100%;
    max-width: 600px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    box-sizing: border-box;
}


/* Close Button */

.close-complaint {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: gray;
    border-radius: 5px;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.close-complaint:hover {
    color: red;
}


/* Popup Heading */

.complaint-popup-content h2 {
    margin: 0 0 25px 0;
    color: #008f7a;
    text-align: center;
    font-size: 28px;
}

/* Form Group */

.complaint-popup-content .form-group {
    margin-bottom: 18px;
}

/* Labels */

.complaint-popup-content label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #333;
}


/* Inputs */

.complaint-popup-content input,
.complaint-popup-content select,
.complaint-popup-content textarea {

    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-size: 16px;

    box-sizing: border-box;

    outline: none;
}


.complaint-popup-content input:focus,
.complaint-popup-content select:focus,
.complaint-popup-content textarea:focus {

    border-color: #008f7a;

    box-shadow: 0 0 0 2px rgba(0, 143, 122, 0.1);
}


/* Submit Button */

.complaint-submit-btn {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #008f7a;

    color: white;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;
}


.complaint-submit-btn:hover {

    background: #006f60;
}
/* ================= News and Announcement popup box =================== */

.news-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


/* Popup Box */

.news-popup-content {
    position: relative;
    width: 850px;
    max-width: 90%;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}


/* Header */

.news-popup-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}


.news-popup-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #174b4b;
}


.news-popup-header p {
    margin-top: 6px;
    margin-bottom: 0;
    color: #777;
    font-size: 14px;
}


/* Close Button */

.close-news {
    position: absolute;
    top: 10px;
    right: 20px;

    width: 38px;
    height: 38px;

    border: none;
    background: transparent !important;

    color: #555;
    font-size: 40px;
    line-height: 1;

    cursor: pointer;

    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.close-news:hover,
.close-news:focus,
.close-news:active {
    background: transparent !important;
    /* color: #555; */
    color: red;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    outline: none;
}

/* News List */

.news-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px 12px 5px 5px;
}

/* Scrollbar */

.news-list::-webkit-scrollbar {
    width: 7px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}


.news-list::-webkit-scrollbar-thumb {
    background: #8aa5a5;
    border-radius: 10px;
}


/* News Card */

.news-and-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8fbfb;
    border: 1px solid #e1eeee;
    border-left: 5px solid #2f6f6f;
    border-radius: 12px;
    transition: all 0.25s ease;
}


.news-and-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}


/* News Icon */

.news-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e4f1f1;
    color: #2f6f6f;
    font-size: 21px;
}

/* News Details */

.news-details {
    flex: 1;
}


.news-details h3 {
    margin: 0 0 7px 0;
    color: #243f40;
    font-size: 19px;
    font-weight: 700;
}


.news-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2f6f6f;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}


.news-details p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Loading */

.news-loading {
    text-align: center;
    padding: 50px;
    color: #777;
    font-size: 16px;
}

/* No News */

.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.no-news i {
    font-size: 40px;
    color: #8aa5a5;
    margin-bottom: 15px;
}

.no-news h3 {
    margin-bottom: 5px;
    color: #444;
}


.no-news p {
    margin: 0;
    color: #888;
}

/* ================= Sarpanch & Members popup box =================== */

.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.popup-content{
    width:600px;
    max-height:80vh;
    background:#fff;
    border-radius:12px;
    overflow-y:auto;
    overflow-x: hidden;
    animation:popup .3s ease;
    box-shadow:0 0 20px rgba(0,0,0,.3);
}

@keyframes popup{
    from{
        transform:scale(.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

/* Header */

.popup-header{
    background:#2E7D32;
    color:#fff;
    padding:18px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.popup-header h2{
    margin:0;
    font-size:28px;
}

.close{
    font-size:38px;
    cursor:pointer;
    transition:.3s;
}

.close:hover{
    color:#FFD54F;
}

/* Table */

.popup table{
    width:100%;
    border-collapse:collapse;
}

.popup th{
    position:sticky;
    top: 0;
    background:#43A047;
    color:white;
    padding:15px;
    text-align:left;
    z-index: 10;
}

.popup td{
    padding:14px 18px;
    border:1px solid #ddd;
}

.table-container{
    max-height: 500px;
    overflow-y: auto;
}

.popup tr:nth-child(even){
    background:#f7f7f7;
}

.popup tr:hover{
    background:#eef8ee;
}

/*=================================
    Development Projects Popup
=================================*/

.popup-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.project-body{
    padding:30px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    max-height:450px;
    overflow-y:auto;
}

/* Scrollbar */

.project-body::-webkit-scrollbar{
    width:8px;
}

.project-body::-webkit-scrollbar-track{
    background:#eeeeee;
    border-radius:10px;
}

.project-body::-webkit-scrollbar-thumb{
    background:#1F5E3B;
    border-radius:10px;
}

.project-body::-webkit-scrollbar-thumb:hover{
    background:#15452c;
}

/* Project Card */

.project-card{
    background:#ffffff;
    border:1px solid #e5e5e5;
    border-radius:12px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.12);
}

/* Icon */

.project-card i{
    font-size:38px;
    color:#1F5E3B;
    margin-bottom:15px;
}

/* Heading */

.project-card h3{
    font-size:22px;
    color:#1F5E3B;
    margin-bottom:10px;
}

/* Description */

.project-card p{
    font-size:16px;
    color:#555;
    line-height:26px;
    margin-bottom:15px;
}

/* Status */

.status{
    display:inline-block;
    padding:8px 18px;
    border-radius:30px;
    font-size:14px;
    font-weight:bold;
}

/* Completed */

.completed{
    background:#d4edda;
    color:#155724;
}

/* Ongoing */

.ongoing{
    background:#fff3cd;
    color:#856404;
}

/*==================================================
        Development Projects Popup
==================================================*/

.project-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* Popup Box */

.project-popup-content{
    width:1000px;
    max-width:95%;
    max-height:90vh;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 0 30px rgba(0,0,0,.35);
    animation:popupAnimation .35s ease;
}

/* Animation */

@keyframes popupAnimation{
    from{
        transform:scale(.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

/* Header */

.project-popup-header{
    background:#1b5e20;
    color:white;
    padding:18px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.project-popup-header h2{
    margin:0;
    font-size:28px;
}

.project-popup-header i{
    margin-right:10px;
}

/* Close Button */

.project-close{
    font-size:40px;
    cursor:pointer;
    transition:.3s;
}

.project-close:hover{
    color:#ffd54f;
}

/* Scroll Area */

.project-container{
    padding:25px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
    max-height:70vh;
    overflow-y:auto;
}

/* Card */

.project-card{
    background:white;
    border:1px solid #d8d8d8;
    border-radius:12px;
    padding:22px;
    transition:.3s;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.project-card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

/* Icon */

.project-icon{
    width:65px;
    height:65px;
    border-radius:50%;
    background:#e8f5e9;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:18px;
}

.project-icon i{
    font-size:28px;
    color:#1b5e20;
}

/* Title */

.project-card h3{
    margin-bottom:10px;
    color:#1b5e20;
    font-size:26px;
}

/* Paragraph */

.project-card p{
    color:#555;
    line-height:1.7;
    margin-bottom:18px;
}

/* Badges */

.completed{
    display:inline-block;
    background:#d4edda;
    color:#155724;
    padding:8px 18px;
    border-radius:30px;
    font-weight:bold;
}

.ongoing{
    display:inline-block;
    background:#fff3cd;
    color:#856404;
    padding:8px 18px;
    border-radius:30px;
    font-weight:bold;
}

/* Scrollbar */

.project-container::-webkit-scrollbar{
    width:8px;
}

.project-container::-webkit-scrollbar-thumb{
    background:#2e7d32;
    border-radius:20px;
}

.project-container::-webkit-scrollbar-track{
    background:#ececec;
}

/* Responsive */

@media(max-width:768px){
    .project-container{
        grid-template-columns:1fr;
    }

    .project-popup-content{
        width:95%;
    }
}

/*=============== Village Map Popup ===============*/

.map-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.map-popup-content{
    width:800px;
    max-width:95%;
    max-height: 95vh;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    animation:popupAnimation .3s ease;
}

.map-header{
    background:#1b5e20;
    color:white;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.map-header h2{
    margin:0;
    font-size:26px;
}

.map-close{
    font-size:36px;
    cursor:pointer;
}

.map-close:hover{
    color:#ffd54f;
}

.map-body{
    padding:10px;
}

.map-body img{
    width:100%;
    max-height: 80vh;
    object-fit: contain;
    display:block;
    border-radius:8px;
    border:1px solid #ddd;
}

/* ========================= RESPONSIVE DESIGN ========================= */

/* @media(max-width:900px){

    header {
        flex-direction: column;
        gap: 20px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .cards {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .quick-news-section {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .welcome_temp {
        padding: 100px 30px;
    }
    .welcome_temp h1 {
        font-size: 32px;
    }
    .temple-section {
        padding: 30px;
    }
    .temple-section img {
        height: 300px;
    }
} */
