/* धार पमार संस्था - Master Stylesheet (User Design + Subpages & Dashboards) */
:root{
    --green:#16783a;
    --dark-green:#0c5128;
    --light-green:#eaf6ee;
    --saffron:#f58220;
    --gold:#d4af37;
    --white:#ffffff;
    --light:#f7f9f7;
    --text:#24332a;
    --gray:#68746b;
    --border:#e4eae5;
    --shadow:0 5px 22px rgba(0,0,0,.07);
}

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

body{
    font-family:"Noto Sans Devanagari","Segoe UI",Arial,sans-serif;
    background:var(--light);
    color:var(--text);
    line-height:1.7;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; }

.container{ width:92%; max-width:1200px; margin:auto; }
.section{ padding:65px 0; }

.section-title{ text-align:center; margin-bottom:35px; }
.section-title h2{ font-size:30px; color:var(--dark-green); margin-bottom:10px; }
.section-title p{ color:var(--gray); font-size:15px; }
.section-title:after{
    content:""; display:block; width:75px; height:4px;
    margin:15px auto 0; background:var(--saffron); border-radius:10px;
}

/* TOP BAR */
.top-bar{ background:var(--dark-green); color:#fff; padding:7px 0; font-size:13px; }
.top-bar .container{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* HEADER */
.header{ background:#fff; box-shadow:var(--shadow); position:sticky; top:0; z-index:999; }
.header-inner{ min-height:85px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.logo-area{ display:flex; align-items:center; gap:12px; }

.logo{
    width:65px; height:65px; border-radius:50%;
    background:linear-gradient(145deg,var(--green),var(--dark-green));
    color:white; display:flex; align-items:center; justify-content:center;
    font-size:26px; border:3px solid #e7f4e9; overflow:hidden; flex-shrink:0;
}
.logo img{ width:100%; height:100%; object-fit:cover; background:#fff; }

.logo-text h1{ font-size:21px; color:var(--dark-green); line-height:1.3; }
.logo-text span{ font-size:12px; color:var(--saffron); font-weight:700; }

.header-actions{ display:flex; align-items:center; gap:10px; }

.member-join-btn{
    background:var(--green); color:white; padding:10px 15px;
    border-radius:7px; font-weight:bold; font-size:13.5px; white-space:nowrap;
}
.member-join-btn:hover{ background:var(--dark-green); }

.member-login{
    background:var(--saffron); color:white; padding:10px 17px;
    border-radius:7px; font-weight:bold; font-size:14px; white-space:nowrap;
}
.member-login:hover{ background:#d86d0c; }

.menu-toggle{
    display:none; border:none; background:var(--green); color:white;
    font-size:25px; padding:7px 13px; border-radius:5px; cursor:pointer;
}

/* NAVIGATION */
.navbar{ background:var(--green); color:white; }
.nav-list{ display:flex; align-items:center; list-style:none; flex-wrap:wrap; }
.nav-list > li{ position:relative; }
.nav-list > li > a,
.nav-list > li > button{
    display:block; padding:13px 14px; color:white; background:none;
    border:none; font-size:14px; cursor:pointer; font-family:inherit;
}
.nav-list > li:hover > a,
.nav-list > li:hover > button{ background:var(--dark-green); }

.dropdown-menu{
    display:none; position:absolute; top:100%; left:0; min-width:235px;
    background:#fff; color:var(--text); box-shadow:0 7px 18px rgba(0,0,0,.15);
    list-style:none; z-index:1000; border-top:3px solid var(--saffron);
}
.dropdown-menu a{ display:block; padding:10px 15px; border-bottom:1px solid #eee; font-size:14px; }
.dropdown-menu a:hover{ background:var(--light-green); color:var(--green); }
.dropdown:hover .dropdown-menu{ display:block; }

/* NEWS TICKER */
.news-bar{ background:var(--saffron); color:white; display:flex; align-items:center; overflow:hidden; }
.news-label{ background:var(--dark-green); padding:12px 20px; white-space:nowrap; font-weight:bold; z-index:2; }
.news-content{ overflow:hidden; flex:1; }
.news-content marquee{ padding:11px 0; font-size:14px; }

/* HERO */
.hero{
    background:
    linear-gradient(100deg,rgba(8,72,34,.93),rgba(22,120,58,.85)),
    url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=1600&q=80');
    background-size:cover; background-position:center; color:white; padding:85px 20px;
}
.hero-content{ max-width:850px; text-align:center; margin:auto; }
.hero-tag{ display:inline-block; background:var(--saffron); padding:7px 20px; border-radius:30px; font-size:14px; font-weight:bold; margin-bottom:20px; }
.hero h2{ font-size:43px; line-height:1.35; margin-bottom:20px; }
.hero h2 span{ color:#ffcf80; }
.hero p{ font-size:17px; max-width:700px; margin:0 auto 28px; color:#f1f7f1; }
.hero-buttons{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }

.btn{ display:inline-block; padding:12px 24px; border-radius:7px; font-weight:bold; transition:.2s; border:none; cursor:pointer; font-family:inherit; font-size:15px; }
.btn-primary{ background:var(--saffron); color:white; }
.btn-primary:hover{ background:#df6f0b; transform:translateY(-2px); }
.btn-green{ background:var(--green); color:white; }
.btn-green:hover{ background:var(--dark-green); }
.btn-white{ background:white; color:var(--green); }
.btn-white:hover{ background:#eaf6ee; }

/* QUICK STATS */
.quick-stats{ margin-top:-30px; position:relative; z-index:3; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat-box{ background:white; padding:25px 15px; text-align:center; border-radius:12px; box-shadow:var(--shadow); border-bottom:4px solid var(--green); }
.stat-icon{ font-size:28px; margin-bottom:7px; }
.stat-box h3{ color:var(--green); font-size:23px; }
.stat-box p{ font-size:13px; color:var(--gray); }

/* SECTIONS */
.panchayat-section{ background:var(--light-green); }
.panchayat-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.panchayat-card{ background:white; padding:25px 15px; border-radius:12px; text-align:center; box-shadow:var(--shadow); border-top:4px solid var(--green); transition:.3s; }
.panchayat-card:hover{ transform:translateY(-5px); }
.panchayat-icon{ font-size:35px; margin-bottom:10px; }
.panchayat-card h3{ color:var(--dark-green); font-size:18px; margin-bottom:7px; }
.panchayat-card p{ font-size:12px; color:var(--gray); }
.main-office{ border-top-color:var(--saffron); }
.main-office .office-badge{ display:inline-block; background:#fff2df; color:#c7670b; padding:4px 9px; font-size:11px; border-radius:20px; margin-top:8px; }

.about-grid{ display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:40px; }
.about-visual{ background:linear-gradient(145deg,#e4f3e8,#fff1dd); min-height:330px; border-radius:15px; display:flex; align-items:center; justify-content:center; text-align:center; padding:30px; }
.about-visual-content{ font-size:70px; }
.about-visual-content h3{ color:var(--green); font-size:25px; }
.about-content h2{ color:var(--dark-green); font-size:30px; margin-bottom:15px; }
.about-content p{ color:var(--gray); margin-bottom:15px; }
.about-points{ list-style:none; margin:15px 0 25px; }
.about-points li{ padding:6px 0; }
.about-points li:before{ content:"✔ "; color:var(--green); font-weight:bold; }

.services-section{ background:#fff; }
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.service-card{ background:var(--light); padding:25px; border-radius:12px; border:1px solid var(--border); transition:.3s; }
.service-card:hover{ background:white; box-shadow:var(--shadow); border-color:var(--green); transform:translateY(-4px); }
.service-icon{ width:55px; height:55px; border-radius:12px; background:var(--light-green); display:flex; align-items:center; justify-content:center; font-size:27px; margin-bottom:15px; }
.service-card h3{ color:var(--dark-green); font-size:18px; margin-bottom:8px; }
.service-card p{ font-size:14px; color:var(--gray); }

.benefits-section{ background:linear-gradient(135deg,var(--dark-green),var(--green)); color:white; }
.benefits-section .section-title h2{ color:white; }
.benefits-section .section-title p{ color:#d8eadc; }
.benefits-section .section-title:after{ background:var(--saffron); }
.benefits-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.benefit-card{ background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.15); padding:23px; border-radius:12px; text-align:center; }
.benefit-card .icon{ font-size:32px; margin-bottom:10px; }
.benefit-card h3{ font-size:17px; margin-bottom:8px; }
.benefit-card p{ font-size:13px; color:#e1f0e4; }

.status-section{ background:#fff; }
.status-box{ max-width:800px; margin:auto; background:var(--light-green); border:1px solid #d1e7d7; border-radius:15px; padding:35px; }
.status-box h3{ text-align:center; color:var(--dark-green); margin-bottom:10px; font-size:24px; }
.status-box > p{ text-align:center; color:var(--gray); margin-bottom:25px; font-size:14px; }
.status-form{ display:flex; gap:12px; }
.status-form input{ flex:1; padding:14px; border:1px solid #cbdccf; border-radius:7px; font-size:15px; outline:none; min-width:0; }
.status-form input:focus{ border-color:var(--green); }
.status-form button{ border:none; background:var(--green); color:white; padding:13px 22px; border-radius:7px; cursor:pointer; font-size:14px; font-weight:bold; }
.status-note{ margin-top:15px; text-align:center; font-size:12px; color:var(--gray); }
.status-result{ display:block; margin-top:20px; padding:15px; background:white; border-radius:8px; border-left:4px solid var(--green); }

.transparency-section{ background:#f4f7f4; }
.finance-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.finance-card{ background:white; border-radius:12px; padding:25px 15px; text-align:center; box-shadow:var(--shadow); }
.finance-card .icon{ font-size:30px; }
.finance-card h3{ font-size:15px; color:var(--gray); margin:10px 0; }
.finance-card .amount{ color:var(--green); font-size:27px; font-weight:bold; }
.finance-card:nth-child(2) .amount{ color:#c67a13; }
.finance-card:nth-child(3) .amount{ color:#1680a0; }
.finance-card:nth-child(4) .amount{ color:#9b7a13; }
.finance-note{ text-align:center; font-size:12px; color:var(--gray); margin-top:20px; }

.activities-section{ background:#eaf2fb; }
.activities-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.activity-card{ background:white; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
.activity-image{ height:190px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#d9efdf,#fff0d9); font-size:55px; }
.activity-content{ padding:20px; }
.activity-content h3{ color:var(--dark-green); margin-bottom:8px; }
.activity-content p{ color:var(--gray); font-size:14px; }

.posts-section{ padding-top:65px; }
.posts-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.post-card{ background:white; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); transition:.3s; }
.post-card:hover{ transform:translateY(-5px); }
.post-image{ height:190px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e5f4e9,#fff1df); font-size:60px; }
.post-body{ padding:20px; }
.post-category{ display:inline-block; background:var(--light-green); color:var(--green); font-size:12px; font-weight:bold; padding:4px 10px; border-radius:20px; margin-bottom:10px; }
.post-body h3{ font-size:18px; margin-bottom:10px; color:var(--dark-green); }
.post-body p{ font-size:14px; color:var(--gray); margin-bottom:15px; }
.read-more{ color:var(--saffron); font-weight:bold; font-size:14px; }

.join-section{ background:linear-gradient(110deg,var(--saffron),#e66c12); color:white; padding:55px 20px; text-align:center; }
.join-section h2{ font-size:30px; margin-bottom:12px; }
.join-section p{ margin-bottom:25px; font-size:15px; }

/* SUBPAGE & FORM & DASHBOARD STYLES */
.sub-hero{ background:linear-gradient(100deg,var(--dark-green),var(--green)); color:#fff; padding:42px 0; border-bottom:4px solid var(--saffron); }
.sub-hero h1{ font-size:30px; margin-bottom:6px; }
.sub-hero p{ color:#e2f2e6; font-size:15px; }

.box-card{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:26px; box-shadow:var(--shadow); margin-bottom:24px; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fg{ margin-bottom:15px; }
.fg label{ display:block; font-weight:bold; color:var(--dark-green); margin-bottom:6px; font-size:14px; }
.fc{ width:100%; padding:11px 13px; border:1.5px solid #cbd5e1; border-radius:7px; font-family:inherit; font-size:15px; background:#fff; }
.fc:focus{ outline:none; border-color:var(--green); }

.dps-table{ width:100%; border-collapse:collapse; background:#fff; font-size:14px; }
.dps-table th{ background:var(--dark-green); color:#fff; padding:11px 13px; text-align:left; }
.dps-table td{ padding:11px 13px; border-bottom:1px solid var(--border); vertical-align:top; }
.dps-table tr:nth-child(even){ background:#f9fbf9; }

.dps-pill{ display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:bold; }
.pill-ok{ background:#dcfce7; color:#166534; }
.pill-warn{ background:#fef3c7; color:#92400e; }
.pill-saffron{ background:#fff3e0; color:#c2410c; }
.pill-info{ background:#e0f2fe; color:#075985; }
.pill-green{ background:var(--light-green); color:var(--dark-green); }
.pill-purple{ background:#f3e8ff; color:#6b21a8; }
.pill-err{ background:#fee2e2; color:#991b1b; }
.pill-muted{ background:#f1f5f9; color:#475569; }

.alert-box{ padding:14px 18px; border-radius:8px; margin-bottom:18px; font-weight:bold; font-size:14.5px; }
.alert-ok{ background:#dcfce7; color:#14532d; border:1px solid #86efac; }
.alert-err{ background:#fee2e2; color:#7f1d1d; border:1px solid #fca5a5; }

.dash-grid{ display:grid; grid-template-columns:250px 1fr; gap:24px; padding:32px 0 60px; }
.dash-side{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; box-shadow:var(--shadow); height:fit-content; }
.dash-menu{ list-style:none; margin-top:12px; }
.dash-menu li a{ display:block; padding:9px 12px; border-radius:7px; font-weight:600; font-size:14px; margin-bottom:4px; }
.dash-menu li a:hover, .dash-menu li a.active{ background:var(--light-green); color:var(--dark-green); border-left:4px solid var(--saffron); }

/* FOOTER */
.footer{ background:#0b3520; color:white; padding:55px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:30px; padding-bottom:35px; }
.footer h3{ font-size:18px; margin-bottom:18px; color:#ffbd72; }
.footer p{ color:#d0ddd3; font-size:14px; }
.footer-links{ list-style:none; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{ color:#d0ddd3; font-size:14px; }
.footer-links a:hover{ color:#ffbd72; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); padding:18px 0; text-align:center; color:#c7d7cc; font-size:13px; }
.footer-bottom a{ color:#ffbd72; }

@media print{
    .top-bar, .header, .navbar, .news-bar, .footer, .no-print{ display:none !important; }
    body{ background:#fff; }
}

/* RESPONSIVE */
@media(max-width:1000px){
    .panchayat-grid{ grid-template-columns:repeat(3,1fr); }
    .benefits-grid, .finance-grid{ grid-template-columns:repeat(2,1fr); }
    .posts-grid, .services-grid, .activities-grid{ grid-template-columns:repeat(2,1fr); }
    .footer-grid, .dash-grid{ grid-template-columns:repeat(2,1fr); }
}

@media(max-width:768px){
    .top-bar .container{ justify-content:center; text-align:center; }
    .header-inner{ min-height:75px; }
    .logo{ width:52px; height:52px; font-size:22px; }
    .logo-text h1{ font-size:17px; }
    .logo-text span{ font-size:10px; }
    .member-join-btn, .member-login{ padding:8px 10px; font-size:12px; }
    .menu-toggle{ display:block; }
    .navbar{ display:none; }
    .navbar.show{ display:block; }
    .nav-list{ display:block; }
    .nav-list > li > a, .nav-list > li > button{ width:100%; text-align:left; padding:13px 20px; border-bottom:1px solid rgba(255,255,255,.1); }
    .dropdown-menu{ position:static; box-shadow:none; border-top:none; background:#f3f8f4; width:100%; }
    .dropdown.open .dropdown-menu{ display:block; }
    .dropdown-menu a{ padding-left:35px; }
    .hero{ padding:60px 15px; }
    .hero h2{ font-size:30px; }
    .hero p{ font-size:15px; }
    .stats-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
    .stat-box{ padding:18px 10px; }
    .stat-box h3{ font-size:20px; }
    .section{ padding:45px 0; }
    .section-title h2{ font-size:25px; }
    .posts-grid, .services-grid, .activities-grid, .form-row-2, .dash-grid{ grid-template-columns:1fr; }
    .panchayat-grid{ grid-template-columns:repeat(2,1fr); }
    .about-grid{ grid-template-columns:1fr; }
    .about-visual{ min-height:230px; }
    .about-content h2{ font-size:25px; }
    .benefits-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
    .benefit-card{ padding:17px 12px; }
    .status-box{ padding:22px 15px; }
    .status-form{ flex-direction:column; }
    .status-form button{ width:100%; }
    .finance-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
    .finance-card{ padding:20px 10px; }
    .finance-card .amount{ font-size:22px; }
    .footer-grid{ grid-template-columns:1fr 1fr; gap:25px 15px; }
}

@media(max-width:420px){
    .header-inner{ gap:5px; }
    .logo-area{ gap:7px; }
    .logo-text h1{ font-size:15px; }
    .member-join-btn, .member-login{ font-size:11px; padding:8px; }
    .panchayat-grid, .benefits-grid{ grid-template-columns:1fr 1fr; }
    .hero h2{ font-size:26px; }
    .footer-grid{ grid-template-columns:1fr; }
}
